/* ═══════════════════════════════════════
   大鱼致远 — Shared Stylesheet
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,500;0,9..40,700;1,9..40,400&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg:       #05070F;
  --bg2:      #080C18;
  --bg3:      #0C1120;
  --surface:  #111827;
  --surface2: #192032;
  --border:   rgba(255,255,255,0.07);
  --border-b: rgba(59,158,255,0.22);
  --text:     #E8EDF5;
  --muted:    #7A8BA4;
  --dim:      #3D4F66;
  --accent:   #3B9EFF;
  --teal:     #00E5C3;
  --orange:   #FF6B35;
  --gold:     #F5A623;
  --purple:   #9B6DFF;
  --red:      #FF4C6A;
  --grad-a:   linear-gradient(135deg, var(--accent), var(--teal));
  --grad-b:   linear-gradient(135deg, var(--purple), var(--accent));
  --font-body: 'Noto Sans SC', 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-disp: 'DM Sans', 'Noto Sans SC', sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* NOISE */
body::before {
  content: '';
  position: fixed; inset: 0;
  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='0.025'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999;
}

/* ─ TYPOGRAPHY ─ */
h1,h2,h3,h4,h5 { font-family: var(--font-body); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); font-weight: 900; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p  { color: var(--muted); line-height: 1.8; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.grad-text {
  color: transparent;
  background: var(--grad-a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─ LAYOUT ─ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.section   { padding: 6rem 0; position: relative; }

/* ─ GLOW DIVIDER ─ */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, var(--teal) 70%, transparent 100%);
  opacity: 0.18;
}

/* ─ BUTTONS ─ */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: 0.875rem;
  text-decoration: none; cursor: pointer;
  transition: all 0.25s; border: none;
  font-family: var(--font-body); white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 24px rgba(59,158,255,0.28);
}
.btn-primary:hover { background: #5ab2ff; box-shadow: 0 0 40px rgba(59,158,255,0.5); transform: translateY(-1px); }

.btn-teal {
  background: linear-gradient(135deg, var(--teal), #00C4A7);
  color: #001a16; font-weight: 700;
  box-shadow: 0 0 24px rgba(0,229,195,0.25);
}
.btn-teal:hover { box-shadow: 0 0 44px rgba(0,229,195,0.45); transform: translateY(-2px); }

.btn-ghost {
  color: var(--muted); background: transparent;
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); }

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 10px; }

/* ─ NAV ─ */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 64px;
  backdrop-filter: blur(24px) saturate(1.4);
  background: rgba(5,7,15,0.82);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.site-nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.5); }

.nav-logo {
  font-weight: 900; font-size: 1.25rem;
  letter-spacing: -0.02em; color: var(--text);
  text-decoration: none; display: flex; align-items: center; gap: 0.2rem;
  flex-shrink: 0;
}
.nav-logo em { font-style: normal; color: var(--accent); }

.nav-center {
  display: flex; align-items: center; gap: 0.1rem;
  list-style: none;
}
.nav-center > li { position: relative; }
.nav-center a {
  color: var(--muted); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  padding: 0.4rem 1.2rem; border-radius: 6px;
  display: flex; align-items: center; gap: 0.3rem;
  transition: all 0.2s;
}
.nav-center a:hover, .nav-center a.active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-center a.active { color: var(--accent); }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.5rem;
  min-width: 200px;
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all 0.2s;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.nav-center li:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.8rem; border-radius: 8px;
  color: var(--muted); font-size: 0.85rem;
  background: none;
}
.nav-dropdown a:hover { background: var(--surface2); color: var(--text); }
.nav-dropdown .dd-icon {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.dd-sep { height: 1px; background: var(--border); margin: 0.35rem 0.4rem; }

.nav-right { display: flex; gap: 0.6rem; align-items: center; }

/* Mobile hamburger */
.nav-mobile-btn { display: none; }

/* ─ PAGE HERO (sub-pages) ─ */
.page-hero {
  padding: 9rem 0 5rem;
  position: relative; overflow: hidden;
  background: var(--bg2);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 0% 50%, rgba(59,158,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 50% 60% at 100% 20%, rgba(0,229,195,0.05) 0%, transparent 55%);
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59,158,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,158,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 0%, transparent 100%);
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero .eyebrow { margin-bottom: 0.75rem; display: block; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p.lead {
  font-size: 1.1rem; color: var(--muted);
  max-width: 560px; line-height: 1.8;
  margin-bottom: 2rem;
}

/* ─ SECTION HEADER ─ */
.sec-head { text-align: center; margin-bottom: 3.5rem; }
.sec-head .eyebrow { margin-bottom: 0.6rem; display: block; }
.sec-head h2 { margin-bottom: 0.9rem; }
.sec-head p { max-width: 520px; margin: 0 auto; font-size: 1.05rem; }

/* ─ CARDS ─ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-b);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(59,158,255,0.1);
}
.card::after {
  content: '';  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59,158,255,0.05), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover::after { opacity: 1; }

/* ─ BADGE ─ */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(0,229,195,0.1); border: 1px solid rgba(0,229,195,0.22);
  color: var(--teal); border-radius: 100px;
  padding: 0.25rem 0.75rem; font-size: 0.72rem;
  font-weight: 700; font-family: var(--font-mono);
  letter-spacing: 0.08em; text-decoration: none;
}
.badge.orange { background: rgba(255,107,53,0.1); border-color: rgba(255,107,53,0.22); color: var(--orange); }
.badge.gold   { background: rgba(245,166,35,0.1);  border-color: rgba(245,166,35,0.22);  color: var(--gold); }
.badge.purple { background: rgba(155,109,255,0.1); border-color: rgba(155,109,255,0.22); color: var(--purple); }
.badge.red    { background: rgba(255,76,106,0.1);  border-color: rgba(255,76,106,0.22);  color: var(--red); }

/* ─ STAT BOX ─ */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.stat-box  { background: var(--surface); padding: 2rem 1.5rem; position: relative; }
.stat-box::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 36px; background: linear-gradient(var(--accent), transparent); border-radius: 2px; }
.stat-num  { font-family: var(--font-disp); font-size: 2.4rem; font-weight: 900; letter-spacing: -0.03em; color: var(--text); line-height: 1; margin-bottom: 0.25rem; }
.stat-num span { color: var(--accent); }
.stat-lbl  { font-size: 0.82rem; color: var(--muted); }

/* ─ FOOTER ─ */
footer.site-footer {
  background: var(--bg); border-top: 1px solid var(--border); padding: 4.5rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.875rem; color: var(--muted); max-width: 260px; line-height: 1.8; margin: 0.75rem 0 1.25rem; }
.footer-col h5 { font-size: 0.78rem; font-weight: 700; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.1rem; font-family: var(--font-mono); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.55rem; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p, .footer-bottom a { font-size: 0.8rem; color: var(--dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--muted); }

/* ─ ANIMATIONS ─ */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse  { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.8); } }
@keyframes marquee { from { transform:translateX(0); } to { transform:translateX(-50%); } }

.anim-up { opacity:0; transform:translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.anim-up.visible { opacity:1; transform:translateY(0); }

/* Stagger helper classes */
.d1 { transition-delay: 0.1s !important; }
.d2 { transition-delay: 0.2s !important; }
.d3 { transition-delay: 0.3s !important; }
.d4 { transition-delay: 0.4s !important; }

/* ─ RESPONSIVE ─ */
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-center { display: none; }
  .nav-mobile-btn { display: flex; }
  h1 { font-size: 2.4rem; }
  .section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
.nav-badge{background:rgba(249,115,22,0.15);border:1px solid rgba(249,115,22,0.3);color:#fb923c!important;padding:2px 8px !important;border-radius:100px !important;font-size:11px!important;font-family:var(--font-en)!important;letter-spacing:1px!important;margin-left:-4px}
