* {
    box-sizing: border-box;
}

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: #1f2937;
    background: #f6f8fc;
    line-height: 1.7;
}

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

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

.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 #e5e7eb;
    backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #111827;
    letter-spacing: 0.2px;
}

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

.site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(31, 41, 55, 0.12);
}

.site-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
    color: #4b5563;
    font-size: 14px;
}

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

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

.nav-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: #2980FE;
    border: 1px solid #cfe0ff;
    background: #f3f8ff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

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

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

.hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 64px;
    display: grid;
    gap: 32px;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 10vw, 62px);
    line-height: 1.08;
    letter-spacing: -1px;
}

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

.hero-tags,
.hero-status-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-tags span,
.hero-status-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 13px;
}

.hero-visual {
    position: relative;
    min-height: 360px;
    display: grid;
    place-items: center;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 18px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 34px;
    filter: blur(0);
}

.hero-visual img {
    position: relative;
    width: min(420px, 86%);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(21, 32, 94, 0.28);
}

.status-panel {
    position: relative;
    z-index: 2;
    width: min(340px, 92%);
    margin-top: -38px;
    padding: 18px;
    border-radius: 24px;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 50px rgba(20, 34, 90, 0.20);
}

.status-row,
.line-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
}

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

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

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

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

.section {
    padding: 62px 0;
}

.section.alt {
    background: #eef4fb;
}

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

.eyebrow,
.category-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 6px 12px;
    border-radius: 999px;
    color: #2980FE;
    background: #edf5ff;
    border: 1px solid #d6e7ff;
    font-size: 13px;
    font-weight: 800;
}

.section-head h2,
.subpage-hero h1,
.download-hero h1,
.faq-hero h1,
.about-hero h1 {
    margin: 12px 0 12px;
    color: #111827;
    line-height: 1.18;
}

.section-head p,
.card p,
.capability-card p,
.feature-copy p,
.subpage-hero p,
.download-hero p,
.about-hero p,
.faq-hero p {
    color: #64748b;
}

.quick-task-entries {
    display: grid;
    gap: 16px;
}

.task-card,
.capability-card,
.info-card,
.risk-card,
.faq-item,
.step-card,
.scenario-card,
.check-card,
.download-step,
.policy-card {
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(31, 41, 55, 0.06);
}

.task-card {
    position: relative;
    overflow: hidden;
}

.task-card::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #2980FE;
}

.task-card h3,
.capability-card h3,
.info-card h3,
.risk-card h3,
.step-card h3,
.scenario-card h3,
.check-card h3,
.download-step h3,
.policy-card h3 {
    margin: 0 0 8px;
    color: #111827;
}

.task-card a,
.capability-card a,
.info-card a,
.risk-card a,
.step-card a,
.scenario-card a,
.check-card a,
.inline-link {
    color: #2980FE;
    font-weight: 800;
}

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

.capability-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
}

.capability-card.featured {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border-color: #cfe0ff;
}

.feature-panel,
.security-panel,
.route-panel,
.device-panel,
.boundary-panel,
.checkup-panel,
.about-panel,
.download-panel {
    display: grid;
    gap: 24px;
    align-items: center;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 30px;
    box-shadow: 0 16px 42px rgba(31, 41, 55, 0.07);
}

.feature-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 7vw, 40px);
    line-height: 1.18;
    color: #111827;
}

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

.point-list li {
    position: relative;
    padding-left: 28px;
    color: #4b5563;
}

.point-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2980FE;
}

.feature-image {
    padding: 18px;
    border-radius: 26px;
    background: #f4f7fb;
}

.feature-image img {
    width: 100%;
    border-radius: 24px;
}

.security-cards,
.boundary-grid,
.usage-grid,
.risk-grid,
.process-steps,
.download-steps,
.policy-grid,
.check-grid {
    display: grid;
    gap: 16px;
}

.route-lines {
    display: grid;
    gap: 12px;
}

.line-card {
    padding: 16px;
    border-radius: 18px;
    background: #f7fbff;
    border: 1px solid #e1edff;
}

.line-meter {
    height: 8px;
    margin-top: 12px;
    border-radius: 999px;
    background: #dcecff;
    overflow: hidden;
}

.line-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2980FE;
}

.cta-section {
    padding: 60px 0;
    color: #ffffff;
    background: linear-gradient(90deg, #3558F2 0%, #7B4EF1 50%, #B84DDA 100%);
}

.cta-box {
    width: min(860px, calc(100% - 32px));
    margin: 0 auto;
    text-align: center;
}

.cta-box h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 7vw, 44px);
    line-height: 1.2;
}

.cta-box p {
    margin: 0 auto 22px;
    color: rgba(255, 255, 255, 0.88);
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item h3 {
    margin: 0 0 8px;
    color: #111827;
}

.subpage-hero,
.download-hero,
.about-hero,
.faq-hero {
    padding: 54px 0 32px;
    background: linear-gradient(180deg, #ffffff 0%, #f2f6fb 100%);
}

.subpage-grid,
.about-grid,
.download-grid {
    display: grid;
    gap: 24px;
    align-items: start;
}

.subpage-main,
.about-main,
.download-main {
    display: grid;
    gap: 18px;
}

.subpage-main p,
.about-main p,
.download-main p {
    margin: 0;
    color: #4b5563;
}

.side-panel {
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.07);
}

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

.side-panel ul,
.clean-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.side-panel li,
.clean-list li {
    color: #4b5563;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f6f8fc;
    border: 1px solid #edf1f7;
}

.content-card {
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.06);
}

.content-card h2 {
    margin-top: 0;
    color: #111827;
}

.download-panel {
    margin-top: 24px;
    text-align: center;
}

.notice-box {
    padding: 18px;
    border-radius: 22px;
    background: #f7fbff;
    border-left: 4px solid #2980FE;
    color: #475569;
}

.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 48px 0 0;
}

.site-footer p {
    color: #9ca3af;
}

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

.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.site-footer a {
    display: block;
    color: #cbd5e1;
    margin: 8px 0;
}

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

.footer-brand {
    color: #ffffff;
}

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

@media (min-width: 680px) {
    .quick-task-entries,
    .security-cards,
    .boundary-grid,
    .usage-grid,
    .risk-grid,
    .download-steps,
    .policy-grid,
    .check-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

    .site-nav a {
        padding: 8px 10px;
        font-size: 13px;
        white-space: nowrap;
    }

    .hero-inner {
        min-height: 660px;
        grid-template-columns: 1.05fr 0.95fr;
        align-items: center;
        padding: 72px 0 80px;
    }

    .quick-task-entries {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .capability-card.featured {
        grid-column: span 2;
    }

    .feature-panel,
    .route-panel,
    .device-panel,
    .boundary-panel,
    .checkup-panel,
    .download-panel {
        grid-template-columns: 1fr 1fr;
        padding: 36px;
    }

    .security-panel {
        grid-template-columns: 1.1fr 0.9fr;
        padding: 36px;
    }

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

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

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

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

    .subpage-grid,
    .about-grid,
    .download-grid {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

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

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

    .hero-inner {
        width: min(100% - 24px, 1180px);
    }

    .section {
        padding: 46px 0;
    }

    .task-card,
    .capability-card,
    .info-card,
    .risk-card,
    .faq-item,
    .step-card,
    .scenario-card,
    .check-card,
    .download-step,
    .policy-card,
    .content-card,
    .side-panel {
        padding: 18px;
    }

    .download-btn {
        width: 100%;
    }
}
