/* OKCode 官网样式 — Ant Design 风格 */
:root {
    --primary: #1677ff;
    --primary-hover: #4096ff;
    --primary-dark: #0958d9;
    --success: #52c41a;
    --text-primary: #1a1a1a;
    --text-secondary: #595959;
    --text-muted: #8c8c8c;
    --border: #e8e8e8;
    --bg-page: #f5f7fa;
    --bg-card: #ffffff;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,.06);
    --shadow-md: 0 4px 24px rgba(0,0,0,.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    background: #fff;
    font-size: 15px;
    line-height: 1.6;
}

/* ─── 导航 ─── */
.ok-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 64px;
    display: flex;
    align-items: center;
}
.ok-nav .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}
.ok-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.ok-logo svg { flex-shrink: 0; }
.ok-nav-links {
    display: flex;
    gap: 0;
    list-style: none;
    flex: 1;
}
.ok-nav-links a {
    display: block;
    padding: 0 16px;
    height: 64px;
    line-height: 64px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color .2s;
    white-space: nowrap;
}
.ok-nav-links a:hover,
.ok-nav-links a.active { color: var(--primary); }
.ok-nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ─── 按钮 ─── */
.ok-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    height: 38px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    border: none;
    white-space: nowrap;
}
.ok-btn-primary {
    background: var(--primary);
    color: #fff;
}
.ok-btn-primary:hover { background: var(--primary-hover); color: #fff; }
.ok-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.ok-btn-outline:hover { background: #e6f4ff; }
.ok-btn-lg {
    height: 48px;
    padding: 0 28px;
    font-size: 16px;
    border-radius: 10px;
}
.ok-btn-ghost {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
}
.ok-btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ─── 通用容器 ─── */
.ok-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ok-section { padding: 80px 0; }
.ok-section-sm { padding: 56px 0; }
.ok-section-title {
    text-align: center;
    margin-bottom: 56px;
}
.ok-section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.ok-section-title p {
    font-size: 16px;
    color: var(--text-muted);
}

/* ─── Hero ─── */
.ok-hero {
    background: linear-gradient(160deg, #f0f7ff 0%, #e6f4ff 40%, #f5f7fa 100%);
    padding: 100px 0 80px;
    overflow: hidden;
    position: relative;
}
.ok-hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(22,119,255,.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.ok-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.ok-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6f4ff;
    color: var(--primary);
    border: 1px solid #bae0ff;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}
.ok-hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.ok-hero h1 span { color: var(--primary); }
.ok-hero p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
}
.ok-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ok-hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
}
.ok-hero-stats .stat strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}
.ok-hero-stats .stat span { font-size: 13px; color: var(--text-muted); }

/* Hero screenshot mock */
.ok-hero-visual {
    position: relative;
}
.ok-hero-window {
    background: #1e1e2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.18);
}
.ok-hero-titlebar {
    background: #2a2a3e;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ok-hero-titlebar .dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.dot-red   { background: #ff5f57; }
.dot-yellow{ background: #febc2e; }
.dot-green { background: #28c840; }
.ok-hero-titlebar .tabs {
    margin-left: 16px;
    display: flex;
    gap: 4px;
}
.ok-hero-titlebar .tab {
    background: #3a3a50;
    color: #aaa;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 4px;
}
.ok-hero-titlebar .tab.cur { background: var(--primary); color: #fff; }
.ok-hero-body {
    padding: 0;
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 280px;
}
.ok-hero-sidebar {
    background: #252535;
    padding: 12px 0;
}
.ok-hero-sidebar .item {
    padding: 8px 16px;
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ok-hero-sidebar .item.active { background: rgba(22,119,255,.15); color: #69b1ff; }
.ok-hero-sidebar .item .icon { width: 16px; text-align: center; }
.ok-hero-main {
    background: #1a1a2e;
    padding: 16px;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    font-size: 12px;
    color: #e0e0e0;
    overflow: hidden;
}
.ok-hero-main .line { margin-bottom: 4px; }
.ok-hero-main .prompt { color: #69b1ff; }
.ok-hero-main .cmd    { color: #e0e0e0; }
.ok-hero-main .out    { color: #52c41a; }
.ok-hero-main .comment{ color: #666; }
.ok-hero-main .cursor {
    display: inline-block;
    width: 8px; height: 14px;
    background: var(--primary);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

/* ─── 功能特性 ─── */
.ok-features { background: #fff; }
.ok-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ok-feature-card {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: box-shadow .2s, border-color .2s, transform .2s;
}
.ok-feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #bae0ff;
    transform: translateY(-2px);
}
.ok-feature-icon {
    width: 48px; height: 48px;
    background: #e6f4ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
}
.ok-feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
}
.ok-feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}
.ok-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}
.ok-tag {
    background: #f0f5ff;
    color: #2f54eb;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
}

/* ─── 定价 ─── */
.ok-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    justify-content: center;
}
.ok-plan-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    position: relative;
}
.ok-plan-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(22,119,255,.08);
}
.ok-plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
}
.ok-plan-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.ok-plan-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin: 20px 0 6px;
}
.ok-plan-price sup { font-size: 20px; font-weight: 400; vertical-align: top; margin-top: 8px; }
.ok-plan-price .period {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
}
.ok-plan-original {
    min-height: 22px;
    font-size: 13px;
    color: var(--text-muted);
}
.ok-plan-original del {
    color: #8c8c8c;
    margin-right: 8px;
}
.ok-plan-discount {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff1f0;
    color: #cf1322;
    font-size: 12px;
    font-weight: 600;
}
.ok-plan-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
    min-height: 40px;
}
.ok-plan-features { list-style: none; margin-bottom: 32px; }
.ok-plan-features li {
    padding: 9px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f5f5f5;
}
.ok-plan-features li:last-child { border-bottom: none; }
.ok-plan-features .check { color: var(--success); font-size: 16px; }
.ok-plan-features .cross { color: #d9d9d9; font-size: 16px; }
.ok-plan-cta { width: 100%; text-align: center; justify-content: center; }

/* ─── 下载 ─── */
.ok-download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
}
.ok-download-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    text-align: center;
    transition: box-shadow .2s;
}
.ok-download-card:hover { box-shadow: var(--shadow-md); }
.ok-download-icon { font-size: 56px; margin-bottom: 16px; }
.ok-download-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.ok-download-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.ok-version-badge {
    display: inline-block;
    background: #f6ffed;
    color: var(--success);
    border: 1px solid #b7eb8f;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 12px;
    margin-bottom: 20px;
}
.ok-download-alt { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.ok-download-alt a { color: var(--primary); text-decoration: none; }

/* ─── 文档/FAQ ─── */
.ok-faq-list { max-width: 800px; margin: 0 auto; }
.ok-faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.ok-faq-q {
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.ok-faq-q:hover { color: var(--primary); }
.ok-faq-q .arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform .2s;
}
.ok-faq-item.open .ok-faq-q .arrow { transform: rotate(180deg); }
.ok-faq-a {
    display: none;
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    border-top: 1px solid var(--border);
}
.ok-faq-item.open .ok-faq-a { display: block; }

/* ─── CTA Banner ─── */
.ok-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #0958d9 100%);
    color: #fff;
    text-align: center;
    padding: 80px 24px;
}
.ok-cta h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.ok-cta p { font-size: 17px; opacity: .85; margin-bottom: 36px; }
.ok-cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ─── */
.ok-footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 48px 0 28px;
}
.ok-footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.ok-footer-brand .logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}
.ok-footer-brand p { font-size: 13px; line-height: 1.8; }
.ok-footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.ok-footer-col ul { list-style: none; }
.ok-footer-col ul li { margin-bottom: 8px; }
.ok-footer-col ul li a { color: #888; font-size: 13px; text-decoration: none; transition: color .2s; }
.ok-footer-col ul li a:hover { color: var(--primary-hover); }
.ok-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
    font-size: 13px;
    color: #555;
}

/* ─── 响应式 ─── */
@media (max-width: 900px) {
    .ok-hero-inner { grid-template-columns: 1fr; }
    .ok-hero-visual { display: none; }
    .ok-hero h1 { font-size: 36px; }
    .ok-features-grid { grid-template-columns: repeat(2, 1fr); }
    .ok-pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .ok-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .ok-nav-links { display: none; }
    .ok-features-grid { grid-template-columns: 1fr; }
    .ok-download-grid { grid-template-columns: 1fr; }
    .ok-footer-grid { grid-template-columns: 1fr; }
    .ok-hero h1 { font-size: 28px; }
    .ok-section-title h2 { font-size: 26px; }
}
