/* ===== AIGC Camp Style — Agent 学习系统 ===== */
:root {
    --bg: #fafbfc;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --accent: #5b6abf;
    --accent-hover: #4a59ae;
    --accent-soft: #eef0fb;
    --accent-deep: #3d4a99;
    --border: #e2e8f0;
    --border-light: #edf2f7;
    --tag-bg: #f1f3f9;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --max-width: 1120px;
    --transition: 0.2s ease;

    /* Layer colors */
    --layer-base: #8b5cf6;
    --layer-base-bg: #f5f3ff;
    --layer-capability: #3b82f6;
    --layer-capability-bg: #eff6ff;
    --layer-arch: #f59e0b;
    --layer-arch-bg: #fffbeb;
    --layer-prod: #10b981;
    --layer-prod-bg: #ecfdf5;
    --layer-tool: #6366f1;
    --layer-tool-bg: #eef2ff;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

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

/* ===== Top Nav ===== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 0 24px;
}
.top-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.top-nav .brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-nav .brand:hover { color: var(--text); }
.top-nav .brand .brand-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.top-nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}
.top-nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}
.top-nav-links a:hover { color: var(--text); }
.top-nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
}
.progress-mini {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.progress-mini-bar {
    width: 60px; height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.progress-mini-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ===== Hero ===== */
.hero {
    padding: 80px 0 56px;
    text-align: center;
    background: linear-gradient(180deg, #f0f1ff 0%, var(--bg) 100%);
}
.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}
.hero h1 .accent { color: var(--accent); }
.hero .subtitle {
    font-size: 1.12rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(91,106,191,0.25);
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: 0 4px 16px rgba(91,106,191,0.3);
    transform: translateY(-1px);
}
.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ===== Stats Bar ===== */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 32px 0;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
}
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== Section ===== */
.section {
    padding: 56px 0;
}
.section-header {
    margin-bottom: 32px;
}
.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.section-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* ===== Roadmap Cards ===== */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.roadmap-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
}
.roadmap-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.roadmap-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    color: var(--text);
}
.roadmap-card .card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.roadmap-card .card-step {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.roadmap-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.roadmap-card .card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.roadmap-card .card-count {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.roadmap-card .card-arrow {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 1.2rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity var(--transition);
}
.roadmap-card:hover .card-arrow { opacity: 1; }

/* Card color variants */
.roadmap-card.step-1::before { background: var(--layer-base); }
.roadmap-card.step-1 .card-icon { background: var(--layer-base-bg); }
.roadmap-card.step-1 .card-step { color: var(--layer-base); }
.roadmap-card.step-1:hover { border-color: var(--layer-base); }

.roadmap-card.step-2::before { background: var(--layer-capability); }
.roadmap-card.step-2 .card-icon { background: var(--layer-capability-bg); }
.roadmap-card.step-2 .card-step { color: var(--layer-capability); }
.roadmap-card.step-2:hover { border-color: var(--layer-capability); }

.roadmap-card.step-3::before { background: var(--layer-arch); }
.roadmap-card.step-3 .card-icon { background: var(--layer-arch-bg); }
.roadmap-card.step-3 .card-step { color: var(--layer-arch); }
.roadmap-card.step-3:hover { border-color: var(--layer-arch); }

.roadmap-card.step-4::before { background: var(--layer-prod); }
.roadmap-card.step-4 .card-icon { background: var(--layer-prod-bg); }
.roadmap-card.step-4 .card-step { color: var(--layer-prod); }
.roadmap-card.step-4:hover { border-color: var(--layer-prod); }

.roadmap-card.step-5::before { background: var(--layer-tool); }
.roadmap-card.step-5 .card-icon { background: var(--layer-tool-bg); }
.roadmap-card.step-5 .card-step { color: var(--layer-tool); }
.roadmap-card.step-5:hover { border-color: var(--layer-tool); }

/* ===== Knowledge Layers ===== */
.layer-section {
    margin-bottom: 40px;
}
.layer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}
.layer-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.layer-title {
    font-size: 1.15rem;
    font-weight: 700;
}
.layer-count {
    font-size: 0.78rem;
    background: var(--tag-bg);
    padding: 2px 10px;
    border-radius: 12px;
    color: var(--text-muted);
    margin-left: auto;
}
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.knowledge-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: all var(--transition);
    color: var(--text);
    position: relative;
}
.knowledge-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    color: var(--text);
}
.knowledge-card .kc-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.knowledge-card .kc-title .read-check {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    flex-shrink: 0;
    transition: all var(--transition);
}
.knowledge-card .kc-title .read-check.read {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.knowledge-card .kc-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.knowledge-card .kc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}
.knowledge-card .kc-tags span {
    background: var(--tag-bg);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ===== FAQ Section ===== */
.faq-list {
    max-width: 720px;
}
.faq-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}
.faq-item:last-child { border-bottom: none; }
.faq-item a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
}
.faq-item a:hover { color: var(--accent); }
.faq-item .faq-q {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.faq-item .faq-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ===== Footer ===== */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.site-footer .footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Learn Page ===== */
.learn-hero {
    padding: 48px 0 36px;
    border-bottom: 1px solid var(--border-light);
}
.learn-hero .breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.learn-hero .breadcrumb a { font-weight: 500; }
.learn-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.learn-hero h1 .layer-badge {
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}
.learn-hero .learn-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.6;
}
.learn-progress {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.progress-bar-lg {
    flex: 1;
    max-width: 320px;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-lg .fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Learn content list */
.learn-section {
    padding: 40px 0;
}
.learn-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.note-list-learn {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.note-card-learn {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text);
}
.note-card-learn:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    color: var(--text);
    transform: translateY(-1px);
}
.note-card-learn .note-read-btn {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition);
    margin-top: 2px;
}
.note-card-learn .note-read-btn.read {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.note-card-learn .note-read-btn:hover {
    border-color: var(--accent);
}
.note-card-learn .note-body { flex: 1; }
.note-card-learn .note-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.note-card-learn .note-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.note-card-learn .note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}
.note-card-learn .note-tags span {
    background: var(--tag-bg);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Path suggestion */
.path-box {
    background: var(--accent-soft);
    border: 1px solid rgba(91,106,191,0.15);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 24px 0;
}
.path-box h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent);
}
.path-box p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Chapter nav */
.chapter-nav {
    display: flex;
    justify-content: space-between;
    padding: 32px 0;
    border-top: 1px solid var(--border-light);
    margin-top: 40px;
    gap: 16px;
}
.chapter-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}
.chapter-nav a:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}
.chapter-nav .nav-arrow { font-size: 1.1rem; }

/* ===== Auth Modal ===== */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.auth-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}
.auth-modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    width: 360px;
    max-width: 90vw;
    box-shadow: var(--shadow-lg);
    transform: translateY(12px);
    transition: transform 0.25s ease;
}
.auth-overlay.visible .auth-modal {
    transform: translateY(0);
}
.auth-modal h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.auth-modal .auth-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.auth-modal label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}
.auth-modal input[type="text"],
.auth-modal input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    margin-bottom: 16px;
    outline: none;
    transition: border-color var(--transition);
}
.auth-modal input:focus {
    border-color: var(--accent);
}
.auth-modal .auth-error {
    font-size: 0.82rem;
    color: #e53e3e;
    margin-bottom: 12px;
    display: none;
}
.auth-modal .btn-primary {
    width: 100%;
    justify-content: center;
}
.auth-modal .auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-modal .auth-switch a {
    cursor: pointer;
    font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .hero .subtitle { font-size: 1rem; }
    .stats-bar { gap: 24px; }
    .stat-value { font-size: 1.5rem; }
    .roadmap-grid { grid-template-columns: 1fr 1fr; }
    .knowledge-grid { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .top-nav-links { gap: 16px; }
    .top-nav-links a { font-size: 0.82rem; }
    .chapter-nav { flex-direction: column; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .roadmap-grid { grid-template-columns: 1fr; }
    .stats-bar { gap: 16px; flex-wrap: wrap; }
    .note-card-learn { flex-direction: column; gap: 12px; }
    .note-card-learn .note-read-btn { margin-top: 0; }
}
