/* ==========================================================================
   快连 · 全站样式
   ========================================================================== */

:root {
    --brand: #2f6bff;
    --brand-dark: #1d4ed8;
    --brand-ink: #0f2b6b;
    --accent: #06b6d4;
    --success: #16a34a;
    --success-soft: #dcfce7;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-soft: #eef2f7;
    --bg: #ffffff;
    --bg-soft: #f6f8fc;
    --radius: 14px;
    --radius-sm: 9px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, .14);
    --container: 1120px;
    --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; border-radius: var(--radius-sm); border: 1px solid transparent;
    cursor: pointer; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: rgba(47, 107, 255, .06); }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-light:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-lg { padding: 13px 26px; font-size: 16px; }

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line-soft);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 40px; width: auto; display: block; }
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a { padding: 8px 13px; border-radius: var(--radius-sm); color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.header-nav a:hover { color: var(--brand); text-decoration: none; background: rgba(47, 107, 255, .06); }
.header-nav a[aria-current="page"] { color: var(--brand); font-weight: 600; background: rgba(47, 107, 255, .06); }
.btn-download-header {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 22px; border-radius: 999px; background: var(--brand); color: #fff;
    font-weight: 600; font-size: 14px; white-space: nowrap;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-download-header:hover { text-decoration: none; background: var(--brand-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 9px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
    background:
        radial-gradient(1000px 500px at 85% -10%, rgba(6, 182, 212, .14), transparent 60%),
        radial-gradient(800px 500px at 0% 0%, rgba(47, 107, 255, .12), transparent 55%), var(--bg);
    padding: 72px 0 64px; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badge { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand); background: rgba(47, 107, 255, .1); border: 1px solid rgba(47, 107, 255, .18); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); margin-bottom: 18px; color: var(--ink); }
.hero-lead { font-size: 17px; color: var(--ink-soft); max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-platforms { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.hero-platforms li { display: inline-flex; align-items: center; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-soft); background: #fff; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual img { width: 100%; max-width: 560px; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.hero-highlight { font-style: normal; background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.status-text { font-size: 14px; font-weight: 600; color: var(--success); }

.section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 16px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(47, 107, 255, .1); color: var(--brand); font-size: 22px; margin-bottom: 18px; }
.card-title { font-size: 18px; margin-bottom: 8px; }
.card-desc { color: var(--ink-soft); font-size: 15px; margin-bottom: 6px; }
.card-value { color: var(--muted); font-size: 14px; }

.step-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.step-body h3 { font-size: 17px; margin-bottom: 6px; }
.step-body p { color: var(--muted); font-size: 14px; }

.deep-list { display: flex; flex-direction: column; gap: 40px; }
.deep-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.deep-row.is-reverse .deep-copy { order: 2; }
.deep-row.is-reverse .deep-visual { order: 1; }
.deep-copy h3 { font-size: 22px; margin-bottom: 10px; }
.deep-copy p { color: var(--ink-soft); }
.deep-visual { display: flex; justify-content: center; align-items: center; min-height: 180px; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); }
.mock { position: relative; width: 100%; height: 100%; min-height: 180px; display: flex; align-items: center; justify-content: center; }
.mock-routing .mock-line { position: absolute; top: 50%; left: 15%; right: 15%; height: 2px; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 2px; }
.mock-node { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.mock-node.n1 { top: 50%; left: 15%; transform: translate(-50%, -50%); }
.mock-node.n2 { top: 30%; left: 45%; transform: translate(-50%, -50%); border-color: var(--accent); }
.mock-node.n3 { top: 70%; left: 60%; transform: translate(-50%, -50%); border-color: var(--accent); }
.mock-node.n4 { top: 50%; left: 85%; transform: translate(-50%, -50%); }
.mock-status { flex-direction: column; gap: 14px; }
.mock-status .status-dot { width: 14px; height: 14px; }
.mock-bars { display: flex; align-items: flex-end; gap: 5px; height: 40px; }
.mock-bars i { width: 8px; border-radius: 3px; background: var(--brand); }
.mock-bars i:nth-child(1) { height: 12px; }
.mock-bars i:nth-child(2) { height: 22px; }
.mock-bars i:nth-child(3) { height: 34px; }
.mock-bars i:nth-child(4) { height: 26px; }
.mock-bars i:nth-child(5) { height: 18px; }
.mock-config { flex-direction: column; gap: 10px; }
.cfg { width: 180px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 14px; color: var(--ink-soft); text-align: center; }
.cfg.is-on { border-color: var(--brand); background: rgba(47, 107, 255, .06); color: var(--brand); font-weight: 600; }
.mock-security { flex-direction: column; gap: 12px; }
.shield { font-size: 40px; line-height: 1; }
.shield-label { font-size: 14px; color: var(--ink-soft); font-weight: 600; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; }
.platform-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.platform-table th, .platform-table td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); }
.platform-table thead th { background: var(--bg-soft); color: var(--ink-soft); font-weight: 600; font-size: 14px; }
.platform-table tbody tr:last-child td { border-bottom: none; }
.platform-table tbody tr:hover td { background: var(--bg-soft); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tag-ok { background: var(--success-soft); color: var(--success); }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--muted); line-height: 1; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 18px; color: var(--ink-soft); font-size: 15px; }

.btn-download-table { display: inline-flex; align-items: center; gap: 6px; padding: 7px 18px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn-download-table:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(47, 107, 255, .25); }

.site-footer { background: #0b1530; color: #cbd5e1; padding: 44px 0 30px; text-align: center; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-bottom: 22px; }
.footer-nav a { color: #cbd5e1; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; font-size: 13px; color: #94a3b8; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .sep { color: #475569; }

.page-hero { padding: 64px 0 56px; text-align: center; background: radial-gradient(800px 400px at 50% -10%, rgba(47, 107, 255, .12), transparent 60%), var(--bg); }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 42px); margin-bottom: 16px; }
.page-hero .hero-badge { margin-bottom: 16px; }
.page-hero-lead { max-width: 640px; margin: 0 auto 16px; font-size: 17px; color: var(--ink-soft); }
.page-hero-note { font-size: 14px; color: var(--muted); }

.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.platform-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px 24px; text-align: center; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.platform-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.platform-card i { font-size: 34px; color: var(--brand); margin-bottom: 12px; }
.platform-card h2 { font-size: 20px; margin-bottom: 6px; }
.platform-card p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.platform-card .btn { width: 100%; padding: 12px 20px; border-radius: 999px; font-size: 15px; }

.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 16px 20px; font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
.check-list li strong { color: var(--ink); }

.changelog-list { display: flex; flex-direction: column; gap: 16px; }
.changelog-item { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px 26px; }
.changelog-item h3 { font-size: 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.changelog-item p { color: var(--ink-soft); font-size: 15px; }

.jump-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.jump-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 14px; font-weight: 500; text-decoration: none; background: #fff; transition: color .15s ease, border-color .15s ease; }
.jump-nav a:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }

.tutorial-section + .tutorial-section { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.tutorial-section h2 { font-size: 26px; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.tutorial-section h2 i { color: var(--brand); font-size: 24px; }
.tutorial-meta { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.tutorial-section h3 { font-size: 19px; margin: 26px 0 12px; }
.tutorial-prep, .tutorial-errors { display: flex; flex-direction: column; gap: 8px; }
.tutorial-prep li, .tutorial-errors li { position: relative; padding-left: 22px; font-size: 15px; color: var(--ink-soft); }
.tutorial-prep li::before { content: "•"; position: absolute; left: 6px; color: var(--brand); font-weight: 700; }
.tutorial-errors li::before { content: "!"; position: absolute; left: 5px; color: #f59e0b; font-weight: 700; }
.tutorial-steps { display: flex; flex-direction: column; gap: 12px; counter-reset: tstep; }
.tutorial-steps li { position: relative; padding: 16px 20px 16px 58px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.tutorial-steps li::before { counter-increment: tstep; content: counter(tstep); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.tutorial-steps h4 { font-size: 16px; margin-bottom: 4px; }
.tutorial-steps p { color: var(--ink-soft); font-size: 15px; }
.tutorial-steps .step-result { margin-top: 6px; font-size: 14px; color: var(--muted); }
.tutorial-steps .step-result strong { color: var(--success); font-weight: 600; }

.feature-section + .feature-section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.feature-section h2 { font-size: 24px; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.feature-section h2 i { color: var(--brand); font-size: 22px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-item { padding: 16px 20px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.feature-item h3 { font-size: 15px; color: var(--brand); margin-bottom: 6px; }
.feature-item p { color: var(--ink-soft); font-size: 15px; }

.faq-search { position: relative; max-width: 480px; margin: 24px auto 0; }
.faq-search input { width: 100%; padding: 13px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--ink); background: #fff; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.faq-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }
.faq-category + .faq-category { margin-top: 44px; }
.faq-category h2 { font-size: 22px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.faq-category h2 i { color: var(--brand); font-size: 20px; }

.legal-section h2 { font-size: 22px; margin: 28px 0 12px; }
.legal-section h2:first-child { margin-top: 0; }
.legal-section p { color: var(--ink-soft); font-size: 15px; line-height: 1.8; margin-bottom: 12px; }
.legal-section ul { margin: 0 0 12px 20px; list-style: disc; }
.legal-section ul li { color: var(--ink-soft); font-size: 15px; line-height: 1.8; margin-bottom: 6px; }
.legal-section strong { color: var(--ink); }

.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: 2; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .step-list { grid-template-columns: repeat(2, 1fr); }
    .deep-row, .deep-row.is-reverse .deep-copy, .deep-row.is-reverse .deep-visual { grid-template-columns: 1fr; order: initial; gap: 24px; }
    .deep-visual { min-height: 150px; }
    .platform-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    :root { --header-h: 60px; }
    .header-nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
    .header-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .header-nav a { padding: 12px 14px; font-size: 16px; }
    .nav-toggle { display: flex; }
    .btn-download-header { display: none; }
    .hero { padding: 48px 0; }
    .section { padding: 56px 0; }
    .card-grid, .step-list { grid-template-columns: 1fr; }
    .platform-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
}
