/* =========================================================
   贵州昕简妮文化传媒有限责任公司 · 官网样式
   主题：曜光 · 极光渐变（浅色 / 艺术感 / 高级有实力）
   浅色底 + 品红×紫罗兰×蓝 极光渐变 + 暖金点缀 + 丰富动效
   GEO-optimized static site · Light premium gradient theme
   ========================================================= */
:root {
  /* 基础色板 —— 浅色干净 */
  --bg: #ffffff;
  --bg-soft: #f7f6fc;
  --bg-tint: #f2edfd;
  --card: #ffffff;
  --line: #e9e6f3;
  --line-soft: #efeaf8;

  /* 文字 */
  --ink: #1a1a26;
  --ink-soft: #494a5c;
  --muted: #8a8798;

  /* 点缀 —— 品红 / 紫罗兰 / 蓝 极光 + 暖金 */
  --red: #d6336c;
  --red-dark: #b02558;
  --violet: #7c5cff;
  --blue: #4f7cff;
  --gold: #e6a23c;

  /* 渐变 */
  --grad: linear-gradient(120deg, #ff4d8d 0%, #8b5cf6 52%, #4f7cff 100%);
  --grad-warm: linear-gradient(120deg, #f6b73c 0%, #ff4d8d 60%, #8b5cf6 100%);
  --grad-soft: linear-gradient(120deg, #ffe6f0 0%, #ece6ff 55%, #e3ecff 100%);

  --shadow: 0 18px 44px rgba(86, 64, 160, .13);
  --shadow-sm: 0 8px 20px rgba(86, 64, 160, .08);
  --glow: 0 0 0 1px rgba(139, 92, 246, .28), 0 16px 38px rgba(139, 92, 246, .18);

  --radius: 16px;
  --radius-sm: 10px;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--red-dark); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); font-weight: 800; margin: 0 0 .5em; letter-spacing: .2px; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; position: relative; z-index: 2; }
.lead { font-size: 1.14rem; color: var(--ink-soft); }
.muted { color: var(--muted); }

/* 渐变文字 */
.text-grad, .grad-text {
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 7s linear infinite;
}
@keyframes gradShift { to { background-position: 200% center; } }

/* ---------- 动效：入场（纯CSS，无JS也可读） ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,30px) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,20px) scale(1.1); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(214,51,108,.35); } 70% { box-shadow: 0 0 0 14px rgba(214,51,108,0); } 100% { box-shadow: 0 0 0 0 rgba(214,51,108,0); } }

/* 滚动渐显：仅在 JS 可用时启用，no-JS 直接可见 */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Skip link (a11y) ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 8px 14px; z-index: 1000; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 46px; height: 46px; flex: none; border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform .3s; }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); }
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-size: 1.04rem; letter-spacing: .5px; }
.brand-text span { font-size: .72rem; color: var(--muted); letter-spacing: 2px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-block; padding: 9px 13px; border-radius: 9px; color: var(--ink-soft); font-size: .96rem; font-weight: 500; text-decoration: none; transition: .2s; }
.nav-links a:hover { background: var(--bg-tint); color: var(--red); text-decoration: none; }
.nav-links a.active { color: var(--red); font-weight: 700; }
.nav-cta { background: var(--grad); background-size: 160% auto; color: #fff !important; padding: 9px 20px !important; border-radius: 999px; box-shadow: 0 10px 22px rgba(214,51,108,.32); transition: .3s; }
.nav-cta:hover { background-position: right center; color: #fff !important; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 20px; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fdfcff 0%, #f7f4ff 60%, #ffffff 100%); border-bottom: 1px solid var(--line-soft); padding: 74px 0 64px; }
/* 极光渐变光斑 */
.blob { position: absolute; border-radius: 50%; filter: blur(72px); z-index: 1; pointer-events: none; opacity: .55; }
.blob.b1 { width: 480px; height: 480px; background: radial-gradient(circle, #ffd3e6, transparent 65%); top: -140px; left: -120px; animation: drift1 12s ease-in-out infinite; }
.blob.b2 { width: 520px; height: 520px; background: radial-gradient(circle, #ddd6ff, transparent 65%); top: -100px; right: -140px; animation: drift2 14s ease-in-out infinite; }
.blob.b3 { width: 420px; height: 420px; background: radial-gradient(circle, #cfe0ff, transparent 65%); bottom: -160px; left: 34%; animation: drift1 16s ease-in-out infinite; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; position: relative; z-index: 2; }
.hero-grid > * { animation: fadeUp .8s cubic-bezier(.22,.61,.36,1) both; }
.hero-grid > *:nth-child(2) { animation-delay: .12s; }
.eyebrow {
  display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--red);
  padding: 7px 15px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: 1px; box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.05rem); margin: 18px 0 16px; letter-spacing: .5px; }
.hero h1 .accent { background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradShift 6s linear infinite; }
.hero .lead { max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 1rem; transition: .25s; position: relative; overflow: hidden; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--grad); background-size: 170% auto; color: #fff; box-shadow: 0 14px 30px rgba(214,51,108,.35); }
.btn-primary:hover { color: #fff; background-position: right center; box-shadow: 0 18px 38px rgba(139,92,246,.4); }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-22deg); transition: left .6s; }
.btn-primary:hover::after { left: 130%; }
.btn-ghost { background: #fff; color: var(--red); border-color: #f2c3d6; }
.btn-ghost:hover { background: #fff5f9; color: var(--red-dark); border-color: var(--red); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--red); }

/* 首屏主图卡 + 渐变描边 */
.hero-media { position: relative; }
.hero-card {
  position: relative; border-radius: 22px; padding: 6px; overflow: hidden;
  background: conic-gradient(from 180deg, #ff4d8d, #8b5cf6, #4f7cff, #f6b73c, #ff4d8d);
  background-size: 200% 200%; animation: gradShift 8s linear infinite;
  box-shadow: var(--shadow); animation: gradShift 8s linear infinite, floaty 7s ease-in-out infinite;
}
.hero-card .inner { background: #0b0714; border-radius: 16px; overflow: hidden; }
.hero-card img { display: block; width: 100%; height: 348px; object-fit: cover; }
.hero-badge { position: absolute; top: 20px; left: 20px; z-index: 3; background: rgba(20,10,25,.6); backdrop-filter: blur(6px); border: 1px solid rgba(246,183,60,.55); color: #ffd79a; font-weight: 700; font-size: .78rem; padding: 7px 13px; border-radius: 999px; }

/* stat chips */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; box-shadow: var(--shadow-sm); transition: .3s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.stat b { display: block; font-size: 1.5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat span { font-size: .8rem; color: var(--muted); }

/* ---------- 品牌滚动条 ---------- */
.marquee { overflow: hidden; background: #fff; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 18px 0; position: relative; z-index: 2; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { white-space: nowrap; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-soft); font-weight: 600; font-size: .9rem; padding: 8px 18px; border-radius: 999px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, #faf9ff 0%, #f5f3ff 100%); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 740px; margin: 0 auto 46px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-kicker { display: inline-block; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; font-weight: 800; letter-spacing: 2px; font-size: .82rem; text-transform: uppercase; }
.section-title { font-size: clamp(1.55rem, 3vw, 2.15rem); margin: 10px 0 12px; }
.section-sub { color: var(--muted); font-size: 1.06rem; margin: 0; }

/* 定义/摘要框 */
.def-box { background: linear-gradient(120deg, #fff, #fbf8ff); border: 1px solid var(--line); border-left: 5px solid; border-image: var(--grad) 1; border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; box-shadow: var(--shadow-sm); font-size: 1.06rem; color: var(--ink-soft); }
.def-box strong { color: var(--red); }

/* 面板 */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; height: 100%; transition: .3s; }
.panel:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.panel h3 { font-size: 1.16rem; display: flex; align-items: center; gap: 9px; }
.panel h3 .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--grad); flex: none; }

/* grids */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 卡片 */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: .3s; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); opacity: 0; transition: opacity .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: rgba(139,92,246,.35); }
.card:hover::before { opacity: 1; }
.card .icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 15px; background: var(--grad-soft); color: var(--red); font-size: 24px; transition: transform .3s; }
.card:hover .icon { transform: scale(1.12) rotate(-6deg); }
.card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .96rem; flex: 1; }
.card .tag { display: inline-block; margin-top: 8px; font-size: .78rem; color: var(--gold); font-weight: 800; letter-spacing: .5px; }

/* 列表 */
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 6px 0 6px 28px; position: relative; color: var(--ink-soft); }
.list-clean li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
.list-num { counter-reset: n; list-style: none; padding: 0; margin: 0; }
.list-num li { counter-increment: n; padding: 9px 0 9px 42px; position: relative; color: var(--ink-soft); }
.list-num li::before { content: counter(n); position: absolute; left: 0; top: 9px; width: 27px; height: 27px; background: var(--grad); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 800; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 580px; }
caption { caption-side: top; text-align: left; font-weight: 800; padding: 14px 18px; color: var(--ink); }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-soft); }
thead th { background: linear-gradient(120deg, #2b0f2b, #241a4a); color: #ffd9e6; font-weight: 700; position: sticky; top: 0; }
tbody tr:nth-child(even) { background: #faf9fe; }
tbody tr:hover { background: #f6effc; }
td .pill { display: inline-block; background: #fbe3ee; color: var(--red); font-size: .78rem; padding: 2px 10px; border-radius: 999px; font-weight: 700; }
td strong { color: var(--ink); }

/* 徽章 */
.badge { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); border-radius: 999px; padding: 6px 14px; font-size: .85rem; margin: 4px 6px 4px 0; transition: .2s; }
.badge:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }
.badge.gold { background: #fdf3e0; border-color: #f0d3a0; color: #9a6a0a; }

/* 案例条 */
.case-item { display: flex; flex-direction: column; gap: 6px; }
.case-item .case-tag { font-size: .74rem; color: var(--gold); font-weight: 800; letter-spacing: .5px; }
.case-item h4 { margin: 0; font-size: 1rem; }
.case-item p { margin: 0; font-size: .88rem; color: var(--muted); }

/* 时间线 */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--red), var(--violet)); opacity: .4; }
.timeline li { position: relative; padding: 0 0 22px 40px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--red); box-shadow: 0 0 0 4px rgba(214,51,108,.12); }
.timeline .t-year { font-weight: 800; color: var(--red); }
.timeline p { color: var(--ink-soft); margin: 4px 0 0; }

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); transition: .3s; }
.faq-item:hover { border-color: rgba(139,92,246,.35); box-shadow: var(--glow); }
.faq-item summary { list-style: none; cursor: pointer; padding: 19px 24px; font-weight: 700; font-size: 1.03rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--red); font-weight: 800; transition: .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--ink-soft); border-top: 1px dashed var(--line); }
.faq-item .faq-a p { margin: 14px 0 8px; }

/* 对比 */
.compare-good { color: #16a34a; font-weight: 800; }
.compare-mid { color: #d97706; font-weight: 800; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfaff; color: var(--ink); transition: .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.14); background: #fff; }
.field .hint { font-size: .8rem; color: var(--muted); }
.form-note { font-size: .85rem; color: var(--muted); }

/* 联系信息 */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.info-list li:last-child { border-bottom: 0; }
.info-list .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-soft); display: grid; place-items: center; font-size: 19px; flex: none; }
.info-list b { display: block; color: var(--ink); }
.info-list span { color: var(--muted); font-size: .95rem; }

/* CTA 横幅 —— 动态渐变 */
.cta-band { position: relative; overflow: hidden; background: var(--grad); background-size: 220% 220%; animation: gradShift 9s ease infinite; color: #fff; border-radius: 24px; padding: 50px 40px; text-align: center; box-shadow: var(--shadow); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 220px at 50% -20%, rgba(255,255,255,.22), transparent 60%); }
.cta-band h2 { color: #fff; font-size: clamp(1.45rem, 3vw, 2.1rem); position: relative; }
.cta-band p { color: rgba(255,255,255,.94); max-width: 640px; margin: 0 auto 24px; position: relative; }
.cta-band .btn-light { position: relative; animation: pulseRing 2.6s infinite; }

/* 页脚 */
.site-footer { background: #14101f; color: #a79fb8; padding: 54px 0 28px; margin-top: 64px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; position: relative; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #a79fb8; display: block; padding: 4px 0; font-size: .92rem; }
.site-footer a:hover { color: #ff8fb0; text-decoration: none; }
.footer-brand { color: #c5bfd6; }
.footer-brand strong { color: #fff; font-size: 1.06rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 34px; padding-top: 20px; font-size: .82rem; color: #6f6880; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* 更新标记 / 面包屑 / 内页头 */
.updated { font-size: .82rem; color: var(--muted); margin-top: 32px; }
.crumbs { font-size: .85rem; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fbf9ff 0%, #f5f2ff 100%); border-bottom: 1px solid var(--line-soft); padding: 50px 0 40px; }
.page-hero .blob { opacity: .4; }
.page-hero h1 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); }
.page-hero .lead { max-width: 72ch; }

/* 图集 */
.gallery-group { margin-bottom: 38px; }
.gallery-group > h3 { font-size: 1.14rem; margin-bottom: 15px; display: flex; align-items: center; gap: 9px; }
.gallery-group > h3 .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--grad); flex: none; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
figure.g-item { margin: 0; position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: #000; transition: .3s; }
figure.g-item:hover { box-shadow: var(--glow); transform: translateY(-4px); }
figure.g-item img { width: 100%; height: 224px; object-fit: cover; display: block; transition: transform .5s ease; }
figure.g-item:hover img { transform: scale(1.08); }
figure.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 13px 11px; font-size: .8rem; line-height: 1.4; color: #fff; background: linear-gradient(to top, rgba(15,8,20,.85), transparent); }

/* 响应式 */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { position: absolute; top: 66px; right: 12px; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 10px; display: none; align-items: stretch; min-width: 200px; z-index: 50; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 22px; }
  .gallery { grid-template-columns: 1fr; }
  figure.g-item img { height: 210px; }
  .hero-card img { height: 260px; }
}

/* 降低动态偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 首屏图片轮播 ---------- */
.hero-slider { position: relative; overflow: hidden; border-radius: 16px; }
.hero-slider .slides { position: relative; width: 100%; height: 348px; }
.hero-slider .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 1.2s ease; pointer-events: none; }
.hero-slider .slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slider .slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .3px; background: linear-gradient(to top, rgba(15,8,20,.82), transparent); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(15,10,20,.42); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); transition: .25s; display: grid; place-items: center; opacity: 0; }
.hero-slider:hover .slider-btn, .hero-slider:focus-within .slider-btn { opacity: 1; }
.slider-btn:hover { background: var(--red); border-color: var(--red); transform: translateY(-50%) scale(1.08); }
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }
.slider-dots { position: absolute; bottom: 14px; right: 16px; z-index: 6; display: flex; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 999px; border: none; background: rgba(255,255,255,.45); cursor: pointer; transition: .3s; padding: 0; }
.slider-dots button.active { background: #fff; width: 26px; }
@media (max-width: 640px) {
  .hero-slider .slides { height: 260px; }
  .slider-btn { opacity: 1; width: 36px; height: 36px; }
}
