/* css/style.css */
/* 学术风 · 严谨简约 · 低饱和度柔和 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f6f8fa;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1e2a3e;
    line-height: 1.5;
    scroll-behavior: smooth;
}

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

/* 头部典雅学术 */
.site-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #dce4ec;
}

.header-inner {
    text-align: center;
    padding: 1rem 0 1.5rem;
}

.site-title {
    font-family: 'Merriweather', 'Times New Roman', Georgia, serif;
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #0a2942;
    margin-bottom: 0.4rem;
}

.site-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #2c5a6e;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.academic-divider {
    width: 80px;
    height: 2px;
    background: #b0c4de;
    margin: 1rem auto;
}

.site-description {
    font-size: 1.05rem;
    font-weight: 400;
    color: #3b5c7c;
}

/* 卡片柔和阴影 */
.card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 1.8rem;
    transition: box-shadow 0.2s ease;
    border: 1px solid #e9edf2;
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* 两栏响应式布局 */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.left-intro h2, .right-events h2, .full-width-section h2 {
    font-family: 'Merriweather', serif;
    font-weight: 600;
    font-size: 1.6rem;
    border-left: 5px solid #3f7e9c;
    padding-left: 1rem;
    margin-bottom: 1.2rem;
    color: #153e54;
}

.intro-text p {
    margin-bottom: 1rem;
    font-size: 0.98rem;
    color: #2c3e4e;
}

.book-showcase {
    margin: 2rem 0 1rem;
}

.book-flex {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.book-cover {
    width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    background: #f4f7fb;
}

.book-info .book-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1c4e70;
    margin-bottom: 0.25rem;
}

.book-authors {
    font-size: 0.85rem;
    color: #5a6e7c;
    margin-bottom: 0.6rem;
}

.book-praise {
    font-size: 0.85rem;
    font-style: italic;
    background: #f0f3f7;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
}

.book-desc {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #2c3e4e;
    line-height: 1.5;
}

.live-channels h3 {
    font-weight: 600;
    font-size: 1.3rem;
    margin: 1.4rem 0 0.8rem;
    color: #1c4e70;
}

.channel-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.channel-btn {
    background: #1f3e48;
    color: white;
    padding: 0.5rem 1.4rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #2c5a6e;
}

.channel-btn.bili {
    background: #00a1d6;
    border-color: #0082b0;
}

.channel-btn:hover {
    background: #0f2c38;
    transform: translateY(-1px);
}

.channel-wechat {
    background: #eef2f6;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-size: 0.9rem;
    color: #2c6b2f;
    font-weight: 500;
}

.qrcode-area {
    text-align: center;
    margin: 1rem 0 0.8rem;
}

.qrcode-img {
    width: 120px;
    height: auto;
    border-radius: 12px;
    border: 1px solid #dce5ec;
    padding: 0.3rem;
    background: white;
}

.qrcode-caption {
    font-size: 0.8rem;
    margin-top: 6px;
    color: #4a6272;
}

.small-note {
    font-size: 0.75rem;
    color: #7c8f9c;
    margin-top: 0.8rem;
}

/* 右侧学术日程表区域 */
.events-header {
    margin-bottom: 1.2rem;
}

.events-sub {
    font-size: 0.85rem;
    color: #5f7f8c;
    margin-top: 0.2rem;
}

.events-list {
    min-height: 280px;
}

.loading-indicator {
    text-align: center;
    padding: 2rem;
    color: #3c6e8f;
    font-style: italic;
}

/* 活动卡片条目样式 - 学术严谨 */
.event-item {
    border-bottom: 1px solid #eef2f7;
    padding: 1rem 0;
    transition: background 0.2s;
}

.event-item:last-child {
    border-bottom: none;
}

.event-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e4660;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.event-date {
    font-size: 0.75rem;
    background: #eef3f9;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: normal;
    color: #2d5d7c;
}

.event-speaker {
    font-size: 0.85rem;
    color: #4f6f84;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.event-speaker:before {
    content: "👤";
    font-size: 0.75rem;
}

.event-topic {
    font-size: 0.9rem;
    color: #3a5c74;
    margin-top: 5px;
    margin-bottom: 10px;
    background: #f9fbfd;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* 链接按钮组 (学术风 简约图标) */
.event-links {
    display: flex;
    gap: 1rem;
    margin-top: 8px;
    flex-wrap: wrap;
}

.event-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    background: #f0f3f8;
    color: #1f597b;
    border: 1px solid #dfe6ef;
}

.event-link-btn:hover {
    background: #e6edf4;
    transform: translateY(-1px);
    border-color: #bdd4e4;
}

.event-link-btn.article {
    background: #fef7e0;
    color: #aa6f20;
}

.event-link-btn.video {
    background: #eaf6ff;
    color: #0077b6;
}

.api-note {
    margin-top: 1.2rem;
    background: #f4f7fb;
    padding: 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    text-align: center;
    color: #2e6b8f;
}

.badge {
    background: #d9e4ed;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 500;
    margin-right: 6px;
}

/* 全宽学术支持区域 */
.full-width-section {
    margin: 1.5rem 0 2rem;
}

.institution-support p {
    margin-bottom: 0.8rem;
    color: #2b485e;
}

/* 页脚简约 */
.site-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    border-top: 1px solid #dfe6ed;
    font-size: 0.8rem;
    color: #5f7e94;
}

.footer-inner p {
    margin: 0.4rem 0;
}

.footer-inner-url  {
    text-decoration: none;
    text-align: center;
    font-size: 0.8rem;
    color: #5f7e94;
}

/* 移动端适配 */
@media (max-width: 880px) {
    .two-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .page-container {
        padding: 1.2rem;
    }
    .site-title {
        font-size: 1.9rem;
    }
    .book-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .card {
        padding: 1.4rem;
    }
}

@media (max-width: 480px) {
    .channel-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .event-title {
        font-size: 1rem;
    }
    .event-links {
        gap: 0.6rem;
    }
}