/* ============================================================
   忆曼轩工贸 官网样式 / YIMANXUAN Website Styles
   主题：木色 + 暖白 + 深蓝，面向国内外 B2B 客户
   ============================================================ */

:root {
  --ink: #26262e;
  --muted: #66707c;
  --paper: #ffffff;
  --bg: #faf8f4;
  --bg-warm: #f4eee3;
  --line: #e7e1d5;
  --brand: #7a4f23;
  --brand-strong: #5f3d1a;
  --gold: #c98a3d;
  --gold-soft: #f3e3c8;
  --navy: #1f2a36;
  --green: #25d366;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(31, 42, 54, .08);
  --shadow-lg: 0 18px 48px rgba(31, 42, 54, .14);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: #b87c2f; border-color: #b87c2f; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--gold-soft); }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; color: var(--brand-strong); line-height: 1.25; }
.logo .mark { width: 40px; height: 40px; flex: none; }
.logo small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a { padding: 8px 13px; border-radius: 8px; font-size: 15px; font-weight: 500; }
.main-nav a:hover { color: var(--brand); background: var(--bg); }
.main-nav a.active { color: var(--brand); background: var(--gold-soft); }
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-size: 13px; font-weight: 600; }
.lang-switch a { padding: 3px 12px; border-radius: 999px; color: var(--muted); }
.lang-switch a.active { background: var(--navy); color: #fff; }
.nav-toggle {
  display: none; margin-left: auto; flex: none;
  width: 42px; height: 42px; border-radius: 10px;
  background: none; border: 1px solid var(--line); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-lang { display: none; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; gap: 14px; }
.mobile-lang a { padding: 0 2px; }

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(165deg, #faf6ee 0%, #f1e7d4 55%, #eadfc9 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
  max-width: var(--maxw); margin: 0 auto;
  padding: 84px 24px 96px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  padding: 7px 15px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--brand-strong);
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.18; margin-bottom: 18px; }
.hero h1 .hl { color: var(--brand); }
.hero .lead { font-size: 17.5px; color: var(--muted); max-width: 34em; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .78); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--brand-strong);
}
.chip svg { width: 15px; height: 15px; color: var(--gold); }
.hero-art svg { width: 100%; height: auto; }

/* ---------- 内页页头 ---------- */
.page-hero {
  background: linear-gradient(165deg, #faf6ee, #f1e7d4);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px; text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 14px; }
.page-hero .lead { color: var(--muted); max-width: 42em; margin: 0 auto; font-size: 16.5px; }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg); }
.section .container { position: relative; }
.sec-head { max-width: 44em; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.3; margin-bottom: 14px; }
.sec-head .lead { color: var(--muted); font-size: 16.5px; }

/* ---------- 产品卡片 ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d9cdb8; }
.ph { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--ph, #f1e6d6); position: relative; overflow: hidden; }
.ph svg { width: 58px; height: 58px; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-body h3 { font-size: 18px; }
.pcard-body p { color: var(--muted); font-size: 14.5px; flex: 1; }
.pcard-more { font-weight: 600; font-size: 14px; color: var(--brand); }
.pcard:hover .pcard-more { color: var(--gold); }

/* ---------- 数据条 ---------- */
.stats { background: linear-gradient(135deg, var(--navy), #31465c); color: #fff; padding: 72px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat b { display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: #f2c47c; }
.stat span { font-size: 14px; opacity: .85; }

/* ---------- 优势卡片 ---------- */
.ugrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ucard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.ucard .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--gold-soft); display: grid; place-items: center;
  margin-bottom: 16px; color: var(--brand-strong);
}
.ucard .ico svg { width: 24px; height: 24px; }
.ucard h3 { font-size: 17px; margin-bottom: 8px; }
.ucard p { color: var(--muted); font-size: 14.5px; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #f2c47c;
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
  margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- 生产流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.flow-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 12px; text-align: center; font-weight: 600; font-size: 14.5px;
}
.flow-item small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; font-size: 12.5px; }

/* ---------- 两栏图文 + 清单 ---------- */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checklist li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--gold); margin-top: 3px; }
.checklist li b { color: var(--brand-strong); }

/* ---------- CTA 横幅 ---------- */
.cta-wrap { padding: 0 24px 88px; }
.cta-band {
  max-width: var(--maxw); margin: 0 auto;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: #fff; border-radius: 20px;
  padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.cta-band p { opacity: .9; }

/* ---------- 表单 ---------- */
.contact-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.form-card h3 { font-size: 20px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 138, 61, .15);
}
.field textarea { min-height: 130px; resize: vertical; }
.field.full { grid-column: 1 / -1; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.form-ok {
  display: none; margin-top: 16px; padding: 14px 16px;
  background: #eef7ee; border: 1px solid #bfe3c4; color: #2e7d3a;
  border-radius: 10px; font-size: 14.5px;
}
.form-ok.show { display: block; }

/* ---------- 联系方式卡片 ---------- */
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.ccard {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px;
}
.ccard .ico {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--brand);
}
.ccard .ico svg { width: 20px; height: 20px; }
.ccard b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.ccard span { font-size: 14px; color: var(--muted); word-break: break-all; }
.reply-note {
  background: var(--gold-soft); border: 1px solid #e5cf9f;
  color: var(--brand-strong); border-radius: 12px;
  padding: 16px 18px; font-size: 14.5px; font-weight: 600;
}

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: #c7d0da; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 64px 24px 40px;
}
.footer-brand .logo { color: #fff; }
.footer-brand .logo small { color: #8fa0b0; }
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 30em; opacity: .85; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; margin-bottom: 10px; opacity: .85; }
.footer-col a:hover { color: #f2c47c; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 24px; text-align: center; font-size: 13px; opacity: .75;
}

/* ---------- WhatsApp 悬浮按钮 ---------- */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  transition: transform .2s;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab[hidden] { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .pgrid, .ugrid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px 64px; }
  .hero-art { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .twocol { grid-template-columns: 1fr; gap: 32px; }
  .nav-toggle { display: flex; }
  .lang-switch { display: none; }
  .mobile-lang { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; flex-direction: column;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 12px 8px; font-size: 16px; }
}
@media (max-width: 820px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}
@media (max-width: 640px) {
  .pgrid, .ugrid, .steps, .cgrid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .cta-band { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}
