/* ============================================
   超脑 AI 孵化器官网
   设计系统源自 ai-for-good.superbrain-ai.com (冬令营线上版)
   暖白 · 珊瑚红 · 编辑器风格
   ============================================ */

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

:root {
    --bg: #FAF9F7;
    --bg-warm: #F5F3F0;
    --bg-card: #FFFFFF;
    --bg-subtle: #EEECEA;
    --bg-dark: #1A1A1A;

    --coral: #E85D4A;
    --coral-bg: rgba(232, 93, 74, 0.06);
    --coral-border: rgba(232, 93, 74, 0.15);

    --blue: #2563EB;
    --blue-bg: rgba(37, 99, 235, 0.06);
    --blue-border: rgba(37, 99, 235, 0.15);

    --green: #059669;
    --green-bg: rgba(5, 150, 105, 0.06);
    --green-border: rgba(5, 150, 105, 0.15);

    --amber: #D97706;
    --amber-bg: rgba(217, 119, 6, 0.06);
    --amber-border: rgba(217, 119, 6, 0.15);

    --violet: #7C3AED;
    --violet-bg: rgba(124, 58, 237, 0.06);
    --violet-border: rgba(124, 58, 237, 0.15);

    --text: #1A1A1A;
    --text-secondary: #555555;
    --text-muted: #999999;
    --border: #E8E6E3;
    --border-light: #F0EEEB;

    --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

    --container: 1000px;
    --container-wide: 1100px;
    --gutter: 24px;
    --radius: 10px;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body); background: var(--bg); color: var(--text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
::selection { background: rgba(232, 93, 74, 0.12); }
a { color: inherit; text-decoration: none; }
a.textlink { color: var(--coral); border-bottom: 1px dashed transparent; transition: border-color .2s; }
a.textlink:hover { border-bottom-color: var(--coral); }
img { max-width: 100%; height: auto; display: block; }

/* ===== LAYOUT ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 88px 0; }
@media (max-width: 768px) {
    section { padding: 56px 0; }
    :root { --gutter: 20px; }
}

/* ===== NAV ===== */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(250, 249, 247, 0.88);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
nav .container { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.nav-brand { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em; }
.nav-brand .dot { color: var(--coral); }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { font-size: 0.8125rem; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
    display: inline-flex; align-items: center; padding: 6px 14px;
    background: var(--coral); color: #fff !important; border-radius: 6px;
    font-size: 0.8125rem; font-weight: 600;
}
.nav-cta:hover { background: #d4503f; color: #fff !important; }
.nav-toggle {
    display: none; background: transparent; border: 0; cursor: pointer;
    width: 32px; height: 32px; padding: 0;
    flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); }
@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open {
        display: flex; position: fixed; top: 52px; left: 0; right: 0;
        background: rgba(250,249,247,0.98); backdrop-filter: blur(20px);
        flex-direction: column; gap: 16px; padding: 20px var(--gutter);
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open a { font-size: 0.95rem; }
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 16px; }
h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
p { color: var(--text-secondary); margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

.section-label {
    display: inline-block; font-size: 0.6875rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    margin-bottom: 12px; color: var(--coral);
}
.section-label.blue { color: var(--blue); }
.section-label.green { color: var(--green); }
.section-label.violet { color: var(--violet); }
.section-label.amber { color: var(--amber); }

.lead { font-size: clamp(1rem, 1.8vw, 1.125rem); line-height: 1.9; color: var(--text-secondary); }
.highlight { color: var(--text); font-weight: 600; }

/* ===== HERO ===== */
.hero { padding: 140px 0 80px; position: relative; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.8125rem;
    color: var(--coral); margin-bottom: 28px;
}
.hero-badge::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--coral); opacity: 0.6;
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.25); }
}
.hero h1 { margin-bottom: 28px; }
.hero-desc { font-size: clamp(1rem, 1.8vw, 1.0625rem); line-height: 1.9; color: var(--text-secondary); margin-bottom: 20px; max-width: 760px; }
.hero-stats {
    display: flex; gap: 40px; flex-wrap: wrap; margin-top: 48px;
    padding-top: 32px; border-top: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-size: 1.5rem; font-weight: 700; font-family: var(--font-mono); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }
.hero-cta { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
@media (max-width: 768px) { .hero { padding: 110px 0 56px; } .hero-stats { gap: 28px; } }

/* ===== PAGE HEADER (非首页) ===== */
.page-header { padding: 130px 0 48px; }
.page-header h1 { margin-bottom: 16px; }
.page-header .lead { max-width: 760px; }

/* ===== DIVIDER ===== */
.divider { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.divider-inner { height: 1px; background: var(--border); }

/* ===== GRIDS ===== */
.about-intro {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: start; margin-top: 40px;
}
@media (max-width: 768px) { .about-intro { grid-template-columns: 1fr; gap: 32px; } }

.mission-quote {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 28px;
    border-left: 3px solid var(--coral);
}
.mission-quote blockquote { font-size: 1.0625rem; font-weight: 500; line-height: 1.8; font-style: italic; margin-bottom: 16px; color: var(--text); }
.mission-quote .quote-source { font-size: 0.8125rem; color: var(--text-muted); }

.desc-item { margin-bottom: 28px; }
.desc-item:last-child { margin-bottom: 0; }
.desc-item h3 { font-size: 0.9375rem; }
.desc-item p { font-size: 0.9375rem; line-height: 1.8; }

/* ===== 3-col card grids (goals / stories / sustain) ===== */
.tri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 768px) { .tri-grid { grid-template-columns: 1fr; } }
.duo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 768px) { .duo-grid { grid-template-columns: 1fr; } }

/* top-accent card (stories/sustain) */
.accent-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
    border-top: 3px solid transparent;
    transition: transform 0.25s, box-shadow 0.25s;
}
.accent-card.coral { border-top-color: var(--coral); }
.accent-card.blue { border-top-color: var(--blue); }
.accent-card.green { border-top-color: var(--green); }
.accent-card.violet { border-top-color: var(--violet); }
.accent-card.amber { border-top-color: var(--amber); }
.accent-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.accent-card h3 { font-size: 0.9375rem; margin-bottom: 12px; }
.accent-card p { font-size: 0.875rem; line-height: 1.75; }
.accent-card .card-tag {
    font-size: 0.6875rem; font-family: var(--font-mono);
    color: var(--text-muted); margin-top: 16px; padding-top: 12px;
    border-top: 1px solid var(--border-light);
}
.accent-card .card-subtitle {
    font-size: 0.8125rem; color: var(--text-muted);
    font-style: italic; margin-top: -6px; margin-bottom: 12px;
}

/* left-accent card (values) */
.value-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 24px;
    border-left: 3px solid transparent;
}
.value-card.coral { border-left-color: var(--coral); }
.value-card.blue { border-left-color: var(--blue); }
.value-card.green { border-left-color: var(--green); }
.value-card.violet { border-left-color: var(--violet); }
.value-card.amber { border-left-color: var(--amber); }
.value-card h3 { font-size: 0.9375rem; margin-bottom: 4px; }
.value-card p { font-size: 0.8125rem; line-height: 1.75; }
.value-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

/* ===== Operating model flow (3-step connected) ===== */
.model-flow {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    margin-top: 40px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
@media (max-width: 768px) { .model-flow { grid-template-columns: 1fr; } }
.model-step { padding: 32px 28px; position: relative; border-right: 1px solid var(--border); }
.model-step:last-child { border-right: none; }
@media (max-width: 768px) {
    .model-step { border-right: none; border-bottom: 1px solid var(--border); }
    .model-step:last-child { border-bottom: none; }
}
.model-step-num { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 12px; }
.model-step.coral .model-step-num { color: var(--coral); }
.model-step.blue .model-step-num { color: var(--blue); }
.model-step.green .model-step-num { color: var(--green); }
.model-step.violet .model-step-num { color: var(--violet); }
.model-step h3 { font-size: 1rem; margin-bottom: 8px; }
.model-step p { font-size: 0.875rem; line-height: 1.75; margin: 0; }

/* ===== Timeline (list-style) ===== */
.timeline-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
}
.timeline-item {
    display: flex; gap: 16px; padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-year {
    font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
    color: var(--coral); width: 92px; flex-shrink: 0; padding-top: 2px;
}
.timeline-content h4 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 4px; }
.timeline-content p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 4px; }

/* ===== Callout / banner ===== */
.callout-banner {
    background: var(--bg-dark); color: #fff; text-align: center;
    padding: 64px 0; margin: 40px 0 0;
}
.callout-banner .section-label { color: var(--amber); }
.callout-banner h2 { color: #fff; margin-bottom: 12px; }
.callout-banner p { color: rgba(255,255,255,0.75); }
.callout-banner a.cta-btn.secondary { background: transparent; color:#fff; border:1px solid rgba(255,255,255,0.25); }
.callout-banner a.cta-btn.secondary:hover { border-color:#fff; }

.quote-block {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 32px;
    border-left: 3px solid var(--coral); margin: 32px 0;
}
.quote-block p {
    font-size: 1rem; font-weight: 500; line-height: 1.85;
    font-style: italic; color: var(--text); margin-bottom: 0;
}
.quote-block .attr {
    display: block; margin-top: 14px;
    font-size: 0.8125rem; color: var(--text-muted); font-style: normal;
}

/* ===== Buttons ===== */
.cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 8px;
    font-size: 0.875rem; font-weight: 600;
    transition: all 0.2s; cursor: pointer; border: none;
}
.cta-btn.primary { background: var(--coral); color: #fff; }
.cta-btn.primary:hover { background: #d4503f; color: #fff; }
.cta-btn.secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.cta-btn.secondary:hover { border-color: var(--text-muted); }
.cta-btn.ghost { background: transparent; color: var(--text-secondary); }
.cta-btn.ghost:hover { color: var(--text); }

/* Role tags (pill) */
.roles { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.role-tag {
    font-size: 0.75rem; padding: 5px 12px; border-radius: 20px;
    background: var(--bg-warm); border: 1px solid var(--border); color: var(--text-secondary);
}

/* ===== Project link cards (homepage) ===== */
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 768px) { .link-cards { grid-template-columns: 1fr; } }
.link-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    display: flex; flex-direction: column; transition: all 0.25s; color: inherit;
}
.link-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); border-color: var(--coral); }
.link-card .lk-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.link-card .lk-arrow { color: var(--text-muted); font-size: 1rem; }
.link-card:hover .lk-arrow { color: var(--coral); }
.link-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.link-card p { font-size: 0.875rem; line-height: 1.75; margin-bottom: 12px; }
.link-card .lk-url { font-family: var(--font-mono); font-size: 0.75rem; color: var(--coral); word-break: break-all; }
.pill { display: inline-block; font-size: 0.6875rem; font-family: var(--font-mono); font-weight: 600; padding: 3px 10px; border-radius: 4px; letter-spacing: 0.06em; }
.pill.coral { color: var(--coral); background: var(--coral-bg); }
.pill.violet { color: var(--violet); background: var(--violet-bg); }
.pill.blue { color: var(--blue); background: var(--blue-bg); }
.pill.green { color: var(--green); background: var(--green-bg); }
.pill.amber { color: var(--amber); background: var(--amber-bg); }

/* ===== Case cards (cases page) ===== */
.case-groups { display: flex; flex-direction: column; gap: 56px; margin-top: 40px; }
.case-group-head { margin-bottom: 24px; }
.case-group-head h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.case-group-head p { font-size: 0.9375rem; color: var(--text-secondary); margin: 0; max-width: 780px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.case-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px 24px;
    display: flex; flex-direction: column;
    transition: all 0.25s;
}
.case-card:hover { border-color: var(--text-muted); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.case-card .cc-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-muted); }
.case-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.case-card .cc-sub { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 12px; font-style: italic; }
.case-card .cc-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 14px; flex-grow: 1; }
.case-card .cc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.case-tag { font-size: 0.6875rem; padding: 3px 8px; border-radius: 4px; background: var(--bg-warm); color: var(--text-secondary); border: 1px solid var(--border-light); }
.case-card .cc-src { font-size: 0.75rem; color: var(--text-muted); line-height: 1.65; padding-top: 12px; border-top: 1px solid var(--border-light); }
.case-card .cc-src strong { color: var(--text-secondary); font-weight: 600; }
.case-card .cc-src a { color: var(--coral); font-family: var(--font-mono); font-size: 0.7rem; word-break: break-all; }
.badge-ready { color: var(--green); background: var(--green-bg); }
.badge-half { color: var(--amber); background: var(--amber-bg); }
.badge-internal { color: var(--text-muted); background: var(--bg-warm); }
.cc-meta .badge { font-size: 0.625rem; padding: 2px 8px; border-radius: 4px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* ===== Prose (whitepaper) ===== */
.wp-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 1023px) { .wp-layout { grid-template-columns: 1fr; } .wp-toc { display: none; } }
.wp-toc {
    position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto;
    padding: 20px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-card);
}
.wp-toc h4 { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); margin-bottom: 12px; }
.wp-toc ul { list-style: none; }
.wp-toc li { margin-bottom: 4px; }
.wp-toc a { color: var(--text-secondary); display: block; padding: 4px 0 4px 10px; border-left: 2px solid transparent; font-size: 0.8125rem; line-height: 1.5; transition: all 0.15s; }
.wp-toc a:hover { color: var(--text); border-left-color: var(--coral); background: var(--bg-warm); }

.prose {
    font-size: 1rem; line-height: 1.85; color: var(--text);
    max-width: 760px;
}
.prose h1 { font-size: 2rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 16px; }
.prose h2 {
    font-size: 1.5rem; font-weight: 700; line-height: 1.3;
    margin-top: 56px; margin-bottom: 16px; padding-top: 28px;
    border-top: 1px solid var(--border); color: var(--text);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 1.125rem; font-weight: 700; margin-top: 32px; margin-bottom: 8px; color: var(--text); }
.prose h4 { font-size: 1rem; font-weight: 600; margin-top: 24px; margin-bottom: 6px; color: var(--text); }
.prose p { color: var(--text-secondary); margin-bottom: 16px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--text); }
.prose ul, .prose ol { margin: 16px 0 16px 1.5rem; color: var(--text-secondary); }
.prose li { margin-bottom: 6px; line-height: 1.8; }
.prose blockquote {
    border-left: 3px solid var(--coral); background: var(--bg-card);
    border: 1px solid var(--border); border-left-width: 3px; border-left-color: var(--coral);
    padding: 20px 24px; margin: 24px 0; border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text);
}
.prose blockquote p { font-style: italic; font-weight: 500; color: var(--text); margin-bottom: 0; }
.prose blockquote p + p { margin-top: 10px; }
.prose table {
    width: 100%; border-collapse: collapse; margin: 24px 0;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; font-size: 0.9rem;
}
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.prose th { background: var(--bg-warm); font-weight: 600; color: var(--text); font-size: 0.85rem; }
.prose td { color: var(--text-secondary); }
.prose tr:last-child td { border-bottom: 0; }
.prose code { background: var(--coral-bg); color: var(--coral); padding: 0.15em 0.4em; border-radius: 4px; font-family: var(--font-mono); font-size: 0.88em; }
.prose pre { background: var(--bg-card); border: 1px solid var(--border); padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; font-size: 0.85rem; margin: 16px 0; }
.prose pre code { background: transparent; padding: 0; color: var(--text-secondary); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.prose a { color: var(--coral); border-bottom: 1px dashed var(--coral-border); }
.prose a:hover { border-bottom-color: var(--coral); }

/* ===== Horizontal rule section accent ===== */
.section-alt { background: var(--bg-warm); }
.section-bg-card { background: var(--bg-subtle); }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--border); padding: 32px 0; margin-top: 40px; }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-left { font-size: 0.75rem; color: var(--text-muted); }
.footer-right { display: flex; gap: 20px; font-size: 0.75rem; }
.footer-right a { color: var(--text-secondary); transition: color 0.2s; }
.footer-right a:hover { color: var(--text); }
.footer-wechat { font-size: 0.75rem; color: var(--text-muted); }
.footer-wechat strong { color: var(--text); font-weight: 600; }

/* ===== Scroll animation ===== */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Utility ===== */
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.center { text-align: center; }
