/* ============================================================
   真成乡墅 V2 设计系统 — assets/css/style.css
   行业：乡村自建房建造（建筑行业）
   视觉基调：沉稳 · 可靠 · 精工质感 · 自然拙朴的高级感
   色彩体系：
     --brand-deep   深松绿 #14532d → 主品牌色（乡土+自然+可信）
     --brand        松绿   #1a7a44 → 主行动色
     --brand-soft   浅松绿 #e8f3ec
     --earth        大地色 #8a6d3b → 点缀（土地/砖/木）
     --ink          墨色   #1c2b24 → 主文字
     --paper        米白   #faf9f6 → 页面底色
     --card         #ffffff
     --line         边框   #e2e0d8
  字体：系统字体栈（中文优先 PingFang SC / Microsoft YaHei）
  ============================================================ */

:root {
  color-scheme: light;
  --brand-deep: #14532d;
  --brand: #1a7a44;
  --brand-soft: #e8f3ec;
  --brand-mist: #f3f8f5;
  --earth: #8a6d3b;
  --earth-soft: #f6f1e7;
  --ink: #1c2b24;
  --ink-2: #3d4f46;
  --muted: #6b7a72;
  --paper: #faf9f6;
  --card: #ffffff;
  --line: #e5e3db;
  --line-strong: #cfccc0;
  --gold: #b08d3f;
  --danger: #b3392f;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --shadow-s: 0 1px 3px rgba(28,43,36,.06), 0 1px 2px rgba(28,43,36,.04);
  --shadow-m: 0 6px 20px rgba(28,43,36,.08);
  --shadow-l: 0 16px 48px rgba(28,43,36,.12);
  --font: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
  --header-h: 72px;
  --maxw: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
::selection { background: var(--brand-soft); color: var(--brand-deep); }

/* ---------- Layout ---------- */
.wrap { width: min(var(--maxw), calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: 72px; }
.section--tint { background: var(--brand-mist); }
.section--earth { background: var(--earth-soft); }
.section--dark { background: var(--brand-deep); color: #f0f5f1; }
.section--card { background: var(--card); }
.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .kicker {
  display: inline-block; color: var(--brand); font-weight: 700;
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head .kicker::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 8px; }
.section-head.center .kicker::after { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--gold); vertical-align: middle; margin-left: 8px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.25; margin: 0 0 12px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }
.section-head .more-link { float: right; margin-top: -34px; color: var(--brand); font-weight: 600; font-size: .95rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.18rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.14rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
strong { font-weight: 700; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,246,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.28rem; color: var(--brand-deep); white-space: nowrap; }
.brand img { height: 42px; width: auto; }
.brand small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .08em; line-height: 1.2; }
.main-nav { display: flex; gap: 0; align-items: center; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 10px; color: var(--ink-2); font-weight: 500; font-size: .95rem;
  border-radius: 6px; position: relative;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--brand-deep); background: var(--brand-soft); text-decoration: none; }
.main-nav a.active { color: var(--brand-deep); font-weight: 700; }
.main-nav a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; background: var(--brand); border-radius: 2px; }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--brand); color: #fff; border-radius: 8px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav-cta:hover { background: var(--brand-deep); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand-deep) 0%, #1d6b44 60%, #2a7f52 100%); color: #fff; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 85% 10%, rgba(255,255,255,.08), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 44px; align-items: center; padding-block: 72px; grid-template-columns: 1.05fr .95fr; }
.hero h1 { color: #fff; font-weight: 800; margin-bottom: 16px; }
.hero h1 .accent { color: #ffd98a; }
.hero .sub { color: rgba(255,255,255,.85); font-size: 1.12rem; max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-media { position: relative; }
.hero-media img, .hero-media video { width: 100%; border-radius: var(--radius-l); box-shadow: 0 24px 60px rgba(0,0,0,.35); display: block; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); padding: 8px 16px; border-radius: 100px; font-size: .88rem; backdrop-filter: blur(4px); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 48px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 8px; font-weight: 600; font-size: 1rem; border: none; cursor: pointer; text-decoration: none; transition: all .18s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(26,122,68,.28); }
.btn--primary:hover { background: var(--brand-deep); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #97792f; }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn--light:hover { background: var(--brand-soft); }
.btn--outline { background: transparent; border: 1.5px solid var(--brand); color: var(--brand); }
.btn--outline:hover { background: var(--brand-soft); }
.btn--outline-light { background: transparent; border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn--lg { min-height: 56px; padding: 0 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ---------- Cards & Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; box-shadow: var(--shadow-s); transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow-m); }
.card--hover:hover { transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card .card-icon { font-size: 1.9rem; margin-bottom: 12px; display: inline-block; }
.card--dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.card--dark h3 { color: #fff; }

/* feature cards with number */
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px; box-shadow: var(--shadow-s); position: relative; overflow: hidden; }
.feature-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); opacity: 0; transition: opacity .2s; }
.feature-card:hover::before { opacity: 1; }
.feature-card .num { color: var(--gold); font-weight: 800; font-size: 1.6rem; font-family: var(--serif); line-height: 1; }
.feature-card h3 { font-size: 1.12rem; margin: 8px 0 6px; }
.feature-card p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Stats ---------- */
.stat-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.stat-item { text-align: center; padding: 26px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-s); }
.stat-item .v { font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 800; color: var(--brand); line-height: 1.15; font-family: var(--serif); }
.stat-item .v sup { font-size: .55em; }
.stat-item .l { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.stat-bar--dark .stat-item { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.stat-bar--dark .stat-item .v { color: #ffd98a; }
.stat-bar--dark .stat-item .l { color: rgba(255,255,255,.75); }

/* ---------- Images ---------- */
.img-frame { border-radius: var(--radius-m); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.img-frame img { width: 100%; display: block; }
.img-caption { padding: 12px 16px; font-size: .86rem; color: var(--muted); background: var(--card); border-top: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-m); margin-bottom: 12px; overflow: hidden; background: var(--card); }
.faq-item details > summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item details > summary::-webkit-details-marker { display: none; }
.faq-item details > summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); transition: transform .2s; flex-shrink: 0; }
.faq-item details[open] > summary::after { transform: rotate(45deg); }
.faq-item details[open] > summary { border-bottom: 1px solid var(--line); }
.faq-item .faq-body { padding: 6px 22px 20px; color: var(--ink-2); }
.faq-item .faq-body p { margin-bottom: .8em; }
.faq-cat { font-size: .8rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 3px 12px; border-radius: 100px; margin-left: 8px; vertical-align: 2px; letter-spacing: .05em; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 16px; }
.testi-card .quote { color: var(--ink-2); font-size: .98rem; flex: 1; position: relative; padding-left: 0; }
.testi-card .quote::before { content: "“"; font-size: 3rem; font-family: var(--serif); color: var(--brand-soft); line-height: .5; display: block; height: 22px; }
.testi-card .who { display: flex; align-items: center; gap: 12px; border-top: 1px dashed var(--line); padding-top: 16px; }
.testi-card .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.testi-card .avatar img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi-card .who .name { font-weight: 700; font-size: .95rem; }
.testi-card .who .proj { color: var(--muted); font-size: .83rem; }
.testi-card .stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- Timeline / Steps ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step-row { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding-block: 18px; position: relative; }
.step-row:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 54px; bottom: -6px; width: 2px; background: var(--line-strong); }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; font-family: var(--serif); box-shadow: 0 4px 12px rgba(26,122,68,.3); }
.step-row:nth-child(even) .step-num { background: var(--gold); box-shadow: 0 4px 12px rgba(176,141,63,.3); }
.step-body h3 { margin-bottom: 4px; }
.step-body p { color: var(--muted); margin: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding-block: 14px; font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--line-strong); }
.breadcrumb .cur { color: var(--ink); font-weight: 600; }

/* ---------- Article ---------- */
.article-body { max-width: 820px; }
.article-body h2 { font-size: 1.5rem; margin-top: 2em; padding-bottom: .4em; border-bottom: 2px solid var(--brand-soft); }
.article-body h3 { font-size: 1.2rem; margin-top: 1.6em; }
.article-body p, .article-body li { color: var(--ink-2); }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body blockquote { margin: 1.6em 0; padding: 16px 22px; border-left: 4px solid var(--gold); background: var(--earth-soft); border-radius: 0 var(--radius-s) var(--radius-s) 0; color: var(--ink-2); }
.article-body img { border-radius: var(--radius-m); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .88rem; padding-block: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }

/* ---------- News list ---------- */
.news-list { display: grid; gap: 20px; }
.news-item { display: grid; grid-template-columns: 96px 1fr; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px 22px; box-shadow: var(--shadow-s); transition: box-shadow .2s; }
.news-item:hover { box-shadow: var(--shadow-m); }
.news-item .date { text-align: center; border-right: 1px dashed var(--line-strong); padding-right: 14px; align-self: center; }
.news-item .date .d { font-size: 1.8rem; font-weight: 800; color: var(--brand); font-family: var(--serif); line-height: 1; }
.news-item .date .m { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.news-item h3 { font-size: 1.05rem; margin: 0 0 4px; }
.news-item h3 a:hover { color: var(--brand); }
.news-item .desc { color: var(--muted); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .tag { font-size: .76rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 10px; border-radius: 100px; margin-right: 8px; }

/* ---------- Certificates ---------- */
.cert-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cert-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-s); }
.cert-card img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: contain; background: #fff; padding: 8px; }
.cert-card .cert-name { padding: 10px 14px; font-size: .88rem; font-weight: 600; border-top: 1px solid var(--line); }

/* ---------- Brand wall ---------- */
.brand-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.brand-wall .bw-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 10px; text-align: center; font-weight: 600; font-size: .95rem; color: var(--ink-2); box-shadow: var(--shadow-s); }

/* ---------- Process / service steps ---------- */
.flow-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.flow-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px 16px; text-align: center; position: relative; }
.flow-step .fs-icon { font-size: 1.7rem; }
.flow-step .fs-title { font-weight: 700; margin-top: 8px; font-size: .95rem; }
.flow-step .fs-desc { color: var(--muted); font-size: .8rem; margin-top: 4px; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand-deep), #1d6b44); border-radius: var(--radius-l); padding: 52px 44px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,217,138,.1); }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; }
.cta-band .phone-big { display: inline-flex; align-items: center; gap: 10px; font-size: 1.6rem; font-weight: 800; color: #ffd98a; margin-top: 10px; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Table ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--card); box-shadow: var(--shadow-s); }
table.cmp { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 640px; }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp th { background: var(--brand-deep); color: #fff; font-weight: 600; white-space: nowrap; }
table.cmp tr:last-child td { border-bottom: none; }
table.cmp tr:nth-child(even) td { background: var(--brand-mist); }
table.cmp .yes { color: var(--brand); font-weight: 700; }
table.cmp .no { color: var(--danger); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 12px 14px;
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink); transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- Contact ---------- */
.contact-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 30px; box-shadow: var(--shadow-s); }
.contact-block .cb-item { display: flex; gap: 14px; padding-block: 10px; align-items: flex-start; }
.contact-block .cb-icon { width: 42px; height: 42px; flex-shrink: 0; background: var(--brand-soft); color: var(--brand-deep); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.contact-block .cb-label { font-size: .82rem; color: var(--muted); }
.contact-block .cb-value { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #14241c; color: #c9d6cf; padding-top: 56px; margin-top: 0; }
.site-footer .f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 36px; }
@media (max-width: 900px) { .site-footer .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .f-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.site-footer a { color: #c9d6cf; display: block; padding-block: 4px; }
.site-footer a:hover { color: #fff; }
.site-footer .f-brand { font-size: 1.3rem; font-weight: 800; color: #fff; display: block; margin-bottom: 10px; }
.site-footer .f-desc { font-size: .9rem; line-height: 1.8; }
.f-legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; font-size: .84rem; color: #93a89d; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.f-legal .icp { display: inline-flex; align-items: center; gap: 8px; }
.f-legal .icp .badge { display: inline-block; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 4px 12px; border-radius: 4px; color: #d8e4dd; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 6px; }

/* ---------- Back to top ---------- */
.back-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; border: none; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow-m); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--brand-deep); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(120deg, #123826, #1d6b44 70%, #2a7f52); color: #fff; padding-block: 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 90% 0%, rgba(255,255,255,.08), transparent 55%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero .sub { color: rgba(255,255,255,.8); max-width: 46em; }
.page-hero .breadcrumb { color: rgba(255,255,255,.65); padding-bottom: 0; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.65); }
.page-hero .breadcrumb .cur { color: #fff; }
.page-hero .breadcrumb .sep { color: rgba(255,255,255,.4); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 30px; }
.tab-btn { min-height: 42px; padding: 0 20px; border-radius: 100px; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink-2); font-weight: 600; font-size: .93rem; cursor: pointer; }
.tab-btn:hover { border-color: var(--brand); color: var(--brand); }
.tab-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Badges / tags ---------- */
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 12px; border-radius: 100px; }
.tag--brand { background: var(--brand-soft); color: var(--brand-deep); }
.tag--gold { background: var(--earth-soft); color: var(--earth); }
.tag--line { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }

/* ---------- Alert / notice ---------- */
.notice { border-left: 4px solid var(--gold); background: var(--earth-soft); padding: 16px 20px; border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: .93rem; color: var(--ink-2); }
.notice--info { border-color: var(--brand); background: var(--brand-soft); }
.notice--warn { border-color: var(--danger); background: #fdf1ef; }

/* ---------- Responsive nav ---------- */
@media (max-width: 1180px) {
  .main-nav { display: none; position: fixed; inset: var(--header-h) 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: 16px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-l); gap: 2px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; min-height: 48px; font-size: 1.02rem; }
  .main-nav a.active::after { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ============ V2 增补组件 ============ */

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 900px; margin-inline: auto; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.faq-item:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-s); }
.faq-item details > summary { cursor: pointer; list-style: none; padding: 18px 20px 18px 52px; position: relative; font-weight: 600; font-size: 1.04rem; color: var(--ink); line-height: 1.55; }
.faq-item details > summary::-webkit-details-marker { display: none; }
.faq-item details > summary::before { content: ""; position: absolute; left: 18px; top: 22px; width: 20px; height: 20px; border: 2px solid var(--brand); border-radius: 50%; }
.faq-item details > summary::after { content: "+"; position: absolute; left: 22px; top: 16px; font-size: 1.25rem; color: var(--brand); font-weight: 700; transition: transform .2s ease; }
.faq-item details[open] > summary::after { transform: rotate(45deg); }
.faq-item details[open] > summary { color: var(--brand-deep); }
.faq-body { padding: 0 52px 20px 52px; }
.faq-body p { color: var(--ink-2); line-height: 1.85; margin: 0; }
.faq-body p + p { margin-top: 10px; }

/* 资讯列表 */
.news-list { display: flex; flex-direction: column; gap: 14px; max-width: 900px; margin-inline: auto; }
.news-item { display: flex; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; text-decoration: none; color: inherit; transition: box-shadow .2s ease, transform .2s ease; align-items: flex-start; }
.news-item:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.news-date { flex: 0 0 58px; text-align: center; background: var(--brand-deep); color: #fff; border-radius: 10px; padding: 8px 4px; }
.news-date .d { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.news-date .m { display: block; font-size: .72rem; opacity: .8; margin-top: 2px; }
.news-main h3 { margin: 2px 0 6px; font-size: 1.12rem; color: var(--ink); }
.news-main p { margin: 0 0 8px; color: var(--ink-2); line-height: 1.7; font-size: .95rem; }
.news-tag { display: inline-block; font-size: .76rem; padding: 2px 10px; border-radius: 99px; background: var(--tint); color: var(--brand-deep); font-weight: 600; }

/* 栏目 tab */
.tab-bar { display: flex; gap: 8px; max-width: 900px; margin: 0 auto 36px; border-bottom: 2px solid var(--line); }
.tab-btn { appearance: none; border: none; background: none; padding: 12px 22px; font-size: 1.02rem; font-weight: 600; color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: var(--brand-deep); border-bottom-color: var(--brand); }
.tab-btn:hover { color: var(--brand-deep); }

/* 联系卡 */
.contact-card { display: flex; flex-direction: column; }
.c-row { padding: 16px 0; border-bottom: 1px dashed var(--line); display: flex; flex-direction: column; gap: 4px; }
.c-row:last-child { border-bottom: none; }
.c-label { font-size: .85rem; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; }
.c-value { font-size: 1.08rem; color: var(--ink); font-weight: 600; line-height: 1.6; }
a.c-value { color: var(--brand); text-decoration: none; font-size: 1.5rem; font-weight: 800; }
a.c-value:hover { text-decoration: underline; }

/* 地图占位 */
.map-placeholder { border: 2px dashed var(--line); border-radius: 16px; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; background: color-mix(in srgb, var(--paper) 60%, #fff); color: var(--ink-3); }
.map-pin { font-size: 2.4rem; }

/* 客户评价卡 */
.t-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin: 0; box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 10px; }
.t-stars { color: #e8a33d; letter-spacing: 2px; }
.t-text { color: var(--ink); line-height: 1.85; font-size: .98rem; margin: 0; }
.t-meta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.t-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--brand-deep); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex: 0 0 auto; }
.t-name { font-weight: 600; font-size: .92rem; color: var(--ink); }
.t-tag { margin-left: auto; font-size: .72rem; padding: 2px 10px; border-radius: 99px; background: var(--gold-soft, #f6e7cd); color: #7a5a1e; }

/* 画廊 */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery figure { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

/* 响应式次序辅助 */
@media (max-width: 860px) {
  .order-2 { order: 2 !important; }
  .tab-bar { overflow-x: auto; }
}

/* 完工案例页 */
.case-block {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  padding: 36px 0; border-bottom: 1px solid var(--line);
}
.case-block:last-of-type { border-bottom: none; }
.case-block--reverse .case-gallery { order: 2; }
.case-gallery { display: grid; gap: 10px; }
.case-gallery img {
  width: 100%; border-radius: var(--radius-m); object-fit: cover;
  border: 1px solid var(--line); box-shadow: var(--shadow-s);
}
.case-gallery:has(> img:nth-child(2)) { grid-template-columns: 1fr 1fr; }
.case-gallery:has(> img:only-child) img { aspect-ratio: 16/10; }
.case-info h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--ink); }
.case-info p { color: var(--ink-2); line-height: 1.9; }
.case-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.case-tags li {
  background: var(--brand-soft); color: var(--brand-deep); border-radius: 999px;
  padding: 4px 14px; font-size: .82rem; font-weight: 600;
}
@media (max-width: 860px) {
  .case-block { grid-template-columns: 1fr; gap: 16px; }
  .case-block--reverse .case-gallery { order: 0; }
  .case-gallery:has(> img:nth-child(2)) { grid-template-columns: 1fr; }
}

/* ---------- Tech / 精工标准 (technology.html) ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); font-size: .94rem; color: var(--ink-2); line-height: 1.65; }
.list-check li:last-child { border-bottom: none; }
.list-check li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.list-check .num { display: inline-block; background: var(--brand-deep); color: #fff; width: 24px; height: 24px; border-radius: 50%; text-align: center; line-height: 24px; font-size: .78rem; font-weight: 700; margin-right: 8px; position: static; }
.list-check .num + span { display: inline; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.tech-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-s); display: flex; flex-direction: column; }
.tech-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.tech-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.tech-card__body h3 { font-size: 1.05rem; color: var(--brand-deep); margin-bottom: 10px; }
.tech-card__body p { font-size: .9rem; color: var(--ink-2); margin-bottom: 8px; line-height: 1.65; }
.tech-card__body .tag { margin-top: auto; align-self: flex-start; }

/* ---------- Legacy article helpers ---------- */
.article-list { display: grid; gap: 18px; }
.article-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px 22px; box-shadow: var(--shadow-s); }
.article-item h3 { margin-bottom: 6px; }
.article-item .meta { color: var(--muted); font-size: .88rem; }
.byline, .meta { color: var(--muted); font-size: .9rem; }
.flow-img { max-width: 100%; border-radius: var(--radius-m); border: 1px solid var(--line); }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.8em; padding-bottom: .35em; border-bottom: 2px solid var(--brand-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.prose th, .prose td { padding: 11px 13px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; }
.prose tbody tr:nth-child(even) td { background: var(--brand-mist); }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin-bottom: 6px; }
