/* ============================================================
   广东壹动力广告有限公司 · 全站样式
   按 site-spec.md v1.2 设计令牌实现：红 #C82226 + 炭黑 #1A1614
   原生 CSS + CSS 变量，无预处理器、无框架
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --c-primary: #C82226;
  --c-primary-600: #A8171B;
  --c-primary-300: #F0A9AB;
  --c-deep: #1A1614;
  --c-ink: #241F1C;
  --c-muted: #6B625C;
  --c-bg: #FBFAF9;
  --c-tint: #F6F2F1;
  --c-card: #FFFFFF;
  --c-accent: #B45309;
  --c-gold: #8A6A3B;
  --c-line: rgba(26, 22, 20, .10);
  --c-line-strong: rgba(26, 22, 20, .18);
  --c-on-dark: #F5EFEA;
  --c-on-dark-muted: rgba(245, 239, 234, .65);

  --grad-primary: linear-gradient(135deg, #D62839 0%, #A30C24 100%);
  --grad-soft: linear-gradient(135deg, #FBF1F2 0%, #F5E4E6 100%);
  --grad-hero: radial-gradient(1200px 600px at 80% -10%, rgba(200, 34, 38, .10), transparent 60%),
               radial-gradient(900px 500px at 10% 10%, rgba(26, 22, 20, .05), transparent 60%),
               var(--c-bg);

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;

  --shadow-sm: 0 2px 8px rgba(26, 22, 20, .06);
  --shadow-md: 0 10px 30px rgba(26, 22, 20, .08);
  --shadow-lg: 0 24px 60px rgba(26, 22, 20, .14);

  --font-stack: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- 2. 重置与基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-primary-600); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0 0 .6em; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.2; letter-spacing: 1px; }
h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.25; letter-spacing: 1px; }
h3 { font-size: 19px; line-height: 1.4; }
h4 { font-size: 16px; }
p { color: var(--c-muted); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-primary); color: #fff;
  padding: 8px 16px; z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- 3. 容器与通用区块 ---------- */
.container { width: min(1200px, 92vw); margin: 0 auto; }
.section { padding: 64px 0; scroll-margin-top: 80px; }
.section-tint { background: var(--c-tint); }
.section-mint { background: var(--grad-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.section-head h2 { margin-bottom: .3em; }
.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--c-primary); font-weight: 600; margin-bottom: 14px;
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 4. 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 249, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.container.nav { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand-mark { height: 36px; width: auto; }
.brand-mark[src="images/logo.png"]:not([srcset]) {
  /* logo 占位：图片缺失时用文字 logo 兜底 */
}
.nav-links { display: flex; gap: 26px; flex: 1 1 auto; justify-content: center; }
.nav-links a, .nav-noscript a, .nav-noscript-list a {
  color: var(--c-ink); font-size: 15px; font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-noscript a:hover, .nav-noscript-list a:hover {
  color: var(--c-primary); border-bottom-color: var(--c-primary);
}
.nav-noscript { display: flex; gap: 20px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--c-ink);
  margin: 4px 0; border-radius: 2px; transition: .25s;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; line-height: 1;
  cursor: pointer; border: 0; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad-primary); color: #fff;
  box-shadow: 0 8px 20px rgba(200, 34, 38, .28);
}
.btn-primary:hover { background: linear-gradient(135deg, #B81E2E 0%, #8C0A1E 100%); color: #fff; }
.btn-outline {
  background: transparent; color: var(--c-ink);
  border: 1px solid var(--c-line-strong);
}
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-ghost {
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-phone { background: var(--c-primary); color: #fff; }
.btn-phone:hover { background: var(--c-primary-600); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 140px; background: var(--grad-hero);
}
.hero .blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5;
  pointer-events: none;
}
.hero .b1 { width: 380px; height: 380px; background: rgba(200, 34, 38, .25); top: -80px; right: -60px; }
.hero .b2 { width: 280px; height: 280px; background: rgba(26, 22, 20, .08); bottom: -60px; left: -40px; }
.hero-inner { position: relative; max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--c-muted);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--c-line);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-primary); }
.hero h1 em { font-style: normal; color: var(--c-primary); }
.hero p { font-size: 17px; max-width: 620px; margin: 18px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 13px; color: var(--c-muted); }

/* 黑底 Hero（按设计稿） */
.hero-dark {
  background: #0a0a0a;
  padding: 100px 0 120px;
}
.hero-dark .hero-inner { max-width: 900px; }
.hero-dark .hero-badge {
  background: transparent; border: 0; padding: 0;
  color: rgba(255,255,255,.7); font-size: 15px;
  margin-bottom: 36px;
}
.hero-eyebrow {
  display: block;
  color: var(--c-primary);
  font-size: 13px; font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.hero-dark .hero-badge i {
  width: 10px; height: 10px; background: #ff6a00;
}
.hero-dark .badge-tag {
  display: inline-block;
  background: var(--c-primary); color: #fff;
  font-size: 12px; padding: 2px 8px; border-radius: 3px;
  margin: 0 4px; vertical-align: middle;
}
.hero-dark h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.15; font-weight: 800;
  color: #fff; letter-spacing: -1px;
  margin-bottom: 32px;
}
.hero-dark h1 .line { display: block; }
.hero-dark h1 em {
  font-style: normal; color: #ff6a00;
}
.hero-dark .hero-desc {
  font-size: 18px; line-height: 1.8;
  color: rgba(255,255,255,.65);
  max-width: 720px; margin: 0 0 40px;
}
.hero-dark .hero-note { color: rgba(255,255,255,.4); }

/* ---------- 7. 数据条 ---------- */
.stats-band {
  background: var(--c-deep); color: var(--c-on-dark);
  padding: 36px 0; margin-top: -60px; position: relative; z-index: 2;
  border-radius: var(--r-lg);
}
.stats-band .grid-4 { gap: 16px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 30px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.stat span { font-size: 13px; color: var(--c-on-dark-muted); }

/* ---------- 8. 卡片与服务 ---------- */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-primary-300); }
.service-card { display: block; }
.service-icon {
  width: 48px; height: 48px; border-radius: var(--r-sm);
  background: var(--grad-soft); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-size: 12px; color: var(--c-muted);
  background: var(--c-tint); padding: 4px 10px; border-radius: 999px;
}

/* ---------- 9. 分栏 split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(135deg, #d8cdc6 0%, #b8a89e 100%);
  aspect-ratio: 16 / 10;
  min-height: 280px;
}
.split-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.float-chip {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .95);
  padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--c-ink);
  box-shadow: var(--shadow-md);
}
.float-chip svg { width: 16px; height: 16px; color: var(--c-primary); }
.check-list { margin: 22px 0 0; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px dashed var(--c-line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list svg { width: 22px; height: 22px; color: var(--c-primary); flex: 0 0 auto; margin-top: 3px; }
.check-list span { font-size: 15px; color: var(--c-ink); }
.check-list strong { color: var(--c-deep); }

/* ---------- 10. 案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  display: block; background: var(--c-card);
  border: 1px solid var(--c-line); border-radius: var(--r);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-media {
  aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, #d8cdc6 0%, #b8a89e 100%);
}
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 20px 22px 24px; }
.case-cat {
  display: inline-block; font-size: 12px; color: var(--c-primary);
  background: var(--grad-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.case-body h3 { font-size: 16px; margin-bottom: 6px; color: var(--c-ink); }
.case-body p { font-size: 13px; margin: 0; }

/* ---------- 10b. 图文要点 ---------- */
.points-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 28px; }
.point-card {
  display: block; background: var(--c-card);
  border: 1px solid var(--c-line); border-radius: var(--r);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.point-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.point-media {
  aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, #d8cdc6 0%, #b8a89e 100%);
}
.point-media img { width: 100%; height: 100%; object-fit: cover; }
.point-body { padding: 18px 20px 22px; }
.point-body h3 { font-size: 16px; margin-bottom: 6px; color: var(--c-ink); }
.point-body p { font-size: 13px; margin: 0; }

/* ---------- 11. 画廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g-item {
  position: relative; border-radius: var(--r); overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #d8cdc6 0%, #b8a89e 100%);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-cap {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(26, 22, 20, .75); color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
}

/* ---------- 12. 客户墙 ---------- */
.client-wall {
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  justify-content: center; align-items: center;
}
.client-wall li {
  font-size: 15px; color: var(--c-muted); font-weight: 500;
  padding: 8px 18px; border: 1px solid var(--c-line);
  border-radius: 999px; background: rgba(255, 255, 255, .6);
}

/* ---------- 13. CTA band ---------- */
.cta-band {
  background: var(--c-deep); color: var(--c-on-dark);
  border-radius: var(--r-lg); padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background-image: radial-gradient(800px 300px at 90% 10%, rgba(200, 34, 38, .35), transparent 60%);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: var(--c-on-dark-muted); margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-qr { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.cta-qr img {
  width: 64px; height: 64px; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 4px;
}
.cta-qr span { font-size: 12px; color: var(--c-on-dark-muted); letter-spacing: 1px; }

/* ---------- 14. 页脚 ---------- */
.site-footer {
  background: var(--c-deep); color: var(--c-on-dark-muted);
  padding: 64px 0 0; margin-top: 40px; font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { color: var(--c-on-dark-muted); font-size: 13px; margin-top: 14px; }
.brand-name { display: inline-flex; align-items: baseline; gap: 8px; color: #fff; }
.brand-name b { font-size: 22px; letter-spacing: 2px; }
.brand-name span { font-size: 12px; letter-spacing: 3px; color: var(--c-primary-300); }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 18px; letter-spacing: 1px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: var(--c-on-dark-muted); }
.site-footer a:hover { color: var(--c-primary-300); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--c-primary-300); flex: 0 0 auto; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: rgba(245, 239, 234, .45);
}

/* ---------- 15. 浮动按钮 ---------- */
.float-actions {
  position: fixed; right: 20px; bottom: 24px; z-index: 60;
  display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; box-shadow: var(--shadow-md);
  transition: transform .15s ease;
}
.float-btn:hover { transform: translateY(-2px); }
.float-btn.phone { background: var(--grad-primary); color: #fff; }
.float-btn.top { background: #fff; color: var(--c-ink); border: 1px solid var(--c-line); }
.float-btn svg { width: 22px; height: 22px; }

/* ---------- 16. 动效 reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ---------- 17. 新闻页 ---------- */
.page-hero {
  background: var(--grad-hero);
  padding: 80px 0 60px; text-align: center;
}
.page-hero h1 { margin-bottom: 8px; }
.breadcrumb {
  font-size: 13px; color: var(--c-muted); margin-bottom: 18px;
}
.breadcrumb a { color: var(--c-muted); }
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 40px;
}
.filter-bar .chip {
  font-size: 13px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--c-line-strong); background: #fff;
  color: var(--c-ink); cursor: pointer;
}
.filter-bar .chip.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media {
  aspect-ratio: 16 / 10; background: linear-gradient(135deg, #d8cdc6 0%, #b8a89e 100%);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; flex: 1; }
.news-date { font-size: 12px; color: var(--c-primary); margin-bottom: 8px; }
.news-empty { text-align: center; color: var(--c-muted); padding: 60px 0; }
.news-more-wrap { text-align: center; margin-top: 28px; }

/* ---------- 18. 详情页 ---------- */
.article-root { max-width: 780px; margin: 0 auto; padding: 40px 0; }
.article-loading { text-align: center; color: var(--c-muted); padding: 80px 0; }

/* ---------- 19. 图片缺失兜底 ----------
   当 images/ 下实际图片缺失时，保留占位底色与比例，避免版面塌陷 */
img { background: transparent; }
img.broken {
  visibility: hidden; /* 保留布局，隐藏裂图图标 */
}

/* ---------- 20. 响应式断点 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .case-grid, .news-grid, .points-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 100px; }
  .nav-links, .nav-noscript { display: none; }
  .nav-toggle { display: block; }
  .container.nav { height: 64px; gap: 14px; }
  .nav-cta-desktop { display: none; }
  .grid-4, .grid-3, .case-grid, .news-grid, .gallery, .points-grid { grid-template-columns: 1fr; }
  .stats-band .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .btn { padding: 11px 20px; font-size: 14px; }
  .stats-band { padding: 28px 0; margin-top: -40px; }
  .stat b { font-size: 24px; }
  .cta-band { padding: 28px; }
  .footer-bottom { flex-direction: column; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
