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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "PingFang SC", "Microsoft YaHei UI", sans-serif;
    background: linear-gradient(180deg, #eef2f9 0%, #f6f8fc 32%, #f6f8fc 100%);
    color: #1e293b;
    line-height: 1.65;
    font-size: 15px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
    --primary: #1e88e5;
    --primary-dark: #1565c0;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text: #1e293b;
    --muted: #64748b;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 30px rgba(30, 136, 229, 0.1);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.08);
    --radius: 14px;
    --max: 1180px;
    --doc-max: 880px;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 8px 28px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.nav-links a:not(.nav-download) {
    padding: 6px 4px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:not(.nav-download):hover,
.nav-links a.is-active:not(.nav-download) {
    color: var(--primary);
    background: rgba(30, 136, 229, 0.06);
}

.nav-links a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-download {
    background: var(--primary);
    color: #fff !important;
    padding: 9px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(30, 136, 229, 0.28);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-download:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.35);
}

.intro-slab {
    width: 100%;
    background: linear-gradient(168deg, #070a10 0%, #0f172a 48%, #0a0f18 100%);
    color: #cbd5e1;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    position: relative;
    overflow: hidden;
}

.intro-slab::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
    pointer-events: none;
}

.intro-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    gap: clamp(28px, 5vw, 52px);
    align-items: center;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(40px, 7vw, 76px) 22px clamp(44px, 7vw, 72px);
}

.intro-kicker {
    font-family: Consolas, "Courier New", ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 14px;
}

.intro-copy h1 {
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.16;
    color: #f8fafc;
    margin-bottom: 16px;
}

.intro-copy h1 em {
    font-style: normal;
    color: #7dd3fc;
}

.intro-lead {
    color: #94a3b8;
    font-size: clamp(14px, 1.55vw, 16px);
    line-height: 1.75;
    max-width: 36em;
    margin-bottom: 26px;
}

.intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.btn-dl {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 650;
    background: #1e88e5;
    color: #fff !important;
    border: 1px solid rgba(125, 211, 252, 0.25);
    transition: background 0.15s, border-color 0.15s;
}

.btn-dl:hover { background: #1976d2; }

.btn-dl--secondary {
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0 !important;
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.btn-dl--secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(203, 213, 225, 0.45);
}

ul.intro-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding-top: 18px;
}

.intro-facts li {
    padding: 0 18px 0 0;
    border-right: 1px solid rgba(148, 163, 184, 0.1);
}

.intro-facts li:last-child {
    border-right: none;
    padding-right: 0;
}

.intro-facts strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.intro-facts span {
    display: block;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.intro-visual-label {
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
}

.carousel-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: #030508;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.carousel-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    aspect-ratio: 784 / 524;
}

@media (prefers-reduced-motion: reduce) {
    .carousel-track { transition: none; }
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #030508;
}

.carousel-indicators {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px 14px;
    background: linear-gradient(0deg, rgba(3, 5, 8, 0.95) 0%, rgba(3, 5, 8, 0) 100%);
}

.carousel-dot {
    width: 26px;
    height: 3px;
    border-radius: 1px;
    background: rgba(148, 163, 184, 0.35);
    cursor: pointer;
    transition: width 0.2s, background 0.2s;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    width: 40px;
    background: #38bdf8;
}

.intro-visual-note {
    margin-top: 10px;
    font-size: 11px;
    color: #64748b;
    font-family: Consolas, "Courier New", monospace;
}

.page-block { margin: 44px auto 48px; }

.features-section { padding: 48px 0 36px; }

.features-header {
    text-align: center;
    margin-bottom: 36px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.features-header h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 10px;
}

.features-header p { color: var(--muted); font-size: 15px; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 136, 229, 0.22);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, #f0f7ff, #e3f2fd);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    border: 1px solid rgba(30, 136, 229, 0.12);
}

footer {
    border-top: 1px solid var(--border);
    padding: 36px 0 28px;
    margin-top: 8px;
    background: #ffffff;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    text-align: center;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.7;
}

.footer-bottom a.icp-link {
    display: inline-block;
    margin-top: 8px;
    color: #7c8aa0;
    font-weight: 500;
}

.footer-bottom a.icp-link:hover { color: var(--primary); }

.nav-toggle {
    display: none;
    border: 1px solid var(--border);
    background: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}

/* ----- 内页 ----- */
.subpage-main {
    padding: 40px 0 56px;
}

.doc-wrap {
    max-width: var(--doc-max);
    margin: 0 auto;
    padding: 0 22px;
}

.doc-head {
    margin-bottom: 28px;
}

.doc-head h1 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.doc-head p {
    color: var(--muted);
    font-size: 15px;
}

.doc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 26px 24px;
    margin-bottom: 18px;
}

.doc-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.doc-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 18px 0 8px;
    color: #334155;
}

.doc-card p,
.doc-card li {
    font-size: 14px;
    color: #475569;
    line-height: 1.75;
}

.doc-card ul,
.doc-card ol {
    margin: 8px 0 8px 20px;
}

.doc-card li { margin-bottom: 8px; }

.doc-steps {
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
}

.doc-steps li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 14px;
}

.doc-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-callout {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 14px;
    font-size: 14px;
    color: #0c4a6e;
}

.doc-callout.warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 650;
}

.btn-inline:hover { background: var(--primary-dark); }

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin-bottom: 22px;
}

.meta-item span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.meta-item strong {
    font-size: 14px;
    font-weight: 650;
    word-break: break-word;
}

.hash-box {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    font-family: Consolas, "Courier New", ui-monospace, monospace;
    font-size: 13px;
    line-height: 1.7;
    word-break: break-all;
    position: relative;
}

.hash-label {
    color: #94a3b8;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .intro-grid { grid-template-columns: 1fr; }
    ul.intro-facts { grid-template-columns: 1fr; }
    .intro-facts li {
        border-right: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
        padding: 12px 0;
    }
    .intro-facts li:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
    .nav-toggle { display: inline-block; }

    .nav-links {
        display: none;
        position: absolute;
        right: 22px;
        top: 64px;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        padding: 10px;
        min-width: 200px;
        gap: 0;
    }

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

    .nav-links a:not(.nav-download) {
        padding: 12px 14px;
        border-radius: 8px;
    }

    .nav-links .nav-download {
        text-align: center;
        margin-top: 6px;
    }

    .feature-grid { grid-template-columns: 1fr; }
    .meta-grid { grid-template-columns: 1fr; }
}
