/* ========================
   Anthropic 页面样式
   ======================== */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #10b981;
    --accent: #8b5cf6;
    --warning: #f59e0b;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f9fafb;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --anthropic-orange: #f97316;
    --anthropic-teal: #14b8a6;
    --anthropic-rose: #f43f5e;
}

/* ========================
   重置
   ======================== */
* {
    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);
    color: var(--text);
    line-height: 1.6;
    font-size: 18px;
}

/* ========================
   顶部标题区
   ======================== */
.header {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.header .stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.header .stat-item {
    text-align: center;
}

.header .stat-num {
    font-size: 2rem;
    font-weight: 700;
}

.header .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================
   导航栏
   ======================== */
.nav {
    background: var(--card-bg);
    padding: 12px 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-logo {
    font-weight: 700;
    color: var(--anthropic-orange);
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 10px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--anthropic-orange);
    color: white;
}

/* ========================
   主内容容器
   ======================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========================
   章节卡片
   ======================== */
.section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.section-title {
    margin-bottom: 25px;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1rem;
}

/* ========================
   介绍卡片组
   ======================== */
.intro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.intro-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border);
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.intro-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.intro-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.intro-content h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 6px;
}

.intro-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========================
   团队网格
   ======================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    font-size: 3rem;
    margin-bottom: 15px;
}

.team-card h4 {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 5px;
}

.team-role {
    color: var(--anthropic-orange);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.team-desc {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ========================
   特性网格
   ======================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-card .feature-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}

.feature-card h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ========================
   时间线
   ======================== */
.timeline {
    position: relative;
    padding-left: 30px;
    margin: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 20px;
}

.timeline-dot {
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--anthropic-orange);
    border: 2px solid var(--card-bg);
    box-shadow: 0 0 0 2px var(--anthropic-orange);
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 5px;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================
   表格
   ======================== */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
    border: 1px solid var(--border);
    padding: 12px 15px;
    text-align: left;
}

.compare-table th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--text);
}

.compare-table tr:hover {
    background: #f8fafc;
}

/* ========================
   标签
   ======================== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    margin-top: 10px;
}

.badge-blue { background: var(--primary); }
.badge-green { background: var(--secondary); }
.badge-purple { background: var(--accent); }
.badge-orange { background: var(--anthropic-orange); }
.badge-teal { background: var(--anthropic-teal); }

/* ========================
   提示盒子
   ======================== */
.tip-box {
    padding: 25px;
    border-radius: var(--radius);
    margin: 20px 0;
    color: white;
}

.tip-box h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.tip-box p {
    opacity: 0.95;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================
   架构图
   ======================== */
.arch-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    padding: 30px;
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.arch-layer {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    text-align: center;
}

.arch-layer.highlight {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.arch-label {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.arch-items {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.arch-item {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text);
}

.arch-arrow {
    font-size: 1.5rem;
    color: var(--text-light);
}

/* ========================
   哲学卡片
   ======================== */
.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.philosophy-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.philosophy-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.philosophy-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--anthropic-orange);
    margin-bottom: 10px;
}

.philosophy-card h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 10px;
}

.philosophy-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========================
   关系图
   ======================== */
.relationship-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    padding: 30px;
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.rel-box {
    padding: 20px 25px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    text-align: center;
    min-width: 200px;
}

.rel-box.highlight {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.rel-box h4 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 8px;
}

.rel-box p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.rel-desc {
    margin-top: 5px;
    font-size: 0.85rem !important;
}

.rel-plus,
.rel-equals {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
}

/* ========================
   未来卡片
   ======================== */
.future-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.future-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.future-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.future-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.future-card h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 10px;
}

.future-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========================
   总结盒子
   ======================== */
.summary-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    margin: 20px 0;
}

.summary-box h4 {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 15px;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    font-size: 0.95rem;
}

.summary-item .highlight {
    min-width: 120px;
    font-weight: 600;
    color: var(--primary-dark);
}

.summary-item span {
    color: var(--text-light);
}

/* ========================
   Footer
   ======================== */
.footer {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer p {
    opacity: 0.9;
    font-size: 1rem;
    margin-bottom: 5px;
}

.footer a {
    color: white;
    text-decoration: underline;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer a:hover {
    opacity: 1;
}

.footer-note {
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ========================
   响应式
   ======================== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    .header p {
        font-size: 1rem;
    }
    .header .stats {
        gap: 15px;
    }
    .header .stat-num {
        font-size: 1.5rem;
    }
    .section {
        padding: 25px;
    }
    .section-title h2 {
        font-size: 1.4rem;
    }
    .nav-links {
        gap: 4px;
    }
    .nav-links a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    .intro-cards {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .philosophy-cards {
        grid-template-columns: 1fr;
    }
    .future-cards {
        grid-template-columns: 1fr;
    }
    .relationship-diagram {
        flex-direction: column;
    }
    .rel-plus,
    .rel-equals {
        transform: rotate(90deg);
    }
    .arch-items {
        flex-direction: column;
        align-items: center;
    }
    .summary-item {
        flex-direction: column;
    }
    .summary-item .highlight {
        min-width: auto;
    }
}
