/* 全局样式 */
:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;

    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero 区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.day-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 主要内容区域 */
main {
    padding: 3rem 0;
}

/* 概念图区域 */
.diagram-section {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.diagram-section h2 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.diagram-container {
    min-height: 500px;
    background: linear-gradient(to bottom, #f8fafc, #fff);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 概念卡片网格 */
.concepts-grid {
    margin-bottom: 3rem;
}

.concepts-grid > h2 {
    font-size: 1.875rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

.concept-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.concept-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.concept-icon {
    font-size: 2.5rem;
}

.card-header h3 {
    flex: 1;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.tag {
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tag.primary { background: #ede9fe; color: #7c3aed; }
.tag.secondary { background: #dbeafe; color: #2563eb; }
.tag.success { background: #d1fae5; color: #059669; }
.tag.warning { background: #fef3c7; color: #d97706; }
.tag.info { background: #e0e7ff; color: #4338ca; }

.card-body p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.detail-box {
    background: #f9fafb;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--primary-light);
}

.detail-box h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.detail-box ul,
.detail-box ol {
    margin-left: 1.25rem;
    color: var(--text-secondary);
}

.detail-box li {
    margin-bottom: 0.5rem;
}

.detail-box li strong {
    color: var(--text-primary);
}

.example-box {
    background: linear-gradient(135deg, #eff6ff 0%, #fdf4ff 100%);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid #e0e7ff;
}

.example-box.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
}

.example-box h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.example-box ul,
.example-box ol {
    margin-left: 1.25rem;
    color: var(--text-secondary);
}

.example-box li {
    margin-bottom: 0.4rem;
}

/* 代码示例 */
.code-example {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    margin-top: 1rem;
    overflow-x: auto;
}

/* 对比表格 */
.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.comparison-table th {
    background: #f3f4f6;
    font-weight: 600;
}

/* 步骤流程 */
.process-steps {
    counter-reset: step-counter;
    list-style: none;
    margin-left: 0 !important;
}

.process-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.25rem;
}

.process-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Agent 类型 */
.agent-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.type-item {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--primary-light);
    text-align: center;
}

/* 提示技巧 */
.tips-list {
    display: grid;
    gap: 1rem;
}

.tip {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--info-color);
}

.tip strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.tip p {
    margin-bottom: 0 !important;
    color: var(--text-secondary) !important;
}

/* 对比示例 */
.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.bad, .good {
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.bad {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.good {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

/* 温度参数可视化 */
.temp-scale {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.temp-low,
.temp-mid,
.temp-high {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 2px solid;
}

.temp-low { border-color: #93c5fd; }
.temp-mid { border-color: #fcd34d; }
.temp-high { border-color: #fca5a5; }

.temp-scale ul {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

/* 向量可视化示例 */
.visual-example {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-family: monospace;
}

.visual-example ul {
    list-style: none !important;
    margin-left: 0 !important;
}

.visual-example li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

/* 总结区域 */
.summary-section {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.summary-section h2,
.summary-section h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.relationship-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.map-center {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.map-ring {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ring-1 span,
.ring-2 span,
.ring-3 span {
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border: 2px solid;
}

.ring-1 span { border-color: #93c5fd; }
.ring-2 span { border-color: #fcd34d; }
.ring-3 span { border-color: #86efac; }

/* 学习路径 */
.learning-path {
    max-width: 800px;
    margin: 0 auto;
}

.path-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.step-num {
    background: var(--primary-color);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    background: #f9fafb;
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

.step-content strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.step-content p {
    margin: 0 !important;
    color: var(--text-secondary);
}

/* 页脚 */
footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

.footer-note {
    opacity: 0.7;
    font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.05rem;
    }

    .diagram-section,
    .summary-section {
        padding: 1.5rem;
    }

    .concept-card {
        padding: 1.5rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .comparison {
        grid-template-columns: 1fr;
    }

    .agent-types {
        grid-template-columns: 1fr;
    }

    .map-center {
        width: 140px;
        height: 140px;
        font-size: 1rem;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
