/* =====================================================
   快连 KuaiLian - 全站公共样式
   适用于所有内页的 base 样式 + 通用组件
   ===================================================== */

:root {
    --ink-900: #050b1a;
    --ink-800: #0a1730;
    --ink-700: #102042;
    --ink-600: #1b2f55;
    --aurora-1: #2f7dff;
    --aurora-2: #7e6bff;
    --aurora-3: #27e0c8;
    --aurora-4: #ff5fa2;
    --aurora-5: #ffd23f;
    --warm-1: #ff7a45;
    --paper: #f4f7ff;
    --paper-dim: #cad6ec;
    --line: rgba(120, 160, 240, 0.18);
    --line-strong: rgba(120, 160, 240, 0.32);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-strong: rgba(255, 255, 255, 0.07);
    --shadow-soft: 0 30px 60px -20px rgba(8, 18, 50, 0.5);
    --shadow-glow: 0 0 60px rgba(47, 125, 255, 0.35);
    --radius: 18px;
    --radius-lg: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "PingFang SC", "HarmonyOS Sans", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--ink-900);
    color: var(--paper);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* 背景层 */
.bg-mesh {
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(60% 60% at 12% 8%, rgba(47, 125, 255, 0.28), transparent 60%),
        radial-gradient(50% 50% at 92% 18%, rgba(126, 107, 255, 0.22), transparent 60%),
        radial-gradient(60% 60% at 70% 90%, rgba(39, 224, 200, 0.18), transparent 60%),
        radial-gradient(40% 40% at 30% 80%, rgba(255, 95, 162, 0.16), transparent 60%),
        linear-gradient(180deg, #050b1a 0%, #07112a 100%);
}
.bg-noise {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.7  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.bg-grid {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.18;
    background-image:
        linear-gradient(rgba(120,160,240,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120,160,240,0.18) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 70%);
}

.container { max-width: 1320px; margin: 0 auto; padding: 0 36px; }

/* ===== 导航栏 ===== */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(5, 11, 26, 0.72);
    backdrop-filter: saturate(140%) blur(18px);
    -webkit-backdrop-filter: saturate(140%) blur(18px);
    border-bottom: 1px solid rgba(120, 160, 240, 0.12);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; flex-wrap: wrap; }
.brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.4rem; letter-spacing: 0.5px;
    color: #fff;
}
.brand-mark {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(47, 125, 255, 0.45);
    position: relative;
}
.brand-mark::after {
    content: ""; position: absolute; inset: 0; border-radius: 10px;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.5), transparent 50%);
}
.brand-mark svg { width: 20px; height: 20px; fill: #fff; position: relative; z-index: 1; }
.brand b { color: var(--aurora-3); font-weight: 800; }
.brand small { font-size: 0.7rem; color: var(--paper-dim); margin-left: 4px; letter-spacing: 2px; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a {
    padding: 10px 16px; border-radius: 999px;
    font-size: 0.92rem; color: var(--paper-dim); font-weight: 500;
    transition: all 0.25s ease;
}
.nav-links a:hover { color: #fff; background: rgba(120, 160, 240, 0.08); }
.nav-links a.active { color: #fff; background: rgba(47, 125, 255, 0.18); }
.nav-cta {
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
    color: #fff !important;
    padding: 11px 22px;
    box-shadow: 0 8px 24px rgba(47, 125, 255, 0.4);
    font-weight: 600;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(47, 125, 255, 0.55); }

/* ===== 通用区段 ===== */
section { padding: 80px 0; position: relative; }
.section-head { margin-bottom: 56px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 999px;
    background: rgba(47, 125, 255, 0.12);
    border: 1px solid rgba(47, 125, 255, 0.32);
    color: var(--aurora-3); font-size: 0.8rem; font-weight: 600;
    letter-spacing: 1px;
}
.section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800; line-height: 1.18;
    margin: 18px 0 14px;
    color: #fff;
    letter-spacing: -0.5px;
}
.section-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--aurora-3), var(--aurora-1) 60%, var(--aurora-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-sub {
    color: var(--paper-dim);
    font-size: 1rem; max-width: 720px;
    line-height: 1.75;
}
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 18px 0 0; color: var(--paper-dim);
    font-size: 0.85rem;
}
.breadcrumb a { color: var(--paper-dim); }
.breadcrumb a:hover { color: var(--aurora-3); }
.breadcrumb .sep { margin: 0 8px; color: var(--line-strong); }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 999px;
    font-weight: 600; font-size: 0.98rem; line-height: 1;
    border: none; cursor: pointer; transition: all 0.25s ease;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
    color: #fff;
    box-shadow: 0 12px 32px rgba(47, 125, 255, 0.42);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(47, 125, 255, 0.55); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #fff; border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255,255,255,0.35); }
.btn-outline-blue {
    background: transparent; color: var(--aurora-3);
    border: 1px solid rgba(39, 224, 200, 0.5);
}
.btn-outline-blue:hover { background: rgba(39, 224, 200, 0.12); border-color: var(--aurora-3); }

/* ===== 终端 ===== */
.terminal {
    background: linear-gradient(180deg, rgba(15, 25, 50, 0.95), rgba(8, 18, 42, 0.95));
    border: 1px solid rgba(120, 160, 240, 0.22);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    position: relative;
}
.terminal::before {
    content: ""; position: absolute; inset: -1px; border-radius: 22px;
    background: linear-gradient(135deg, rgba(47, 125, 255, 0.6), transparent 40%, rgba(126, 107, 255, 0.6));
    z-index: -1; filter: blur(20px); opacity: 0.45;
}
.term-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(120, 160, 240, 0.12);
}
.term-bar i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.term-bar i.r { background: #ff5f56; }
.term-bar i.y { background: #ffbd2e; }
.term-bar i.g { background: #27c93f; }
.term-bar .title {
    margin-left: 12px; font-size: 0.78rem; color: var(--paper-dim);
    font-family: "SF Mono", Consolas, "Liberation Mono", monospace;
}
.term-body {
    padding: 22px 22px 26px;
    font-family: "SF Mono", Consolas, "Liberation Mono", monospace;
    font-size: 0.85rem; line-height: 1.85;
    color: #cfd8ec;
    min-height: 280px;
}
.term-body .prompt { color: var(--aurora-3); }
.term-body .path { color: var(--aurora-2); }
.term-body .ok { color: #27e0c8; }
.term-body .warn { color: var(--aurora-5); }
.term-body .muted { color: var(--paper-dim); }
.term-body .accent { color: var(--aurora-1); }
.term-body .caret { display: inline-block; color: var(--aurora-3); animation: blink 1s infinite step-end; }
@keyframes blink { 50% { opacity: 0; } }

/* ===== 套餐卡片（通用） ===== */
.plan-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
    margin-top: 30px;
}
.plan-card {
    background: linear-gradient(180deg, rgba(15, 25, 50, 0.6), rgba(8, 18, 42, 0.6));
    border: 1px solid rgba(120, 160, 240, 0.18);
    border-radius: 24px;
    padding: 36px 30px;
    position: relative;
    transition: all 0.3s ease;
}
.plan-card.featured {
    border-color: rgba(47, 125, 255, 0.5);
    background: linear-gradient(180deg, rgba(47, 125, 255, 0.08), rgba(126, 107, 255, 0.04));
    box-shadow: 0 30px 60px -20px rgba(47, 125, 255, 0.35);
}
.plan-card.featured::before {
    content: "推荐"; position: absolute;
    top: -12px; right: 24px;
    padding: 4px 14px; border-radius: 999px;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
    color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-name { font-size: 1.05rem; color: var(--aurora-3); font-weight: 600; margin-bottom: 8px; letter-spacing: 1px; }
.plan-card h3 { font-size: 1.6rem; color: #fff; font-weight: 800; margin-bottom: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.plan-price b {
    font-size: 2.6rem; font-weight: 800;
    background: linear-gradient(135deg, #fff, #cfd8ec);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plan-price s { color: var(--paper-dim); font-size: 0.95rem; }
.plan-period { font-size: 0.85rem; color: var(--paper-dim); margin-bottom: 22px; }
.plan-features { list-style: none; margin: 18px 0 24px; }
.plan-features li {
    padding: 8px 0; color: var(--paper-dim); font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px;
}
.plan-features li i { color: var(--aurora-3); }
.plan-cta {
    display: block; width: 100%;
    padding: 13px; border-radius: 999px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(120, 160, 240, 0.32);
    color: #fff; font-weight: 600;
    transition: all 0.3s;
}
.plan-cta:hover { background: rgba(120, 160, 240, 0.16); border-color: var(--aurora-1); }
.plan-card.featured .plan-cta {
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(47, 125, 255, 0.4);
}

/* ===== FAQ 步骤问答 ===== */
.faq-list { display: grid; gap: 16px; max-width: 980px; margin: 30px auto 0; }
.faq-item {
    background: linear-gradient(180deg, rgba(15, 25, 50, 0.55), rgba(8, 18, 42, 0.55));
    border: 1px solid rgba(120, 160, 240, 0.18);
    border-radius: 18px;
    padding: 22px 24px;
    transition: all 0.3s ease;
    display: grid; grid-template-columns: 90px 1fr; gap: 22px;
    align-items: flex-start;
}
.faq-item:hover { border-color: rgba(47, 125, 255, 0.45); }
.faq-step {
    display: flex; flex-direction: column; align-items: center;
    padding: 12px 8px;
    background: linear-gradient(135deg, rgba(47, 125, 255, 0.18), rgba(126, 107, 255, 0.12));
    border-radius: 14px;
    border: 1px solid rgba(47, 125, 255, 0.32);
}
.faq-step .step-tag {
    font-size: 0.68rem; color: var(--aurora-3); font-weight: 700;
    letter-spacing: 1px;
}
.faq-step .step-num {
    font-family: "SF Mono", Consolas, monospace;
    font-size: 2.2rem; font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, #fff, var(--aurora-3));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-top: 6px;
}
.faq-content h4 {
    font-size: 1.1rem; color: #fff; font-weight: 700; margin-bottom: 8px;
    line-height: 1.45;
}
.faq-content p { color: var(--paper-dim); font-size: 0.95rem; line-height: 1.8; }

/* ===== 页脚 ===== */
.footer {
    background: linear-gradient(180deg, rgba(5, 11, 26, 0.4), rgba(5, 11, 26, 0.95));
    border-top: 1px solid rgba(120, 160, 240, 0.16);
    padding: 60px 0 28px;
    position: relative;
}
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 36px;
    margin-bottom: 36px;
}
.footer h5 {
    color: #fff; font-size: 0.95rem; font-weight: 700;
    margin-bottom: 16px; letter-spacing: 0.5px;
}
.footer p, .footer li { color: var(--paper-dim); font-size: 0.85rem; line-height: 1.85; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 6px; }
.footer ul li a:hover { color: var(--aurora-3); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.footer-brand span { color: #fff; font-weight: 800; font-size: 1.2rem; }
.footer-brand small { color: var(--aurora-3); margin-left: 6px; font-size: 0.7rem; }
.footer-last-update {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 999px;
    background: rgba(39, 224, 200, 0.1);
    border: 1px solid rgba(39, 224, 200, 0.32);
    color: var(--aurora-3); font-size: 0.78rem;
    margin: 14px 0;
}
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(120, 160, 240, 0.16);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 14px;
    font-size: 0.8rem; color: var(--paper-dim);
}
.footer-bottom .footer-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.footer-bottom .footer-meta .dot { color: var(--line-strong); }
.footer-bottom .footer-update { color: var(--aurora-3); }
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-bottom .links a:hover { color: var(--aurora-3); }

/* ===== 滚动渐入动画 ===== */
.reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
    .plan-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    section { padding: 56px 0; }
    .nav-inner { flex-direction: column; }
    .nav-links { gap: 4px; justify-content: center; }
    .nav-links a { padding: 8px 12px; font-size: 0.85rem; }
    .plan-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .term-body { min-height: 240px; font-size: 0.78rem; }
    .faq-item { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .footer-grid { grid-template-columns: 1fr; }
    .plan-card { padding: 22px 18px; }
}