/* ═══════════════════════════════════════
   筑美海参 · 东方奢华 Design System
   Shared styles across all pages
   ═══════════════════════════════════════ */

:root {
  --gold: #c4a35a;
  --gold-light: #d4b96a;
  --gold-dark: #a08535;
  --gold-glow: rgba(196, 163, 90, 0.15);
  --gold-faint: rgba(196, 163, 90, 0.06);
  --ink: #1a1008;
  --ink-light: #2a1f14;
  --ink-card: #221a10;
  --ink-border: #3d2e1f;
  --ink-elevated: #302418;
  --cream: #f5f0e8;
  --cream-dim: rgba(245, 240, 232, 0.06);
  --text-primary: #f5f0e8;
  --text-secondary: rgba(245, 240, 232, 0.6);
  --text-dim: rgba(245, 240, 232, 0.35);
  --serif: 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', serif;
  --sans: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Menlo', monospace;
  --max-width: 1280px;
  --nav-height: 76px;
  --section-padding: 120px;
  --section-padding-mobile: 80px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ─── Typography ─── */
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.3; text-wrap: pretty; }
p { text-wrap: pretty; }

.section { padding: var(--section-padding) 60px; max-width: var(--max-width); margin: 0 auto; }
.section-full { padding: var(--section-padding) 60px; }
.section-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

/* ─── Decorative divider with gold dot ─── */
.divider {
  width: 60px; height: 1px;
  background: var(--gold-dark);
  margin: 40px 0;
  position: relative;
}
.divider::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.divider-center { margin-left: auto; margin-right: auto; }

/* ─── Buttons ─── */
.btn-gold {
  display: inline-block;
  padding: 14px 40px;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px; font-weight: 500;
  letter-spacing: 1px;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--sans);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(196,163,90,0.2); }
.btn-gold:active { transform: translateY(0); }

.btn-outline {
  display: inline-block;
  padding: 14px 40px;
  background: transparent;
  color: var(--gold);
  font-size: 14px; font-weight: 400;
  letter-spacing: 1px;
  text-decoration: none;
  border: 1px solid var(--gold-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--sans);
}
.btn-outline:hover { background: var(--gold-glow); border-color: var(--gold); }
.btn-outline:active { background: var(--gold-glow); }

.btn-sm { padding: 10px 24px; font-size: 13px; }

/* ─── Navigation ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 60px;
  background: linear-gradient(to bottom, rgba(26,16,8,0.95), rgba(26,16,8,0.6));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ink-border);
  transition: all 0.4s ease;
}
.nav.scrolled {
  padding: 14px 60px;
  background: rgba(26,16,8,0.98);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 36px; width: auto;
  filter: brightness(1.1) contrast(1.05);
}
.nav-logo-text {
  font-family: var(--serif);
  font-size: 18px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 14px; font-weight: 400;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }
.nav-phone {
  color: var(--gold); font-size: 14px;
  letter-spacing: 0.5px;
  border: 1px solid var(--gold-dark);
  padding: 8px 20px; border-radius: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.nav-phone:hover { background: var(--gold); color: var(--ink); }

/* ─── Mobile hamburger ─── */
.nav-mobile-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
  z-index: 200;
}
.nav-mobile-btn span {
  display: block; width: 24px; height: 1.5px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-mobile-btn.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-mobile-btn.active span:nth-child(2) { opacity: 0; }
.nav-mobile-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* ─── Mobile menu overlay ─── */
.mobile-menu-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(26,16,8,0.97);
  backdrop-filter: blur(30px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu-overlay.open {
  opacity: 1; pointer-events: all;
}
.mobile-menu-overlay a {
  font-family: var(--serif);
  font-size: 28px; font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.3s ease, transform 0.3s ease;
  transform: translateY(12px);
}
.mobile-menu-overlay.open a {
  transform: translateY(0);
}
.mobile-menu-overlay a:hover { color: var(--gold); }
.mobile-menu-overlay .mobile-phone {
  font-size: 14px;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  padding: 10px 24px;
  text-decoration: none;
  margin-top: 16px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
.mobile-menu-overlay .mobile-phone:hover {
  background: var(--gold);
  color: var(--ink);
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--ink-border);
  padding: 80px 60px 40px;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}
.footer-brand-name {
  font-family: var(--serif);
  font-size: 20px; font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-brand-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}
.footer-heading {
  font-size: 12px; font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-width); margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--ink-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 12px; color: var(--text-dim); }
.footer-icp { font-size: 12px; color: var(--text-dim); }

/* ─── Card patterns ─── */
.card {
  border: 1px solid var(--ink-border);
  background: var(--cream-dim);
  transition: all 0.4s ease;
}
.card:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--gold-glow);
}

/* ─── Page Hero (subpages) ─── */
.page-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, var(--gold-glow), transparent 60%);
}
.page-hero .section-label,
.page-hero .section-title,
.page-hero .section-desc { position: relative; z-index: 1; }
.page-hero .section-desc { margin: 0 auto; }

/* ─── Placeholder ─── */
.placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 1px;
  gap: 8px;
}
.placeholder .icon { font-size: 40px; color: var(--gold-dark); opacity: 0.3; }
.placeholder .hint { font-size: 10px; opacity: 0.5; }

/* ─── Scroll reveal animation ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="fade"] {
  transform: none;
}
[data-reveal="scale"] {
  transform: scale(0.95);
}
[data-reveal="scale"].revealed {
  transform: scale(1);
}

/* Stagger children */
[data-reveal-stagger] > [data-reveal] {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-mobile-btn { display: flex; }
  .section { padding: var(--section-padding-mobile) 24px; }
  .section-full { padding: var(--section-padding-mobile) 24px; }
  .footer { padding: 60px 24px 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .page-hero { padding-top: calc(var(--nav-height) + 48px); padding-bottom: 48px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
