:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --dark: #0b1220;
    --dark-2: #101a30;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.navbar {
    background: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 700;
}

.nav-links { display: flex; gap: 28px; }

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-links a:hover { color: #fff; }

/* Hero */
.hero {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
    color: #fff;
    padding: 96px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 200px at 50% 0%, rgba(59,130,246,0.18), transparent),
        radial-gradient(400px 200px at 80% 100%, rgba(37,99,235,0.12), transparent);
    pointer-events: none;
}

.hero .container { position: relative; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 28px;
}

.badge::before {
    content: "";
    width: 7px; height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    max-width: 780px;
    margin: 0 auto 20px;
}

.lead {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.12);
}

.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 32px;
}

.hero-stats div { text-align: center; }
.hero-stats strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}
.hero-stats span {
    font-size: 0.82rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: #f1f5f9; }

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 44px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.15);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 16px;
    line-height: 1;
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.resource {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
}

.resource:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px -12px rgba(37, 99, 235, 0.25);
}

.resource h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.resource p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.resource .arrow {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent);
    font-weight: 600;
    transition: transform 0.2s;
}

.resource:hover .arrow { transform: translateX(4px); }

/* Footer */
.footer {
    background: var(--dark);
    color: #64748b;
    padding: 40px 0;
    margin-top: 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-copy {
    font-size: 0.75rem;          /* 明显缩小字号 */
    font-weight: 400;            /* 不加粗 */
    color: #64748b;              /* 冷灰色 */
    letter-spacing: 0.02em;      /* 字间距稍微拉开一点，显得精致 */
    line-height: 1.8;            /* 行高拉开，避免拥挤 */
    text-align: right;           /* 对齐到右侧，和左侧 Logo 形成对称感 */
}

.footer-copy .update-time {
    font-size: 0.7rem;           /* 日期比版权信息再小一号 */
    color: #475569;              /* 颜色更暗，弱化视觉层级 */
    font-family: "SF Mono", Monaco, Menlo, Consolas, monospace; /* 日期用等宽字体，增加技术感 */
}

/* Docs page */
.doc-page { background: var(--bg); }

.doc-header {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
    color: #fff;
    padding: 72px 0 56px;
    text-align: center;
}

.doc-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}

.doc-header p { color: #94a3b8; font-size: 1.05rem; }

.doc-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.doc-body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 40px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.doc-body h2:first-child { margin-top: 0; }

.doc-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 24px 0 8px;
    color: var(--text);
}

.doc-body p {
    color: #334155;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.doc-body code {
    background: #eef2f7;
    border: 1px solid #e2e8f0;
    padding: 2px 7px;
    border-radius: 5px;
    font-family: "SF Mono", Monaco, Menlo, Consolas, monospace;
    font-size: 0.85em;
    color: #0f172a;
}

.doc-body ol, .doc-body ul {
    margin: 12px 0 12px 22px;
    color: #334155;
    font-size: 0.95rem;
}

.doc-body li { margin-bottom: 6px; }

.endpoint {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 18px 20px;
    margin: 16px 0;
}

.endpoint .method {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: 0.03em;
    margin-right: 10px;
}

.endpoint .path {
    font-family: "SF Mono", Monaco, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    color: #0f172a;
}

.endpoint p { margin: 10px 0 0; color: var(--text-muted); }

.back-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 24px;
    font-weight: 500;
}

.back-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .hero { padding: 72px 0 60px; }
    .hero-stats { gap: 28px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { text-align: center; }
    .nav-links { gap: 16px; }
}

.logo-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.2s;
}

.logo-item:hover {
    color: #475569;
    border-color: #cbd5e1;
}