* {
    box-sizing: border-box;
}

:root {
    --brand-gradient: linear-gradient(90deg, #3558F2 0%, #7B4EF1 50%, #B84DDA 100%);
    --blue: #2980FE;
    --blue-hover: #1768E8;
    --text: #1F2937;
    --muted: #5F6B7A;
    --soft: #F5F7FB;
    --line: #E5EAF2;
    --panel: #FFFFFF;
    --deep: #111827;
    --radius-lg: 32px;
    --radius-md: 24px;
    --shadow: 0 16px 45px rgba(30, 54, 108, .10);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: #F7F9FD;
    line-height: 1.75;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 16px;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 234, 242, .85);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
}

.brand-text {
    font-weight: 800;
    font-size: 20px;
    color: var(--deep);
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle-label {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: grid;
    place-content: center;
    gap: 5px;
    background: #fff;
}

.nav-toggle-label span {
    width: 20px;
    height: 2px;
    background: var(--deep);
    border-radius: 999px;
    display: block;
}

.site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.site-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: #374151;
    font-size: 15px;
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--blue);
    background: #EEF5FF;
}

.nav-toggle:checked ~ .site-nav {
    display: flex;
}

.section {
    padding: 56px 0;
}

.section-head {
    margin-bottom: 24px;
}

.eyebrow,
.badge,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    background: #EEF5FF;
    border: 1px solid #D8E8FF;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

.section-head h2,
.page-hero h1,
.network-manager-hero h1 {
    margin: 14px 0 12px;
    line-height: 1.15;
    letter-spacing: -.04em;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.section-head p,
.page-summary {
    color: var(--muted);
    max-width: 780px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(41, 128, 254, .25);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.download-btn:hover {
    background: var(--blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(23, 104, 232, .28);
}

.network-manager-hero {
    padding: 36px 0 22px;
}

.hero-shell {
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--brand-gradient);
    color: #fff;
    padding: 34px 22px;
    box-shadow: var(--shadow);
}

.hero-shell::before,
.hero-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    background: rgba(255, 255, 255, .18);
}

.hero-shell::before {
    width: 220px;
    height: 220px;
    right: -66px;
    top: -80px;
}

.hero-shell::after {
    width: 180px;
    height: 180px;
    left: 25%;
    bottom: -100px;
}

.hero-content,
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(34px, 7vw, 64px);
}

.hero-content p {
    color: rgba(255, 255, 255, .88);
    font-size: 17px;
}

.hero-tags,
.float-tags,
.inline-links,
.module-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin: 20px 0 24px;
}

.hero-tags span,
.float-tags span {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 13px;
}

.hero-card {
    margin-top: 30px;
    background: rgba(255, 255, 255, .94);
    border-radius: 30px;
    padding: 18px;
    color: var(--deep);
    box-shadow: 0 22px 60px rgba(21, 35, 80, .22);
}

.hero-card img {
    width: min(360px, 100%);
    margin: 0 auto;
    border-radius: 24px;
}

.status-card {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.status-card div {
    background: #F7FAFF;
    border: 1px solid #E4EEFF;
    border-radius: 18px;
    padding: 12px;
}

.status-card strong {
    display: block;
    color: var(--blue);
}

.daily-scenes,
.card-grid,
.privacy-grid,
.risk-grid,
.faq-grid,
.download-steps,
.help-grid {
    display: grid;
    gap: 16px;
}

.scene-card,
.bento-card,
.info-card,
.risk-card,
.faq-item,
.step-card,
.side-card,
.check-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: 0 8px 28px rgba(30, 54, 108, .05);
}

.scene-card .tag,
.bento-card .tag {
    margin-bottom: 12px;
}

.scene-card h3,
.bento-card h3,
.info-card h3,
.risk-card h3,
.step-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.card-link,
.module-links a,
.inline-links a {
    color: var(--blue);
    font-weight: 800;
    display: inline-flex;
    margin-top: 8px;
}

.bento-feature-center {
    display: grid;
    gap: 16px;
}

.bento-card {
    min-height: 190px;
    position: relative;
    overflow: hidden;
}

.bento-card.large {
    background: linear-gradient(135deg, #fff 0%, #EEF5FF 100%);
}

.bento-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 999px;
    right: -30px;
    bottom: -34px;
    background: rgba(41, 128, 254, .08);
}

.feature-panel,
.split-panel,
.safe-browsing-section,
.smart-route-section,
.public-wifi-section,
.privacy-guard-section,
.multi-device-section,
.network-diagnosis-section,
.account-security-section {
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    padding: 24px;
    box-shadow: var(--shadow);
}

.feature-split,
.split-content,
.about-grid,
.page-layout {
    display: grid;
    gap: 24px;
    align-items: center;
}

.feature-image,
.split-image {
    border-radius: 28px;
    background: #F3F7FF;
    border: 1px solid #E4EEFF;
    padding: 16px;
}

.feature-image img,
.split-image img {
    margin: 0 auto;
    border-radius: 22px;
}

.point-list,
.check-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    display: grid;
    gap: 10px;
}

.point-list li,
.check-list li {
    padding-left: 28px;
    position: relative;
    color: #334155;
}

.point-list li::before,
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--blue);
    font-weight: 900;
}

.soft-bg {
    background: #EEF3FA;
}

.safety-panel {
    background: linear-gradient(180deg, #fff 0%, #F6F9FE 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.public-wifi-section .card-grid,
.network-diagnosis-section .card-grid,
.account-security-section .card-grid {
    margin-top: 20px;
}

.process-steps {
    display: grid;
    gap: 16px;
    counter-reset: step;
}

.step-card {
    counter-increment: step;
    position: relative;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: var(--blue);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    margin-bottom: 14px;
}

.risk-card {
    border-left: 4px solid var(--blue);
}

.risk-card strong {
    display: block;
    color: var(--blue);
    margin-top: 12px;
}

.faq-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.cta-section {
    margin: 56px 0;
}

.cta-panel {
    border-radius: var(--radius-lg);
    padding: 34px 22px;
    text-align: center;
    color: #fff;
    background: var(--brand-gradient);
    position: relative;
    overflow: hidden;
}

.cta-panel p {
    max-width: 680px;
    margin: 0 auto 22px;
    color: rgba(255, 255, 255, .88);
}

.page-hero {
    padding: 44px 0 28px;
}

.page-hero-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.page-hero-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 7px;
    background: var(--brand-gradient);
}

.page-hero h1 {
    font-size: clamp(32px, 6vw, 54px);
}

.page-content {
    padding: 18px 0 56px;
}

.article-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.article-panel h2 {
    margin-top: 0;
}

.article-panel p {
    color: #3E4A5A;
}

.side-stack {
    display: grid;
    gap: 16px;
}

.side-card h3 {
    margin: 0 0 10px;
}

.guide-list {
    display: grid;
    gap: 12px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.guide-list li {
    background: #F7FAFF;
    border: 1px solid #E5EEFF;
    border-radius: 18px;
    padding: 14px;
}

.download-actions {
    margin-top: 22px;
}

.site-footer {
    background: #101827;
    color: rgba(255, 255, 255, .78);
    padding: 44px 0 24px;
}

.footer-grid {
    display: grid;
    gap: 24px;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    border-radius: 14px;
}

.footer-brand strong,
.site-footer h3 {
    color: #fff;
}

.site-footer a {
    display: block;
    color: rgba(255, 255, 255, .76);
    margin: 8px 0;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 14px;
    color: rgba(255,255,255,.58);
}

@media (min-width: 720px) {
    .container {
        width: min(1120px, calc(100% - 48px));
    }

    .hero-shell {
        padding: 48px;
    }

    .daily-scenes {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid,
    .privacy-grid,
    .risk-grid,
    .faq-grid,
    .download-steps,
    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.4fr;
    }
}

@media (min-width: 980px) {
    .nav-toggle-label {
        display: none;
    }

    .site-nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        box-shadow: none;
        border: 0;
        background: transparent;
        gap: 2px;
    }

    .site-nav a {
        padding: 9px 11px;
    }

    .hero-shell {
        display: grid;
        grid-template-columns: 1.05fr .95fr;
        align-items: center;
        gap: 36px;
        min-height: 590px;
    }

    .hero-card {
        margin-top: 0;
    }

    .daily-scenes {
        grid-template-columns: repeat(3, 1fr);
    }

    .bento-feature-center {
        grid-template-columns: repeat(6, 1fr);
    }

    .bento-card {
        grid-column: span 2;
    }

    .bento-card.large {
        grid-column: span 3;
        min-height: 260px;
    }

    .bento-card.tall {
        grid-row: span 2;
    }

    .feature-split,
    .split-content {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .feature-split.reverse .feature-image {
        order: -1;
    }

    .card-grid.three,
    .privacy-grid.three {
        grid-template-columns: repeat(3, 1fr);
    }

    .risk-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .section {
        padding: 76px 0;
    }

    .page-hero-card,
    .article-panel {
        padding: 36px;
    }
}

@media (max-width: 420px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .hero-shell,
    .page-hero-card,
    .article-panel,
    .feature-panel,
    .split-panel,
    .safe-browsing-section,
    .smart-route-section,
    .public-wifi-section,
    .privacy-guard-section,
    .multi-device-section,
    .network-diagnosis-section,
    .account-security-section {
        border-radius: 24px;
        padding: 22px 18px;
    }

    .download-btn {
        width: 100%;
    }

    .status-card {
        grid-template-columns: 1fr;
    }
}
