/* === Shared styles for 英卓提分 website === */
:root {
  --red: #C41E22; --red-deep: #8B1A1C; --red-dark: #5C0F11;
  --gold: #C8A96E; --gold-light: #E8D5B4;
  --ink: #1A1718; --ink-soft: #2D292A;
  --warm: #4A4544; --warm-light: #8C8786;
  --bg-warm: #F5F2ED; --bg-card: #FAF8F5; --white: #FFFFFF; --border: #E5E0D9;
  --font-serif: 'Noto Serif SC', 'STSong', 'SimSun', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --shadow-sm: 0 1px 3px rgba(26,23,24,0.06);
  --shadow-md: 0 4px 24px rgba(26,23,24,0.08);
  --shadow-lg: 0 16px 48px rgba(26,23,24,0.12);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26,23,24,0.12); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(26,23,24,0.25); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); color: var(--ink); background: var(--white); line-height: 1.75; font-size: 16px; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.15; font-weight: 900; }
h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.005em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; }
/* Nav base */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 48px; height: 72px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.88); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid rgba(0,0,0,0.04); }
.nav-logo { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.logo-img { height: 36px; width: auto; display: block; transition: opacity var(--ease); }
.logo-img:hover { opacity: 0.85; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 0.875rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.03em; transition: color var(--ease); position: relative; padding: 4px 0; }
.nav-links a:visited { color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 1.5px; background: var(--red); transition: width var(--ease); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--red); } .nav-links a.active::after { width: 100%; }
.nav-back { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--warm-light); font-size: 0.875rem; font-weight: 500; transition: color var(--ease); }
.nav-back:hover { color: var(--ink); }
.nav-phone { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; color: var(--red); text-decoration: none; letter-spacing: 0.02em; transition: color var(--ease); white-space: nowrap; }
.nav-phone:hover { color: var(--red-deep); }
.nav-right { display: flex; align-items: center; gap: 20px; }
/* Section common */
.section { padding: 80px 48px; position: relative; }
.section-label { font-size: 0.75rem; font-weight: 600; color: var(--red); letter-spacing: 0.14em; margin-bottom: 16px; font-family: var(--font-sans); }
.section-title { margin-bottom: 20px; color: var(--ink); }
.section-desc { font-size: 1.05rem; color: var(--warm); max-width: 560px; line-height: 1.85; }
.container { max-width: 1280px; margin: 0 auto; width: 100%; }
.text-center { text-align: center; } .mx-auto { margin-left: auto; margin-right: auto; }
/* Buttons */
.btn-primary { padding: 14px 36px; background: var(--red); color: white; border: none; border-radius: 10px; font-size: 0.95rem; font-weight: 600; cursor: pointer; font-family: var(--font-sans); letter-spacing: 0.03em; transition: all var(--ease); text-decoration: none; display: inline-block; box-shadow: 0 4px 20px rgba(196,30,34,0.25); position: relative; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%); transform: translateX(-100%); transition: transform 0.6s; }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(196,30,34,0.35); }
/* Wave dividers */
.wave-divider { width: 100%; overflow: hidden; line-height: 0; position: relative; margin-top: -1px; }
.wave-divider svg { width: 100%; height: auto; display: block; }
.wave-divider-bottom { margin-bottom: -1px; }
/* Reveal animation */
.reveal { opacity: 0; transform: translateY(32px); will-change: transform, opacity; transition: opacity 0.8s var(--ease-slow), transform 0.8s var(--ease-slow); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; } .reveal-delay-2 { transition-delay: 0.16s; } .reveal-delay-3 { transition-delay: 0.24s; } .reveal-delay-4 { transition-delay: 0.32s; } .reveal-delay-5 { transition-delay: 0.4s; }
/* Media items */
.media-item { text-align: center; transition: all 0.3s ease; }
.media-item:hover { transform: translateY(-2px); }
.media-logo { display: block; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); letter-spacing: 0.05em; transition: color 0.3s ease; }
.media-item:hover .media-logo { color: var(--red); }
.media-sub { display: block; font-size: 0.72rem; color: var(--warm-light); margin-top: 4px; letter-spacing: 0.04em; }
.media-divider { width: 1px; height: 28px; background: var(--border); }
/* Footer */
.footer { padding: 60px 48px 32px; background: var(--ink); color: rgba(255,255,255,0.45); text-align: center; }
.footer-brand { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer-info { font-size: 0.78rem; line-height: 1.8; }
/* Back to top */
.back-top { text-align: center; padding: 40px 48px; }
.back-top a { text-decoration: none; color: var(--red); font-weight: 600; font-size: 0.9rem; transition: color var(--ease); }
.back-top a:hover { color: var(--red-deep); }
/* Page Hero (sub pages) */
.page-hero { padding: 140px 48px 72px; text-align: center; background: linear-gradient(180deg, var(--bg-warm) 0%, var(--white) 100%); }
.page-hero-label { font-size: 0.75rem; font-weight: 600; color: var(--red); letter-spacing: 0.14em; margin-bottom: 16px; }
.page-hero h1 { margin-bottom: 16px; } .page-hero h1 em, .page-hero h1 span { font-style: normal; color: var(--red); }
.page-hero-desc { font-size: 1.05rem; color: var(--warm); max-width: 560px; margin: 0 auto; line-height: 1.85; }
.page-hero-divider { width: 48px; height: 3px; background: linear-gradient(90deg, var(--red), var(--gold)); margin: 28px auto 0; border-radius: 2px; }
/* Card glass (shared pattern) */
.card-glass { background: rgba(255,255,255,0.65); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(229,224,217,0.6); border-radius: 18px; box-shadow: var(--shadow-sm); transition: all 0.5s var(--ease); }
.card-glass:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(26,23,24,0.14); border-color: transparent; }
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
}
@media (max-width: 768px) {
  .section, .page-hero { padding: 72px 20px; }
  .nav { padding: 0 20px; }
  .nav-phone { font-size: 0.95rem; }
}
