/* ============================================================
   蜀骁瓦业 · 古建金属屋面
   风格：宣纸底 + 墨色 + 朱砂 + 黄铜
        宋体大标题、细金线、留白与旧纸肌理
   ============================================================ */

:root {
    --paper: #F7F3EA;
    --paper-2: #F1EADD;
    --paper-3: #E9DFCC;
    --ink: #1B1B18;
    --ink-2: #4E4A42;
    --muted: #857D6E;
    --line: #DCD2BF;
    --line-soft: #E7DFCF;
    --vermilion: #A63A2E;
    --vermilion-d: #86291F;
    --brass: #B08A57;
    --brass-l: #D9C39D;
    --white: #fff;
    --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --pad: clamp(18px, 4vw, 56px);
    --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover { color: var(--vermilion); }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.28; letter-spacing: .01em; color: var(--ink); }
p { margin: 0; }
ul, ol, dl, dd, dt, figure, figcaption { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font-family: inherit; }
::selection { background: var(--vermilion); color: var(--paper); }

.sx-container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.sx-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.sx-skip:focus { left: 12px; top: 12px; }

/* ---------- 按钮 ---------- */
.sx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 2px;
    font-size: 14.5px; font-weight: 600; letter-spacing: .02em; line-height: 1.2;
    cursor: pointer; white-space: nowrap;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.sx-btn-lg { min-height: 52px; padding: 0 28px; font-size: 15px; }
.sx-btn-vermilion { background: var(--vermilion); color: var(--paper); }
.sx-btn-vermilion:hover { background: var(--vermilion-d); color: var(--paper); transform: translateY(-1px); }
.sx-btn-ink { background: var(--ink); color: var(--paper); }
.sx-btn-ink:hover { background: #000; color: var(--paper); }
.sx-btn-paper { background: var(--paper); color: var(--ink); }
.sx-btn-paper:hover { background: #fff; color: var(--ink); }
.sx-btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.sx-btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.sx-btn-ghost { border-color: rgba(247, 243, 234, .5); color: var(--paper); background: transparent; }
.sx-btn-ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- 小标签 / 面包屑 ---------- */
.sx-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 11px; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase; color: var(--brass);
}
.sx-eyebrow span { display: block; width: 24px; height: 1px; background: var(--vermilion); }
.sx-eyebrow-light { color: var(--brass-l); }
.sx-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.sx-crumb a { color: var(--ink-2); }
.sx-crumb a:hover { color: var(--vermilion); }
.sx-crumb span { color: var(--line); }
.sx-crumb em { font-style: normal; color: var(--ink); }

/* ---------- 顶部细条 ---------- */
.sx-topbar { background: var(--ink); color: rgba(247, 243, 234, .72); font-size: 12px; }
.sx-topbar-in { display: flex; align-items: center; gap: 14px; height: 34px; }
.sx-topbar-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--paper); }
.sx-topbar-dot { width: 3px; height: 3px; background: var(--brass); border-radius: 50%; }
.sx-topbar-addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-topbar-tel { margin-left: auto; color: var(--brass-l); font-weight: 600; }
.sx-topbar-tel:hover { color: var(--paper); }

/* ---------- 头部 ---------- */
.sx-header {
    position: sticky; top: 0; z-index: 900;
    background: rgba(247, 243, 234, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(160%) blur(10px);
    transition: box-shadow .2s ease;
}
.sx-header.is-stuck { box-shadow: 0 12px 30px rgba(27, 27, 24, .08); }
.sx-header-in { display: flex; align-items: center; gap: 36px; height: 82px; }
.sx-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.sx-logo img { height: 42px; width: auto; }
.sx-nav { display: flex; align-items: center; }
.sx-nav ul { display: flex; align-items: center; gap: 2px; }
.sx-nav li a { display: block; padding: 10px 14px; font-size: 15px; color: var(--ink-2); border-bottom: 2px solid transparent; }
.sx-nav li a:hover { color: var(--ink); }
.sx-nav li.is-active a { color: var(--vermilion); border-bottom-color: var(--vermilion); }
.sx-nav-cta { display: none; }
.sx-header-right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.sx-header-tel { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.sx-header-tel em { font-style: normal; font-size: 10.5px; letter-spacing: .12em; color: var(--muted); }
.sx-header-tel b { font-family: var(--mono); font-size: 16.5px; color: var(--ink); }
.sx-header-tel:hover b { color: var(--vermilion); }
.sx-header-btn span { margin-left: 2px; }
.sx-burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; cursor: pointer; padding: 0; }
.sx-burger span { display: block; width: 18px; height: 1.5px; margin: 4.5px auto; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.sx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sx-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.sx-hero { position: relative; overflow: hidden; min-height: clamp(520px, 74vh, 720px); display: flex; align-items: center; background: var(--ink); }
.sx-hero-media { position: absolute; inset: 0; }
.sx-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.sx-hero-veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 19, 16, .82) 0%, rgba(20, 19, 16, .55) 46%, rgba(20, 19, 16, .18) 100%),
        linear-gradient(180deg, rgba(20, 19, 16, .25), rgba(20, 19, 16, .45));
}
.sx-hero-inner { position: relative; padding-block: clamp(70px, 10vw, 120px); }
.sx-hero-inner h1 { margin: 22px 0 20px; font-size: clamp(38px, 5.2vw, 70px); color: var(--paper); line-height: 1.16; letter-spacing: .02em; }
.sx-hero-inner h1 em { display: block; font-style: normal; color: var(--brass-l); }
.sx-hero-lead { max-width: 46ch; color: rgba(247, 243, 234, .82); font-size: 15.5px; line-height: 1.95; }
.sx-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.sx-hero-stats { display: flex; gap: 42px; margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(247, 243, 234, .22); }
.sx-hero-stats dt { font-family: var(--serif); font-size: 26px; color: var(--paper); }
.sx-hero-stats dd { margin-top: 2px; font-size: 12px; letter-spacing: .08em; color: rgba(247, 243, 234, .62); }
.sx-hero-seal {
    position: absolute; right: clamp(18px, 5vw, 80px); bottom: -20px;
    font-family: var(--serif); font-size: clamp(160px, 22vw, 300px); line-height: 1;
    color: rgba(247, 243, 234, .07); pointer-events: none; user-select: none;
}

/* ---------- 三大系统 ---------- */
.sx-systems { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.sx-systems-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.sx-system { padding: 30px 26px 28px; border-left: 1px solid var(--line); }
.sx-system:first-child { border-left: 0; padding-left: 0; }
.sx-system-no { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--brass); }
.sx-system b { display: block; margin: 10px 0 8px; font-family: var(--serif); font-size: 19px; }
.sx-system p { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }

/* ---------- 区块 ---------- */
.sx-sec { padding: clamp(58px, 7vw, 96px) 0; }
.sx-sec-paper { background: var(--paper-2); }
.sx-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: clamp(30px, 4vw, 46px); }
.sx-sec-head h2 { margin: 14px 0 10px; font-size: clamp(28px, 3.2vw, 42px); }
.sx-sec-sub { max-width: 62ch; font-size: 14.5px; color: var(--ink-2); }
.sx-more { font-size: 13.5px; color: var(--vermilion); border-bottom: 1px solid rgba(166, 58, 46, .35); padding-bottom: 3px; white-space: nowrap; }
.sx-more span { display: inline-block; margin-left: 4px; transition: transform .18s ease; }
.sx-more:hover span { transform: translateX(4px); }

/* ---------- 产品 ---------- */
.sx-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 28px); }
.sx-product { position: relative; display: block; color: var(--ink); }
.sx-product-img { display: block; overflow: hidden; background: var(--paper-3); }
.sx-product-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .55s ease, filter .55s ease; }
.sx-product:hover .sx-product-img img { transform: scale(1.045); filter: saturate(1.05); }
.sx-product-no {
    position: absolute; left: 12px; top: 10px; font-family: var(--mono);
    font-size: 10.5px; letter-spacing: .12em; color: var(--paper);
    background: rgba(27, 27, 24, .55); padding: 3px 7px;
}
.sx-product-body { display: block; padding: 14px 0 0; border-top: 1px solid var(--line); margin-top: 14px; }
.sx-product-body b { display: block; font-family: var(--serif); font-size: 18.5px; font-weight: 700; }
.sx-product-body em { display: block; margin-top: 4px; font-style: normal; font-size: 13px; color: var(--muted); }
.sx-product-desc { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.sx-product-static .sx-product-body { border-top: 0; margin-top: 0; padding-top: 12px; }

/* ---------- 案例 ---------- */
.sx-cases { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 215px); gap: 10px; grid-auto-flow: dense; }
.sx-case { position: relative; display: block; overflow: hidden; background: var(--paper-3); }
.sx-case img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sx-case:hover img { transform: scale(1.04); }
.sx-case-lead { grid-column: span 2; grid-row: span 2; }
.sx-case-cap {
    position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 2px;
    padding: 34px 16px 14px; color: var(--paper);
    background: linear-gradient(transparent, rgba(20, 19, 16, .78));
}
.sx-case-cap b { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.sx-case-cap em { font-style: normal; font-size: 11.5px; color: rgba(247, 243, 234, .74); }

/* ---------- 关于 ---------- */
.sx-about { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(30px, 5vw, 66px); align-items: center; }
.sx-about-media { position: relative; padding: 0 20px 20px 0; }
.sx-about-media::after { content: ""; position: absolute; right: 0; bottom: 0; width: 62%; height: 58%; border-right: 1px solid var(--brass); border-bottom: 1px solid var(--brass); }
.sx-about-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.sx-about-tag {
    position: absolute; left: 0; bottom: 28px; z-index: 1;
    background: var(--vermilion); color: var(--paper);
    font-size: 12px; letter-spacing: .06em; padding: 9px 14px;
}
.sx-about-copy h2 { margin: 16px 0 18px; font-size: clamp(26px, 3vw, 40px); }
.sx-about-copy > p { font-size: 15px; color: var(--ink-2); line-height: 1.95; }
.sx-about-copy .sx-btn { margin-top: 26px; }
.sx-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; }
.sx-facts > div { background: var(--paper); padding: 16px 18px; }
.sx-facts dt { font-family: var(--serif); font-size: 24px; color: var(--ink); }
.sx-facts dd { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.sx-facts-page { grid-template-columns: repeat(4, 1fr); margin-top: 34px; }

/* ---------- 新闻 ---------- */
.sx-news { border-top: 1px solid var(--line); }
.sx-news-row {
    display: grid; grid-template-columns: 92px 1fr 26px; align-items: center; gap: clamp(16px, 2.4vw, 28px);
    padding: 20px 6px; border-bottom: 1px solid var(--line); color: var(--ink);
    transition: background .2s ease, padding .2s ease;
}
.sx-news-row:hover { background: rgba(255, 255, 255, .5); color: var(--ink); }
.sx-news-date { display: flex; flex-direction: column; padding-right: 16px; border-right: 1px solid var(--line); }
.sx-news-date b { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--vermilion); }
.sx-news-date em { margin-top: 6px; font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.sx-news-main b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.5; }
.sx-news-main em { display: block; margin-top: 4px; font-style: normal; font-size: 13.5px; color: var(--ink-2); }
.sx-news-arrow { color: var(--vermilion); font-size: 17px; transition: transform .2s ease; }
.sx-news-row:hover .sx-news-arrow { transform: translateX(4px); }

/* ---------- CTA ---------- */
.sx-cta { position: relative; overflow: hidden; background: var(--vermilion); color: var(--paper); padding: clamp(46px, 6vw, 78px) 0; }
.sx-cta::after {
    content: "瓦"; position: absolute; right: 4%; bottom: -40px;
    font-family: var(--serif); font-size: clamp(180px, 24vw, 320px); line-height: 1;
    color: rgba(247, 243, 234, .08); pointer-events: none;
}
.sx-cta-in { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px; }
.sx-cta h2 { margin-top: 16px; font-size: clamp(26px, 3.4vw, 44px); color: var(--paper); }
.sx-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 页头 ---------- */
.sx-page-hero { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: clamp(34px, 4.6vw, 60px) 0 clamp(30px, 3.8vw, 50px); }
.sx-page-hero h1 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.24; }
.sx-page-hero-tall h1 { font-size: clamp(32px, 4.4vw, 58px); }
.sx-page-lead { margin-top: 16px; max-width: 72ch; font-size: 15px; color: var(--ink-2); line-height: 1.95; }

/* ---------- 产品页 ---------- */
.sx-products-page { row-gap: clamp(26px, 4vw, 46px); }

/* ---------- 案例页 ---------- */
.sx-case-list { display: grid; gap: clamp(28px, 4vw, 48px); }
.sx-case-item { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(22px, 4vw, 48px); align-items: center; }
.sx-case-item:nth-child(even) .sx-case-item-img { order: 2; }
.sx-case-item-img { position: relative; overflow: hidden; }
.sx-case-item-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.sx-case-item:hover .sx-case-item-img img { transform: scale(1.03); }
.sx-case-item-no {
    position: absolute; left: 12px; top: 12px; background: var(--ink); color: var(--paper);
    font-family: var(--mono); font-size: 11px; letter-spacing: .1em; padding: 4px 9px;
}
.sx-case-item-body h2 { font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 12px; }
.sx-case-item-body > p { font-size: 14.5px; color: var(--ink-2); line-height: 1.95; }
.sx-case-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 20px; }
.sx-case-meta > div { background: var(--paper); padding: 12px 14px; }
.sx-case-meta dt { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.sx-case-meta dd { margin-top: 3px; font-size: 14px; }

/* ---------- 关于页 ---------- */
.sx-editorial { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(24px, 4vw, 56px); }
.sx-standfirst { margin-top: 16px; font-family: var(--serif); font-size: clamp(21px, 2.4vw, 29px); line-height: 1.6; }
.sx-editorial-body p { font-size: 15px; color: var(--ink-2); line-height: 2.05; }
.sx-editorial-body p + p { margin-top: 16px; }
.sx-systems-page { margin-top: clamp(34px, 4vw, 54px); border-top: 1px solid var(--line); }

/* ---------- 联系页 ---------- */
.sx-contact { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(26px, 4vw, 50px); align-items: start; }
.sx-contact-info { background: var(--ink); color: var(--paper); padding: clamp(26px, 3.4vw, 42px); }
.sx-contact-info .sx-eyebrow { color: var(--brass-l); }
.sx-contact-tel { display: block; margin-top: 18px; font-family: var(--serif); font-size: clamp(26px, 3.2vw, 38px); color: var(--paper); letter-spacing: .01em; }
.sx-contact-tel:hover { color: var(--paper); opacity: .85; }
.sx-contact-tel-label { margin-top: 6px; font-size: 12.5px; color: rgba(247, 243, 234, .66); }
.sx-contact-list { margin-top: 26px; border-top: 1px solid rgba(247, 243, 234, .2); }
.sx-contact-list > div { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(247, 243, 234, .14); }
.sx-contact-list dt { font-size: 12.5px; color: rgba(247, 243, 234, .6); }
.sx-contact-list dd { font-size: 13.5px; line-height: 1.8; }
.sx-contact-list a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.sx-contact-hint { margin-top: 20px; font-size: 12.5px; color: rgba(247, 243, 234, .62); }

.sx-contact-form { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3.2vw, 40px); }
.sx-contact-form h2 { font-size: clamp(22px, 2.4vw, 28px); }
.sx-form-hint { margin-top: 8px; font-size: 13px; color: var(--muted); }
.sx-form-hint span { color: var(--vermilion); }
.sx-form { margin-top: 24px; }
.sx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sx-field { margin-bottom: 18px; }
.sx-field label, .sx-field legend { display: block; margin-bottom: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.sx-field label span { color: var(--vermilion); }
.sx-field input[type="text"], .sx-field input[type="tel"], .sx-field input[type="email"] {
    width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 1px;
    background: var(--paper); font-size: 14px; color: var(--ink); outline: none; font-family: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.sx-field input:focus { border-color: var(--vermilion); background: #fff; box-shadow: 0 0 0 3px rgba(166, 58, 46, .08); }
.sx-field input.invalid { border-color: var(--vermilion); box-shadow: 0 0 0 3px rgba(166, 58, 46, .1); }
.sx-field-set { border: 0; padding: 0; }
.sx-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.sx-options label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); font-weight: 400; margin: 0; }
.sx-options input { width: 16px; height: 16px; accent-color: var(--vermilion); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.sx-submit { width: 100%; margin-top: 4px; }
.sx-form-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.sx-form-note.is-error { color: var(--vermilion); }
.sx-form-note.hide { display: none; }
.sx-form-success { display: none; margin-top: 16px; padding: 16px 18px; background: #F3F7EF; border-left: 2px solid #5B7A46; }
.sx-form-success.show { display: block; }
.sx-form-success b { font-size: 14.5px; color: #3F5C31; }
.sx-form-success p { margin-top: 4px; font-size: 13px; color: #4C6141; }

/* ---------- 提示条 ---------- */
.sx-note {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
    margin-top: clamp(30px, 4vw, 46px); padding: 22px 26px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid var(--line); border-left: 2px solid var(--vermilion);
}
.sx-note b { font-family: var(--serif); font-size: 16px; }
.sx-note p { flex: 1; min-width: 240px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- 文章 ---------- */
.sx-article { padding: clamp(34px, 5vw, 64px) 0 clamp(56px, 7vw, 90px); }
.sx-article-wrap { max-width: 840px; margin: 0 auto; }
.sx-article-title { margin: 10px 0 14px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.42; }
.sx-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.sx-article-meta time { font-family: var(--mono); }
.sx-article-rule { height: 1px; margin: 22px 0 30px; background: linear-gradient(90deg, var(--vermilion) 0 64px, var(--line) 64px 100%); }
.sx-article-body { font-size: 16.5px; line-height: 2.05; color: #2C2A25; }
.sx-article-body > * + * { margin-top: 18px; }
.sx-article-body h2 { margin-top: 38px; padding-left: 14px; border-left: 2px solid var(--brass); font-size: clamp(21px, 2.2vw, 27px); line-height: 1.5; }
.sx-article-body h3 { margin-top: 28px; font-size: 19px; }
.sx-article-body ul, .sx-article-body ol { padding-left: 24px; }
.sx-article-body ul { list-style: square; }
.sx-article-body ol { list-style: decimal; }
.sx-article-body li + li { margin-top: 6px; }
.sx-article-body blockquote { margin: 24px 0; padding: 16px 20px; background: var(--paper-2); border-left: 2px solid var(--vermilion); color: var(--ink-2); }
.sx-article-body img { margin: 22px 0; }
.sx-article-body a { color: var(--vermilion); text-decoration: underline; text-underline-offset: 3px; }
.sx-article-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sx-article-body th, .sx-article-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.sx-article-body th { background: var(--paper-2); }
.sx-article-body code { font-family: var(--mono); font-size: .92em; background: var(--paper-2); padding: 2px 6px; }
.sx-article-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }

/* ---------- 现场实拍 ---------- */
.sx-gallery-head { margin-top: clamp(40px, 5vw, 64px); }
.sx-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sx-gallery-item { position: relative; overflow: hidden; background: var(--paper-3); }
.sx-gallery-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.sx-gallery-item:hover img { transform: scale(1.04); }
.sx-gallery-item figcaption {
    position: absolute; inset: auto 0 0 0; padding: 24px 12px 10px;
    font-size: 11.5px; color: var(--paper);
    background: linear-gradient(transparent, rgba(20, 19, 16, .72));
    opacity: 0; transition: opacity .2s ease;
}
.sx-gallery-item:hover figcaption { opacity: 1; }

/* ---------- 分页 / 空状态 ---------- */
.sx-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 34px; }
.sx-pager a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); background: transparent; font-size: 13px; color: var(--ink-2); }
.sx-pager a:hover { border-color: var(--ink); color: var(--ink); }
.sx-pager a.is-on { background: var(--vermilion); border-color: var(--vermilion); color: var(--paper); }
.sx-pager-prev, .sx-pager-next { font-family: var(--mono); }
.sx-empty { padding: 60px 24px; text-align: center; border: 1px dashed var(--line); }
.sx-empty b { display: block; font-family: var(--serif); font-size: 22px; }
.sx-empty p { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.sx-404-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- 页脚 ---------- */
.sx-footer { background: var(--ink); color: rgba(247, 243, 234, .74); }
.sx-footer-main {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: clamp(24px, 3.4vw, 48px);
    padding-top: clamp(40px, 5vw, 62px); padding-bottom: clamp(30px, 4vw, 48px);
}
.sx-footer-brand b { display: block; font-family: var(--serif); font-size: 26px; color: var(--paper); letter-spacing: .04em; }
.sx-footer-brand > span { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .16em; color: var(--brass-l); }
.sx-footer-brand p { margin-top: 16px; max-width: 40ch; font-size: 12.8px; line-height: 1.95; color: rgba(247, 243, 234, .62); }
.sx-footer-tel { display: inline-block; margin-top: 16px; font-family: var(--serif); font-size: 25px; color: var(--paper); }
.sx-footer-tel:hover { color: var(--paper); }
.sx-footer-tel-label { display: block; margin-top: 2px; font-style: normal; font-size: 11.5px; color: rgba(247, 243, 234, .5); }
.sx-footer-col h3 { margin-bottom: 14px; font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--paper); letter-spacing: .06em; }
.sx-footer-col li + li { margin-top: 8px; }
.sx-footer-col a { font-size: 13.5px; color: rgba(247, 243, 234, .68); }
.sx-footer-col a:hover { color: var(--paper); }
.sx-footer-contact p { display: grid; grid-template-columns: 64px 1fr; gap: 8px; font-size: 13px; line-height: 1.8; color: rgba(247, 243, 234, .68); }
.sx-footer-contact p + p { margin-top: 8px; }
.sx-footer-contact b { font-weight: 500; font-size: 12px; color: rgba(247, 243, 234, .46); }
.sx-footer-bottom { border-top: 1px solid rgba(247, 243, 234, .12); }
.sx-footer-bottom-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-block: 15px; font-size: 12px; color: rgba(247, 243, 234, .52); }
.sx-icp a { color: inherit; }
.sx-icp a:hover { color: inherit; text-decoration: underline; }
.sx-footer-mark { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: rgba(247, 243, 234, .38); }

/* ---------- 入场动画 ---------- */
.js .sx-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .sx-reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
    .sx-header-in { gap: 22px; }
    .sx-nav li a { padding: 10px 10px; font-size: 14.5px; }
    .sx-header-tel { display: none; }
}

@media (max-width: 920px) {
    .sx-topbar-addr, .sx-topbar-dot { display: none; }
    .sx-header-in { height: 68px; }
    .sx-burger { display: block; }
    .sx-header-right { display: none; }
    .sx-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; background: var(--paper);
        border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(27, 27, 24, .12);
        padding: 8px var(--pad) 20px;
    }
    .sx-nav.open { display: flex; }
    .sx-nav ul { flex-direction: column; }
    .sx-nav li a { padding: 14px 2px; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
    .sx-nav li.is-active a { border-bottom-color: var(--line-soft); }
    .sx-nav-cta { display: inline-flex; margin-top: 14px; }

    .sx-about { grid-template-columns: 1fr; }
    .sx-cases { grid-template-columns: repeat(3, 1fr); }
    .sx-products { grid-template-columns: repeat(2, 1fr); }
    .sx-case-item { grid-template-columns: 1fr; }
    .sx-case-item:nth-child(even) .sx-case-item-img { order: 0; }
    .sx-editorial { grid-template-columns: 1fr; gap: 16px; }
    .sx-contact { grid-template-columns: 1fr; }
    .sx-footer-main { grid-template-columns: 1fr 1fr; }
    .sx-cta-in { align-items: flex-start; }
    .sx-systems-in { grid-template-columns: 1fr; }
    .sx-system { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
    .sx-system:first-child { border-top: 0; }
    .sx-facts-page { grid-template-columns: repeat(2, 1fr); }
    .sx-footer-mark { margin-left: 0; }
    .sx-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    body { font-size: 15.5px; }
    .sx-hero { min-height: 560px; }
    .sx-hero-inner h1 { margin: 16px 0 16px; }
    .sx-hero-lead { font-size: 14.5px; }
    .sx-hero-actions .sx-btn { flex: 1; }
    .sx-hero-stats { gap: 24px; margin-top: 32px; }
    .sx-hero-stats dt { font-size: 21px; }
    .sx-sec-head { align-items: flex-start; }
    .sx-cases { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
    .sx-case-lead { grid-column: span 2; grid-row: span 1; }
    .sx-news-row { grid-template-columns: 68px 1fr 20px; gap: 14px; padding: 15px 2px; }
    .sx-news-date b { font-size: 22px; }
    .sx-news-main b { font-size: 16.5px; }
    .sx-news-main em { font-size: 12.5px; }
    .sx-form-row { grid-template-columns: 1fr; gap: 0; }
    .sx-options { grid-template-columns: 1fr; }
    .sx-case-meta { grid-template-columns: 1fr; }
    .sx-facts-page { grid-template-columns: 1fr 1fr; }
    .sx-footer-main { grid-template-columns: 1fr; gap: 26px; }
    .sx-footer-bottom-in { flex-direction: column; align-items: flex-start; gap: 6px; }
    .sx-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .sx-hero-seal { display: none; }
    .sx-hero-stats { flex-wrap: wrap; gap: 16px 26px; }
    .sx-products { grid-template-columns: 1fr; }
    .sx-cases { grid-template-columns: 1fr; grid-auto-rows: 210px; }
    .sx-case-lead { grid-column: auto; }
    .sx-news-row { grid-template-columns: 60px 1fr 18px; }
    .sx-article-foot .sx-btn { flex: 1; }
    .sx-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .sx-reveal { opacity: 1; transform: none; transition: none; }
    .sx-product-img img, .sx-case img, .sx-case-item-img img { transition: none; }
}

/* ---------- 页脚后台入口 ---------- */
.sx-footer-login { margin-left: auto; font-size: 11.5px; color: rgba(247,243,234,.42); }
.sx-footer-login:hover { color: var(--paper); }

/* ---------- 在线咨询智能体 ---------- */
.agent-widget { position: fixed; right: 22px; bottom: 22px; 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: 2px; 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(27,27,24,.2);
    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: var(--vermilion); color: var(--paper); box-shadow: 0 10px 26px rgba(166,58,46,.32); }
.agent-fab-chat:hover { filter: brightness(1.05); }
.agent-fab-contact { background: var(--paper); color: var(--ink); border-color: var(--line); }
.agent-fab-contact:hover { color: var(--vermilion); border-color: var(--brass-l); }
.agent-fab-contact-mobile { display: none; }
.agent-panel {
    position: absolute; right: 0; bottom: 124px;
    width: 360px; max-width: calc(100vw - 28px); height: 520px; max-height: calc(100vh - 170px);
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
    box-shadow: 0 24px 60px rgba(27,27,24,.24);
}
.agent-widget.agent-open .agent-fab-chat { display: none; }
.agent-widget.agent-open .agent-panel { bottom: calc(100% + 10px); }
.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(--paper-2)); }
.agent-head b { display: block; font-family: var(--serif); font-size: 15px; color: var(--ink); }
.agent-head span { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.agent-head small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.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(--vermilion); }
.agent-msgs { flex: 1; overflow-y: auto; padding: 12px; background: #FBF8F1; }
.agent-msg { display: flex; margin: 8px 0; }
.agent-msg.user { justify-content: flex-end; }
.agent-bubble { max-width: 82%; padding: 9px 12px; border-radius: 8px; font-size: 13px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.agent-msg.bot .agent-bubble { background: #fff; border: 1px solid var(--line-soft); color: var(--ink-2); border-top-left-radius: 2px; }
.agent-msg.user .agent-bubble { background: var(--vermilion); color: var(--paper); border-top-right-radius: 2px; }
.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: var(--brass-l); 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%, 80%, 100% { opacity: .25; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}
.agent-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--line-soft); background: var(--paper); }
.agent-quick-btn { border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 2px; padding: 4px 10px; font-size: 12px; cursor: pointer; font-family: inherit; }
.agent-quick-btn:hover { border-color: var(--vermilion); color: var(--vermilion); }
.agent-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line-soft); background: var(--paper); }
.agent-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 2px; padding: 8px 10px; font-size: 13px; outline: none; font-family: inherit; background: #fff; }
.agent-form input:focus { border-color: var(--vermilion); box-shadow: 0 0 0 3px rgba(166,58,46,.08); }
.agent-form button { border: none; background: var(--vermilion); color: var(--paper); border-radius: 2px; padding: 0 14px; font-size: 13px; cursor: pointer; }
.agent-form button:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 登录弹框 ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(20,19,16,.55); padding: 20px; }
.modal-content { position: relative; width: 100%; max-width: 380px; background: var(--paper); border: 1px solid var(--line); padding: 30px 26px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal-close { position: absolute; right: 10px; top: 6px; border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--vermilion); }
.modal-title { font-size: 22px; margin-bottom: 18px; }
.auth-form { display: grid; gap: 12px; }
.auth-form input { height: 46px; border: 1px solid var(--line); background: #fff; padding: 0 12px; font-size: 14px; outline: none; font-family: inherit; }
.auth-form input:focus { border-color: var(--vermilion); box-shadow: 0 0 0 3px rgba(166,58,46,.08); }
.auth-form button { height: 46px; border: 0; background: var(--ink); color: var(--paper); font-size: 14.5px; cursor: pointer; font-family: inherit; }
.auth-form button:hover { background: #000; }
.auth-error { margin-top: 12px; font-size: 13px; color: var(--vermilion); }

/* ---------- 移动端智能体底部条 ---------- */
@media (max-width: 600px) {
    body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .agent-widget {
        left: 0; right: 0; bottom: 0;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
        background: rgba(247,243,234,.97);
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px rgba(27,27,24,.08);
        backdrop-filter: blur(10px);
    }
    .agent-fab-list { flex-direction: row; align-items: stretch; gap: 10px; }
    .agent-fab { flex: 1; justify-content: center; padding: 11px 12px; font-size: 13px; box-shadow: none; }
    .agent-fab-contact { order: 1; }
    .agent-fab-contact-page { display: none; }
    .agent-fab-contact-mobile { display: inline-flex; order: 1; }
    .agent-fab-chat { order: 2; }
    .agent-panel {
        position: fixed; left: 10px; right: 10px;
        bottom: calc(72px + env(safe-area-inset-bottom));
        width: auto; height: 62vh; max-height: calc(100vh - 160px); border-radius: 3px;
    }
    .agent-widget.agent-open { padding: 0; background: transparent; border-top: 0; box-shadow: none; backdrop-filter: none; }
    .agent-widget.agent-open .agent-fab-list { display: none; }
    .agent-widget.agent-open .agent-panel {
        left: 0; right: 0; bottom: 0; width: auto; max-width: none;
        height: 80vh; height: 80dvh; max-height: calc(100vh - 12px); border-radius: 3px 3px 0 0;
    }
    .sx-footer-login { margin-left: 0; }
}
