/* 全局样式 */
:root {
    /* 主色调 - 参考微信公众号风格 */
    --primary-color: #07c160;
    --secondary-color: #576b95;
    --accent-color: #fa5151;
    --text-primary: #191919;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f7f8fa;
    --bg-dark: #1a1a2e;
    --border-color: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--bg-light);
    font-size: 16px;
    overflow-x: hidden;
}

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

/* 导航栏 */
.nav-bar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

.nav-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 头部横幅 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 15px;
    opacity: 0.9;
}

/* 通用section样式 */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--bg-white);
}

.section-dark {
    background: var(--bg-dark);
    color: white;
}

.section-accent {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-dark .section-title::after {
    background: var(--primary-color);
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.subsection-title {
    font-size: 28px;
    font-weight: 600;
    margin: 48px 0 24px 0;
    color: var(--text-primary);
}

.section-dark .subsection-title {
    color: white;
}

/* 摘要卡片 */
.abstract-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    margin: 48px 0;
    box-shadow: var(--shadow-sm);
}

.abstract-text {
    font-size: 18px;
    line-height: 2;
    color: var(--text-primary);
    margin-bottom: 32px;
    text-align: justify;
}

.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 32px;
    border-radius: 8px;
    border-left: 4px solid #ffd700;
}

.highlight-box h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.highlight-box p {
    font-size: 16px;
    line-height: 1.8;
}

/* 交付物网格 */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.deliverable-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.deliverable-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.deliverable-card .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.deliverable-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.deliverable-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 问题网格 */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.problem-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.problem-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.problem-list {
    list-style: none;
    padding: 0;
}

.problem-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    line-height: 1.6;
}

.problem-list li:last-child {
    border-bottom: none;
}

/* 挑战部分 */
.challenge-section {
    margin-top: 48px;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.challenge-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

.challenge-item:hover {
    transform: scale(1.05);
}

.challenge-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.challenge-item h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.challenge-item p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* 架构图 */
.architecture-diagram, .workflow-diagram {
    text-align: center;
    margin: 40px 0;
    padding: 32px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.diagram-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* 组件网格 */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.component-card {
    background: white;
    padding: 28px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.component-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.component-icon {
    font-size: 32px;
}

.component-header h4 {
    font-size: 20px;
    color: var(--text-primary);
}

.component-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 对比表格 */
.comparison-section {
    margin-top: 48px;
}

.comparison-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comparison-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:hover {
    background: var(--bg-light);
}

/* 智能体网格 */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.agent-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.agent-number {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 48px;
    font-weight: 700;
    color: rgba(102, 126, 234, 0.1);
}

.agent-card h3 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.agent-card h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 500;
}

.agent-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.agent-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--text-secondary);
    border-radius: 16px;
    font-size: 13px;
}

/* 工作流程步骤 */
.workflow-steps {
    margin-top: 48px;
}

.workflow-step {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.workflow-step.highlight-step {
    border-left-color: var(--accent-color);
    background: linear-gradient(to right, rgba(250, 81, 81, 0.05), white);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.step-number {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.highlight-step .step-number {
    background: var(--accent-color);
}

.step-header h4 {
    font-size: 20px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.code-block {
    background: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-top: 16px;
}

.code-block pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.visual-preview {
    margin-top: 16px;
}

.color-palette {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.color-item {
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.narrative-example {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 16px;
}

.narration {
    font-style: italic;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.8;
}

.fix-example {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 16px;
}

.error-msg {
    color: var(--accent-color);
    font-family: monospace;
    margin-bottom: 8px;
}

.fix-msg {
    color: var(--primary-color);
    font-family: monospace;
}

/* 评测指标 */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.metric-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(7, 193, 96, 0.3);
    transition: transform 0.3s, border-color 0.3s;
}

.metric-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.metric-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.metric-label {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.metric-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 特性表格 */
.features-highlight {
    margin-top: 48px;
}

.features-table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 32px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    transition: background 0.3s;
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.feature-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
}

.feature-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.feature-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

/* 路线图 */
.roadmap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.roadmap-item {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.roadmap-item:hover {
    transform: translateY(-4px);
}

.roadmap-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.roadmap-stage {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.roadmap-item h4 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.roadmap-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 24px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-section p {
    font-size: 14px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

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

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .subsection-title {
        font-size: 22px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 14px;
    }

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

    .feature-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .comparison-table-wrapper {
        font-size: 13px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }

    .hero-meta {
        flex-direction: column;
        gap: 16px;
    }
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #05a850;
}
