/* ==========================================================================
   FLEETWOOD 中国官网 · 全局样式
   ========================================================================== */

:root {
  --cream: #F7F4EF;
  --cream-2: #EFE9E0;
  --paper: #FFFFFF;
  --ink: #1A211D;
  --ink-soft: #47514B;
  --muted: #7E8883;
  --green: #1E4638;
  --green-dark: #13322A;
  --green-soft: #E6EDE9;
  --clay: #B07C58;
  --clay-soft: #F3E7DD;
  --line: rgba(26, 33, 29, 0.12);
  --line-soft: rgba(26, 33, 29, 0.07);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 6px 18px -12px rgba(20, 40, 32, .35);
  --shadow: 0 20px 46px -26px rgba(20, 40, 32, .42);
  --max: 1240px;
  --serif: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { width: min(100% - 40px, var(--max)); margin: 0 auto; }
.container-narrow { width: min(100% - 40px, 860px); margin: 0 auto; }

.serif { font-family: var(--serif); }
.kicker {
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin: 0 0 14px;
}
.lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- 顶部公告 ---------- */
.topbar {
  background: var(--green-dark);
  color: rgba(255, 255, 255, .82);
  font-size: .8rem;
  letter-spacing: .02em;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding-block: 6px;
}
.topbar a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; white-space: nowrap; }
@media (max-width: 760px) { .topbar .tb-left { display: none; } .topbar .container { justify-content: center; } }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 244, 239, .88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s;
}
.site-header.is-solid { background: rgba(255, 255, 255, .95); box-shadow: 0 8px 26px -22px rgba(0, 0, 0, .5); }
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-logo { height: 42px; width: auto; display: block; }
@media (max-width: 640px) { .brand-logo { height: 34px; } }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.35rem; line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.16rem; letter-spacing: .14em; }
.brand-text em { font-style: normal; font-size: .63rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  position: relative;
  padding: 10px 14px;
  font-size: .95rem;
  color: var(--ink-soft);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--green); background: rgba(30, 70, 56, .06); }
.main-nav a.active { color: var(--green); font-weight: 600; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--clay); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
/* 导航为 9 项，中等宽度桌面端收紧间距，避免与品牌/操作区挤压 */
@media (min-width: 1081px) and (max-width: 1260px) {
  .header-inner { gap: 14px; }
  .main-nav { gap: 0; }
  .main-nav a { padding: 10px 10px; font-size: .9rem; }
}
.avatar-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .86rem; max-width: 170px;
}
.avatar-chip .av {
  width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft);
  color: var(--green); display: grid; place-items: center; font-size: .8rem; font-weight: 600;
}
.avatar-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; font-size: 1.1rem;
}

@media (max-width: 1080px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    background: #fff; flex-direction: column; gap: 2px;
    padding: 88px 22px 22px; margin: 0;
    transform: translateX(102%); transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: -20px 0 60px -30px rgba(0,0,0,.5); overflow-y: auto; z-index: 70;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { padding: 14px 16px; border-radius: 10px; font-size: 1rem; }
  .main-nav a.active::after { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .header-actions .btn-ghost span { display: none; }
}
@media (max-width: 560px) {
  .brand-text em { display: none; }
  .header-actions { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: .93rem; font-weight: 500; line-height: 1.2;
  transition: transform .18s, background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--green); color: var(--green); }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: #9d6c4a; }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--green); }
.btn-outline { background: transparent; border-color: currentColor; color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .14); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--green); font-size: .95rem;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 通用区块 ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-green { background: var(--green); color: #fff; }
.section-green .lead, .section-green .muted { color: rgba(255, 255, 255, .78); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(1.6rem, 3.1vw, 2.4rem); font-family: var(--serif); }
.section-head h2 + .lead { margin-top: 14px; }
.section-head.split {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.page-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px);
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero .lead { margin-top: 16px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--green); }
.crumbs span + span::before { content: "/"; margin: 0 8px; color: var(--line); }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; background: var(--green-dark); overflow: hidden; }
.hero-stage { position: relative; min-height: clamp(460px, 74vh, 720px); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
  background-size: cover; background-position: center;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 26, 20, .86) 0%, rgba(10, 26, 20, .55) 42%, rgba(10, 26, 20, .12) 100%);
}
.hero-content {
  position: relative; z-index: 3;
  min-height: clamp(460px, 74vh, 720px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 72px; color: #fff; max-width: 640px;
}
.hero-content .kicker { color: #D9BFA4; }
.hero-content h1 {
  font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.5rem);
  letter-spacing: .01em; margin-bottom: 20px;
}
.hero-content p { font-size: clamp(1rem, 1.6vw, 1.12rem); color: rgba(255,255,255,.86); max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 4; display: flex; gap: 10px; }
.hero-dots button {
  width: 34px; height: 3px; border: 0; padding: 0; border-radius: 3px;
  background: rgba(255, 255, 255, .35); transition: background .3s, width .3s;
}
.hero-dots button.is-active { background: #fff; width: 56px; }
.hero-trust {
  position: relative; z-index: 5; margin-top: -38px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
}
.hero-trust div { padding: 24px 20px; text-align: center; border-right: 1px solid var(--line-soft); }
.hero-trust div:last-child { border-right: 0; }
.hero-trust strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--green); }
.hero-trust small { color: var(--muted); font-size: .82rem; }
@media (max-width: 760px) { .hero-trust { grid-template-columns: repeat(2, 1fr); } .hero-trust div:nth-child(2) { border-right: 0; } }

/* ---------- 优势卡 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.adv-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--green-soft);
  color: var(--green); display: grid; place-items: center; margin-bottom: 18px;
}
.adv-icon svg { width: 22px; height: 22px; }
.adv-card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.adv-card p { font-size: .9rem; color: var(--muted); }
@media (max-width: 980px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .adv-grid { grid-template-columns: 1fr; } }

/* ---------- 分类卡 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 320px; display: flex; align-items: flex-end;
  background: var(--cream-2); color: #fff; isolation: isolate;
}
.cat-card:first-child { grid-column: span 2; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .6s cubic-bezier(.3,0,.2,1); }
.cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,28,22,0) 32%, rgba(12,28,22,.82) 100%);
}
.cat-card:hover img { transform: scale(1.05); }
.cat-body { padding: 26px 26px 24px; width: 100%; }
.cat-body h3 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 6px; }
.cat-body p { font-size: .88rem; color: rgba(255,255,255,.82); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-body .link-arrow { color: #fff; font-size: .88rem; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } .cat-card:first-child { grid-column: span 2; } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr; } .cat-card:first-child { grid-column: span 1; } .cat-card { min-height: 250px; } }

/* ---------- 产品卡 ---------- */
.toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: .87rem; color: var(--ink-soft); transition: all .2s;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.toolbar .search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
}
.toolbar .search input { border: 0; outline: 0; background: transparent; font-size: .9rem; width: 190px; font-family: inherit; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-thumb {
  position: relative; aspect-ratio: 4 / 3; background: var(--cream-2); overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--clay); color: #fff; font-size: .72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .04em;
}
.swatch-dot {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
.product-body h3 { font-size: 1.02rem; margin: 8px 0 6px; }
.product-body h3 a:hover { color: var(--green); }
.product-body p { font-size: .86rem; color: var(--muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.price { font-family: var(--serif); font-size: 1.05rem; color: var(--green); font-weight: 600; }
.fav-btn { background: none; border: 0; padding: 4px; color: var(--muted); line-height: 0; }
.fav-btn svg { width: 18px; height: 18px; }
.fav-btn.is-on { color: #C0392B; }
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr; } }

/* ---------- 图文分区 ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 5/4; object-fit: cover; }
.split-media.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split-media.grid-2 img { aspect-ratio: 3/4; }
.split-media.grid-2 img:first-child { margin-top: 26px; }
.split-text h2 { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-bottom: 18px; }
.split-text .facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 26px 0 28px; }
.split-text .facts div { border-left: 2px solid var(--clay); padding-left: 14px; }
.split-text .facts strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--green); }
.split-text .facts small { color: var(--muted); font-size: .82rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }

/* ---------- 色卡 ---------- */
.colour-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.colour-card { text-align: left; }
.colour-chip {
  border-radius: var(--radius); aspect-ratio: 1 / 1; width: 100%;
  border: 1px solid rgba(0,0,0,.06); position: relative; overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
.colour-card:hover .colour-chip { transform: translateY(-4px); box-shadow: var(--shadow); }
.colour-card h4 { font-size: .86rem; margin: 10px 0 2px; font-weight: 600; }
.colour-card small { font-size: .76rem; color: var(--muted); letter-spacing: .06em; }
@media (max-width: 1000px) { .colour-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .colour-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 资讯卡 ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.article-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--cream-2); }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.article-card:hover .thumb img { transform: scale(1.06); }
.article-card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.article-card .meta { font-size: .76rem; color: var(--muted); display: flex; gap: 10px; margin-bottom: 10px; }
.article-card .meta b { color: var(--clay); font-weight: 600; }
.article-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.article-card h3 a:hover { color: var(--green); }
.article-card p { font-size: .88rem; color: var(--muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background: var(--green); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px); display: flex; align-items: center;
  justify-content: space-between; gap: 28px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255,255,255,.05);
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 52ch; margin: 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: #101713; color: rgba(255,255,255,.72); padding: clamp(48px, 6vw, 76px) 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; font-weight: 600; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .88rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .brand-logo { height: 38px; }
.footer-brand .brand-mark { background: rgba(255,255,255,.12); }
.footer-brand strong { color: #fff; font-family: var(--serif); letter-spacing: .14em; }
.site-footer .about-text { font-size: .88rem; line-height: 1.8; max-width: 38ch; }
.footer-contact li { display: flex; gap: 10px; font-size: .88rem; }
.footer-contact svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 5px; opacity: .6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: rgba(255,255,255,.5);
}
.footer-bottom .fb-links { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.field label .req { color: #C0392B; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-family: inherit; font-size: .94rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,70,56,.1);
}
.field .hint { font-size: .78rem; color: var(--muted); }
.field .err { font-size: .78rem; color: #C0392B; min-height: 0; display: none; }
.field.has-err .err { display: block; }
.field.has-err input, .field.has-err textarea { border-color: #C0392B; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.notice { padding: 12px 16px; border-radius: 10px; font-size: .88rem; margin-bottom: 18px; display: none; }
.notice.show { display: block; }
.notice.ok { background: #E7F3EC; color: #1B6B45; }
.notice.err { background: #FDECEA; color: #A93226; }
.notice.info { background: #EEF2F7; color: #33506E; }

/* ---------- 登录页 ---------- */
.auth-wrap { display: grid; grid-template-columns: 1.05fr .95fr; min-height: calc(100vh - 74px); }
.auth-aside {
  background: var(--green); color: #fff; padding: clamp(40px, 6vw, 72px);
  display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-size: cover; background-position: center;
}
.auth-aside > * { position: relative; z-index: 2; }
.auth-aside h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }
.auth-aside ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; font-size: .92rem; color: rgba(255,255,255,.86); }
.auth-aside ul li { display: flex; gap: 10px; align-items: flex-start; }
.auth-aside ul li::before { content: "✓"; color: #D9BFA4; font-weight: 700; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(32px, 5vw, 64px) 20px; background: var(--cream); }
.auth-card { width: min(100%, 430px); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(26px, 4vw, 40px); }
.auth-card h1 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .sub { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }
.tabs { display: flex; gap: 4px; background: var(--cream); border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.tabs button {
  flex: 1; border: 0; background: transparent; padding: 9px 6px; border-radius: 999px;
  font-size: .86rem; color: var(--ink-soft); transition: background .2s, color .2s;
}
.tabs button.is-active { background: #fff; color: var(--green); font-weight: 600; box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.otp-row { display: flex; gap: 10px; }
.otp-row input { flex: 1; }
.otp-row .btn { white-space: nowrap; }
.divider-text { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .8rem; margin: 22px 0; }
.divider-text::before, .divider-text::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.wechat-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: .92rem; color: var(--ink); transition: border-color .2s, background .2s;
}
.wechat-btn:hover { border-color: #07C160; background: #F4FDF7; }
.wechat-btn svg { width: 20px; height: 20px; color: #07C160; }
.auth-foot { margin-top: 18px; font-size: .84rem; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--green); font-weight: 600; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; min-height: 0; } .auth-aside { padding: 40px 26px; } .auth-aside ul { display: none; } }

/* ---------- 个人中心 ---------- */
.account-layout { display: grid; grid-template-columns: 248px 1fr; gap: 32px; align-items: start; }
.account-nav { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px; position: sticky; top: 96px; }
.account-nav button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 12px 14px; border: 0; background: transparent; border-radius: 10px;
  font-size: .92rem; color: var(--ink-soft); transition: background .2s, color .2s;
}
.account-nav button:hover { background: var(--cream); }
.account-nav button.is-active { background: var(--green); color: #fff; }
.account-nav button svg { width: 17px; height: 17px; }
.panel { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.2rem; margin-bottom: 6px; }
.panel .panel-sub { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; opacity: .35; margin-bottom: 12px; }
.mini-list { display: grid; gap: 12px; }
.mini-item { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--cream); }
.mini-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; background: var(--cream-2); }
.mini-item .mi-body { flex: 1; min-width: 0; }
.mini-item h4 { font-size: .95rem; margin-bottom: 4px; }
.mini-item small { color: var(--muted); font-size: .8rem; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.status-new { background: #FDECEA; color: #A93226; }
.status-processing { background: #FFF4E0; color: #9A6B00; }
.status-done { background: #E7F3EC; color: #1B6B45; }
@media (max-width: 860px) { .account-layout { grid-template-columns: 1fr; } .account-nav { position: static; display: flex; gap: 6px; overflow-x: auto; } .account-nav button { white-space: nowrap; } }

/* ---------- 文章正文 ---------- */
.prose { font-size: 1.02rem; line-height: 1.9; color: #2C342F; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--serif); font-size: 1.4rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); }
.prose blockquote { border-left: 3px solid var(--clay); margin: 1.4em 0; padding: 6px 0 6px 20px; color: var(--ink-soft); font-style: italic; }

/* ---------- 画廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { border-radius: 12px; aspect-ratio: 1/1; object-fit: cover; cursor: zoom-in; background: var(--cream-2); }
.gallery img:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 620px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery img:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 4/3; } }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,16,13,.92);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; }
.lightbox .close { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; }

/* ---------- 门店列表 ---------- */
.store-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.store-item { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; background: #fff; }
.store-item h4 { font-size: 1rem; margin-bottom: 8px; }
.store-item p { font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.store-more {
  display: inline-flex; align-items: center; gap: 6px; align-self: start;
  font-size: .9rem; font-weight: 600; color: var(--green);
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px;
  transition: border-color .2s, color .2s;
}
.store-more:hover { border-color: var(--green); }
@media (max-width: 700px) { .store-list { grid-template-columns: 1fr; } }

/* ---------- 门店网络页 ---------- */
.store-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 22px;
}
.store-stats div { border-left: 2px solid var(--clay); padding-left: 14px; }
.store-stats strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--green); }
.store-stats small { color: var(--muted); font-size: .8rem; }
.store-controls { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.store-search {
  display: flex; align-items: center; gap: 8px; width: min(100%, 380px);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
}
.store-search svg { color: var(--muted); flex: 0 0 auto; }
.store-search input { border: 0; outline: 0; background: transparent; font-size: .9rem; width: 100%; font-family: inherit; }
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.store-card {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px; transition: transform .25s, box-shadow .25s;
}
.store-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.store-card h3 { font-family: var(--serif); font-size: 1.06rem; margin: 0; }
.store-card .store-loc {
  margin: 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay); font-weight: 600;
}
.store-card .store-addr { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.7; }
.store-card .store-tel { margin: auto 0 0; padding-top: 12px; font-size: .88rem; }
.store-card .store-tel a { color: var(--green); font-weight: 600; }
@media (max-width: 980px) { .store-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .store-grid { grid-template-columns: 1fr; }
  .store-stats { grid-template-columns: repeat(2, 1fr); padding: 18px; }
}

/* ---------- 骨架屏与提示 ---------- */
.skeleton { background: linear-gradient(90deg, var(--cream-2) 25%, #f6f3ee 37%, var(--cream-2) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sk-card { height: 300px; }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); }

.toast-host { position: fixed; right: 20px; bottom: 24px; z-index: 300; display: grid; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-size: .88rem; box-shadow: var(--shadow); animation: toastIn .28s ease;
  max-width: 340px;
}
.toast.ok { background: #1B6B45; }
.toast.err { background: #A93226; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 滚动动效 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,0,.2,1), transform .7s cubic-bezier(.2,0,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 工具类 ---------- */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 44px; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hide { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-end { justify-content: flex-end; }
.grow { flex: 1; }

/* ---------- 社交媒体二维码 ---------- */
.qr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 14px; margin-top: 14px; }
.qr-item { margin: 0; text-align: center; }
.qr-item img {
  width: 100%; max-width: 132px; aspect-ratio: 1 / 1; object-fit: contain;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; padding: 6px;
}
.qr-item figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 7px; }
@media (max-width: 560px) { .qr-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 配色可视化 ---------- */
.viz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.viz-canvas-col { min-width: 0; }

.viz-stage {
  position: relative; max-width: 720px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--cream-2); box-shadow: var(--shadow);
  min-height: 320px; touch-action: none;
  /* 注意：--split 必须只在这一层定义，子元素不得写内联 --split，
     否则内联值会覆盖继承，导致原图层永远盖住结果层（工具"失效"假象） */
  --split: 0%;
}
.viz-stage.is-drag { outline: 3px dashed var(--clay); outline-offset: -8px; }
.viz-stage canvas { display: block; width: 100%; height: auto; }
.viz-compare {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  clip-path: inset(0 calc(100% - var(--split, 100%)) 0 0);
}
.viz-compare canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split, 100%);
  width: 0; pointer-events: auto; cursor: ew-resize; z-index: 5;
  opacity: 0; transition: opacity .2s ease;
}
.viz-handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px;
  background: rgba(255,255,255,.92); box-shadow: 0 0 10px rgba(0,0,0,.35);
}
.viz-handle span {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 999px; background: rgba(255,255,255,.94);
  display: grid; place-items: center; font-size: 1.05rem; color: var(--green);
  box-shadow: 0 4px 14px rgba(0,0,0,.28); pointer-events: none;
}
.viz-empty {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  gap: 8px; text-align: center; background: var(--cream-2); padding: 24px; z-index: 4;
}
.viz-empty .ve-icon { font-size: 2.4rem; }
.viz-empty .ve-sub, .viz-empty .ve-tip { color: var(--muted); font-size: .9rem; margin: 0; }
.viz-loading {
  position: absolute; inset: 0; display: none; place-items: center;
  background: rgba(247,244,239,.7); z-index: 6;
}
.viz-loading .spinner {
  width: 42px; height: 42px; border-radius: 999px;
  border: 4px solid var(--green-soft); border-top-color: var(--green);
  animation: vizspin .8s linear infinite;
}
@keyframes vizspin { to { transform: rotate(360deg); } }
.viz-ring {
  position: absolute; border: 2px solid rgba(255,255,255,.95); border-radius: 999px;
  pointer-events: none; opacity: 0; z-index: 4;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.35);
}

.viz-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  justify-content: center; margin-top: 14px; max-width: 720px; margin-left: auto; margin-right: auto;
}
.viz-toolbar-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.viz-samples { display: flex; gap: 10px; }
.viz-sample {
  border: 2px solid transparent; background: none; padding: 0; border-radius: 12px;
  cursor: pointer; text-align: center;
}
.viz-sample img {
  width: 74px; height: 56px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line-soft); display: block; transition: transform .2s;
}
.viz-sample:hover img { transform: translateY(-2px); }
.viz-sample span { display: block; font-size: .72rem; color: var(--ink-soft); margin-top: 4px; }

.viz-panel {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm); position: sticky; top: 90px;
}
.viz-steps {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  font-size: .8rem; color: var(--ink-soft); margin-bottom: 18px;
  background: var(--green-soft); border-radius: 999px; padding: 8px 14px;
}
.viz-steps b {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: .7rem; margin-right: 4px;
}
.viz-steps i { flex: 1; height: 1px; background: rgba(30,70,56,.2); min-width: 6px; }

.viz-block { margin-bottom: 18px; }
.viz-block > h4 {
  font-size: .8rem; letter-spacing: .08em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 10px; font-weight: 600;
}
.seg { display: flex; background: var(--cream-2); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button {
  flex: 1; border: 0; background: transparent; border-radius: 999px;
  padding: 8px 0; font-size: .9rem; color: var(--ink-soft); transition: background .18s;
}
.seg button.is-active { background: #fff; color: var(--green); font-weight: 600; box-shadow: var(--shadow-sm); }

.viz-slider { margin-top: 12px; }
.viz-slider label { display: flex; justify-content: space-between; font-size: .88rem; color: var(--ink-soft); }
.viz-slider output { font-weight: 600; color: var(--green); }
.viz-slider input[type="range"] { width: 100%; accent-color: var(--green); margin-top: 4px; }
.viz-slider small { color: var(--muted); font-size: .76rem; }

.viz-current { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.viz-current .vc-chip {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(0,0,0,.1); flex: 0 0 auto;
}
.viz-current .vc-meta { line-height: 1.35; min-width: 0; }
.viz-current .vc-meta strong { display: block; font-size: .92rem; }
.viz-current .vc-meta small { color: var(--muted); font-size: .78rem; }
.viz-search { margin-bottom: 10px; }
.chips-sm .chip { padding: 5px 11px; font-size: .78rem; }
.viz-colours {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px;
  max-height: 250px; overflow-y: auto; padding: 3px; margin-top: 10px;
}
.viz-swatch {
  aspect-ratio: 1; border-radius: 8px; border: 1px solid rgba(0,0,0,.1); padding: 0;
  transition: transform .15s; cursor: pointer;
}
.viz-swatch:hover { transform: scale(1.12); }
.viz-swatch.is-active { outline: 2.5px solid var(--clay); outline-offset: 1.5px; }

.viz-cta { border-top: 1px solid var(--line-soft); padding-top: 16px; margin-top: 4px; }
.viz-cta .btn { width: 100%; justify-content: center; }
.viz-privacy { font-size: .8rem; color: var(--ink-soft); margin: 12px 0 6px; }
.viz-note { font-size: .76rem; color: var(--muted); margin: 0; }

@media (max-width: 980px) {
  .viz-layout { grid-template-columns: 1fr; }
  .viz-panel { position: static; }
  .viz-stage { min-height: 240px; }
  .viz-colours { max-height: 200px; }
}
