:root {
    --china: #d9534f;
    --world: #5bc0de;
    --bg: #ffffff;
    --text: #111111;
    --muted: #666666;
    --card: #ffffff;
    --border: #e8e8e8;
    --shadow: rgba(0, 0, 0, 0.04);
    --accent: #4a6cf7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    display: flex;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.side-panel {
    width: 400px;
    flex-shrink: 0;
    padding: 2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.container {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==================== Hero 头部区域 ==================== */

.hero {
    position: relative;
    min-height: 100vh;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero .container {
    position: relative;
    z-index: 1;
    margin-left: calc(10% + 5mm);
    margin-right: auto;
    max-width: 580px;
    transform: translate(0, 5mm);
}

.hero-tag {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    margin: 0 0 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 5rem;
    margin: 0 0 1rem;
    line-height: 1.02;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.04em;
}

.hero h1 .accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text);
    margin: 0 0 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 540px;
    margin: 0 0 2.5rem;
    line-height: 1.75;
}

.hero-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin-bottom: 2.5rem;
    overflow-x: auto;
}

.hero-tag-item {
    padding: 0.35rem 0.75rem;
    background: #f5f5f5;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-note {
    font-size: 0.7rem;
    color: #999;
    margin: 0 0 2.5rem;
    max-width: 100%;
    white-space: nowrap;
    overflow-x: auto;
}

.view-modes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.view-label {
    font-size: 0.75rem;
    color: var(--muted);
}

.view-btn {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.15s ease;
    background: #fff;
}

.view-btn:hover {
    border-color: var(--text);
}

.view-btn.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

/* ==================== 内容区域 ==================== */

.section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.section:last-of-type {
    border-bottom: none;
}

.china-section {
    background: #fff;
}

.world-section {
    background: #fff;
}

.compare-section {
    background: #fff;
}

.section .container {
    margin-left: calc(10% + 15mm);
    margin-right: auto;
    max-width: 580px;
}

.section-tag {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
    font-weight: 600;
}

h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.intro {
    color: var(--muted);
    max-width: 560px;
    margin: 0 0 2rem;
    font-size: 0.9rem;
    line-height: 1.7;
}

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

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 2px var(--shadow);
}

.card.clickable {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card.clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow);
    border-color: var(--china);
}

.world-section .card.clickable:hover {
    border-color: var(--world);
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card .period {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
}

.card p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

.text-link {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--text);
    font-size: 0.85rem;
}

.text-link:hover {
    color: var(--china);
    border-bottom-color: var(--china);
}

.world-section .text-link:hover {
    color: var(--world);
    border-bottom-color: var(--world);
}

/* ==================== 事件标签 ==================== */

.event-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.event-tag.china {
    background: rgba(217, 83, 79, 0.1);
    color: var(--china);
}

.event-tag.world {
    background: rgba(91, 192, 222, 0.1);
    color: #2a8faa;
}

/* ==================== 地球区域 ==================== */

.globe-container {
    position: sticky;
    top: 1.5rem;
    text-align: center;
}

.globe-container h3 {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

#globe {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 360px;
    cursor: pointer;
    user-select: none;
}

#globe:hover {
    opacity: 0.9;
}

#globe svg {
    display: block;
    width: 100%;
    height: 100%;
}

.globe-caption {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    color: #888;
    text-align: center;
}

.globe-ocean {
    fill: #e8f4f8;
}

.globe-country {
    cursor: pointer;
    transition: fill 0.3s ease;
}

.globe-graticule {
    pointer-events: none;
}

/* ==================== 页脚 ==================== */

footer {
    padding: 2rem 0;
    color: var(--muted);
    font-size: 0.75rem;
}

footer .container {
    margin-left: calc(10% + 15mm);
    margin-right: auto;
    max-width: 580px;
}

@media (max-width: 900px) {
    .page-wrapper {
        flex-direction: column;
    }

    .side-panel {
        width: 100%;
        height: auto;
        position: static;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .hero .container {
        margin-left: auto;
        margin-right: auto;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }
}
