/* ============================================================
   成都恒睿盛格营销策划 — style.css
   Palette: warm stone (#faf9f5 / #191919 / #e5e4df) + terracotta accent
   Type: Noto Serif SC (display) + Noto Sans SC (body)
   ============================================================ */

:root {
  --bg: #faf9f5;
  --bg-deep: #f1efe9;
  --ink: #191919;
  --ink-soft: #5c5850;
  --line: #e5e4df;
  --line-dark: #d6d3c9;
  --accent: #a62224;      /* 品牌红 */
  --accent-deep: #7d1719;
  --gold: #e5aa21;        /* 品牌金 */
  --navy: #1c2c66;        /* 品牌藏青 */
  --bronze: #8c6d4f;
  --sage: #7d8b72;
  --footer: #141413;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-logo, .about-lockup, .footer-logo { object-fit: contain; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--navy); color: #fff; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: #fff;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; line-height: 1.15; }
.brand-logo { width: auto; height: 44px; filter: drop-shadow(0 1px 6px rgba(0,0,0,0.35)); }
.brand-cn { font-size: 18px; letter-spacing: 0.18em; white-space: nowrap; }
.brand-text { display: flex; flex-direction: column; }
.brand-cn { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: 0.12em; }
.brand-en { font-size: 10px; letter-spacing: 0.34em; color: rgba(255,255,255,0.75); transition: color 0.4s var(--ease); }
.site-header.scrolled .brand-en { color: var(--ink-soft); }

.main-nav { display: flex; gap: 36px; align-items: center; }
.main-nav a {
  display: flex; flex-direction: column; align-items: center; line-height: 1.3;
  font-size: 14px; letter-spacing: 0.1em;
  position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-en { font-size: 9px; letter-spacing: 0.3em; color: rgba(255,255,255,0.7); transition: color 0.4s var(--ease); }
.site-header.scrolled .nav-en { color: var(--ink-soft); }
.nav-cta {
  border: 1px solid rgba(255,255,255,0.85);
  padding: 8px 20px !important;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-header.scrolled .nav-cta { border-color: var(--ink); }
.nav-cta::after { display: none; }
.nav-cta:hover { background: #fff; border-color: #fff; color: var(--ink); }
.site-header.scrolled .nav-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.nav-cta:hover .nav-en { color: var(--ink); }
.site-header.scrolled .nav-cta:hover .nav-en { color: var(--bg); }

.menu-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  height: 118%;
  will-change: transform, opacity;
  transform: scale(1.05);
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,19,0.15) 0%, rgba(20,20,19,0.05) 40%, rgba(20,20,19,0.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px 120px;
}
.hero-kicker {
  font-size: 13px; letter-spacing: 0.32em;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.85);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: 1.18;
  letter-spacing: 0.04em;
  margin-bottom: 30px;
}
.hero-slides-copy { position: relative; }
.hero-copy { transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.hero-copy:not(.active) {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; transform: translateY(14px);
  pointer-events: none;
}
.hero-copy.active .hero-sub { transition-delay: 0.12s; }
.hero-title .line { display: block; }
.hero-title em { font-style: normal; color: var(--gold); }
.hero-sub {
  font-size: 16px; font-weight: 300;
  color: rgba(255,255,255,0.88);
  margin-bottom: 42px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid rgba(255,255,255,0.75);
  padding: 14px 30px;
  font-size: 14px; letter-spacing: 0.2em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.hero-cta .arrow { transition: transform 0.4s var(--ease); }
.hero-cta:hover { background: #fff; color: var(--ink); }
.hero-cta:hover .arrow { transform: translateX(6px); }
.hero-dots {
  position: absolute; z-index: 3;
  left: 40px; bottom: 44px;
  display: flex; gap: 10px;
}
.hero-dots .dot {
  width: 34px; height: 3px;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.35);
  transition: background 0.4s var(--ease);
}
.hero-dots .dot.active { background: var(--gold); }
.hero-foot {
  position: absolute; z-index: 2;
  right: 40px; bottom: 44px;
  display: flex; align-items: center; gap: 16px;
  font-size: 10px; letter-spacing: 0.3em; color: rgba(255,255,255,0.7);
}
.hero-foot-line { width: 64px; height: 1px; background: rgba(255,255,255,0.5); }

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
}
.marquee-track {
  display: flex; align-items: center; gap: 48px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: 15px; letter-spacing: 0.18em; white-space: nowrap;
}
.marquee-track i { color: var(--gold); font-style: normal; font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Sections common
   ============================================================ */
.section { padding: 140px 40px; max-width: 1440px; margin: 0 auto; }
.section-head {
  display: flex; align-items: baseline; gap: 22px;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 26px;
  margin-bottom: 70px;
  position: relative;
}
.section-index {
  font-family: var(--serif);
  font-size: 15px; color: var(--accent);
  letter-spacing: 0.1em;
}
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 46px);
  letter-spacing: 0.08em;
}
.section-en {
  margin-left: auto;
  font-size: 11px; letter-spacing: 0.36em; color: var(--ink-soft);
}

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 90px;
}
.about-sticky { position: sticky; top: 130px; align-self: start; }
.about-lead {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.55;
  margin-bottom: 36px;
}
.about-copy {
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: 22px;
  max-width: 46ch;
}
.about-figure {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.about-figure img { transition: transform 1.2s var(--ease); }
.about-figure:hover img { transform: scale(1.04); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  margin-top: 48px;
  padding-top: 36px;
  gap: 20px;
}
.stat dt {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 3.4vw, 52px);
  color: var(--navy);
  line-height: 1.1;
}
.stat dt::after { content: ""; }
.stat dd { font-size: 13px; color: var(--ink-soft); letter-spacing: 0.12em; margin-top: 6px; }

/* ============================================================
   Services — horizontal peek-a-boo carousel
   ============================================================ */
.services { max-width: none; padding-left: 0; padding-right: 0; }
.services .section-head { max-width: 1360px; margin-left: auto; margin-right: auto; padding-left: 40px; padding-right: 40px; }
.drag-hint { position: absolute; right: 40px; bottom: -34px; font-size: 11px; letter-spacing: 0.24em; color: var(--navy); }
.services-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding: 20px max(40px, calc((100vw - 1360px) / 2 + 40px)) 60px;
  scroll-snap-type: x mandatory;
  cursor: grab;
  scrollbar-width: none;
}
.services-track::-webkit-scrollbar { display: none; }
.services-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.service-card {
  flex: 0 0 min(480px, 82vw);
  scroll-snap-align: start;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  padding: 48px 42px 56px;
  display: flex; flex-direction: column;
  transition: background 0.5s var(--ease), transform 0.5s var(--ease);
}
.service-card:hover { background: var(--ink); color: var(--bg); transform: translateY(-8px); }
.service-card:hover .service-desc, .service-card:hover li, .service-card:hover .service-en { color: rgba(250,249,245,0.72); }
.service-no { font-family: var(--serif); color: var(--accent); font-size: 15px; letter-spacing: 0.14em; }
.service-card h3 {
  font-family: var(--serif); font-weight: 700;
  font-size: 32px; letter-spacing: 0.1em;
  margin-top: 18px;
}
.service-en { font-size: 11px; letter-spacing: 0.32em; color: var(--ink-soft); margin-top: 6px; }
.service-desc { margin-top: 26px; font-weight: 300; color: var(--ink-soft); }
.service-card ul { margin-top: 30px; border-top: 1px solid currentColor; padding-top: 22px; }
.service-card li {
  font-size: 14px; color: var(--ink-soft);
  padding: 7px 0 7px 20px;
  position: relative;
}
.service-card li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 8px; height: 1px; background: var(--accent);
}

/* ============================================================
   Qualifications
   ============================================================ */
.qualifications { }
.qual-note { max-width: 52ch; color: var(--ink-soft); font-weight: 300; margin-bottom: 60px; }
.qual-list { border-top: 1px solid var(--line-dark); }
.qual-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 36px;
  align-items: start;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.45s var(--ease), background 0.45s var(--ease);
}
.qual-item:hover { background: var(--bg-deep); padding-left: 24px; padding-right: 24px; }
.qual-no { font-family: var(--serif); font-size: 20px; color: var(--accent); padding-top: 4px; }
.qual-body h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 10px; }
.qual-body p { color: var(--ink-soft); font-weight: 300; max-width: 62ch; }
.qual-tag {
  font-size: 11px; letter-spacing: 0.22em;
  border: 1px solid var(--navy); color: var(--navy);
  padding: 8px 18px; white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.qual-item:hover .qual-tag { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   Cases — staggered editorial grid
   ============================================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px 32px;
}
.case-card { grid-column: span 7; }
.case-card--offset { grid-column: span 5; margin-top: 110px; }
.case-card:nth-child(3) { grid-column: 6 / span 7; margin-top: -40px; }
.case-figures { position: relative; margin-bottom: 56px; }
.case-figure { overflow: hidden; aspect-ratio: 16 / 10; }
.case-figure--small {
  position: absolute;
  right: -18px; bottom: -40px;
  width: 34%;
  aspect-ratio: 4 / 3;
  border: 6px solid var(--bg);
  box-shadow: 0 18px 44px rgba(20, 20, 19, 0.18);
}
.case-figure img { transition: transform 1.1s var(--ease), filter 1.1s var(--ease); }
.case-card:hover .case-figure img { transform: scale(1.06); }
.case-card:hover .case-figure--small { box-shadow: 0 24px 54px rgba(20, 20, 19, 0.24); }
.case-meta { padding-top: 24px; }
.case-cat { font-size: 11px; letter-spacing: 0.28em; color: var(--accent); }
.case-meta h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: 0.05em;
  margin: 10px 0 12px;
}
.case-meta p { color: var(--ink-soft); font-weight: 300; max-width: 58ch; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--footer);
  color: var(--bg);
  padding: 120px 40px 0;
}
.footer-top {
  max-width: 1360px; margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 80px;
  padding-bottom: 90px;
  border-bottom: 1px solid #2b2a28;
}
.footer-logo { width: min(210px, 55%); height: auto; margin-bottom: 24px; }
.footer-slogan {
  font-family: var(--serif); font-weight: 500;
  font-size: 12px; letter-spacing: 0.42em;
  color: rgba(250,249,245,0.55);
  margin-bottom: 30px;
}
.footer-big {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.4; letter-spacing: 0.05em;
}
.footer-cta {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 42px;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 10px;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.footer-cta .arrow { transition: transform 0.4s var(--ease); }
.footer-cta:hover { color: #fff; border-color: #fff; }
.footer-cta:hover .arrow { transform: translateX(8px); }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.footer-col h4 {
  font-size: 12px; letter-spacing: 0.3em;
  color: rgba(250,249,245,0.5);
  margin-bottom: 22px; font-weight: 500;
}
.footer-col p, .footer-col a {
  display: block;
  color: rgba(250,249,245,0.82);
  font-weight: 300; font-size: 15px;
  padding: 5px 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1360px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  padding: 30px 0 34px;
  font-size: 11px; letter-spacing: 0.18em;
  color: rgba(250,249,245,0.4);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-sticky { position: static; }
  .case-card, .case-card--offset, .case-card:nth-child(3) {
    grid-column: 1 / -1; margin-top: 0;
  }
  .footer-top { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 760px) {
  .section { padding: 90px 22px; }
  .header-inner { padding: 0 22px; height: 64px; }
  .main-nav {
    position: fixed; inset: 0;
    background: var(--ink); color: var(--bg);
    flex-direction: column; justify-content: center; gap: 34px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.45s var(--ease);
  }
  .main-nav.open { opacity: 1; pointer-events: auto; }
  .main-nav a { font-size: 20px; }
  .nav-en { color: rgba(250,249,245,0.5); }
  .nav-cta { border-color: rgba(250,249,245,0.6); }
  .menu-toggle {
    display: flex; flex-direction: column; gap: 7px;
    background: none; border: 0; cursor: pointer; z-index: 110;
    padding: 8px;
  }
  .menu-toggle span { width: 26px; height: 2px; background: currentColor; transition: transform 0.4s var(--ease), background 0.3s; }
  .menu-toggle.open span { background: var(--bg); }
  .menu-toggle.open span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle.open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .hero-content { padding: 0 22px 100px; }
  .hero-foot { right: 22px; }
  .hero-dots { left: 22px; }
  .brand-cn { font-size: 15px; }
  .brand-logo { height: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .qual-item { grid-template-columns: 1fr; gap: 14px; }
  .qual-tag { justify-self: start; }
  .footer { padding: 90px 22px 0; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
