/* ========== 基础 ========== */
:root {
  --dark: #0b1020;
  --dark-2: #111a2e;
  --gold: #d8a443;
  --gold-light: #f0c978;
  --text: #1d2638;
  --muted: #6d7688;
  --line: #e7eaf0;
  --light: #f5f6f9;
  --white: #fff;
  --header-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin-top: 0; }
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

/* ========== 顶部导航 ========== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(255, 255, 255, .98); box-shadow: 0 6px 24px rgba(0, 0, 0, .1); }
.header-inner { display: flex; align-items: center; height: 100%; gap: 24px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 58px; width: auto; display: block; }
.site-footer .logo img { height: 66px; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  color: #394355; font-size: 14px; padding: 10px 11px;
  position: relative; white-space: nowrap; transition: color .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px;
  background: var(--gold); transform: translateX(-50%); transition: width .25s;
}
.nav-link:hover, .nav-link.active { color: #111827; }
.nav-link:hover::after, .nav-link.active::after { width: calc(100% - 22px); }
.header-cta {
  flex-shrink: 0; background: var(--dark); color: #fff !important;
  font-size: 13px; font-weight: 600; padding: 10px 18px; border-radius: 3px;
  transition: background .25s, transform .25s;
}
.header-cta:hover { background: #1a2742; transform: translateY(-1px); }
.menu-toggle { display: none; width: 42px; height: 42px; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: #1d2638; margin: 5px 0; transition: transform .3s, opacity .3s; }

/* ========== 主视觉 ========== */
.hero {
  position: relative; min-height: 760px; height: 100vh; max-height: 960px;
  display: flex; align-items: center; color: var(--white); overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,10,22,.92) 0%, rgba(6,10,22,.72) 45%, rgba(6,10,22,.35) 100%),
              url("../assets/hero.png") center center / cover no-repeat;
  transform: scale(1.03);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-inner { position: relative; z-index: 1; padding-top: 60px; }
.hero-kicker {
  color: var(--gold); font-size: 13px; letter-spacing: 3px; font-weight: 600;
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.hero-kicker span { width: 36px; height: 1px; background: var(--gold); display: inline-block; }
.hero h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.3; letter-spacing: 2px; font-weight: 700; margin-bottom: 26px; }
.hero h1 span { color: var(--gold); }
.hero-desc { font-size: 16px; color: rgba(255,255,255,.78); line-height: 2; margin-bottom: 38px; max-width: 680px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; font-size: 15px; font-weight: 600; border-radius: 3px;
  border: 1px solid transparent; transition: all .25s; cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--dark); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(216,164,67,.28); }
.btn-outline { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #1a2742; transform: translateY(-2px); }
.hero-scroll {
  position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.55); font-size: 10px; letter-spacing: 2px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll span { width: 1px; height: 38px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.hero-scroll span::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: scrollLine 2s infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ========== 数据 ========== */
.stats-wrap { background: var(--dark); padding-bottom: 46px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.12); padding-top: 40px; }
.stat-item { text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-right: 0; }
.stat-item strong { display: block; color: var(--gold); font-size: 42px; line-height: 1.2; font-weight: 600; letter-spacing: 1px; }
.stat-item span { color: rgba(255,255,255,.6); font-size: 13px; }

/* ========== 通用区块 ========== */
.section { padding: 110px 0; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-kicker { color: var(--gold); font-size: 12px; letter-spacing: 3px; font-weight: 700; margin-bottom: 12px; }
.section-head h2, .about-text h2, .contact-info h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: 1px; margin-bottom: 14px; position: relative; }
.section-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%);
  width: 48px; height: 2px; background: var(--gold);
}
.section-head.light h2 { color: #fff; }
.section-sub { color: var(--muted); font-size: 15px; margin: 26px 0 0; }
.section-head.light .section-sub { color: rgba(255,255,255,.55); }

/* ========== 服务 ========== */
.services { background: #fff; }
.service-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; margin-bottom: 100px; scroll-margin-top: 100px; }
.service-row:last-child { margin-bottom: 0; }
.service-row.reverse .service-img { order: 2; }
.service-img { position: relative; overflow: hidden; border-radius: 4px; box-shadow: 0 18px 45px rgba(10,20,40,.13); }
.service-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.service-img:hover img { transform: scale(1.04); }
.service-badge {
  position: absolute; left: 0; bottom: 0; background: var(--gold); color: var(--dark);
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; padding: 8px 16px;
}
.service-text h3 { font-size: 32px; letter-spacing: 1px; margin-bottom: 2px; }
.service-en { color: var(--gold); font-size: 12px; letter-spacing: 2px; font-weight: 600; margin-bottom: 22px; }
.service-text > p:not(.service-en) { color: #596273; font-size: 15px; line-height: 2; margin-bottom: 22px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tag-list li { border: 1px solid var(--line); color: #566074; font-size: 13px; padding: 5px 14px; border-radius: 2px; }
.text-link { color: var(--dark); font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--gold); padding-bottom: 5px; }
.text-link span { color: var(--gold); margin-left: 6px; transition: margin .25s; }
.text-link:hover span { margin-left: 12px; }

/* ========== 案例 ========== */
.cases { background: var(--dark); color: #fff; }
.case-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 42px; }
.filter-btn {
  background: transparent; color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.18);
  padding: 9px 20px; font-size: 13px; border-radius: 30px; cursor: pointer; transition: all .25s;
  font-family: inherit;
}
.filter-btn:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.filter-btn.active { background: var(--gold); color: var(--dark); border-color: var(--gold); font-weight: 600; }
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.case-card { background: var(--dark-2); border: 1px solid rgba(255,255,255,.07); border-radius: 3px; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.case-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.case-card.hidden { display: none; }
.case-img { position: relative; overflow: hidden; }
.case-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.case-card:hover .case-img img { transform: scale(1.06); }
.case-play {
  position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.7); color: #fff;
  display: grid; place-items: center; font-size: 14px; padding-left: 3px;
  opacity: 0; transform: scale(.8); transition: all .3s;
}
.case-card:hover .case-play { opacity: 1; transform: scale(1); }
.case-info { padding: 18px 20px 22px; }
.case-info span { color: var(--gold); font-size: 11px; letter-spacing: 1px; }
.case-info h3 { color: #fff; font-size: 15px; font-weight: 500; margin: 6px 0 0; line-height: 1.5; }

/* ========== 关于 ========== */
.about { background: var(--light); }
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img { position: relative; }
.about-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.about-img-label {
  position: absolute; right: -20px; bottom: -20px; background: var(--dark); color: #fff;
  padding: 14px 22px; font-size: 11px; letter-spacing: 2px;
}
.about-text h2 { margin-bottom: 24px; }
.about-text p { color: #596273; font-size: 15px; line-height: 2; }
.about-note { color: #9aa1ad !important; font-size: 13px !important; border-left: 2px solid var(--gold); padding-left: 14px; }
.about-text .btn { margin-top: 10px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card { background: #fff; padding: 34px 26px; border: 1px solid var(--line); border-radius: 3px; transition: transform .3s, box-shadow .3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(20,30,50,.08); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; background: rgba(216,164,67,.12); color: var(--gold); border-radius: 3px; margin-bottom: 20px; }
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.85; margin: 0; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-item { background: #fff; padding: 30px 24px; border-top: 3px solid var(--gold); border-radius: 3px; }
.process-num { font-size: 34px; font-weight: 700; color: rgba(216,164,67,.3); line-height: 1; letter-spacing: 1px; }
.process-item h3 { font-size: 18px; margin: 14px 0 10px; }
.process-item p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0; }

/* ========== 联系 ========== */
.contact { background: var(--dark-2); color: #fff; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.contact-lead { color: rgba(255,255,255,.62); font-size: 15px; margin-bottom: 36px; }
.contact-list { display: grid; gap: 22px; }
.contact-item { display: flex; align-items: center; gap: 18px; }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid rgba(216,164,67,.5); color: var(--gold); border-radius: 50%; font-size: 19px;
}
.contact-item small { display: block; color: rgba(255,255,255,.45); font-size: 12px; }
.contact-item strong { display: block; color: #fff; font-size: 16px; font-weight: 500; letter-spacing: .5px; }
.contact-note { color: rgba(255,255,255,.35); font-size: 12px; margin: 30px 0 0; }
.contact-form { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); padding: 40px; border-radius: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; color: rgba(255,255,255,.7); font-size: 13px; margin-bottom: 20px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #fff; padding: 12px 14px; border-radius: 3px; font-size: 14px; font-family: inherit;
  outline: none; transition: border .25s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--gold); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.35); }
.contact-form select option { color: #1d2638; }
.btn-block { width: 100%; margin-top: 4px; }
.form-tip { text-align: center; font-size: 13px; color: var(--gold-light); min-height: 20px; margin: 14px 0 0; }

/* ========== 页脚 ========== */
.site-footer { background: #080d19; color: rgba(255,255,255,.55); padding: 70px 0 24px; font-size: 13px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand p { margin: 20px 0 0; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-links h4 { color: #fff; font-size: 14px; margin-bottom: 18px; }
.footer-links a { display: block; margin-bottom: 10px; transition: color .25s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; font-size: 12px; color: rgba(255,255,255,.35); }

/* ========== 滚动动画 ========== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ========== 响应式 ========== */
@media (max-width: 1180px) {
  .nav-link { padding: 10px 7px; font-size: 13px; }
  .header-cta { padding: 9px 13px; }
  .logo img { height: 50px; }
}
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(255,255,255,.99); flex-direction: column; align-items: stretch;
    padding: 10px 24px 20px; max-height: 0; overflow: hidden; transition: max-height .35s;
    margin: 0; gap: 0; box-shadow: 0 12px 24px rgba(0,0,0,.1);
  }
  .main-nav.open { max-height: 70vh; overflow-y: auto; }
  .nav-link { padding: 12px 4px; border-bottom: 1px solid rgba(0,0,0,.08); }
  .nav-link::after { display: none; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: block; }
  .service-row, .about-intro, .contact-grid { gap: 46px; }
  .case-grid, .feature-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 32px, 1200px); }
  .hero { min-height: 660px; height: 88vh; }
  .hero-bg { background-image: linear-gradient(90deg, rgba(6,10,22,.9), rgba(6,10,22,.65)), url("../assets/hero.png"); background-position: 60% center; }
  .hero-inner { padding-top: 0; }
  .hero h1 { font-size: 36px; }
  .hero-desc { font-size: 14px; }
  .hero-scroll { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .stat-item:nth-child(2) { border-right: 0; }
  .service-row, .service-row.reverse { grid-template-columns: 1fr; gap: 26px; margin-bottom: 70px; }
  .service-row.reverse .service-img { order: 0; }
  .service-text h3 { font-size: 26px; }
  .case-grid, .feature-grid, .process-grid { grid-template-columns: 1fr; }
  .about-img-label { right: 10px; bottom: 10px; }
  .contact-form { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .section-head { margin-bottom: 46px; }
}
