:root {
  /* Brand palette: orange #e85d20 + teal #1ecfbf */
  --bg-deep:     #07091a;
  --bg-mid:      #0d1230;
  --bg-card:     #111830;
  --red:         #e85d20;
  --red-bright:  #ff6d30;
  --red-dim:     #a03c10;
  --blue:        #0d7a73;
  --blue-bright: #1ecfbf;
  --blue-dim:    #0a4f4b;
  --yellow:      #e8d420;
  --yellow-bright: #ffea00;
  --yellow-dim:  #a89b10;
  --text-hi:     #f0efea;
  --text-md:     #9eabc4;
  --text-lo:     #4a5878;
  --border:      rgba(255,255,255,0.07);

  /* Unified Spacing System */
  --space-hero-y: clamp(6rem, 12vw, 10rem);
  --space-section-y: clamp(4rem, 8vw, 7rem);
  --container-px: 5%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; scroll-padding-top: 80px; }

body {
  background: var(--bg-deep);
  color: var(--text-hi);
  font-family: 'IBM Plex Sans', 'Noto Serif SC', sans-serif;
  line-height: 1.7;
  letter-spacing: 0.04em;
  overflow-x: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

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

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

.container {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--container-px);
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
/* ... rest of nav ... */
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { width: auto; height: 40px; object-fit: contain; }
.nav-logo-text { font-family: 'Noto Serif SC'; font-size: 0.88rem; line-height: 1.4; color: #1a1a1a; }
.nav-logo-text strong { color: #1a1a1a; font-weight: 700; }
.nav-logo-text span { color: #666; font-size: 0.7rem; letter-spacing: 0.06em; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { text-decoration: none; font-size: 0.82rem; color: #666; letter-spacing: 0.04em; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-cta:not(.nav-cta-mobile), .nav-links a.nav-cta:not(.nav-cta-mobile) {
  background: var(--red); color: #fff; border: none;
  padding: 0.5rem 1.4rem; border-radius: 4px;
  font-size: 0.82rem; cursor: pointer; letter-spacing: 0.03em;
  transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none; display: inline-block;
}
/* 移动端菜单内按钮单独处理，避免被上方规则强制 display:inline-block */
.nav-links a.nav-cta.nav-cta-mobile {
  background: var(--red); color: #fff; border: none;
  padding: 0.5rem 1.4rem; border-radius: 4px;
  font-size: 0.82rem; cursor: pointer; letter-spacing: 0.03em;
  transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.nav-cta:hover { background: var(--red-bright); box-shadow: 0 0 22px rgba(232,93,32,0.5); }

/* Hamburger menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #666;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── SECTION COMMON ─── */
.section { padding: var(--space-section-y) 0; position: relative; z-index: 1; }
.section-divider { text-align: center; padding: var(--space-section-y) var(--container-px) 2.5rem; }
.section-divider .label {
  font-family: 'IBM Plex Mono'; font-size: 0.67rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-lo); display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.3rem;
}
.section-divider .label::before, .section-divider .label::after { content: ''; flex: 0 0 80px; height: 1px; background: var(--border); }
.section-divider h2 {
  font-family: 'Noto Serif SC'; font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 600; line-height: 1.3; margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #7abfbb 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-divider p { max-width: 600px; margin: 0 auto; color: var(--text-md); font-size: 0.95rem; }

/* ─── BUTTONS ─── */
.btn-primary { background: var(--red); color: #fff; padding: 0.85rem 2.2rem; border-radius: 4px; text-decoration: none; font-size: 0.88rem; letter-spacing: 0.04em; display: inline-block; transition: all 0.22s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--red-bright); box-shadow: 0 0 28px rgba(232,93,32,0.5); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue-bright); border: 1px solid var(--blue-dim); padding: 0.85rem 2.2rem; border-radius: 4px; text-decoration: none; font-size: 0.88rem; letter-spacing: 0.04em; display: inline-block; transition: all 0.22s; cursor: pointer; }
.btn-ghost:hover { border-color: var(--blue-bright); box-shadow: 0 0 22px rgba(30,207,191,0.25); transform: translateY(-1px); }

/* ─── CARDS ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-4px); }
.badge {
  display: inline-block;
  font-family: 'IBM Plex Mono';
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-bright);
  background: rgba(30,207,191,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.card h3 { font-family: 'Noto Serif SC'; font-size: 1.25rem; margin-bottom: 0.8rem; color: #fff; }
.card p { font-size: 0.9rem; color: var(--text-md); line-height: 1.6; }

/* ─── FADE UP ANIMATION ─── */
@keyframes fadeup-fallback { to { opacity: 1; transform: translateY(0); } }
.fade-up { opacity: 0; transform: translateY(28px); animation: fadeup-fallback 0.5s ease 2s both; transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); animation: none; }

/* 菜单内的移动端预约按钮：桌面隐藏 */
.nav-cta-mobile { display: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 1.5rem 5%; border-top: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); gap: 1.2rem;
  }
  .nav-toggle { display: flex; }
  /* 隐藏导航栏右侧的独立按钮，改为菜单内展示 */
  .nav-cta:not(.nav-cta-mobile) { display: none; }
  .nav-cta-mobile { display: inline-block; margin-top: 0.4rem; align-self: flex-start; }
}
