/* 响水久隆纺织有限公司 — 企业官网样式 */
:root {
  --bg: #f7f4ed;
  --surface: #fffdf8;
  --ink: #1b1e1c;
  --muted: #6f7269;
  --line: #e3ddd0;
  --accent: #a8552b;
  --deep: #2f3a34;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px 24px; max-width: 1160px; margin: 0 auto; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo-img { height: 46px; width: auto; display: block; }
.logo-divider { width: 1px; height: 30px; background: var(--line); }
.logo-sub { font-size: 0.84rem; letter-spacing: 0.14em; color: var(--muted); white-space: nowrap; }
.main-nav { display: flex; gap: 34px; flex-wrap: wrap; }
.main-nav a {
  font-size: 0.92rem; letter-spacing: 0.08em; color: var(--muted);
  padding: 4px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.avatar-dot {
  width: 30px; height: 30px; border-radius: 50%; background: var(--deep); color: #f3efe6;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 30px; font-size: 0.92rem; letter-spacing: 0.1em;
  background: var(--ink); color: #f6f2e9; border: 1px solid var(--ink);
  border-radius: 2px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #f6f2e9; border-color: var(--ink); }
.btn-light { background: #f6f2e9; color: var(--ink); border-color: #f6f2e9; }
.btn-light:hover { background: transparent; color: #f6f2e9; border-color: #f6f2e9; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font-size: 0.85rem; letter-spacing: .05em; padding: 0;
}
.link-btn:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 76vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20, 24, 21, 0.78) 8%, rgba(20, 24, 21, 0.45) 48%, rgba(20, 24, 21, 0.15) 80%);
}
.hero-content { position: relative; z-index: 2; color: #f6f2e9; padding: 90px 24px; max-width: 1160px; margin: 0 auto; width: 100%; }
.kicker {
  font-size: 0.78rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: #e0b18c; margin-bottom: 22px; display: flex; align-items: center; gap: 14px;
}
.kicker::before { content: ""; width: 42px; height: 1px; background: #e0b18c; }
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.25; letter-spacing: 0.06em;
  max-width: 17em;
}
.hero p.sub { margin-top: 24px; max-width: 34em; color: rgba(246, 242, 233, 0.85); font-size: 1.02rem; }
.hero-actions { margin-top: 44px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-page { min-height: 46vh; }
.hero-page .hero-content { padding: 110px 24px 90px; }
.hero-page h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section-head { margin-bottom: 56px; }
.section-head .kicker { color: var(--accent); }
.section-head .kicker::before { background: var(--accent); }
.section-head h2 {
  font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: 0.08em; line-height: 1.4;
}
.section-head p.lead { margin-top: 16px; color: var(--muted); max-width: 40em; }
.section-head.center { text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center p.lead { margin-left: auto; margin-right: auto; }

.dark-band { background: var(--deep); color: #e9e5da; }
.dark-band .section-head h2 { color: #f3efe6; }
.dark-band .section-head .kicker { color: #d9a67f; }
.dark-band .section-head .kicker::before { background: #d9a67f; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 44px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat .num { font-family: var(--serif); font-size: 2.6rem; color: var(--deep); line-height: 1.1; }
.stat .num small { font-size: 1rem; margin-left: 4px; color: var(--accent); }
.stat .label { margin-top: 10px; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.12em; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 22px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
  padding: 26px 24px 22px; cursor: pointer; position: relative;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column; gap: 12px;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(31, 34, 30, 0.09); border-color: #d4ccba; }
.chips { display: flex; gap: 7px; }
.chips span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.product-card h3 { font-family: var(--serif); font-size: 1.18rem; letter-spacing: 0.05em; }
.product-card .meta { font-size: 0.84rem; color: var(--muted); }
.product-card .feat { font-size: 0.84rem; color: var(--muted); margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.tag {
  position: absolute; top: 18px; right: 18px; font-size: 0.7rem; letter-spacing: 0.14em;
  color: var(--accent); border: 1px solid #e4c9b6; padding: 3px 10px; border-radius: 999px; background: #faf3ec;
}
.fav-btn {
  position: absolute; bottom: 14px; right: 16px; background: none; border: none;
  font-size: 0.78rem; color: var(--muted); cursor: pointer; letter-spacing: .05em;
}
.fav-btn:hover { color: var(--accent); }
.fav-btn.faved { color: var(--accent); }

/* ---------- Feature blocks ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 40px 34px;
}
.feature .no { font-family: var(--serif); font-size: 1rem; color: var(--accent); letter-spacing: .2em; }
.feature h3 { font-family: var(--serif); font-size: 1.25rem; margin: 14px 0 12px; letter-spacing: .06em; }
.feature p { color: var(--muted); font-size: 0.93rem; }

/* ---------- About page ---------- */
.about-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-split .img-wrap { border-radius: 3px; overflow: hidden; box-shadow: 0 24px 60px rgba(31,34,30,.14); }
.about-split h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: .06em; margin-bottom: 24px; }
.about-split p { color: var(--muted); margin-bottom: 16px; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.process { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 26px; background: var(--surface); }
.process .step { font-size: 0.72rem; letter-spacing: .3em; color: var(--accent); }
.process h4 { font-family: var(--serif); font-size: 1.1rem; margin: 12px 0 8px; letter-spacing: .06em; }
.process p { font-size: 0.85rem; color: var(--muted); }

/* ---------- Products page toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-tabs button {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: 9px 20px; border-radius: 999px; cursor: pointer; font-size: 0.86rem; letter-spacing: .06em;
  transition: all .2s;
}
.filter-tabs button:hover { border-color: var(--ink); color: var(--ink); }
.filter-tabs button.active { background: var(--ink); border-color: var(--ink); color: #f6f2e9; }
.search-box input {
  border: 1px solid var(--line); background: var(--surface); padding: 10px 16px;
  border-radius: 999px; font-size: 0.88rem; width: 230px; color: var(--ink); outline: none;
}
.search-box input:focus { border-color: var(--accent); }
.result-count { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(22, 25, 22, 0.55); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal {
  background: var(--surface); border-radius: 4px; max-width: 620px; width: 100%;
  max-height: 86vh; overflow-y: auto; padding: 44px 44px 36px; position: relative;
}
.modal .close {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  font-size: 1.5rem; color: var(--muted); cursor: pointer; line-height: 1;
}
.modal h3 { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .06em; margin: 14px 0 6px; }
.modal .modal-kicker { font-size: 0.74rem; letter-spacing: .3em; color: var(--accent); text-transform: uppercase; }
.modal dl { margin-top: 22px; border-top: 1px solid var(--line); }
.modal dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.modal dt { color: var(--muted); letter-spacing: .08em; }
.modal p.desc { margin-top: 20px; color: var(--muted); font-size: 0.94rem; }
.modal-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 48px 44px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.82rem; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; }
.field label em { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #fffefb; border-radius: 2px;
  padding: 12px 14px; font-size: 0.95rem; color: var(--ink); outline: none; font-family: var(--sans);
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.field .err { color: #b03a2e; font-size: 0.8rem; margin-top: 6px; min-height: 1em; }
.form-foot { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.form-foot .hint { font-size: 0.82rem; color: var(--muted); }
.form-msg { font-size: 0.88rem; min-height: 1.4em; }
.form-msg.ok { color: #3e6b4f; }
.form-msg.bad { color: #b03a2e; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.25fr; gap: 56px; align-items: start; }
.contact-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-child { border-top: 1px solid var(--line); }
.contact-item .k { font-size: 0.74rem; letter-spacing: .3em; color: var(--accent); text-transform: uppercase; }
.contact-item .v { margin-top: 8px; font-size: 1.02rem; }
.contact-item .v small { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

/* ---------- Map / location ---------- */
.map-section { padding-top: 0; }
.map-section .container { border-top: 1px solid var(--line); padding-top: 72px; }
.map-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: 28px; }
.map-head .kicker { color: var(--accent); margin-bottom: 14px; }
.map-head .kicker::before { background: var(--accent); }
.map-head h2 { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: .06em; line-height: 1.5; }
.map-head p { margin-top: 10px; color: var(--muted); font-size: .92rem; max-width: 46em; }
.map-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.map-actions .btn { padding: 11px 24px; font-size: .86rem; white-space: nowrap; }
.map-frame { position: relative; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-frame .map-tag {
  position: absolute; left: 16px; top: 16px; z-index: 2; pointer-events: none;
  background: rgba(255, 253, 248, .94); border: 1px solid var(--line);
  padding: 7px 14px; font-size: .72rem; letter-spacing: .16em; color: var(--deep); text-transform: uppercase;
}
.map-note { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: .82rem; color: var(--muted); }
.map-note a { color: var(--accent); }
@media (max-width: 900px) {
  .map-head { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .map-frame iframe { height: 340px; }
}

/* ---------- Auth (login) ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.auth-tabs button {
  flex: 1; background: none; border: none; padding: 14px 6px; cursor: pointer;
  font-size: 0.95rem; letter-spacing: .1em; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.auth-tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.otp-row { display: flex; gap: 12px; }
.otp-row input { flex: 1; }
.otp-row .send-btn {
  white-space: nowrap; border: 1px solid var(--line); background: var(--surface);
  padding: 0 18px; border-radius: 2px; cursor: pointer; font-size: 0.85rem; color: var(--ink);
}
.otp-row .send-btn:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.otp-row .send-btn[disabled] { color: var(--muted); cursor: not-allowed; }
.auth-note { margin-top: 26px; font-size: 0.82rem; color: var(--muted); text-align: center; }
.wechat-panel { text-align: center; padding: 18px 0 6px; }
.wechat-panel p { color: var(--muted); font-size: 0.9rem; margin: 12px 0 26px; }

/* ---------- Member center ---------- */
.member-layout { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }
.member-side { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.member-side .who { padding: 28px 24px; border-bottom: 1px solid var(--line); background: var(--deep); color: #f3efe6; }
.member-side .who .name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .08em; }
.member-side .who .uid { font-size: 0.76rem; color: rgba(243,239,230,.6); margin-top: 6px; word-break: break-all; }
.member-side nav a, .member-side nav button {
  display: block; width: 100%; text-align: left; padding: 15px 24px; font-size: 0.92rem;
  letter-spacing: .08em; color: var(--muted); background: none; border: none; border-bottom: 1px solid var(--line); cursor: pointer;
}
.member-side nav a:hover, .member-side nav button:hover { color: var(--ink); background: #faf7f0; }
.member-side nav .danger { color: #b03a2e; }
.member-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 40px 44px; min-height: 420px; }
.member-panel h2 { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .06em; margin-bottom: 8px; }
.member-panel .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 30px; }
.list-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: none; }
.list-item .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.list-item .title { font-size: 1rem; font-weight: 600; }
.list-item .date { font-size: 0.8rem; color: var(--muted); }
.list-item .body { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.status-pill { font-size: 0.72rem; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); letter-spacing: .08em; }
.empty { text-align: center; color: var(--muted); padding: 56px 0; font-size: 0.92rem; }
.empty a { color: var(--accent); }
.upload-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.upload-row input[type="file"] { font-size: 0.86rem; color: var(--muted); max-width: 320px; }
.chips-line { display: flex; gap: 6px; margin-top: 10px; }
.chips-line span { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--deep); color: #e9e5da; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 72px 0; }
.cta-inner h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: .08em; }
.cta-inner p { color: rgba(233,229,218,.7); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: #171a18; color: #b9b6ac; margin-top: 96px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding: 68px 0 48px; }
.footer-inner h4 { color: #f0ede4; font-size: 0.86rem; letter-spacing: .22em; margin-bottom: 20px; font-weight: 600; }
.footer-inner p, .footer-inner a { font-size: 0.86rem; color: #8f8d84; line-height: 2; }
.footer-inner a:hover { color: #e0b18c; }
.footer-inner .f-logo { font-family: var(--serif); color: #f0ede4; font-size: 1.3rem; letter-spacing: .12em; margin-bottom: 16px; }
.footer-inner .f-logo img { height: 44px; width: auto; display: block; }
.footer-bottom { border-top: 1px solid #262926; padding: 22px 0; font-size: 0.78rem; color: #6c6a62; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #f6f2e9; padding: 12px 26px; border-radius: 999px;
  font-size: 0.88rem; opacity: 0; pointer-events: none; transition: all .3s; z-index: 200;
  max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { background: #7c2d20; }

/* ---------- Page hero small ---------- */
.page-hero { position: relative; overflow: hidden; }
.page-hero .hero-bg::after { background: linear-gradient(100deg, rgba(20,24,21,.72) 10%, rgba(20,24,21,.3) 70%); }

/* ---------- Loading ---------- */
.loading { color: var(--muted); font-size: 0.9rem; padding: 40px 0; text-align: center; letter-spacing: .1em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-split, .contact-grid, .member-layout { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .header-inner { gap: 10px; }
  .main-nav { gap: 20px; }
  .form-card, .member-panel { padding: 30px 22px; }
  .modal { padding: 34px 24px 28px; }
  .logo-sub, .logo-divider { display: none; }
  .logo-img { height: 40px; }
}
