/* ===== CSS Variables ===== */
:root {
    --bg: #060a13;
    --bg2: #0c1220;
    --surface: #111a2e;
    --surface-light: #182240;
    --surface-hover: #1e2d52;
    --ink: #e8ecf4;
    --ink-dim: #c0c8d8;
    --muted: #6b7a99;
    --rule: #1e2d4a;
    --accent: #ff0050;
    --accent2: #00f2ea;
    --accent3: #ff6b9d;
    --accent4: #25f4ee;
    --gold: #ffb800;
    --success: #00d26a;
    --purple: #6366f1;
    --gradient-primary: linear-gradient(135deg, #ff0050 0%, #ff6b9d 100%);
    --gradient-secondary: linear-gradient(135deg, #00f2ea 0%, #00a8ff 100%);
    --gradient-dark: linear-gradient(180deg, #060a13 0%, #0c1220 100%);
    --gradient-card: linear-gradient(145deg, #111a2e 0%, #0c1220 100%);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.3), 0 1px 4px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 40px rgba(255,0,80,0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-en: 'Space Grotesk', 'Noto Sans SC', sans-serif;
}
/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-cn);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(255,0,80,0.3); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-light); border-radius: 3px; }
/* ===== Override topbar for landing page ===== */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(6,10,19,0.75) !important;
    backdrop-filter: blur(24px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.2) !important;
    border-bottom: 1px solid rgba(30,45,74,0.4) !important;
    transition: all 0.4s ease;
}
.topbar.scrolled {
    background: rgba(6,10,19,0.95) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.topbar-right a { transition: color 0.2s; }
.topbar-right a:hover { color: var(--accent3) !important; }
/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
/* ===== Hero Section ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 24px 80px; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255,0,80,0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(0,242,234,0.05) 0%, transparent 50%),
        radial-gradient(ellipse 70% 40% at 50% 80%, rgba(99,102,241,0.04) 0%, transparent 50%);
}
.hero-grid {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(30,45,74,0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30,45,74,0.12) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}
.hero-particles {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-particles span {
    position: absolute; width: 2px; height: 2px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    animation: float-particle linear infinite;
}
@keyframes float-particle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}
.hero-content {
    position: relative; z-index: 1; text-align: center; max-width: 860px;
}
.srv-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,0,80,0.08); border: 1px solid rgba(255,0,80,0.2);
    padding: 6px 18px; border-radius: 50px;
    font-size: 0.82rem; font-weight: 500; color: var(--accent3);
    margin-bottom: 28px;
    animation: fadeInDown 0.8s ease;
}
.srv-hero-badge i { font-size: 0.75rem; }
.hero h1 {
    font-family: var(--font-cn); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.2; margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.1s both;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent3) 40%, var(--accent2) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem); color: var(--muted);
    max-width: 640px; margin: 0 auto 40px; line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.srv-hero-actions {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}
.srv-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gradient-primary); color: #fff;
    padding: 14px 32px; border-radius: var(--radius-sm);
    font-size: 0.95rem; font-weight: 600; border: none; cursor: pointer;
    transition: all 0.3s ease; text-decoration: none;
}
.srv-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,0,80,0.4); }
.srv-btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface); color: var(--ink);
    padding: 14px 32px; border-radius: var(--radius-sm);
    font-size: 0.95rem; font-weight: 500;
    border: 1px solid var(--rule); cursor: pointer;
    transition: all 0.3s ease; text-decoration: none;
}
.srv-btn-secondary:hover { background: var(--surface-light); border-color: var(--muted); transform: translateY(-2px); }
.srv-hero-stats {
    display: flex; gap: 48px; justify-content: center; margin-top: 60px;
    animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-stat { text-align: center; }
.hero-stat-num {
    font-family: var(--font-en); font-size: 2rem; font-weight: 700;
    background: linear-gradient(135deg, var(--accent2), var(--accent4));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
/* ===== Section Common ===== */
.section { padding: 100px 0; position: relative; }
.srv-section-header { text-align: center; margin-bottom: 60px; }
.srv-section-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 2px; color: var(--accent2); margin-bottom: 12px;
}
.srv-section-tag::before, .srv-section-tag::after {
    content: ''; width: 20px; height: 1px; background: var(--accent2); opacity: 0.5;
}
.srv-section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800;
    line-height: 1.3; margin-bottom: 16px;
}
.srv-section-desc { font-size: 1rem; color: var(--muted); max-width: 600px; margin: 0 auto; }
/* ===== Why Section ===== */
.why-section { background: var(--bg2); }
.why-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.why-card {
    background: var(--gradient-card); border: 1px solid var(--rule);
    border-radius: var(--radius); padding: 32px;
    transition: all 0.4s ease; position: relative; overflow: hidden;
}
.why-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0; transition: opacity 0.4s ease;
}
.why-card:hover { transform: translateY(-4px); border-color: rgba(255,0,80,0.3); box-shadow: var(--shadow-glow); }
.why-card:hover::before { opacity: 1; }
.why-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 20px;
}
.why-icon.red { background: rgba(255,0,80,0.12); color: var(--accent); }
.why-icon.cyan { background: rgba(0,242,234,0.12); color: var(--accent2); }
.why-icon.purple { background: rgba(99,102,241,0.12); color: var(--purple); }
.why-icon.gold { background: rgba(255,184,0,0.12); color: var(--gold); }
.why-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.why-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
/* ===== Route Section ===== */
.route-tabs {
    display: flex; gap: 8px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap;
}
.route-tab {
    padding: 10px 24px; border-radius: 50px;
    font-size: 0.9rem; font-weight: 500; cursor: pointer;
    background: var(--surface); border: 1px solid var(--rule);
    color: var(--muted); transition: all 0.3s ease;
}
.route-tab:hover { border-color: var(--muted); color: var(--ink); }
.route-tab.active { background: rgba(255,0,80,0.15); border-color: var(--accent); color: var(--accent); }
.route-panel { display: none; }
.route-panel.active { display: block; animation: fadeIn 0.5s ease; }
/* ===== Route Card ===== */
.route-card {
    background: var(--gradient-card); border: 1px solid var(--rule);
    border-radius: var(--radius); overflow: hidden;
    margin-bottom: 32px; transition: all 0.3s ease;
}
.route-card:hover { border-color: rgba(255,0,80,0.2); }
.route-card-header {
    padding: 32px 36px; display: flex; align-items: flex-start; gap: 24px;
    border-bottom: 1px solid var(--rule);
}
.route-card-logo {
    width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.route-card-logo.mq { background: linear-gradient(135deg, rgba(255,0,80,0.15), rgba(255,107,157,0.1)); color: var(--accent); }
.route-card-logo.self { background: linear-gradient(135deg, rgba(0,242,234,0.15), rgba(0,168,255,0.1)); color: var(--accent2); }
.route-card-info { flex: 1; }
.route-card-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.route-card-info .tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.srv-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 500;
}
.srv-tag.red { background: rgba(255,0,80,0.1); color: var(--accent3); }
.srv-tag.cyan { background: rgba(0,242,234,0.1); color: var(--accent2); }
.srv-tag.purple { background: rgba(99,102,241,0.1); color: var(--purple); }
.srv-tag.gold { background: rgba(255,184,0,0.1); color: var(--gold); }
.srv-tag.green { background: rgba(0,210,106,0.1); color: var(--success); }
.route-card-body { padding: 32px 36px; }
.route-card-body p { font-size: 0.92rem; color: var(--ink-dim); line-height: 1.8; margin-bottom: 20px; }
.route-card-body p:last-child { margin-bottom: 0; }
/* ===== Product Grid ===== */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px; margin-top: 28px;
}
.product-card {
    background: var(--surface); border: 1px solid var(--rule);
    border-radius: var(--radius-sm); padding: 24px;
    transition: all 0.3s ease; position: relative;
}
.product-card:hover { border-color: rgba(255,0,80,0.3); transform: translateY(-2px); }
.product-card.featured { border-color: rgba(255,0,80,0.3); }
.product-card.featured::after {
    content: '推荐'; position: absolute; top: -1px; right: 16px;
    background: var(--gradient-primary); color: #fff;
    font-size: 0.7rem; font-weight: 600; padding: 3px 10px;
    border-radius: 0 0 6px 6px;
}
.product-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.product-card .price {
    font-family: var(--font-en); font-size: 1.5rem; font-weight: 700;
    color: var(--accent); margin-bottom: 12px;
}
.product-card .price span { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.product-card ul { list-style: none; }
.product-card ul li {
    font-size: 0.85rem; color: var(--muted); padding: 4px 0;
    display: flex; align-items: center; gap: 8px;
}
.product-card ul li i { color: var(--success); font-size: 0.7rem; }
/* ===== Tip Box ===== */
.tip-box {
    background: var(--surface); border: 1px solid var(--rule);
    border-radius: var(--radius-sm); padding: 24px; margin: 20px 0;
}
.tip-box h4 {
    font-size: 1rem; font-weight: 600; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.tip-box p { font-size: 0.9rem; color: var(--ink-dim); line-height: 1.8; margin: 0; }
/* ===== Steps ===== */
.steps-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px; margin-top: 24px;
}
.step-item {
    background: var(--surface); border-radius: var(--radius-xs);
    padding: 20px; text-align: center;
}
.step-num {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; font-family: var(--font-en); font-weight: 700;
}
.step-num.s1 { background: rgba(255,0,80,0.12); color: var(--accent); }
.step-num.s2 { background: rgba(0,242,234,0.12); color: var(--accent2); }
.step-num.s3 { background: rgba(99,102,241,0.12); color: var(--purple); }
.step-num.s4 { background: rgba(255,184,0,0.12); color: var(--gold); }
.step-item h5 { font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; }
.step-item p { font-size: 0.78rem; color: var(--muted); }
/* ===== Comparison Table ===== */
.srv-compare-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--rule); }
.srv-compare-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.srv-compare-table thead { background: var(--surface); }
.srv-compare-table th {
    padding: 16px 20px; text-align: left; font-weight: 600;
    color: var(--ink); border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.srv-compare-table td { padding: 14px 20px; border-bottom: 1px solid var(--rule); color: var(--ink-dim); }
.srv-compare-table tbody tr { transition: background 0.2s ease; }
.srv-compare-table tbody tr:hover { background: var(--surface); }
.srv-compare-table tbody tr:last-child td { border-bottom: none; }
.srv-compare-table .srv-highlight { color: var(--accent); font-weight: 600; }
/* ===== Server Section ===== */
.server-section { background: var(--bg2); }
.server-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}
.server-card {
    background: var(--gradient-card); border: 1px solid var(--rule);
    border-radius: var(--radius); overflow: hidden;
    transition: all 0.4s ease; position: relative;
}
.server-card:hover { transform: translateY(-4px); border-color: rgba(0,242,234,0.3); box-shadow: 0 0 30px rgba(0,242,234,0.1); }
.server-card-top { padding: 28px 28px 0; display: flex; align-items: center; gap: 16px; }
.server-rank {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-en); font-size: 0.9rem; font-weight: 700; flex-shrink: 0;
}
.server-rank.r1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.server-rank.r2 { background: linear-gradient(135deg, #3b82f6, #60a5fa); color: #fff; }
.server-rank.r3 { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; }
.server-rank.r4 { background: var(--surface-light); color: var(--muted); }
.server-rank.r5 { background: var(--surface-light); color: var(--muted); }
.server-rank.r6 { background: var(--surface-light); color: var(--muted); }
.server-card-top h3 { font-size: 1.15rem; font-weight: 700; }
.server-card-top .server-type { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.server-card-body { padding: 20px 28px 28px; }
.server-card-body p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.server-features { display: flex; flex-wrap: nowrap; gap: 8px; margin-bottom: 20px; }
.server-feat {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 50px; font-size: 0.75rem;
    background: var(--surface); color: var(--ink-dim);
    flex-shrink: 0;
}
.server-feat i { font-size: 0.65rem; }
.server-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent2); font-size: 0.88rem; font-weight: 500;
    transition: gap 0.3s ease;
}
.server-card-link:hover { gap: 10px; }
/* ===== Config Section ===== */
.config-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.config-card {
    background: var(--gradient-card); border: 1px solid var(--rule);
    border-radius: var(--radius); padding: 28px;
    transition: all 0.3s ease;
}
.config-card:hover { border-color: rgba(255,184,0,0.3); transform: translateY(-2px); }
.config-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.config-card-header h3 { font-size: 1.05rem; font-weight: 700; }
.config-level { padding: 4px 12px; border-radius: 50px; font-size: 0.72rem; font-weight: 600; }
.config-level.basic { background: rgba(0,210,106,0.1); color: var(--success); }
.config-level.mid { background: rgba(0,242,234,0.1); color: var(--accent2); }
.config-level.pro { background: rgba(255,184,0,0.1); color: var(--gold); }
.config-level.enterprise { background: rgba(255,0,80,0.1); color: var(--accent); }
.config-specs { list-style: none; }
.config-specs li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 0.85rem;
}
.config-specs li:last-child { border-bottom: none; }
.config-specs li .label { color: var(--muted); }
.config-specs li .value { font-weight: 600; color: var(--ink); font-family: var(--font-en); }
/* ===== Cloud Vendor Section ===== */
.cloud-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.cloud-card {
    background: var(--gradient-card); border: 1px solid var(--rule);
    border-radius: var(--radius); padding: 28px; text-align: center;
    transition: all 0.3s ease;
}
.cloud-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-2px); }
.cloud-logo {
    width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.cloud-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.cloud-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.cloud-card .cloud-note {
    margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule);
    font-size: 0.78rem; color: var(--gold);
}
.cloud-card .cloud-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* ===== Tips Section ===== */
.tips-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.tip-card {
    background: var(--gradient-card); border: 1px solid var(--rule);
    border-radius: var(--radius); padding: 32px;
    display: flex; flex-direction: column;
}
.tip-card h3 {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.1rem; font-weight: 700; margin-bottom: 16px;
}
.tip-card p, .tip-card li { font-size: 0.9rem; color: var(--muted); line-height: 1.8; }
.tip-card ul { list-style: none; }
.tip-card ul li { padding: 6px 0 6px 20px; position: relative; }
.tip-card ul li::before {
    content: ''; position: absolute; left: 0; top: 14px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent2);
}
/* ===== CTA Section ===== */
.cta-section {
    padding: 100px 0; text-align: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255,0,80,0.06) 0%, transparent 60%),
        var(--bg2);
}
.cta-section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 1rem; color: var(--muted); max-width: 500px; margin: 0 auto 36px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* ===== Footer Override ===== */
.footer {
    background: var(--bg) !important;
    border-top: 1px solid var(--rule) !important;
    padding: 48px 0 32px !important;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
/* ===== Animations ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}
.srv-reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.srv-reveal.visible { opacity: 1; transform: translateY(0); }
/* ===== Responsive ===== */
@media (max-width: 768px) {
    .srv-hero-stats { gap: 28px; }
    .route-card-header { flex-direction: column; padding: 24px; }
    .route-card-body { padding: 24px; }
    .server-grid { grid-template-columns: 1fr; }
    .config-grid { grid-template-columns: 1fr; }
    .cloud-grid { grid-template-columns: repeat(2, 1fr); }
    .tips-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .srv-hero-actions { flex-direction: column; align-items: center; }
    .cloud-grid { grid-template-columns: 1fr; }
}
