/* ==========================================================================
   通用赠品企业站 · 单页静态模板
   纯 HTML + CSS + JS，零外部依赖（无 CDN、无字体、无框架）
   可变内容全部在 index.html 中用 <!--@key-->值<!--/@key--> 标记，便于批量替换
   ========================================================================== */

/* ---------- 设计变量（改这里即可整体换色） ---------- */
:root {
  --ink:      #12161d;
  --body:     #545c6a;
  --muted:    #8b94a3;
  --line:     #e8eaee;
  --bg:       #ffffff;
  --soft:     #f6f7f9;
  --brand:    #12395c;
  --brand-2:  #0a1f33;
  --accent:   #c99a4b;
  --dark:     #0b141d;

  --wrap: 1200px;
  --r:    4px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow: 0 18px 50px -22px rgba(12,22,32,.28);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 30px;
  border: 1px solid transparent; border-radius: var(--r);
  font-size: 15px; font-weight: 500; letter-spacing: .02em;
  cursor: pointer; transition: all .3s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #1a1204; }
.btn-primary:hover { background: #dcae5e; transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(201,154,75,.85); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-2); transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(18,57,92,.9); }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 76px;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header.is-stuck {
  height: 66px;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(0,0,0,.4);
}
.header-inner { display: flex; align-items: center; height: 100%; gap: 24px; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-size: 19px; font-weight: 700; border-radius: var(--r);
  transition: background .35s var(--ease);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; font-weight: 600; color: #fff; letter-spacing: .02em; transition: color .35s var(--ease); }
.brand-text em { font-size: 10px; font-style: normal; letter-spacing: .16em; color: rgba(255,255,255,.5); transition: color .35s var(--ease); }
.is-stuck .brand-text strong { color: var(--ink); }
.is-stuck .brand-text em { color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  position: relative; padding: 8px 16px; font-size: 15px; color: rgba(255,255,255,.86);
  transition: color .3s var(--ease); border-radius: var(--r);
}
.nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.is-stuck .nav-link { color: var(--body); }
.is-stuck .nav-link:hover, .is-stuck .nav-link.is-active { color: var(--ink); }

.header-tel {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: 40px; padding: 0 18px 0 15px;
  border: 1px solid rgba(255,255,255,.26); border-radius: var(--r);
  font-size: 15px; font-weight: 500; color: #fff; letter-spacing: .02em;
  transition: all .3s var(--ease);
}
.header-tel svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.header-tel:hover { background: var(--accent); border-color: var(--accent); color: #1a1204; }
.is-stuck .header-tel { border-color: var(--brand); color: var(--brand); }
.is-stuck .header-tel:hover { background: var(--brand); color: #fff; }

.nav-toggle {
  display: none; width: 42px; height: 42px; margin-left: auto;
  background: none; border: 0; padding: 0; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.6px; background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.is-stuck .nav-toggle span { background: var(--ink); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 720px;
  padding-top: 76px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--dark);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }

/* 可选照片层：assets/img/ 下有对应文件就显示，没有则透明，自动露出下层渐变纹理 */
.hero-photo {
  position: absolute; inset: 0;
  /* 第一层为客户照片（放入 banner.jpg 即生效），第二层为内置占位图 */
  background-image: url("../img/banner.jpg"), url("../img/placeholder.svg");
  background-size: cover;
  background-position: center;
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(11,20,29,.55) 0%,
    rgba(11,20,29,.48) 42%,
    rgba(11,20,29,.92) 100%);
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.g1 { width: 640px; height: 640px; right: -180px; top: -220px; background: rgba(18,57,92,.85); }
.g2 { width: 520px; height: 520px; left: -180px; bottom: -260px; background: rgba(201,154,75,.16); }

.hero-inner { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 150px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.62); margin-bottom: 26px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero-title {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.16; letter-spacing: -.02em; color: #fff; font-weight: 600;
  margin-bottom: 26px;
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--accent); }

.hero-desc {
  max-width: 620px; font-size: 17px; line-height: 1.9;
  color: rgba(255,255,255,.72); margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(8px);
}
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 26px 0 28px;
  border-left: 1px solid rgba(255,255,255,.08);
}
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 32px; font-weight: 600; color: #fff; letter-spacing: -.02em; line-height: 1.2; }
.stat span { font-size: 13.5px; color: rgba(255,255,255,.55); letter-spacing: .04em; }

/* ---------- 通用区块 ---------- */
.section { padding: 118px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--dark); }
.section-head { max-width: 660px; margin-bottom: 58px; }
.section-tag {
  font-size: 12px; font-weight: 600; letter-spacing: .24em;
  color: var(--accent); margin-bottom: 16px;
}
.section-tag.light { color: var(--accent); }
.section-title { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 18px; }
.section-title.light { color: #fff; }
.section-title::after {
  content: ""; display: block; width: 44px; height: 2px;
  background: var(--accent); margin-top: 20px;
}
.section-sub { font-size: 16px; color: var(--muted); }

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid; grid-template-columns: 0.85fr 1fr; gap: 78px; align-items: center;
}
.media-frame { position: relative; }
.media-art {
  position: relative;
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r);
  box-shadow: var(--shadow);
}
.media-art svg { width: 100%; height: 100%; }
.media-photo {
  position: absolute; inset: 0;
  background-image: url("../img/about.jpg"), url("../img/placeholder.svg");
  background-size: cover;
  background-position: center;
}
.media-badge {
  position: absolute; right: -22px; bottom: 36px;
  background: #fff; padding: 20px 26px; border-radius: var(--r);
  box-shadow: 0 20px 44px -20px rgba(12,22,32,.3);
  text-align: center; min-width: 118px;
}
.media-badge b { display: block; font-size: 30px; color: var(--brand); line-height: 1.15; letter-spacing: -.02em; }
.media-badge span { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }

.about-text .lead { font-size: 19px; color: var(--ink); font-weight: 500; margin-bottom: 18px; line-height: 1.7; }
.about-text p + p { margin-top: 14px; }
.about-points { margin: 30px 0 36px; display: grid; gap: 13px; }
.about-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: var(--body); }
.about-points i {
  flex-shrink: 0; margin-top: 9px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ---------- 卡片（产品服务） ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; padding: 38px 32px 34px; border-radius: var(--r);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 24px 50px -26px rgba(12,22,32,.34); }
.card-icon {
  width: 48px; height: 48px; margin-bottom: 22px;
  display: grid; place-items: center;
  border-radius: var(--r); background: rgba(18,57,92,.06);
  transition: background .35s var(--ease);
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card-icon { background: var(--brand); }
.card:hover .card-icon svg { stroke: #fff; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.8; }

/* ---------- 案例 ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case {
  display: block; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.case:hover { transform: translateY(-6px); box-shadow: 0 26px 54px -28px rgba(12,22,32,.35); }
.case-art {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden;
  display: grid; place-items: center;
}
.case-art span {
  position: relative; z-index: 3;
  font-size: 46px; font-weight: 600; letter-spacing: -.03em;
  color: rgba(255,255,255,.92);
  transition: transform .45s var(--ease);
}
.case-photo {
  position: absolute; inset: 0; z-index: 1;
  background-size: cover;
  background-position: center;
}
.p1 { background-image: url("../img/case-1.jpg"), url("../img/placeholder.svg"); }
.p2 { background-image: url("../img/case-2.jpg"), url("../img/placeholder.svg"); }
.p3 { background-image: url("../img/case-3.jpg"), url("../img/placeholder.svg"); }
.case-art::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 44px 44px;
}
.case:hover .case-art span { transform: scale(1.06); }
.a1 { background: linear-gradient(135deg, #12395c 0%, #0a1f33 100%); }
.a2 { background: linear-gradient(135deg, #2c3e50 0%, #141d26 100%); }
.a3 { background: linear-gradient(135deg, #4a4238 0%, #23201b 100%); }
.case-body { padding: 26px 28px 30px; }
.case-body h3 { font-size: 17px; margin-bottom: 8px; }
.case-body p { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.case-more {
  font-size: 13.5px; color: var(--brand); letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 6px;
}
.case-more::after { content: "→"; transition: transform .3s var(--ease); }
.case:hover .case-more::after { transform: translateX(4px); }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 0.82fr; gap: 76px; align-items: start; }
.contact-lead { color: rgba(255,255,255,.66); margin-bottom: 40px; max-width: 460px; }
.contact-list { display: grid; gap: 24px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: var(--r);
  display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
}
.ci-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-list em { display: block; font-size: 12.5px; font-style: normal; letter-spacing: .1em; color: rgba(255,255,255,.42); margin-bottom: 3px; }
.contact-list a, .contact-list span { color: #fff; font-size: 15.5px; transition: color .25s var(--ease); }
.contact-list a:hover { color: var(--accent); }

.contact-form {
  background: #fff; padding: 38px 34px 32px; border-radius: var(--r);
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.6);
}
.contact-form h3 { font-size: 19px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; letter-spacing: .04em; }
.field input, .field textarea {
  width: 100%; padding: 12px 15px;
  border: 1px solid var(--line); border-radius: var(--r);
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #b8bfca; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(18,57,92,.08);
}
.form-tip { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.7; }

/* ---------- 页脚 ---------- */
.site-footer { background: #070e15; padding: 62px 0 34px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px 60px; align-items: start; }
.footer-brand strong { display: block; font-size: 18px; color: #fff; font-weight: 600; margin-bottom: 10px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.42); max-width: 380px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; justify-content: flex-end; }
.footer-nav a { font-size: 14px; color: rgba(255,255,255,.55); transition: color .25s var(--ease); }
.footer-nav a:hover { color: var(--accent); }
.footer-meta {
  grid-column: 1 / -1; padding-top: 26px; margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-meta p { font-size: 13px; color: rgba(255,255,255,.32); }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--brand); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .35s var(--ease);
  box-shadow: 0 14px 30px -12px rgba(18,57,92,.8);
}
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); }

/* ---------- 滚动入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .about-grid { gap: 50px; }
  .contact-grid { gap: 50px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .cases .case:last-child { grid-column: span 2; }
  .cases .case:last-child .case-art { aspect-ratio: 21 / 8; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .site-header { height: 66px; }
  .header-tel { display: none; }
  .nav-toggle { display: block; }

  .nav {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 0 16px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.4);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .3s var(--ease);
    max-height: calc(100vh - 66px); overflow-y: auto;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-link { color: var(--body); padding: 15px 24px; border-radius: 0; font-size: 16px; }
  .nav-link::after { left: 24px; right: auto; width: 22px; bottom: 8px; }
  .nav-link.is-active { color: var(--ink); }

  .hero { min-height: auto; padding-top: 66px; }
  .hero-inner { padding-top: 90px; padding-bottom: 200px; }
  .hero-desc { font-size: 16px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 0 22px; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,.08); }
  .stat b { font-size: 26px; }

  .section { padding: 84px 0; }
  .section-head { margin-bottom: 44px; }

  .about-grid { grid-template-columns: 1fr; gap: 46px; }
  .media-art { aspect-ratio: 16 / 10; }
  .media-badge { right: 16px; bottom: -20px; padding: 16px 22px; }
  .media-badge b { font-size: 26px; }

  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 30px 26px 28px; }
  .cases { grid-template-columns: 1fr; gap: 18px; }
  .cases .case:last-child { grid-column: auto; }
  .cases .case:last-child .case-art { aspect-ratio: 16 / 11; }

  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-form { padding: 30px 24px 26px; }

  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-nav { justify-content: flex-start; gap: 20px; }
  .footer-meta { flex-direction: column; gap: 8px; }

  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 32px; }
  .btn { height: 46px; padding: 0 22px; font-size: 14.5px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
