/* ==========================================================================
   湖北东漳实业有限公司 · 官网样式
   设计基调：简约大气 / 米白 + 茶色 + 墨绿，点缀桑叶绿
   ========================================================================== */

:root {
  --ink: #1f2a26;
  --ink-2: #40514a;
  --ink-3: #7b8a83;
  --paper: #faf8f4;
  --paper-2: #f3efe7;
  --card: #ffffff;
  --line: #e6e0d5;
  --brand: #2f6b53;
  --brand-dark: #22513e;
  --brand-soft: #e8f0ea;
  --tea: #a8794f;
  --tea-soft: #f3e9dd;
  --danger: #c0483c;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(31, 42, 38, 0.07);
  --shadow-lg: 0 18px 48px rgba(31, 42, 38, 0.12);
  --container: 1180px;
  --font: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Source Han Sans SC',
    system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 600; letter-spacing: .01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo-text strong { display: block; font-size: 17px; letter-spacing: .04em; }
.logo-text span { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: .14em; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 16px; border-radius: 999px; font-size: 15px; color: var(--ink-2);
  transition: .2s;
}
.nav a:hover { background: var(--paper-2); color: var(--brand); }
.nav a.active { background: var(--brand); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.user-chip { display: none; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.user-chip.on { display: flex; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand);
  color: #fff; display: grid; place-items: center; font-size: 14px;
}
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius-sm); cursor: pointer;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; cursor: pointer; transition: .2s; background: none; line-height: 1.2;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 7px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- 区块 ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .22em; color: var(--tea);
  text-transform: uppercase; margin-bottom: 14px; font-weight: 600;
}
.section-head h2 { font-size: 34px; margin-bottom: 14px; }
.section-head p { color: var(--ink-3); font-size: 16px; margin: 0; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: .25s;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.icon-box {
  width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 18px; flex-shrink: 0;
}
.icon-box.tea { background: var(--tea-soft); }
.icon-box svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-3); font-size: 15px; margin: 0; }

.biz-card { display: flex; flex-direction: column; }
.biz-card .step {
  font-size: 12px; letter-spacing: .18em; color: var(--tea); font-weight: 600; margin-bottom: 6px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 0 100px;
  background: linear-gradient(150deg, #f7f2e9 0%, #eef3ee 55%, #e6efe9 100%);
}
.hero::after {
  content: ''; position: absolute; right: -140px; top: -140px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(168,121,79,.16), transparent 65%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 52px; line-height: 1.18; margin-bottom: 20px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { font-size: 18px; color: var(--ink-2); max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stats .num { font-size: 32px; font-weight: 600; color: var(--brand); line-height: 1.2; }
.hero-stats .label { font-size: 14px; color: var(--ink-3); }
.hero-art {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: #dfe9e2; aspect-ratio: 4 / 3;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -20px; bottom: 24px; background: rgba(255,255,255,.95);
  border-radius: 14px; padding: 14px 20px; box-shadow: var(--shadow);
  backdrop-filter: blur(8px); font-size: 13px; color: var(--ink-2); line-height: 1.5;
}
.hero-badge strong { display: block; color: var(--brand); font-size: 15px; }

/* ---------- 数据条 ---------- */
.strip { background: var(--brand); color: #fff; padding: 26px 0; }
.strip .container { display: flex; flex-wrap: wrap; gap: 20px 60px; justify-content: space-between; }
.strip-item { display: flex; align-items: baseline; gap: 10px; }
.strip-item .n { font-size: 26px; font-weight: 600; }
.strip-item .t { font-size: 14px; opacity: .85; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -30px; top: 7px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.tl-year { font-size: 15px; font-weight: 600; color: var(--brand); letter-spacing: .06em; }
.tl-item p { color: var(--ink-3); margin: 4px 0 0; font-size: 15px; }

/* ---------- 优势 ---------- */
.value-item { display: flex; gap: 16px; }
.value-item .icon-box { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 0; }
.value-item h4 { font-size: 16px; margin-bottom: 4px; }
.value-item p { font-size: 14px; color: var(--ink-3); margin: 0; }

/* ---------- 图片组 ---------- */
.figure {
  border-radius: var(--radius); overflow: hidden; background: var(--paper-2);
  aspect-ratio: 16 / 10;
}
.figure img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.figure-cap { font-size: 13px; color: var(--ink-3); margin-top: 10px; }

/* ---------- 表单 ---------- */
.form { display: grid; gap: 16px; }
.field label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field label .req { color: var(--danger); }
.input, .textarea, select.input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: .2s;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.textarea { min-height: 120px; resize: vertical; }
.field-err { font-size: 13px; color: var(--danger); margin-top: 6px; display: none; }
.field-err.on { display: block; }
.form-note { font-size: 13px; color: var(--ink-3); }

.alert {
  padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px;
  display: none; margin-bottom: 4px;
}
.alert.on { display: block; }
.alert-err { background: #fdecea; color: #9b3428; }
.alert-ok { background: var(--brand-soft); color: var(--brand-dark); }

/* ---------- 认证页 ---------- */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 60px 24px; }
.auth-card {
  width: 100%; max-width: 880px; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-lg);
}
.auth-side {
  background: linear-gradient(160deg, #2f6b53, #1f4a38); color: #fff; padding: 46px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-side h2 { font-size: 27px; }
.auth-side p { opacity: .8; font-size: 15px; }
.auth-side ul { list-style: none; padding: 0; margin: 22px 0 0; }
.auth-side li { padding: 9px 0 9px 26px; position: relative; font-size: 14px; opacity: .92; }
.auth-side li::before {
  content: ''; position: absolute; left: 0; top: 17px; width: 8px; height: 8px;
  border-radius: 50%; background: rgba(255,255,255,.6);
}
.auth-main { padding: 46px 40px; }
.auth-tabs { display: flex; gap: 6px; background: var(--paper-2); padding: 4px; border-radius: 999px; margin-bottom: 26px; }
.auth-tabs button {
  flex: 1; padding: 9px; border: none; background: none; border-radius: 999px;
  cursor: pointer; color: var(--ink-2); font-size: 15px; transition: .2s;
}
.auth-tabs button.active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: var(--shadow); }
.auth-main h3 { font-size: 21px; margin-bottom: 4px; }
.auth-main .sub { font-size: 14px; color: var(--ink-3); margin-bottom: 22px; }
.auth-foot { margin-top: 20px; font-size: 14px; color: var(--ink-3); text-align: center; }
.auth-foot a { color: var(--brand); }

/* ---------- 用户中心 ---------- */
.dash-head {
  background: linear-gradient(140deg, #f7f2e9, #e9f0ea); padding: 44px 0;
}
.dash-head h1 { font-size: 30px; margin-bottom: 4px; }
.dash-head p { color: var(--ink-3); margin: 0; }
.tabs-row { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 28px; flex-wrap: wrap; }
.tabs-row button {
  border: none; background: none; padding: 12px 18px; cursor: pointer; font-size: 15px;
  color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs-row button.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.on { display: block; }

.drop-zone {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 38px 24px;
  text-align: center; cursor: pointer; transition: .2s; background: #fff;
}
.drop-zone:hover, .drop-zone.drag { border-color: var(--brand); background: var(--brand-soft); }
.drop-zone p { margin: 8px 0 0; color: var(--ink-3); font-size: 14px; }

.file-list { display: grid; gap: 12px; }
.file-item {
  display: flex; align-items: center; gap: 14px; padding: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.file-thumb {
  width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
  background: var(--paper-2);
}
.file-meta { flex: 1; min-width: 0; }
.file-meta strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta span { font-size: 13px; color: var(--ink-3); }

.list-row {
  display: flex; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); align-items: flex-start;
}
.list-row .badge {
  font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--tea-soft);
  color: var(--tea); font-weight: 600; flex-shrink: 0;
}
.list-row h4 { font-size: 16px; margin: 0 0 4px; }
.list-row p { margin: 0; font-size: 14px; color: var(--ink-3); white-space: pre-wrap; }
.list-row .meta { font-size: 12px; color: var(--ink-3); margin-top: 8px; }

.empty {
  text-align: center; padding: 54px 20px; color: var(--ink-3);
  border: 1px dashed var(--line); border-radius: var(--radius); background: #fff;
}
.empty strong { display: block; color: var(--ink-2); margin-bottom: 6px; font-size: 16px; }

.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tile .n { font-size: 28px; font-weight: 600; color: var(--brand); }
.tile .t { font-size: 14px; color: var(--ink-3); }

/* ---------- 页脚 ---------- */
.site-footer { background: #1f2a26; color: rgba(255,255,255,.7); padding: 62px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .04em; }
.site-footer p, .site-footer li { font-size: 14px; line-height: 2; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text span { color: rgba(255,255,255,.5); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- 页头 ---------- */
.page-hero {
  background: linear-gradient(140deg, #f7f2e9, #e9f0ea); padding: 72px 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: 40px; margin-bottom: 10px; }
.page-hero p { color: var(--ink-2); max-width: 640px; margin: 0; font-size: 16px; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.crumb a:hover { color: var(--brand); }

/* ---------- 联系 ---------- */
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .icon-box { width: 42px; height: 42px; border-radius: 12px; margin: 0; }
.contact-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.contact-item span { font-size: 14px; color: var(--ink-3); word-break: break-all; }
.map-embed {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--paper-2); aspect-ratio: 16 / 9;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; font-size: 16px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px;
}
.faq-a { display: none; padding: 0 0 20px; color: var(--ink-3); font-size: 15px; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.plus { transition: .2s; color: var(--brand); font-size: 20px; line-height: 1; flex-shrink: 0; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 84px; right: 24px; z-index: 200; display: grid; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--radius-sm);
  font-size: 14px; box-shadow: var(--shadow-lg); animation: toastIn .25s ease;
  max-width: 320px;
}
.toast.err { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: 38px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-card { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; background: var(--paper);
    padding: 12px 24px 20px; border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 8px; }
  .nav-toggle { display: grid; place-items: center; }
  .header-actions .btn-ghost { display: none; }
  .hero { padding: 68px 0 60px; }
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 26px; flex-wrap: wrap; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 26px; }
  .g2, .g3, .g4, .stat-tiles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 28px; }
  .toast-wrap { left: 16px; right: 16px; }
}