* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: #1f2937;
    background: #f5f7fb;
    line-height: 1.75;
}

body, a, button {
    -webkit-tap-highlight-color: transparent;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.94);
    border-bottom: 1px solid #e5eaf2;
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

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

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

.nav-toggle-label {
    display: inline-flex;
    padding: 9px 14px;
    color: #2980FE;
    border: 1px solid #d7e6ff;
    border-radius: 999px;
    background: #f7fbff;
    font-size: 14px;
}

.main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 14px;
    right: 14px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e4eaf4;
    border-radius: 22px;
    box-shadow: 0 16px 50px rgba(32, 53, 90, 0.12);
}

.nav-toggle:checked ~ .main-nav {
    display: grid;
    gap: 6px;
}

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

.main-nav a:hover,
.main-nav a.active {
    color: #2980FE;
    background: #eef6ff;
}

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

.download-btn:hover {
    background: #1768E8;
    transform: translateY(-2px);
    box-shadow: 0 15px 34px rgba(23, 104, 232, 0.28);
}

.text-link {
    color: #2980FE;
    font-weight: 800;
}

.text-link:hover {
    color: #1768E8;
}

.section {
    padding: 58px 0;
}

.section-muted {
    background: #eef3fb;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 24px;
}

.section-heading.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.eyebrow,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #eaf3ff;
    color: #2980FE;
    font-size: 13px;
    font-weight: 800;
}

h1, h2, h3 {
    line-height: 1.25;
    margin: 0 0 14px;
    color: #101828;
}

h1 {
    font-size: clamp(34px, 8vw, 58px);
    letter-spacing: -1.2px;
}

h2 {
    font-size: clamp(26px, 5vw, 40px);
    letter-spacing: -0.6px;
}

h3 {
    font-size: 20px;
}

p {
    margin: 0 0 14px;
    color: #586174;
}

.connection-workspace-hero {
    background: linear-gradient(90deg, #3558F2 0%, #7B4EF1 50%, #B84DDA 100%);
    color: #fff;
    padding: 34px 0 44px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    gap: 28px;
    align-items: center;
}

.hero-copy h1,
.hero-copy p {
    color: #fff;
}

.hero-copy p {
    max-width: 650px;
    color: rgba(255,255,255,0.88);
    font-size: 17px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
}

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

.hero-visual {
    position: relative;
    min-height: 390px;
    border-radius: 34px;
    padding: 18px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.20);
}

.hero-device {
    width: min(330px, 80%);
    margin: 16px auto;
    filter: drop-shadow(0 28px 50px rgba(14, 28, 74, 0.26));
}

.status-panel {
    position: relative;
    margin-top: -10px;
    border-radius: 26px;
    padding: 18px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 24px 60px rgba(24, 32, 78, 0.18);
    color: #172033;
}

.status-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f7;
    color: #475467;
}

.status-row:last-child {
    border-bottom: 0;
}

.status-row strong {
    color: #101828;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #24c17a;
    border-radius: 50%;
    display: inline-block;
    margin-right: 7px;
}

.floating-chip {
    position: absolute;
    padding: 9px 13px;
    border-radius: 16px;
    background: rgba(255,255,255,0.94);
    color: #1f2937;
    box-shadow: 0 15px 40px rgba(25, 31, 67, 0.17);
    font-size: 13px;
    font-weight: 800;
}

.chip-a { top: 22px; left: 18px; }
.chip-b { top: 84px; right: 16px; }
.chip-c { bottom: 102px; left: 16px; }
.chip-d { bottom: 26px; right: 20px; }

.quick-task-entries,
.risk-grid,
.scenario-grid,
.faq-grid,
.tips-grid {
    display: grid;
    gap: 16px;
}

.quick-card,
.capability-card,
.risk-card,
.scenario-card,
.faq-item,
.tip-card,
.page-card,
.step-card,
.info-card {
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 10px 36px rgba(32, 53, 90, 0.06);
}

.quick-card small,
.capability-card small {
    display: inline-flex;
    color: #2980FE;
    font-weight: 800;
    margin-bottom: 8px;
}

.connection-capability-overview {
    display: grid;
    gap: 16px;
}

.capability-card.featured {
    background: linear-gradient(180deg, #ffffff 0%, #f1f7ff 100%);
    border-color: #cfe4ff;
}

.split-section,
.quick-connect-section,
.route-optimization-section,
.device-protection-section,
.connection-checkup-section {
    display: grid;
    gap: 22px;
    align-items: center;
}

.visual-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 34px;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(32, 53, 90, 0.08);
    overflow: hidden;
}

.visual-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(41,128,254,.16), transparent 42%);
    pointer-events: none;
}

.visual-card img {
    position: relative;
    margin: 0 auto;
    max-height: 380px;
    object-fit: contain;
}

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

.feature-list li,
.check-list li,
.page-list li {
    padding: 12px 14px;
    border: 1px solid #e6ebf3;
    border-radius: 16px;
    background: #fbfcff;
    color: #475467;
}

.encrypted-tunnel-section {
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 34px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(32, 53, 90, 0.07);
}

.security-cards,
.boundary-grid,
.process-steps {
    display: grid;
    gap: 16px;
}

.security-cards .info-card {
    box-shadow: none;
    background: #f7faff;
}

.route-board {
    background: #fff;
    border-radius: 30px;
    border: 1px solid #e5eaf2;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(32, 53, 90, 0.08);
}

.route-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #edf1f7;
}

.route-line:last-child {
    border-bottom: 0;
}

.route-pill {
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf3ff;
    color: #2980FE;
    font-weight: 800;
    font-size: 13px;
}

.boundary-grid .info-card {
    border-top: 4px solid #2980FE;
}

.process-steps {
    counter-reset: step;
}

.step-card {
    position: relative;
    padding-left: 78px;
}

.step-number {
    position: absolute;
    top: 22px;
    left: 22px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #2980FE;
    color: #fff;
    font-weight: 900;
}

.risk-card {
    border-left: 4px solid #2980FE;
}

.cta-section {
    margin: 58px auto;
    border-radius: 34px;
    padding: 42px 22px;
    background: linear-gradient(90deg, #3558F2 0%, #7B4EF1 50%, #B84DDA 100%);
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.cta-section h2,
.cta-section p {
    color: #fff;
}

.page-hero {
    padding: 48px 0 26px;
    background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
    border-bottom: 1px solid #e5eaf2;
}

.page-hero-inner {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero p {
    font-size: 17px;
}

.page-layout {
    width: min(1120px, calc(100% - 32px));
    margin: 34px auto 62px;
    display: grid;
    gap: 22px;
}

.content-panel {
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 30px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(32, 53, 90, 0.07);
}

.aside-panel {
    display: grid;
    gap: 16px;
    align-content: start;
}

.aside-panel .page-card {
    box-shadow: none;
}

.notice-box {
    border-radius: 22px;
    padding: 18px;
    background: #f1f7ff;
    border: 1px solid #cfe4ff;
    color: #475467;
}

.download-panel {
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f6ff 100%);
    border: 1px solid #d9e9ff;
    text-align: center;
}

.faq-item h3 {
    color: #101828;
    margin-bottom: 8px;
}

.download-steps {
    display: grid;
    gap: 14px;
    margin: 22px 0;
}

.site-footer {
    background: #101828;
    color: #d0d5dd;
    padding-top: 42px;
}

.site-footer p,
.site-footer a {
    color: #d0d5dd;
}

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

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

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

.site-footer a {
    display: block;
    margin: 7px 0;
}

.footer-bottom {
    margin-top: 32px;
    padding: 18px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #98a2b3;
}

@media (min-width: 700px) {
    .quick-task-entries,
    .risk-grid,
    .scenario-grid,
    .tips-grid,
    .faq-grid,
    .boundary-grid,
    .security-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .connection-capability-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

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

    .main-nav a {
        padding: 9px 11px;
        font-size: 14px;
    }

    .connection-workspace-hero {
        padding: 62px 0 72px;
    }

    .hero-grid {
        grid-template-columns: 1.05fr .95fr;
        gap: 44px;
    }

    .quick-task-entries {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: -38px;
        position: relative;
        z-index: 2;
    }

    .connection-capability-overview {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-flow: dense;
    }

    .capability-card.featured {
        grid-column: span 2;
        min-height: 230px;
    }

    .split-section,
    .quick-connect-section,
    .route-optimization-section,
    .device-protection-section,
    .connection-checkup-section {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .encrypted-tunnel-section {
        display: grid;
        grid-template-columns: 1.1fr .9fr;
        gap: 30px;
        align-items: center;
        padding: 34px;
    }

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

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

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

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

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

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

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

@media (min-width: 1180px) {
    .main-nav a {
        padding: 9px 13px;
    }

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

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

    .quick-card,
    .capability-card,
    .risk-card,
    .scenario-card,
    .faq-item,
    .tip-card,
    .page-card,
    .step-card,
    .info-card,
    .content-panel {
        padding: 18px;
    }

    .download-btn {
        width: 100%;
    }

    .floating-chip {
        position: static;
        display: inline-flex;
        margin: 5px;
    }

    .hero-visual {
        min-height: auto;
    }

    .status-panel {
        margin-top: 10px;
    }
}
