* {
    box-sizing: border-box;
}

:root {
    --brand-gradient: linear-gradient(90deg, #3558F2 0%, #7B4EF1 50%, #B84DDA 100%);
    --blue: #2980FE;
    --blue-dark: #1768E8;
    --text: #1f2937;
    --muted: #667085;
    --soft: #f5f7fb;
    --line: #e7ebf2;
    --card: #ffffff;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --shadow: 0 20px 60px rgba(25, 39, 80, 0.08);
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(231, 235, 242, 0.9);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.logo img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
}

.nav-toggle {
    border: 0;
    background: #eef4ff;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: #1f2937;
    border-radius: 4px;
}

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

.site-nav.open {
    display: flex;
}

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

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

section {
    margin: 44px 0;
}

.section-kicker,
.badge,
.category-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--blue);
    background: #eef4ff;
    font-size: 13px;
    font-weight: 700;
}

.section-title {
    margin: 12px 0 12px;
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.section-lead {
    color: var(--muted);
    max-width: 760px;
    margin: 0 0 24px;
}

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

.download-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(23, 104, 232, 0.28);
}

.network-manager-hero {
    margin-top: 22px;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--brand-gradient);
    color: #fff;
    padding: 30px 22px;
    box-shadow: 0 30px 90px rgba(53, 88, 242, 0.22);
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -120px -180px auto;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    filter: blur(4px);
}

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

.hero-content h1 {
    margin: 12px 0 16px;
    font-size: clamp(34px, 8vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.hero-content p {
    color: rgba(255,255,255,0.86);
    font-size: 17px;
    margin: 0 0 22px;
}

.hero-tags,
.floating-tags,
.inline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-tags span,
.floating-tags span,
.inline-tags span {
    border: 1px solid rgba(255,255,255,0.34);
    background: rgba(255,255,255,0.14);
    color: #fff;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.24);
}

.hero-visual img {
    margin: 0 auto;
    max-height: 430px;
    object-fit: contain;
    filter: drop-shadow(0 30px 40px rgba(16, 24, 40, 0.22));
}

.status-card {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.92);
    color: #1f2937;
    box-shadow: var(--shadow);
}

.status-card strong {
    display: block;
    font-size: 15px;
}

.status-card span {
    color: var(--muted);
    font-size: 13px;
}

.daily-scenes,
.bento-feature-center,
.safe-browsing-section,
.smart-route-section,
.public-wifi-section,
.privacy-guard-section,
.multi-device-section,
.network-diagnosis-section,
.account-security-section,
.process-steps,
.risk-grid,
.faq-preview,
.cta-section,
.page-hero,
.content-container,
.safety-panel {
    position: relative;
}

.scene-grid,
.card-grid,
.info-grid,
.risk-grid,
.faq-list,
.step-grid,
.tip-grid {
    display: grid;
    gap: 16px;
}

.scene-card,
.bento-card,
.info-card,
.step-card,
.risk-card,
.faq-item,
.tip-card,
.article-card,
.check-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: 0 12px 40px rgba(24, 39, 75, 0.04);
}

.scene-card strong,
.bento-card strong,
.info-card strong,
.risk-card strong,
.step-card strong,
.tip-card strong,
.check-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    color: #111827;
}

.scene-card p,
.bento-card p,
.info-card p,
.risk-card p,
.step-card p,
.tip-card p,
.check-card p,
.article-card p,
.faq-item p {
    color: var(--muted);
    margin: 0 0 12px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--blue);
    font-weight: 800;
    font-size: 14px;
}

.text-link::after {
    content: "→";
    margin-left: 6px;
}

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

.bento-card {
    min-height: 180px;
}

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

.bento-card.wide {
    background: #fbfcff;
}

.feature-split,
.image-split,
.smart-panel,
.public-panel,
.privacy-panel,
.device-panel,
.diagnosis-panel,
.account-panel,
.cta-panel {
    display: grid;
    gap: 24px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow);
}

.soft-section {
    padding: 34px 0;
    background: linear-gradient(180deg, #f7f9fd 0%, #eef4ff 100%);
}

.feature-image {
    background: #f4f7ff;
    border-radius: 28px;
    padding: 18px;
}

.feature-image img {
    margin: 0 auto;
    max-height: 360px;
    object-fit: contain;
}

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

.check-list li {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f5f8ff;
    color: #344054;
    border: 1px solid #e7eefc;
}

.check-list li::before {
    content: "✓";
    color: var(--blue);
    font-weight: 900;
    margin-right: 8px;
}

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

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

.risk-card span {
    display: block;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    margin-top: 8px;
}

.process-steps .step-card {
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 900;
    margin-bottom: 12px;
}

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

.cta-panel {
    text-align: center;
    color: #fff;
    background: var(--brand-gradient);
    border: 0;
}

.cta-panel .section-title,
.cta-panel p {
    color: #fff;
    margin-left: auto;
    margin-right: auto;
}

.cta-panel p {
    color: rgba(255,255,255,0.86);
}

.page-hero {
    margin-top: 28px;
    padding: 34px 0 10px;
}

.page-hero-card {
    border-radius: var(--radius-xl);
    padding: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 14px 0;
    font-size: clamp(32px, 6vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.page-hero p {
    max-width: 820px;
    color: var(--muted);
}

.content-layout {
    display: grid;
    gap: 22px;
    align-items: start;
}

.article-card h2,
.safety-panel h2 {
    margin-top: 0;
    font-size: 26px;
    line-height: 1.25;
}

.article-card ul,
.article-card ol,
.safety-panel ul,
.safety-panel ol {
    margin: 12px 0 0;
    padding-left: 20px;
    color: #475467;
}

.article-card li,
.safety-panel li {
    margin: 8px 0;
}

.aside-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 12px 40px rgba(24, 39, 75, 0.04);
}

.aside-box h3 {
    margin-top: 0;
}

.aside-box a {
    display: block;
    padding: 10px 0;
    color: var(--blue);
    font-weight: 700;
    border-top: 1px solid var(--line);
}

.download-box {
    margin-top: 18px;
    padding: 22px;
    border-radius: 24px;
    background: #f5f8ff;
    border: 1px solid #e5edff;
}

.download-box p {
    color: var(--muted);
    margin-top: 0;
}

.download-page-card {
    text-align: center;
}

.download-steps {
    counter-reset: step;
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

.download-step {
    counter-increment: step;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    text-align: left;
}

.download-step::before {
    content: counter(step);
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--blue);
    font-weight: 900;
    margin-right: 8px;
}

.site-footer {
    margin-top: 64px;
    padding: 44px 0 22px;
    background: #101828;
    color: #d0d5dd;
}

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

.footer-brand {
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 10px;
}

.site-footer h3 {
    color: #fff;
    margin: 0 0 10px;
    font-size: 16px;
}

.site-footer p {
    color: #98a2b3;
    margin: 0;
}

.site-footer a {
    display: block;
    color: #d0d5dd;
    padding: 5px 0;
    font-size: 14px;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 28px;
    padding-top: 18px;
    color: #98a2b3;
    font-size: 13px;
}

@media (min-width: 700px) {
    .scene-grid,
    .tip-grid,
    .info-grid,
    .risk-grid,
    .step-grid,
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (min-width: 960px) {
    .container {
        width: min(100% - 56px, 1180px);
    }

    .nav-toggle {
        display: none;
    }

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

    .site-nav a {
        padding: 8px 10px;
        font-size: 14px;
    }

    section {
        margin: 72px 0;
    }

    .hero-panel {
        min-height: 620px;
        display: grid;
        grid-template-columns: 1.04fr 0.96fr;
        gap: 34px;
        align-items: center;
        padding: 58px;
    }

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

    .status-card {
        position: absolute;
        left: 22px;
        bottom: 24px;
        max-width: 250px;
    }

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

    .bento-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: minmax(180px, auto);
    }

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

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

    .feature-split,
    .image-split,
    .smart-panel,
    .public-panel,
    .privacy-panel,
    .device-panel,
    .diagnosis-panel,
    .account-panel {
        grid-template-columns: 1fr 0.9fr;
        padding: 40px;
    }

    .public-panel {
        grid-template-columns: 1.05fr 0.95fr;
    }

    .privacy-panel {
        grid-template-columns: 0.9fr 1.1fr;
    }

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

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

    .content-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .page-hero-card {
        padding: 44px;
    }

    .download-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1180px) {
    .site-nav a {
        padding-left: 12px;
        padding-right: 12px;
    }
}
