/* ============================================================
   home.css — dqxd 首页现代设计系统 v2.0
   现代印刷企业站：米白纸感底 + 深墨文字 + 精致金点缀
   不再依赖米拓 legacy CSS（原 330KB+193KB 已移除）
   ============================================================ */

:root {
    --paper: #faf9f7;
    --ink: #1a1c1e;
    --ink-soft: #5b6470;
    --gold: #b08d57;
    --gold-deep: #96753f;
    --gold-soft: #d8c39a;
    --card: #ffffff;
    --line: #e9e7e2;
    --dark: #17181c;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(26,28,30,.06), 0 2px 8px rgba(26,28,30,.05);
    --shadow-md: 0 6px 20px rgba(26,28,30,.09), 0 2px 6px rgba(26,28,30,.06);
    --shadow-lg: 0 18px 44px rgba(26,28,30,.16), 0 6px 16px rgba(26,28,30,.09);
    --ease: cubic-bezier(.22,1,.36,1);
    --font: "Inter","Noto Sans SC","PingFang SC","HarmonyOS Sans SC","Microsoft YaHei",system-ui,sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
::selection { background: rgba(176,141,87,.22); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ Header ============ */
.site-header {
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 124px; gap: 32px; }
.site-logo img { display: block; max-height: 112px; height: auto; width: auto; max-width: 360px; }
.site-logo { display: inline-flex; align-items: center; }
.header-info { display: flex; gap: 40px; }
.header-info-item { display: flex; align-items: center; gap: 12px; }
.header-info-item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.header-info-item b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.header-info-item span { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* ============ 主导航 ============ */
.site-nav { background: var(--dark); }
.nav-shell { position: relative; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; }
.nav-menu a {
    display: block;
    padding: 16px 30px;
    color: #e8e9eb;
    font-size: 15px;
    letter-spacing: 1px;
    position: relative;
    transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold-soft);
    transform: translateX(-50%);
    transition: width .3s var(--ease);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--gold-soft); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 56%; }

/* ---- 主导航下拉菜单（二级页面直达） ---- */
.nav-menu li.has-sub { position: relative; }
.nav-menu li.has-sub > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-menu li.has-sub > a .caret {
    width: 8px; height: 8px; flex-shrink: 0;
    border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .25s var(--ease);
}
.nav-menu li.has-sub:hover > a .caret { transform: rotate(225deg) translateY(-1px); }
.nav-menu .sub-menu {
    position: absolute; top: 100%; left: 50%; transform: translate(-50%, 10px);
    min-width: 168px; margin: 0; padding: 8px;
    list-style: none;
    background: #fff; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    z-index: 90;
}
.nav-menu li.has-sub:hover .sub-menu,
.nav-menu li.has-sub:focus-within .sub-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translate(-50%, 4px);
}
.nav-menu .sub-menu li { margin: 0; }
.nav-menu .sub-menu a {
    display: block; padding: 10px 16px; font-size: 14px; letter-spacing: 1px;
    color: var(--ink); border-radius: 7px; white-space: nowrap;
    transition: background .2s var(--ease), color .2s var(--ease), padding-left .2s var(--ease);
}
.nav-menu .sub-menu a::after { display: none; }
.nav-menu .sub-menu a:hover { background: rgba(176,141,87,.1); color: var(--gold-deep); padding-left: 20px; }

/* 移动端汉堡 */
.mobile-nav-toggle {
    display: none;
    width: 100%;
    background: var(--dark);
    border: 0;
    padding: 14px 20px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}
.mobile-nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: .3s var(--ease); }

/* ============ Hero ============ */
/* banner 图是米拓定制成品图（文字已烧进图里），hero 只叠加 CTA + 指示点 */
/* 大气化：高度加大到接近视口（banner 图 1920x700 尽量铺满） */
.hero { position: relative; background: var(--dark); overflow: hidden; height: min(768px, 84vh); }
/* 设计感切换：新图淡入 + 5s 缓慢收拢（Ken Burns 微缩放 1.045→1），结束点正好 100% 完整显示，
   无“快铺满”跳变；旧图淡出时轻微放大产生“被推走”的纵深。transform 走 GPU 合成，性能好。 */
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.045);
    will-change: transform, opacity;
    transition: opacity 1.1s ease, transform 5s cubic-bezier(.22,.61,.36,1);
}
.hero-slide.active { opacity: 1; visibility: visible; pointer-events: auto; }
/* 遮罩：左侧渐变给文字区衬底，不遮 banner 图主体 */
.hero-mask {
    position: absolute; inset: 0;
      background: linear-gradient(90deg, rgba(2,10,23,.42) 0%, rgba(2,10,23,.22) 40%, rgba(2,10,23,0) 68%), linear-gradient(180deg, rgba(15,16,20,0) 55%, rgba(15,16,20,.38) 100%);
      pointer-events: none;
  }
.hero-copy { position:absolute; z-index:3; left:0; right:0; top:50%; transform:translateY(-50%); color:#fff; pointer-events:none; }
.hero-copy > * { max-width:620px; }
.hero-kicker { display:flex; align-items:center; gap:14px; margin-bottom:22px; color:#e0b861; font:600 13px/1.2 Inter,Arial,sans-serif; letter-spacing:4px; text-transform:uppercase; }
.hero-kicker::before { content:''; flex:0 0 44px; height:2px; background:linear-gradient(90deg,#e0b861,transparent); }
.hero-copy h1 { margin:0; color:#fff; font-size:clamp(40px,4.2vw,72px); line-height:1.22; letter-spacing:3px; font-weight:700; text-shadow:0 4px 26px rgba(0,0,0,.38); }
.hero-copy p { margin:24px 0 34px; color:rgba(255,255,255,.92); font-size:18px; line-height:1.9; letter-spacing:.5px; }
.hero-copy-link { display:inline-flex; align-items:center; gap:16px; padding:15px 28px; color:#14161a; background:linear-gradient(135deg,#e4bd6b,#c99a45); border:none; border-radius:999px; font-size:15px; font-weight:600; letter-spacing:2px; pointer-events:auto; box-shadow:0 8px 24px rgba(201,154,69,.35); transition:.25s ease; }
.hero-copy-link span { color:#14161a; font-size:20px; line-height:1; }
.hero-copy-link:hover { transform:translateY(-2px); box-shadow:0 12px 32px rgba(201,154,69,.5); }
/* CTA 按钮独立定位底部居中 */
.hero-cta {
    position: absolute; z-index: 3;
    left: 0; right: 0; bottom: 84px;
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 30px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
    cursor: pointer;
}
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(176,141,87,.4); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(176,141,87,.5); color: #fff; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; transform: translateY(-2px); }
.hero-dots {
    position: absolute; z-index: 3; bottom: 26px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 10px;
}
.hero-dots button {
    width: 32px; height: 4px; border: 0; border-radius: 2px;
    background: rgba(255,255,255,.4); cursor: pointer;
    transition: background .3s var(--ease), width .3s var(--ease);
    padding: 0;
}
.hero-dots button.on { background: var(--gold-soft); width: 46px; }

/* ---- 顶部进度条（revolution slider 风格） ---- */
.hero-progress {
    position: absolute; z-index: 4; top: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}
.hero-progress span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--gold-soft), var(--gold));
    transition: width .15s linear;
}
/* Banner 切换采用简单可靠的淡入淡出（crossfade）：切换时新图 0.9s 淡入、旧图同步淡出，
   无分片覆盖层、无 Ken Burns 缩放，避免"特效期间快铺满/闪黑/残影"等问题。 */

/* 鼠标 hover 时暂停自动切换进度 */
.hero:hover .hero-progress span { animation-play-state: paused; }

/* ============ 区块通用 ============ */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 14px;
}
.section-head h2 {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: 3px;
    margin: 0 0 14px;
    color: var(--ink);
}
.section-head h2::after {
    content: "";
    display: block;
    width: 44px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    margin: 20px auto 0;
}
.section-head p { color: var(--ink-soft); font-size: 15px; margin: 0; letter-spacing: 1px; }

/* ============ 产品展示（矩形卡片） ============ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-img { aspect-ratio: 4/3; overflow: hidden; background: #f0efec; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-body { padding: 20px 22px 22px; }
.product-body h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; color: var(--ink); letter-spacing: .5px; transition: color .25s var(--ease); }
.product-card:hover .product-body h3 { color: var(--gold-deep); }
.product-body p { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.6; height: 40px; overflow: hidden; }
.product-more {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--gold);
}
.product-more svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.product-card:hover .product-more svg { transform: translateX(4px); }

/* ============ 服务优势（深色区） ============ */
.section-service {
    background: linear-gradient(160deg, #202227 0%, #17181c 100%);
    position: relative;
}
.section-service::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 25% 0%, rgba(176,141,87,.12), transparent 55%);
    pointer-events: none;
}
.section-head-light h2, .section-head-light p { color: #fff; }
.section-head-light .section-eyebrow { color: var(--gold-soft); }
.section-head-light h2::after { margin-left: auto; margin-right: auto; }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.adv-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--radius);
    padding: 38px 30px;
    text-align: center;
    transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.adv-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,.07);
    border-color: rgba(216,195,154,.4);
}
.adv-icon {
    width: 60px; height: 60px; margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(176,141,87,.16);
    color: var(--gold-soft);
    display: flex; align-items: center; justify-content: center;
    transition: transform .35s var(--ease), background .35s var(--ease);
}
.adv-icon svg { width: 28px; height: 28px; }
.adv-card:hover .adv-icon { transform: scale(1.1); background: rgba(176,141,87,.28); }
.adv-card h3 { color: #fff; font-size: 18px; font-weight: 600; letter-spacing: 2px; margin: 0 0 12px; }
.adv-card p { color: #a9b0ba; font-size: 14px; line-height: 1.8; margin: 0; }

/* ============ 合作伙伴（合作商家 logo） ============ */
.section-partner { background: #f2f1ee; }
.partner-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.partner-logo {
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 4/3; padding: 22px;
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.partner-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.partner-logo img { width: auto; height: auto; max-width: 84%; max-height: 70%; object-fit: contain; display: block; transition: transform .4s var(--ease); }
.partner-logo:hover img { transform: scale(1.05); }

/* ============ 新闻资讯 ============ */
.section-news { background: var(--paper); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #f0efec; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-badge {
    position: absolute; top: 14px; left: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #fff; font-size: 12px; font-weight: 600;
    padding: 6px 12px; border-radius: 6px; letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(176,141,87,.4);
}
.news-body { padding: 20px 22px 24px; }
.news-body time { font-size: 12px; color: var(--ink-soft); letter-spacing: 1px; }
.news-body h3 {
    font-size: 16px; font-weight: 600; margin: 10px 0 8px;
    color: var(--ink); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .25s var(--ease);
}
.news-card:hover .news-body h3 { color: var(--gold-deep); }
.news-body p {
    font-size: 13px; color: var(--ink-soft); line-height: 1.7; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============ Footer ============ */
.site-footer { background: var(--dark); color: #aab0b9; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-col h4 { color: #fff; font-size: 17px; font-weight: 600; letter-spacing: 1px; margin: 0 0 18px; }
.footer-brand p { font-size: 14px; line-height: 2; margin: 0 0 16px; }
.footer-contact-line { font-size: 13px; line-height: 2.1; color: #8b929c; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: #aab0b9; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer-links a:hover { color: var(--gold-soft); padding-left: 4px; }
.footer-cta { display: inline-block; margin-top: 12px; color: var(--gold-soft); font-weight: 600; font-size: 14px; }
.footer-cta:hover { color: var(--gold); }
.footer-copy { border-top: 1px solid rgba(255,255,255,.08); text-align: center; padding: 20px 0; font-size: 13px; color: #767d87; }

/* ============ 返回顶部 ============ */
.scroll-top {
    position: fixed; right: 24px; bottom: 28px; z-index: 60;
    width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: var(--gold); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.scroll-top svg { width: 20px; height: 20px; }
.scroll-top.visible { opacity: .95; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--gold-deep); transform: translateY(-3px); }

/* ============ 响应式 ============ */
@media (max-width: 992px) {
    .header-info { display: none; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .adv-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .header-row { min-height: 96px; }
    .site-logo img { max-height: 88px; max-width: 300px; }
    .mobile-nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute; top: 46px; left: 0; right: 0; z-index: 50;
        background: var(--dark);
        box-shadow: 0 12px 24px rgba(0,0,0,.3);
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 14px 22px; border-top: 1px solid rgba(255,255,255,.07); font-size: 14px; }
    .nav-menu a::after { display: none; }
    /* 移动端下拉：静态文档流，点击展开（用 max-height 收起而非 display:none，
       确保文字始终在渲染树中、字体子集正常加载，避免展开时文字隐形） */
    .nav-menu li.has-sub > a { display: flex; justify-content: space-between; align-items: center; }
    .nav-menu .sub-menu { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; box-shadow: none; border: 0; background: rgba(255,255,255,.03); border-radius: 0; padding: 0; min-width: 0; display: block; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
    .nav-menu li.has-sub.open .sub-menu { max-height: 640px; border-top: 1px solid rgba(255,255,255,.07); padding: 4px 0; }
    /* 覆盖桌面 hover 的 translate(-50%)，否则移动端触摸时子菜单被平移出屏幕（真实 bug） */
    .nav-menu li.has-sub:hover .sub-menu,
    .nav-menu li.has-sub:focus-within .sub-menu { transform: none; }
    .nav-menu .sub-menu a { color: #d7dade; padding: 11px 34px; border-top: 0; }
    .nav-menu li.has-sub > a .caret { margin-left: auto; }
    /* 移动端 banner：宽高比更扁（banner 图 1920x700），主体更完整 */
    .hero { height: 56vw; max-height: 380px; }
    .hero-slide { background-position: center 30%; }
    .hero-copy { top:43%; }.hero-kicker { margin-bottom:12px; font-size:10px; letter-spacing:2px; }.hero-copy h1 { font-size:32px; letter-spacing:1px; }.hero-copy p { max-width:74%; margin:14px 0 20px; font-size:13px; line-height:1.7; }.hero-copy-link { padding:10px 15px; font-size:12px; }
    .hero-cta { bottom: 56px; }
    .hero-cta .btn { padding: 10px 22px; font-size: 13px; }
    .section { padding: 60px 0; }
    .section-head { margin-bottom: 36px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .product-body { padding: 14px; }
    .product-body p { display: none; }
    .adv-grid { grid-template-columns: 1fr; gap: 14px; }
    .adv-card { padding: 28px 22px; }
    .partner-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .partner-logo { height: 76px; padding: 10px; }
    .news-grid { grid-template-columns: 1fr; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 34px; }
    .scroll-top { right: 16px; bottom: 18px; width: 42px; height: 42px; }
}

/* ============ 滚动渐入（reveal，JS 驱动） ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* 动画偏好尊重 */
@media (prefers-reduced-motion: reduce) {
    .hero-slide, .hero-slide.active { transition: none; }
    .hero-progress span { transition: none !important; animation: none !important; }
    .contact-dock, .contact-dock-panel, .contact-dock-qr { transition: none !important; animation: none !important; }
}

/* ============ 右侧漂浮栏 contact-dock ============ */
.contact-dock {
    position: fixed;
    z-index: 80;
    right: 18px;
    bottom: max(18px, var(--dock-top, 24px));
    --dock-accent: #b08d57;
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
    font-size: 14px;
    color: var(--ink);
    font-family: inherit;
}
/* 收起态：只显示触发按钮 */
.contact-dock-trigger {
    width: 52px; height: 52px; border: 0; cursor: pointer;
    border-radius: 14px;
    background: var(--dock-accent);
    color: #fff;
    box-shadow: 0 8px 24px rgba(176,141,87,.42);
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    animation: dockPulse 3.5s ease-in-out infinite;
}
.contact-dock-trigger svg { width: 24px; height: 24px; }
.contact-dock-trigger:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(176,141,87,.55); }
@keyframes dockPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(176,141,87,.42), 0 0 0 0 rgba(176,141,87,.5); }
    50%      { box-shadow: 0 8px 24px rgba(176,141,87,.42), 0 0 0 12px rgba(176,141,87,0); }
}
/* 面板：默认隐藏，展开时滑入。默认不占布局空间 */
.contact-dock-panel {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(15,16,20,.18);
    padding: 8px;
    min-width: 220px;
    opacity: 0; visibility: hidden;
    transform: translateY(8px) scale(.96);
    transform-origin: bottom right;
    height: 0; min-height: 0; overflow: hidden; padding: 0;
    border: 0;
    transition: opacity .25s var(--ease), transform .28s var(--ease), visibility .25s, height .28s var(--ease), padding .28s var(--ease);
}
.contact-dock[data-open="1"] .contact-dock-panel {
    opacity: 1; visibility: visible; transform: none;
    height: auto; padding: 8px; border: 1px solid var(--line);
    overflow: visible;
}
.contact-dock[data-open="1"] .contact-dock-panel {
    opacity: 1; visibility: visible; transform: none;
}
.contact-dock[data-open="1"] .contact-dock-trigger { display: none; }
/* 关闭按钮（面板内部） */
.contact-dock-close {
    position: absolute; top: -10px; right: -10px;
    width: 28px; height: 28px;
    border: 0; cursor: pointer;
    background: #1f2937; color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.contact-dock-close svg { width: 14px; height: 14px; }
/* 单项按钮/链接 */
.contact-dock-item {
    position: relative;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    border: 0; background: transparent; cursor: pointer;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    transition: background .2s var(--ease), color .2s var(--ease);
    font: inherit;
}
.contact-dock-item:hover { background: rgba(176,141,87,.1); color: var(--gold-deep); }
.contact-dock-item svg {
    width: 22px; height: 22px; flex-shrink: 0;
    color: var(--dock-accent);
}
.contact-dock-item > span:not(.contact-dock-qr) {
    display: flex; flex-direction: column; gap: 2px;
    font-size: 13px; font-weight: 600;
}
.contact-dock-item > span:not(.contact-dock-qr) em {
    font-style: normal; font-size: 11px; color: var(--ink-soft); font-weight: 400;
}
/* 微信二维码气泡 */
.contact-dock-wechat { position: relative; }
.contact-dock-qr {
    position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) scale(.96);
    width: 170px;
    background: #fff; padding: 10px; border-radius: 10px;
    box-shadow: 0 14px 40px rgba(15,16,20,.18);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    z-index: 1;
}
.contact-dock-wechat[aria-expanded="true"] .contact-dock-qr,
.contact-dock-wechat:hover .contact-dock-qr {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(-50%);
}
.contact-dock-qr img { display: block; border-radius: 6px; }
.contact-dock-qr b { font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
/* 移动端：dock 改成纯按钮列表平铺在底部 */
@media (max-width: 767px) {
    .contact-dock {
        right: 10px; bottom: 12px;
        flex-direction: column-reverse;
    }
    .contact-dock-trigger { width: 46px; height: 46px; border-radius: 50%; }
    .contact-dock-panel { min-width: 190px; }
    .contact-dock-qr { position: fixed; left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%) scale(.96); }
    .contact-dock-wechat:hover .contact-dock-qr,
    .contact-dock-wechat[aria-expanded="true"] .contact-dock-qr { transform: translate(-50%, -50%); }
}

/* ============ 移动端 hero 优化（不挤不乱） ============ */
@media (max-width: 767px) {
    /* 加高 hero，给文字留空间（banner 图 cover 裁切居中） */
    .hero { height: 80vw; max-height: 440px; }
    /* 文字块：加内边距防溢出，垂直位置下移避开指示点 */
    .hero-copy { top: 46%; padding: 0 18px; }
    .hero-copy > * { max-width: 100%; }
    .hero-copy h1 { font-size: 29px; letter-spacing: 1px; line-height: 1.3; }
    .hero-copy p { max-width: 100%; margin: 12px 0 16px; font-size: 13px; line-height: 1.6; }
    /* 精简按钮：隐藏底部两个重复按钮，保留金色主按钮 */
    .hero-cta { display: none; }
    /* 指示点/进度条微调 */
    .hero-dots { bottom: 18px; }
    .hero-progress { bottom: auto; top: 0; }
}
