/* 全局样式 */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #f59e0b;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

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

/* 导航栏 */
.navbar {
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::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="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,138.7C672,128,768,128,864,138.7C960,149,1056,171,1152,165.3C1248,160,1344,128,1392,112L1440,96L1440,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;
}

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

/* Award Badge */
.award-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.award-icon {
    font-size: 1.8rem;
}

.award-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: #dc2626;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: backwards;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: backwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    grid-template-rows: repeat(2, 1fr);
}

.stat-item {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: backwards;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-highlight {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.8s;
    animation-fill-mode: backwards;
}

.btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--light-bg);
    transform: translateY(-2px);
}

.btn-github {
    background: #24292e;
    color: white;
}

.btn-github:hover {
    background: #1a1e22;
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.btn-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.github-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* 核心创新 */
.innovations {
    background: white;
}

.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.innovation-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.innovation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.innovation-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.innovation-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.innovation-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 系统架构 */
.architecture {
    background: var(--light-bg);
}

.architecture-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.architecture-diagram {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.arch-layer {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--primary-color);
    animation: slideInLeft 0.8s ease;
    animation-delay: calc(var(--layer) * 0.1s);
    animation-fill-mode: backwards;
}

.arch-layer h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.arch-layer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.architecture-details h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.component-list {
    list-style: none;
}

.component-list li {
    padding: 1rem;
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    color: var(--text-secondary);
}

.component-list li strong {
    color: var(--primary-color);
}

/* 实验结果 */
.results {
    background: white;
}

.results-section {
    margin-bottom: 4rem;
}

.results-section h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.laws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.law-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.law-card.verified {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

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

.law-status {
    display: inline-block;
    font-size: 2rem;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.law-card h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.law-card p {
    font-size: 0.85rem;
    color: var(--success-color);
}

.ablation-chart,
.scalability-chart {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

/* Demo演示 */
.demo {
    background: var(--light-bg);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.demo-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.demo-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.decision-flow {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 2rem 0;
}

.flow-step {
    text-align: center;
}

.step-num {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.flow-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

#networkCanvas {
    width: 100%;
    height: 300px;
}

/* 资源下载 */
.resources {
    background: white;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.resource-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.resource-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 技术栈 */
.tech-stack {
    background: var(--light-bg);
    padding: 60px 0;
}

.tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tech-item img,
.tech-item svg {
    width: 48px;
    height: 48px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.tech-item:hover img,
.tech-item:hover svg {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.tech-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    margin: 0.5rem 0;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Overview Section */
.overview {
    background: white;
    padding: 80px 0;
}

.overview-image {
    margin: 2rem 0 3rem;
}

.overview-content {
    max-width: 900px;
    margin: 0 auto;
}

.overview-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.highlight-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #3b82f6;
}

.highlight-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.highlight-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.text-icon {
    font-size: 1.3rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.keyword-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Framework Section */
.framework-section {
    margin-bottom: 3rem;
}

.framework-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.framework-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.section-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

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

.card-icon {
    font-size: 1.8rem;
}

.framework-card h4 {
    color: var(--primary-color);
    margin: 0;
}

.framework-card ul {
    list-style: none;
    padding-left: 0;
}

.framework-card ul li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

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

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.list-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bias-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bias-tag {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid #86efac;
    text-align: center;
}

.network-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.feature-icon {
    font-size: 1.3rem;
}

/* Data Sources */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.data-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.data-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.data-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.data-stat {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Results Section Updates */
.results-image {
    margin: 2rem 0;
}

/* Propagation Visualizations */
.propagation-visualizations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.viz-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.viz-container h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.viz-container canvas {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    height: auto;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.viz-description {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Polarization Visualizations */
.polarization-container {
    margin: 2rem 0;
}

.polarization-viz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.polar-viz-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.polar-viz-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.polar-viz-item canvas {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    height: auto;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.result-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--card-shadow);
}

.result-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Stylized Facts Grid */
.stylized-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.fact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.fact-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.fact-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.emergent-behaviors {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
}

/* Scalability Section */
.scalability {
    background: var(--light-bg);
    padding: 80px 0;
}

.scalability-content {
    text-align: center;
}

.scalability-description {
    max-width: 800px;
    margin: 2rem auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Citation Section */
.citation {
    background: white;
    padding: 80px 0;
}

.citation-box {
    background: var(--dark-bg);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    overflow-x: auto;
}

.citation-box pre {
    margin: 0;
    font-family: 'Courier New', monospace;
}

.citation-box code {
    color: #10b981;
    font-size: 0.9rem;
}

.citation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Image Styles */
img {
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a;
}