/* =========================================================
   鼎安盛新材料 · 官网模板
   基于知客猫官网前端设计体系改造（静态 HTML，无后端依赖）
   ========================================================= */

:root {
    --ink: #12141a;
    --ink-2: #1b1e26;
    --ink-3: #242833;
    --text: #2a2e36;
    --muted: #6b7078;
    --muted-2: #8d929b;
    --line: #e7e3da;
    --line-soft: #f0ede6;
    --paper: #f7f5f0;
    --paper-2: #fbfaf7;
    --sand: #c39a5f;
    --sand-deep: #a67c3d;
    --sand-soft: #f3e9d9;
    --glow: #e9cb92;
    --radius: 16px;
    --shadow: 0 18px 50px rgba(20, 22, 28, .09);
    --shadow-sm: 0 8px 24px rgba(20, 22, 28, .06);
    --max: 1180px;
    --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: #fff;
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

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

/* 防止图片 / 长内容把栅格撑出屏幕 */
.hero-copy, .hero-art, .product-card, .feature-card, .case-card, .process-step,
.about-media, .about-body, .news-card, .detail-media, .detail-body,
.contact-card, .footer-col, .footer-brand, .article-wrap { min-width: 0; }

/* ---------- 顶部导航 ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: #fff;
    border-bottom: 1px solid rgba(18, 20, 26, .06);
    transition: box-shadow .25s, background .25s;
}
.site-header.scrolled {
    background: #fff;
    box-shadow: 0 6px 24px rgba(18, 20, 26, .07);
}
.nav-inner {
    max-width: var(--max); margin: 0 auto; padding: 0 24px;
    height: var(--nav-h); display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .06em; color: var(--ink); }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .14em; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a {
    position: relative; font-size: 14.5px; font-weight: 500; color: #3c414a;
    padding: 6px 0; transition: color .2s;
}
.nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--sand); transform: scaleX(0); transform-origin: left;
    transition: transform .22s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); font-weight: 700; }

.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-phone {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.nav-phone svg { width: 15px; height: 15px; stroke: var(--sand-deep); }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 36px; padding: 0 9px;
    background: #fff; border: 1px solid var(--line); border-radius: 9px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 26px; border-radius: 9px; border: 1px solid transparent;
    font-size: 14.5px; font-weight: 600; line-height: 1.4;
    transition: all .22s; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--sand-deep); transform: translateY(-1px); }
.btn-sand { background: var(--sand); color: var(--ink); }
.btn-sand:hover { background: var(--glow); transform: translateY(-1px); }
.btn-outline { border-color: rgba(18, 20, 26, .28); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-outline-light { border: 1px solid rgba(255, 255, 255, .35); color: #f2efe8; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
.btn-lg { padding: 14px 34px; font-size: 15.5px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- 首页 Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: calc(var(--nav-h) + 72px) 0 0;
    background: radial-gradient(1100px 620px at 78% 18%, #242a36 0%, #14171e 46%, #0d0f14 100%);
    color: #edeae3;
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 72%);
}
.hero-inner {
    position: relative; z-index: 1;
    max-width: var(--max); margin: 0 auto; padding: 0 24px 0;
    display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr); gap: 54px; align-items: center;
}
.hero-copy { padding-bottom: 66px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
    color: var(--glow); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.hero-title {
    font-family: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
    font-size: clamp(34px, 4.4vw, 58px); font-weight: 700;
    line-height: 1.2; letter-spacing: .02em; margin-bottom: 22px;
}
.hero-title em { font-style: normal; color: var(--glow); }
.hero-sub {
    font-size: clamp(15px, 1.6vw, 17.5px); line-height: 1.85;
    color: #b9bcc4; max-width: 540px; margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.hero-stats {
    display: flex; gap: 40px; flex-wrap: wrap;
    padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-stat b {
    display: block; font-size: 28px; font-weight: 800; color: #fff;
    font-family: "Songti SC", "Noto Serif SC", Georgia, serif; letter-spacing: .02em;
}
.hero-stat span { font-size: 12.5px; color: #9aa0ab; letter-spacing: .06em; }
.hero-art { position: relative; align-self: end; }
.hero-art img, .hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; }
section[id], .product-detail[id] { scroll-margin-top: calc(var(--nav-h) + 26px); }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: #d8d5cd; }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow { color: var(--sand-deep); margin-bottom: 14px; }
.section-ink .section-head .eyebrow { color: var(--glow); }
.section-title {
    font-family: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
    font-size: clamp(26px, 3.2vw, 38px); font-weight: 700;
    color: var(--ink); line-height: 1.3; letter-spacing: .02em; margin-bottom: 14px;
}
.section-ink .section-title { color: #fff; }
.section-sub { font-size: 15.5px; color: var(--muted); line-height: 1.85; }
.section-ink .section-sub { color: #9aa0ab; }
.section-foot { text-align: center; margin-top: 44px; }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .28s, box-shadow .28s, border-color .28s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #ddd5c7; }
.product-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #edeae4; }
.product-art img, .product-art svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-art img, .product-card:hover .product-art svg { transform: scale(1.04); }
.product-body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 {
    font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: .02em;
}
.product-en { font-size: 11px; letter-spacing: .16em; color: var(--sand-deep); text-transform: uppercase; margin-bottom: 12px; }
.product-body p { font-size: 13.8px; color: var(--muted); line-height: 1.8; margin-bottom: 18px; }
.product-link { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.product-link::after { content: "→"; transition: transform .2s; }
.product-card:hover .product-link::after { transform: translateX(4px); }
.product-link:hover { color: var(--sand-deep); }

/* ---------- 优势 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.feature-card {
    padding: 30px 26px 32px; border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius); background: rgba(255, 255, 255, .035);
    transition: background .25s, border-color .25s, transform .25s;
}
.feature-card:hover { background: rgba(255, 255, 255, .06); border-color: rgba(233, 203, 146, .4); transform: translateY(-4px); }
.feature-num {
    font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
    font-size: 30px; color: var(--glow); opacity: .9; margin-bottom: 18px; letter-spacing: .04em;
}
.feature-card h3 { font-size: 17px; color: #fff; margin-bottom: 10px; font-weight: 700; }
.feature-card p { font-size: 13.6px; color: #9aa0ab; line-height: 1.85; }

/* ---------- 工程案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.case-card {
    position: relative; overflow: hidden; border-radius: var(--radius);
    aspect-ratio: 4 / 3; background: #1a1d24; color: #fff;
    display: flex; align-items: flex-end; isolation: isolate;
    transition: transform .3s, box-shadow .3s;
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.case-art { position: absolute; inset: 0; z-index: -2; }
.case-art img, .case-art svg { width: 100%; height: 100%; object-fit: cover; }
.case-card::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(10, 12, 16, .02) 0%, rgba(10, 12, 16, .18) 42%, rgba(10, 12, 16, .88) 100%);
}
.case-info { padding: 24px; width: 100%; }
.case-cat {
    display: inline-block; font-size: 10.5px; letter-spacing: .16em;
    color: var(--glow); border: 1px solid rgba(233, 203, 146, .45);
    border-radius: 999px; padding: 2px 10px; margin-bottom: 10px;
}
.case-info h3 { font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 4px; }
.case-info p { font-size: 12.5px; color: #b9bcc4; }

.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.filter-btn {
    padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line);
    background: #fff; color: var(--muted); font-size: 13.5px; transition: all .2s;
}
.filter-btn:hover { border-color: var(--sand); color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 流程 ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; counter-reset: step; }
.process-step {
    position: relative; padding: 30px 24px 28px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.process-step::before {
    counter-increment: step; content: "0" counter(step);
    display: block; font-family: "Songti SC", Georgia, serif;
    font-size: 26px; color: var(--sand); margin-bottom: 16px;
}
.process-step h3 { font-size: 16.5px; color: var(--ink); margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--muted); line-height: 1.8; }

/* ---------- 关于 ---------- */
.about-split { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,.98fr); gap: 56px; align-items: center; }
.about-media { position: relative; border-radius: 20px; overflow: hidden; background: #e9e5dd; box-shadow: var(--shadow-sm); }
.about-media img, .about-media svg { width: 100%; height: auto; }
.about-body .eyebrow { color: var(--sand-deep); margin-bottom: 14px; }
.about-body .section-title { text-align: left; margin-bottom: 20px; }
.about-body p { font-size: 15px; color: #4b5058; line-height: 1.95; margin-bottom: 16px; }
.about-points { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 24px; margin: 26px 0 30px; }
.about-points li { position: relative; padding-left: 22px; font-size: 14px; color: #3c414a; }
.about-points li::before {
    content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px;
    border: 1.5px solid var(--sand-deep); transform: rotate(45deg);
}
.about-stats { display: flex; gap: 42px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.about-stats b {
    display: block; font-family: "Songti SC", Georgia, serif;
    font-size: 30px; color: var(--ink); font-weight: 700;
}
.about-stats span { font-size: 12.5px; color: var(--muted); }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.news-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.news-body { padding: 26px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 12px; color: var(--sand-deep); letter-spacing: .06em; margin-bottom: 10px; }
.news-body h3 { font-size: 16.5px; line-height: 1.55; color: var(--ink); margin-bottom: 10px; font-weight: 700; }
.news-body p { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.news-more { margin-top: auto; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.news-more::after { content: " →"; }
.news-card:hover .news-more { color: var(--sand-deep); }

/* ---------- CTA 条 ---------- */
.cta-band {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, #15181f 0%, #1f232c 60%, #262a33 100%);
    color: #fff; padding: 64px 0;
}
.cta-band::before {
    content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(233, 203, 146, .22), transparent 68%);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta-inner > div { min-width: 0; }
.cta-inner > div:first-child { flex: 1 1 420px; }
.cta-inner h2, .cta-inner p { overflow-wrap: anywhere; }
.cta-inner h2 {
    font-family: "Songti SC", Georgia, serif;
    font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.35; margin-bottom: 10px;
}
.cta-inner p { font-size: 14.5px; color: #a9aeb8; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 内页头部 ---------- */
.page-hero {
    padding: calc(var(--nav-h) + 62px) 24px 54px;
    background:
        radial-gradient(700px 320px at 82% 0%, rgba(195, 154, 95, .18), transparent 65%),
        linear-gradient(135deg, #f7f5f0 0%, #efece5 60%, #f6f4ef 100%);
    border-bottom: 1px solid var(--line-soft);
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted-2); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--sand-deep); }
.breadcrumb span { color: var(--line); }
.page-hero h1 {
    font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
    font-size: clamp(28px, 3.8vw, 44px); font-weight: 700; color: var(--ink);
    line-height: 1.28; letter-spacing: .02em; margin-bottom: 14px;
}
.page-hero p { font-size: 15.5px; color: var(--muted); max-width: 760px; line-height: 1.85; }

/* ---------- 产品详情块 ---------- */
.product-detail {
    display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 54px; align-items: center;
    padding: 52px 0; border-bottom: 1px solid var(--line);
}
.product-detail:last-of-type { border-bottom: none; }
.product-detail.flip .detail-media { order: 2; }
.detail-media { border-radius: 20px; overflow: hidden; background: #e9e5dd; box-shadow: var(--shadow-sm); }
.detail-media img, .detail-media svg { width: 100%; height: auto; }
.detail-body h2 {
    font-family: "Songti SC", Georgia, serif; font-size: clamp(24px, 2.6vw, 32px);
    color: var(--ink); margin-bottom: 6px; letter-spacing: .02em;
}
.detail-en { font-size: 11px; letter-spacing: .18em; color: var(--sand-deep); text-transform: uppercase; margin-bottom: 18px; }
.detail-body > p { font-size: 14.8px; color: #4b5058; line-height: 1.95; margin-bottom: 18px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag {
    font-size: 12px; color: #5a5f67; background: var(--paper);
    border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}
.spec-list { border-top: 1px solid var(--line); margin-bottom: 26px; }
.spec-list li {
    display: flex; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line);
    font-size: 13.5px;
}
.spec-list li b { width: 96px; flex-shrink: 0; color: var(--ink); font-weight: 600; }
.spec-list li span { color: var(--muted); }

/* ---------- 联系方式 ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 26px; }
.contact-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 30px 32px;
}
.contact-card h3 { font-size: 17px; color: var(--ink); margin-bottom: 14px; }
.contact-line { display: flex; gap: 12px; font-size: 14.5px; color: #4b5058; margin-bottom: 12px; }
.contact-line b { color: var(--ink); flex-shrink: 0; }
.contact-line a:hover { color: var(--sand-deep); }
.contact-note { font-size: 13px; color: var(--muted-2); margin-top: 16px; line-height: 1.8; }
.map-placeholder {
    position: relative; min-height: 320px; border-radius: var(--radius); overflow: hidden;
    background:
        linear-gradient(90deg, rgba(18, 20, 26, .045) 1px, transparent 1px),
        linear-gradient(rgba(18, 20, 26, .045) 1px, transparent 1px),
        linear-gradient(135deg, #eeeae2, #e2ddd3);
    background-size: 46px 46px, 46px 46px, 100% 100%;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.map-placeholder::before {
    content: ""; position: absolute; left: 50%; top: 46%; width: 16px; height: 16px;
    background: var(--sand-deep); border-radius: 50% 50% 50% 0; transform: translate(-50%, -50%) rotate(-45deg);
    box-shadow: 0 0 0 10px rgba(166, 124, 61, .12);
}
.map-placeholder p {
    position: relative; margin-top: 84px; font-size: 13.5px; color: #4b5058;
    background: rgba(255, 255, 255, .84); padding: 7px 16px; border-radius: 999px;
}
.contact-bottom { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 26px; margin-top: 26px; }
.hours-list li { display: flex; justify-content: space-between; font-size: 14px; color: #4b5058; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.hours-list li:last-child { border-bottom: none; }

/* ---------- 新闻详情 ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-meta { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted-2); margin-bottom: 24px; }
.article-body { font-size: 15.5px; line-height: 2; color: #3c414a; }
.article-body h2 {
    font-family: "Songti SC", Georgia, serif; font-size: 22px; color: var(--ink);
    margin: 34px 0 14px;
}
.article-body p { margin-bottom: 18px; }
.article-body ul { list-style: none; margin: 0 0 20px; }
.article-body li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.article-body li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; background: var(--sand); border-radius: 50%; }
.article-quote {
    margin: 26px 0; padding: 20px 24px; background: var(--paper);
    border-left: 3px solid var(--sand); border-radius: 0 10px 10px 0;
    font-size: 14.5px; color: #4b5058;
}

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: #9aa0ab; padding: 58px 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr); gap: 40px; padding-bottom: 42px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #8b909a; }
.footer-tagline { font-size: 13px; color: #8b909a; line-height: 1.85; margin: 16px 0 18px; max-width: 270px; }
.footer-contact { font-size: 13px; color: #b0b5be; line-height: 1.9; }
.footer-contact a:hover { color: #fff; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #e8e6e0; letter-spacing: .12em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13.5px; color: #9aa0ab; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 26px; font-size: 12px; color: #7c818b; }
.footer-bottom a { color: #8f949e; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 浮动咨询 ---------- */
.float-consult {
    position: fixed; right: 20px; bottom: 24px; z-index: 60;
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--ink); color: #fff; border-radius: 999px;
    padding: 11px 18px 11px 14px; font-size: 13.5px; font-weight: 600;
    box-shadow: 0 12px 30px rgba(18, 20, 26, .28);
    transition: transform .2s, background .2s;
}
.float-consult:hover { transform: translateY(-2px); background: var(--sand-deep); }
.float-consult svg { width: 16px; height: 16px; }

/* ---------- 动效 ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
html.reveal-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .product-grid, .feature-grid, .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .case-grid, .news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .hero-inner { grid-template-columns: minmax(0,1fr); gap: 10px; }
    .hero-copy { padding-bottom: 40px; }
    .hero-art { max-width: 620px; margin: 0 auto; }
    .about-split, .product-detail { grid-template-columns: minmax(0,1fr); gap: 34px; }
    .product-detail.flip .detail-media { order: 0; }
    .contact-grid, .contact-bottom { grid-template-columns: minmax(0,1fr); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 34px; }
}

@media (max-width: 860px) {
    .nav-links {
        position: fixed; top: var(--nav-h); left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 20px 18px; margin: 0;
        transform: translateY(-8px); opacity: 0; pointer-events: none;
        transition: opacity .2s, transform .2s;
        box-shadow: 0 18px 30px rgba(18, 20, 26, .1);
    }
    .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
    .nav-links a { padding: 12px 2px; border-bottom: 1px solid var(--line-soft); }
    .nav-links a::after { display: none; }
    .nav-toggle { display: flex; margin-left: auto; }
    .nav-cta .nav-phone { display: none; }
    .nav-cta .btn { display: none; }
    .hero { padding-top: calc(var(--nav-h) + 48px); }
    .hero-stats { gap: 26px; }
    .section { padding: 64px 0; }
    .product-detail { padding: 38px 0; }
}

@media (max-width: 620px) {
    :root { --nav-h: 62px; }
    .container, .nav-inner { padding: 0 18px; }
    .brand-name { font-size: 17px; }
    .brand-sub { font-size: 10px; letter-spacing: .1em; }
    .hero-title { font-size: 32px; }
    .hero-sub { font-size: 14.5px; }
    .hero-actions .btn { flex: 1; }
    .hero-stats { gap: 20px; }
    .hero-stat b { font-size: 24px; }
    .section { padding: 52px 0; }
    .section-head { margin-bottom: 34px; }
    .product-grid, .feature-grid, .process-grid, .case-grid, .news-grid { grid-template-columns: minmax(0,1fr); }
    .about-points { grid-template-columns: minmax(0,1fr); }
    .footer-grid { grid-template-columns: minmax(0,1fr); gap: 26px; }
    .footer-bottom { justify-content: center; text-align: center; }
    .float-consult { right: 14px; bottom: 16px; padding: 10px 16px; }
    .cta-inner { gap: 22px; }
}

/* ---------- 新闻列表补充 ---------- */
.empty-note { padding: 48px 0; text-align: center; color: var(--muted); font-size: 15px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.pager-btn { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 999px; padding: 8px 18px; font-size: 13.5px; transition: border-color .2s, color .2s; }
.pager-btn:hover { border-color: var(--sand); color: var(--sand-deep); }
.pager-info { font-size: 13px; color: var(--muted); }

/* 未渲染前的 Markdown 原文（爬虫读到的就是这段） */
.md-raw { white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 13px; line-height: 1.9; color: #555; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 10px; padding: 18px; margin: 0; }

/* ---------- 在线咨询（与官网同款结构，主题色同步为沙金） ---------- */
.agent-widget { position: fixed; right: 20px; bottom: 24px; z-index: 9999; }
.agent-fab-list { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.agent-fab { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 600; font-family: inherit; line-height: 1.4; text-decoration: none; cursor: pointer; box-shadow: 0 10px 26px rgba(20,22,28,.16); transition: transform .15s ease, filter .15s ease, border-color .15s ease, color .15s ease; }
.agent-fab:hover { transform: translateY(-1px); }
.agent-fab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.agent-fab-chat { background: linear-gradient(135deg, var(--sand), var(--sand-deep)); color: #fff; box-shadow: 0 10px 26px rgba(195,154,95,.36); }
.agent-fab-chat:hover { filter: brightness(1.04); }
.agent-fab-contact { background: #fff; color: var(--ink); border-color: var(--line); }
.agent-fab-contact:hover { color: var(--sand-deep); border-color: var(--glow); }
.agent-fab-contact-mobile { display: none; }
.agent-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: 350px; max-width: calc(100vw - 32px); height: 500px; max-height: calc(100vh - 120px); background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: 0 24px 60px rgba(20,22,28,.18); display: flex; flex-direction: column; overflow: hidden; }
.agent-widget.agent-open .agent-fab-chat { display: none; }
.agent-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(135deg, #fff, var(--sand-soft)); }
.agent-head b { display: block; font-size: 14px; color: var(--ink); }
.agent-close { border: none; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 4px; }
.agent-close:hover { color: var(--sand-deep); }
.agent-msgs { flex: 1; overflow-y: auto; padding: 12px; background: var(--paper); }
.agent-msg { display: flex; margin: 8px 0; }
.agent-msg.user { justify-content: flex-end; }
.agent-bubble { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.agent-msg.bot .agent-bubble { background: #fff; border: 1px solid var(--line-soft); color: var(--text); border-top-left-radius: 4px; }
.agent-msg.user .agent-bubble { background: var(--sand-deep); color: #fff; border-top-right-radius: 4px; }
.agent-typing { display: flex; align-items: center; gap: 4px; min-width: 44px; }
.agent-typing-label { font-size: 12.5px; color: var(--muted); margin-right: 2px; }
.agent-typing-dot { width: 6px; height: 6px; border-radius: 50%; background: #b7bcc8; animation: agentDot 1.2s infinite ease-in-out; }
.agent-typing-dot:nth-of-type(2) { animation-delay: .15s; }
.agent-typing-dot:nth-of-type(3) { animation-delay: .3s; }
@keyframes agentDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.agent-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--line-soft); background: #fff; }
.agent-quick-btn { border: 1px solid var(--glow); background: var(--sand-soft); color: var(--sand-deep); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; font-family: inherit; }
.agent-quick-btn:hover { background: #efe0c8; }
.agent-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line-soft); background: #fff; }
.agent-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; outline: none; font-family: inherit; }
.agent-form input:focus { border-color: var(--sand); box-shadow: 0 0 0 3px rgba(195,154,95,.14); }
.agent-form button { border: none; background: var(--sand-deep); color: #fff; border-radius: 8px; padding: 0 14px; font-size: 13px; cursor: pointer; }
.agent-form button:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 620px) {
    .agent-widget { right: 14px; bottom: 16px; }
    .agent-fab-contact-page { display: none; }
    .agent-fab-contact-mobile { display: inline-flex; }
    .agent-panel { width: calc(100vw - 28px); height: 66vh; }
}

/* 正文引用 */
.article-body blockquote { margin: 0 0 20px; padding: 14px 18px; background: var(--sand-soft); border-left: 3px solid var(--sand); color: var(--text); font-size: 14.5px; line-height: 1.9; }
.article-body h3 { font-size: 17px; margin: 24px 0 10px; color: var(--ink); }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; }

/* ---------- 后台登录弹框（沙金主题；只允许右上角关闭） ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(18, 20, 26, .52);
    backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-content {
    position: relative; width: 100%; max-width: 420px;
    background: #fff; border-radius: var(--radius);
    padding: 40px 32px 32px;
    box-shadow: 0 24px 70px rgba(18, 20, 26, .28);
    animation: modalIn .22s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
    position: absolute; top: 12px; right: 14px;
    width: 32px; height: 32px; border: none; border-radius: 50%;
    background: transparent; color: var(--muted);
    font-size: 22px; line-height: 1; cursor: pointer;
    transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--sand-soft); color: var(--sand-deep); }
.modal-title { font-size: 20px; font-weight: 700; color: var(--ink); text-align: center; margin-bottom: 22px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form input {
    width: 100%; padding: 12px 15px; border: 1px solid var(--line);
    border-radius: 10px; font-size: 14px; font-family: inherit;
    background: #fff; transition: border-color .2s, box-shadow .2s;
}
.auth-form input:focus { outline: none; border-color: var(--sand); box-shadow: 0 0 0 3px rgba(195, 154, 95, .16); }
.auth-form button[type="submit"] {
    width: 100%; padding: 12px 16px; margin-top: 4px;
    border: none; border-radius: 10px; cursor: pointer;
    background: linear-gradient(135deg, var(--sand), var(--sand-deep));
    color: #fff; font-size: 15px; font-weight: 600; font-family: inherit;
    transition: filter .2s, transform .2s;
}
.auth-form button[type="submit"]:hover { filter: brightness(1.04); transform: translateY(-1px); }
.auth-error {
    margin-top: 14px; padding: 10px 12px; border-radius: 8px;
    background: #fdecec; border: 1px solid #f6c9c9;
    color: #b33a3a; font-size: 13px; line-height: 1.6;
}
@media (max-width: 620px) {
    .modal-content { padding: 34px 20px 24px; }
}

/* ---------- 品牌 LOGO ---------- */
.brand-logo { height: 40px; width: auto; flex-shrink: 0; border-radius: 4px; display: block; }
.footer-brand .brand-logo { background: #fff; padding: 4px 6px; border-radius: 8px; }
@media (max-width: 620px) {
    .brand-logo { height: 34px; }
    .footer-brand .brand-logo { height: 38px; }
}

/* 实拍案例图对比度增强（浅色照片上文字仍清晰） */
.case-card::after {
    background: linear-gradient(180deg, rgba(10, 12, 16, .10) 0%, rgba(10, 12, 16, .48) 46%, rgba(10, 12, 16, .93) 100%);
}
.case-cat { background: rgba(10, 12, 16, .48); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.case-info h3 { text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
.case-info p { color: #e2e4ea; text-shadow: 0 1px 10px rgba(0, 0, 0, .65); }

/* ---------- 新闻列表（无配图，单列） ---------- */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-row {
    display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 26px;
    padding: 24px 28px; background: #fff;
    border: 1px solid var(--line); border-radius: 14px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.news-row:hover { transform: translateY(-2px); border-color: #ddd5c7; box-shadow: var(--shadow-sm); }
.news-row-date {
    font-size: 13px; color: var(--muted); letter-spacing: .04em;
    padding-top: 4px; border-right: 1px solid var(--line-soft);
}
.news-row-body { min-width: 0; }
.news-row-body h3 { font-size: 18px; font-weight: 700; line-height: 1.55; color: var(--ink); margin-bottom: 8px; }
.news-row-body p { font-size: 14px; line-height: 1.85; color: var(--muted); margin-bottom: 10px; }
.news-row .news-more { display: inline-block; margin-top: 0; }
@media (max-width: 620px) {
    .news-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 18px; }
    .news-row-date { border-right: 0; padding-top: 0; }
    .news-row-body h3 { font-size: 16.5px; }
    .news-row-body p { font-size: 13.5px; }
}

/* 案例筛选（服务端分页） + 页码 */
.filter-btn { text-decoration: none; display: inline-block; line-height: 1.4; }
.pager-btn.is-current {
    background: var(--ink); border-color: var(--ink); color: #fff;
    cursor: default;
}
.case-total {
    margin-top: 14px; text-align: center;
    font-size: 13px; color: var(--muted);
}
