:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #0ea5e9;
    --text: #0f172a;
    --text-muted: #64748b;
    --bg: #f8fafc;
    --card: #ffffff;
    --border: #e2e8f0;
    --footer-bg: #0f172a;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --radius: 16px;
    --nav-height: 64px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
}

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

.is-hidden {
    display: none !important;
}

/* Nav */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-nav .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.brand:hover {
    color: var(--primary);
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-toggle {
    display: none;
    border: none;
    background: var(--primary-light);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
}

/* Hero（内页 page-hero） */
.page-hero {
    padding: 48px 0 64px;
}

.hero {
    padding: 38px 0 48px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #38bdf8 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 40%);
    pointer-events: none;
}

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

.hero-layout {
    display: flex;
    align-items: flex-end;
    gap: 12px 24px;
}

.hero-copy {
    flex: 0 0 70%;
    max-width: 70%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-main {
    text-align: left;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.hero-layout > .hero-visual {
    flex: 0 0 30%;
    max-width: 30%;
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    align-self: flex-end;
    padding-left: 0;
}

.hero-visual img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 180px;
    height: auto;
    margin-left: 0;
    transform: none;
    opacity: 0.98;
    object-fit: contain;
    object-position: bottom center;
}

.hero-badge {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 11px;
    margin-bottom: 0;
    white-space: nowrap;
}

.hero h1 {
    font-size: clamp(26px, 3.8vw, 36px);
    line-height: 1.2;
    margin-bottom: 0;
    width: 100%;
}

.hero-lead {
    font-size: 14px;
    opacity: 0.92;
    max-width: none;
    width: 100%;
    margin-bottom: 0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    flex-shrink: 0;
}

.hero .btn {
    padding: 9px 18px;
    font-size: 14px;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
    color: #fff;
    text-decoration: none;
}

/* Sections */
main {
    flex: 1;
}

.section {
    padding: 72px 0;
}

.section-alt {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px;
}

.section-head h2 {
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 12px;
}

.section-head p {
    color: var(--text-muted);
}

.section-overlap {
    margin-top: -56px;
    position: relative;
    z-index: 2;
    padding-top: 0;
}

.section:first-of-type {
    padding-top: 64px;
}

/* Homepage compact layout */
.page-home .section {
    padding: 40px 0;
}

.page-home .section:first-of-type {
    padding-top: 28px;
    padding-bottom: 28px;
}

.page-home .section:first-of-type .section-head {
    margin-bottom: 16px;
}

.page-home .section:first-of-type .section-head h2 {
    font-size: clamp(19px, 2.8vw, 24px);
    margin-bottom: 6px;
}

.page-home .section:first-of-type .section-head p {
    font-size: 13px;
}

.page-home .section:first-of-type .card-grid {
    gap: 12px;
}

.page-home .section:first-of-type .feature-card {
    padding: 16px 14px;
}

.page-home .section:first-of-type .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
    margin-bottom: 10px;
}

.page-home .section:first-of-type .feature-card h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.page-home .section:first-of-type .feature-card p {
    font-size: 12px;
    margin-bottom: 12px;
}

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

.page-home .section-head h2 {
    font-size: clamp(20px, 3vw, 26px);
    margin-bottom: 8px;
}

.page-home .section-head p {
    font-size: 14px;
}

.page-home .card-grid {
    gap: 16px;
}

.page-home .feature-card {
    padding: 20px 18px;
}

.page-home .feature-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
    margin-bottom: 12px;
}

.page-home .feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.page-home .feature-card p {
    font-size: 13px;
    margin-bottom: 14px;
}

.page-home .step {
    padding: 12px 8px;
}

.page-home .step-num {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin-bottom: 10px;
}

.page-home .step h3 {
    font-size: 15px;
}

.page-home .step p {
    font-size: 13px;
}

.page-home .card {
    padding: 22px 24px;
}

.page-home .cta-band {
    padding: 28px 24px;
}

.page-home .cta-band h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.page-home .cta-band p {
    font-size: 14px;
    margin-bottom: 16px;
}

/* Cards */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 32px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    flex: 1;
    margin-bottom: 18px;
}

.link-arrow {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.link-arrow::after {
    content: " →";
}

/* Steps / workflow */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.step {
    text-align: center;
    padding: 24px 16px;
}

.step-num {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Detail page */
.page-hero {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
}

.breadcrumb {
    font-size: 13px;
    opacity: 0.86;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: #dbeafe;
}

.page-hero h1 {
    font-size: clamp(28px, 4vw, 38px);
    margin-bottom: 12px;
}

.page-hero .lead {
    max-width: 720px;
    opacity: 0.92;
    font-size: 17px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 48px 0 72px;
    align-items: start;
}

.detail-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.detail-sidebar h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.detail-sidebar ul {
    list-style: none;
}

.detail-sidebar li + li {
    margin-top: 6px;
}

.detail-sidebar a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.detail-sidebar a:hover,
.detail-sidebar a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.detail-content h2 {
    font-size: 24px;
    margin: 36px 0 14px;
}

.detail-content h2:first-child {
    margin-top: 0;
}

.detail-content p,
.detail-content li {
    color: var(--text-muted);
}

.detail-content ul,
.detail-content ol {
    padding-left: 22px;
    margin: 12px 0 20px;
}

.detail-content li + li {
    margin-top: 8px;
}

.highlight-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 18px 20px;
    margin: 24px 0;
}

.highlight-box p {
    color: var(--text);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.info-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
}

.info-item strong {
    display: block;
    margin-bottom: 6px;
}

.info-item span {
    font-size: 14px;
    color: var(--text-muted);
}

/* About / Contact */
.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list strong {
    min-width: 72px;
    color: var(--text);
}

.cta-band {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #fff;
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
}

.cta-band h2 {
    margin-bottom: 10px;
}

.cta-band p {
    opacity: 0.92;
    margin-bottom: 20px;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: #94a3b8;
    padding: 48px 0 28px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
}

.footer-col h4 {
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li + li {
    margin-top: 8px;
}

.footer-col--two-rows ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 8px;
}

.footer-col--two-rows li + li {
    margin-top: 0;
}

.footer-col a {
    color: #94a3b8;
    font-size: 14px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

.footer-bottom a {
    color: #cbd5e1;
}

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

.footer-beian {
    margin-bottom: 8px;
}

.footer-brand .brand,
.footer-beian .brand {
    color: #cbd5e1 !important;
}

.footer-brand .brand:hover,
.footer-beian .brand:hover {
    color: #fff !important;
}

.footer-brand p {
    color: #94a3b8;
}

.footer-beian .icp {
    margin-bottom: 4px;
}

.beian-mps a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.beian-mps-icon {
    flex-shrink: 0;
}

.footer-bottom .copyright {
    font-size: 13px;
    opacity: 0.8;
}

@media (max-width: 900px) {
    .hero-layout {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero-copy {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .hero-main {
        width: 100%;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-layout > .hero-visual {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
        padding-left: 0;
    }

    .hero-visual img {
        margin-left: 0;
        transform: none;
        max-width: 100%;
        max-height: 240px;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 12px 24px 20px;
    }

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

    .hero {
        padding: 28px 0 36px;
    }

    .page-hero {
        padding: 40px 0 52px;
    }

    .section {
        padding: 56px 0;
    }
}
