/* ==========================================================================
   1. GLOBAL DESIGN TOKENS (统一的系统变量)
========================================================================== */
:root {
    /* Layout & Cards */
    --card-radius: 20px;
    --card-border: 1px solid #e2e8f0;
    --card-bg: #ffffff;
    --section-bg-light: #f8fafc;
    --line: #e2e8f0;
    
    /* System Colors */
    --primary-orange: #f97316;
    --orange-hover: #ea580c;
    --accent-cyan: #22d3ee;
    --bg-navy: #050a16;
    --text-main: #0b1220;
    --text-muted: #64748b;

    /* 🔥 必须补回的霓虹灯变量 (修复 5 Divisions 图标) */
    --neon-red: #ef4444;
    --neon-blue: #3b82f6;
    --neon-purple: #a855f7;
    --neon-indigo: #6366f1;
    --neon-pink: #ec4899;

    /* Global Buttons */
    --btn-radius: 14px;
    --btn-pad-y: 1.05rem;
    --btn-pad-x: 1.1rem;
    --btn-font: 1.02rem;
}
/* ==========================================================================
   2. GLOBAL RESET (全局重置)
========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   3. HEADER & NAVIGATION (顶部导航栏系统)
========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.transparent {
    background: transparent;
    padding: 1.5rem 0;
}

/* 页面往下滑动时的毛玻璃深色背景 */
.site-header.scrolled {
    background: rgba(5, 10, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.brand-logo a { text-decoration: none; display: flex; align-items: baseline; }
.logo-text { font-size: 1.5rem; font-weight: 900; color: #ffffff; letter-spacing: -0.5px; }
.logo-dot { color: var(--primary-orange); font-size: 1.5rem; font-weight: 900; }

/* Desktop Navigation */
.nav-links { list-style: none; display: flex; gap: 2.5rem; margin: 0; padding: 0; align-items: center; }
.nav-link { color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-link:hover { color: #ffffff; }

/* Mega Menu Dropdown */
.has-dropdown { position: relative; padding: 10px 0; cursor: pointer; }
.dropdown-arrow { font-size: 0.7rem; margin-left: 4px; display: inline-block; transition: transform 0.2s; }
.mega-menu {
    position: absolute; top: 100%; left: -150px; width: 560px;
    background: #ffffff; border-radius: 16px; padding: 1.5rem;
    opacity: 0; visibility: hidden; transform: translateY(15px);
    transition: all 0.25s ease;
    box-shadow: 0 24px 50px rgba(0,0,0,0.15); border: 1px solid #e2e8f0;
}
.has-dropdown:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.mega-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
/* 菜单内的小卡片 */
.mega-card {
    text-decoration: none;
    padding: 1.2rem; /* 稍微加大一点内边距，让卡片更饱满 */
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid transparent;
    transition: all 0.2s;
    display: flex;          /* 新增：使用 Flex 布局 */
    align-items: center;    /* 新增：绝对垂直居中 */
}
.mega-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.05);
    transform: translateY(-2px);
}
.mega-card h4 {
    margin: 0; /* 新增：去掉了原本底部的 margin，保证居中 */
    font-size: 1.1rem; /* 稍微放大一点字号 */
    color: #0f172a;
    font-weight: 800;
}
/* 因为删除了 <p>，所以不需要 p 的样式了 */

.mega-menu-footer {
    margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.9rem; font-weight: 700; color: #64748b;
}
.text-orange { color: var(--primary-orange); text-decoration: none; font-weight: 800; }
.text-orange:hover { color: var(--orange-hover); text-decoration: underline; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.login-link { color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.login-link:hover { color: #ffffff; }
.btn-primary-orange {
    background: var(--primary-orange); color: #ffffff;
    padding: 0.6rem 1.4rem; border-radius: 99px;
    font-weight: 750; font-size: 0.9rem; text-decoration: none;
    transition: background 0.2s, transform 0.2s; box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}
.btn-primary-orange:hover { background: var(--orange-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3); }

/* ==========================================================================
   4. GLOBAL UI COMPONENTS (全站通用的卡片与按钮基建)
========================================================================== */
/* ==========================================================================
   🔥 替换为 Playbook 同款的高级顶部渐变线 (Built for scale 白卡使用)
========================================================================== */
.gradient-border-card {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--card-radius);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 极其重要：确保顶部的渐变线不会超出卡片的圆角 */
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

/* 顶部的 3px 隐藏渐变线 */
.gradient-border-card::before {
    content: "";
    position: absolute; 
    left: 0; right: 0; top: 0;
    height: 3px;
    background: linear-gradient(90deg,
        rgba(34, 211, 238, 0.0),
        rgba(34, 211, 238, 0.55),
        rgba(249, 115, 22, 0.45),
        rgba(249, 115, 22, 0.0)
    );
    opacity: 0;
    transition: opacity 0.26s ease;
}

/* 悬停时的克制发光与上浮 */
.gradient-border-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 56px rgba(2, 6, 23, 0.07);
    border-color: rgba(34, 211, 238, 0.26); /* 边框微微泛起青色 */
}

/* 悬停时点亮顶部渐变线 */
.gradient-border-card:hover::before {
    opacity: 1;
}

.system-card {
    background: var(--card-bg); border: var(--card-border); border-radius: var(--card-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative; display: flex; flex-direction: column;
}
.system-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08); border-color: rgba(34, 211, 238, 0.5); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: none; border-radius: var(--btn-radius); padding: var(--btn-pad-y) var(--btn-pad-x);
    font-size: var(--btn-font); font-weight: 850; cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
    text-decoration: none; user-select: none; white-space: nowrap;
}
.btn--dark { background: #0b1220; color: #fff; }
.btn--dark:hover { background: var(--primary-orange); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(249, 115, 22, 0.20); }
.btn--ghost { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.btn--ghost:hover { background: #e2e8f0; color: #0f172a; transform: translateY(-1px); }
.btn--primary { background: var(--primary-orange); color: #fff; box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25); }
.btn--primary:hover { background: var(--orange-hover); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(249, 115, 22, 0.35); }

.section-kicker {
    display: inline-flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 750;
    letter-spacing: 0.25px; color: var(--text-main); padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: #ffffff; margin-bottom: 1.5rem; text-transform: uppercase;
}
.section-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14); }

/* 你的其他 global css 比如 gradient-border-card 等请继续保留在下面... */

.loop-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 800;
    color: rgba(226, 232, 240, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(2, 6, 23, 0.25);
    padding: 8px 14px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    margin-bottom: 1.5rem;
}

.loop-kicker .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
}

/* Action Links */
.action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #0b1220;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s, color 0.2s;
    margin-top: auto;
}

.action-link i {
    transition: transform 0.2s ease;
    width: 18px;
}

.action-link:hover {
    opacity: 1;
    color: var(--primary-orange);
}

.action-link:hover i {
    transform: translateX(4px);
}

