:root {
  --china-ink: #151311;
  --china-paper: #f4efe6;
  --china-paper-deep: #e7ddcc;
  --china-red: #9d2c24;
  --china-red-bright: #bd3a2e;
  --china-gold: #b38a52;
  --china-muted: #756d63;
  --china-line: rgba(43, 34, 27, .17);
  --china-serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --china-sans: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--china-ink);
  background:
    radial-gradient(circle at 8% 16%, rgba(157, 44, 36, .055), transparent 23rem),
    var(--china-paper);
  font-family: var(--china-sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.navbar {
  top: 0;
  padding: 18px clamp(22px, 5vw, 74px);
  background: rgba(20, 18, 16, .88);
  border-bottom: 1px solid rgba(224, 191, 139, .2);
  backdrop-filter: blur(18px);
}

.logo {
  color: #fff8ec;
  font-family: var(--china-serif);
  letter-spacing: .18em;
}

.logo::before {
  content: "东";
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-right: 12px;
  place-items: center;
  color: #fff;
  background: var(--china-red);
  border: 1px solid rgba(255,255,255,.4);
  font-size: 15px;
  letter-spacing: 0;
}

.nav-links a { color: rgba(255,248,236,.72); }
.nav-links a:hover { color: #fff; }
.nav-links a::after { background: var(--china-red-bright); }
.menu-toggle span { background: #fff8ec; }

.hero { min-height: 100svh; background: #181512; }
.hero-bg img { filter: saturate(.62) contrast(1.08); }
.hero-bg::after {
  background:
    linear-gradient(90deg, rgba(15,12,10,.94) 0%, rgba(15,12,10,.58) 52%, rgba(15,12,10,.2) 100%),
    linear-gradient(0deg, rgba(15,12,10,.68), transparent 55%);
}

.hero-content { max-width: 1280px; padding-inline: clamp(22px, 7vw, 100px); }
.hero-intro { max-width: 820px; }
.hero-kicker,
.portfolio-category {
  color: #e0bc80;
  letter-spacing: .22em;
}

.hero-title {
  color: #fff9ef;
  font-family: var(--china-serif);
  font-size: clamp(64px, 11vw, 172px);
  font-weight: 500;
  letter-spacing: -.035em;
  text-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.hero-tagline {
  color: #fff6e8;
  font-family: var(--china-serif);
  font-size: clamp(23px, 3.1vw, 46px);
}

.hero-intro > p:last-child { max-width: 680px; color: rgba(255,247,234,.7); }
.scroll-indicator { color: rgba(255,255,255,.62); }
.scroll-line { background: var(--china-red-bright); }

section:not(.hero) { padding-block: clamp(88px, 10vw, 150px); }

#about {
  position: relative;
  overflow: hidden;
  background: var(--china-paper);
}

#about::after {
  content: "中国";
  position: absolute;
  right: 2vw;
  bottom: -5vw;
  color: rgba(157,44,36,.045);
  font-family: var(--china-serif);
  font-size: min(28vw, 420px);
  line-height: 1;
  pointer-events: none;
}

.section-header { width: min(1080px, calc(100% - 44px)); margin-inline: auto; }
.section-title,
.cta-title,
.modal-title {
  font-family: var(--china-serif);
  font-weight: 500;
  letter-spacing: -.03em;
}

.section-title { font-size: clamp(42px, 6vw, 82px); line-height: 1.08; }
.section-title::before {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-bottom: 24px;
  background: var(--china-red);
}

.section-subtitle { color: var(--china-muted); font-size: clamp(16px, 1.7vw, 21px); line-height: 1.8; }

.services { background: #1b1815; color: #fff8ed; }
.services .section-subtitle { color: rgba(255,248,237,.58); }
.services .section-title::before { background: #bd4438; }

.timeline { width: min(1180px, calc(100% - 44px)); }
.timeline::before { background: linear-gradient(#8f6e44, #a53229, #8f6e44); opacity: .55; }
.timeline-item { min-height: 560px; }
.timeline-content { padding-inline: clamp(24px, 5vw, 72px); }
.timeline-number { color: #bf9360; font-family: var(--china-serif); font-size: 18px; letter-spacing: .2em; }
.timeline-title { color: #fff8ed; font-family: var(--china-serif); font-size: clamp(30px, 3.6vw, 54px); line-height: 1.08; }
.timeline-desc { color: rgba(255,248,237,.62); font-size: 16px; line-height: 1.75; }
.timeline-dot { background: var(--china-red); border-color: #d5b07b; box-shadow: 0 0 0 8px rgba(157,44,36,.18); }
.timeline-image { overflow: hidden; border: 1px solid rgba(220,185,130,.25); }
.timeline-image img { filter: saturate(.82) contrast(1.03); transition: transform .8s ease, filter .8s ease; }
.timeline-item:hover .timeline-image img { transform: scale(1.035); filter: saturate(1) contrast(1.04); }

@media (min-width: 901px) {
  .timeline-item:nth-child(2) .timeline-content,
  .timeline-item:nth-child(4) .timeline-content,
  .timeline-item:nth-child(6) .timeline-content { transform: translateX(28px); }
}

.portfolio { background: var(--china-paper-deep); }
.portfolio-grid { width: min(1240px, calc(100% - 44px)); gap: 22px; }
.portfolio-item { background: #201c18; border: 1px solid rgba(95,67,39,.18); box-shadow: 0 24px 60px rgba(54,41,28,.12); }
.portfolio-image img { object-position: right center; }
.portfolio-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 48%, rgba(17,14,12,.84)); }
.portfolio-info { color: #fff8ed; }
.portfolio-title { font-family: var(--china-serif); }
.portfolio-desc { color: rgba(255,248,237,.64); }

.stats { background: #9d2c24; color: #fff8ed; }
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .14;
  background: repeating-linear-gradient(135deg, transparent 0 26px, rgba(255,255,255,.17) 27px 28px);
}
.stats-grid { position: relative; width: min(1300px, calc(100% - 44px)); grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat-item { border-color: rgba(255,244,224,.26); }
.stat-number { color: #fff8ed; font-family: var(--china-serif); }
.stat-label { color: rgba(255,248,237,.72); }

.ticker { background: #171411; color: #d7b47d; border-block: 1px solid rgba(215,180,125,.28); }

.cta { background: var(--china-paper); }
.cta-content { width: min(1050px, calc(100% - 44px)); }
.cta-title { color: var(--china-ink); font-size: clamp(48px, 7vw, 100px); }
.cta-desc { color: var(--china-muted); }
.cta-button,
.form-submit {
  color: #fff;
  background: var(--china-red);
  border: 1px solid var(--china-red);
  box-shadow: 0 12px 30px rgba(157,44,36,.2);
}
.cta-button:hover,
.form-submit:hover { background: #7f211b; border-color: #7f211b; }

.modal-overlay { background: rgba(19,16,13,.82); backdrop-filter: blur(12px); }
.modal { color: var(--china-ink); background: #f7f1e7; border: 1px solid rgba(179,138,82,.35); }
.modal-info { background: #201c18; color: #fff8ed; }
.modal-subtitle,
.form-note { color: var(--china-muted); }
.modal-info .modal-subtitle { color: rgba(255,248,237,.62); }
.form-input,
.form-select,
.form-textarea { background: #fffaf2; border-color: rgba(85,63,42,.25); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--china-red); box-shadow: 0 0 0 3px rgba(157,44,36,.1); }

.footer { background: #13110f; color: rgba(255,248,237,.66); border-top: 1px solid rgba(215,180,125,.24); }
.footer-logo { color: #fff8ed; font-family: var(--china-serif); letter-spacing: .14em; }
.footer-links a { color: rgba(255,248,237,.62); }
.footer-links a:hover { color: #d7b47d; }

@media (max-width: 900px) {
  .nav-links { background: rgba(20,18,16,.98); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-item { min-height: auto; }
  .timeline-content { padding-block: 40px; }
  .timeline-image { min-height: 390px; }
}

@media (max-width: 620px) {
  .navbar { padding: 14px 18px; }
  .logo { font-size: 14px; letter-spacing: .1em; }
  .logo::before { width: 26px; height: 26px; margin-right: 8px; }
  .hero-content { padding-inline: 20px; }
  .hero-title { font-size: clamp(54px, 20vw, 88px); }
  .stats-grid { grid-template-columns: 1fr; }
  section:not(.hero) { padding-block: 78px; }
  .section-header,
  .timeline,
  .portfolio-grid,
  .stats-grid,
  .cta-content { width: min(100% - 32px, 1200px); }
  .timeline-image { min-height: 300px; }
  .timeline-title { font-size: 32px; }
}
