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

body {
    font-family: 'Georgia', 'Times New Roman', 'Songti SC', 'SimSun', serif;
    line-height: 1.8;
    color: #2d3748;
    background-color: #f7f7f5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

/* 顶部返回导航 */
.back-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px 0;
}

.back-link {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #718096;
    text-decoration: none;
}

.back-link:hover {
    color: #1a365d;
}

/* 布局：侧边栏 + 主内容 */
.layout {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
}

.sidebar-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #4a5568;
    transition: background-color 0.2s ease;
}

.sidebar-item:hover {
    background: #f8fafc;
}

.progress-bar {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c9a227;
    flex-shrink: 0;
}

.sidebar-link {
    flex: 1;
}

.sidebar-count {
    font-size: 12px;
    color: #a0aec0;
}

.container {
    flex: 1;
    min-width: 0;
    background: #ffffff;
}

/* 页头 */
.header {
    background: #1a365d;
    padding: 48px 40px;
    text-align: center;
    border-bottom: 4px solid #c9a227;
}

.header-title {
    font-size: 32px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.header-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.header-date {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: #c9a227;
    margin-top: 16px;
    font-weight: 500;
}

/* 统计摘要 */
.summary {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.stat-item {
    flex: 1;
    padding: 24px;
    text-align: center;
    border-right: 1px solid #e2e8f0;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 36px;
    font-weight: 400;
    color: #1a365d;
}

.stat-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* 收藏清单面板 */
.cart-panel {
    margin: 24px 40px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.cart-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a365d;
}

.cart-title-count {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    text-align: center;
    background: #c9a227;
    color: #ffffff;
    border-radius: 10px;
    font-size: 12px;
}

.cart-actions {
    display: flex;
    gap: 8px;
}

.cart-action-btn {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    padding: 6px 14px;
    border: 1px solid #c9a227;
    background: #ffffff;
    color: #92400e;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-action-btn:hover {
    background: #c9a227;
    color: #ffffff;
}

.cart-status {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    color: #718096;
    margin-top: 8px;
}

.cart-ids {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    color: #4a5568;
    margin-top: 8px;
    word-break: break-all;
}

/* 分类区块 */
.category {
    border-bottom: 1px solid #e2e8f0;
}

.category-header {
    padding: 20px 40px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a365d;
}

.category-en {
    font-size: 13px;
    color: #a0aec0;
    font-weight: 400;
}

.category-count {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    color: #718096;
    background: #edf2f7;
    padding: 4px 12px;
    border-radius: 12px;
}

/* 精选区 */
.favorite-section .category-header {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 4px solid #c9a227;
}

.favorite-section .category-title {
    color: #92400e;
}

.favorite-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #c9a227;
    border-radius: 50%;
    margin-right: 6px;
}

/* 论文卡片 */
.paper {
    padding: 32px 40px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.paper:last-child {
    border-bottom: none;
}

.paper:hover {
    background-color: #fafafa;
}

.paper-number {
    font-family: 'Georgia', serif;
    font-size: 12px;
    color: #a0aec0;
    margin-bottom: 8px;
}

.paper-title {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #1a202c;
    margin-bottom: 8px;
}

.paper-title-zh {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 2px solid #c9a227;
}

.paper-meta {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    color: #718096;
    margin-bottom: 20px;
}

.paper-authors {
    margin-bottom: 4px;
}

.paper-categories {
    font-size: 12px;
    color: #a0aec0;
}

/* 精选标记 */
.favorite-info {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fffbeb;
    border-radius: 4px;
    border-left: 3px solid #c9a227;
}

.favorite-keywords {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    color: #92400e;
    margin-bottom: 4px;
}

.favorite-keyword {
    display: inline-block;
    padding: 2px 8px;
    margin-right: 6px;
    background: #fef3c7;
    border-radius: 3px;
    font-weight: 500;
}

.favorite-reason {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    color: #92400e;
}

/* 摘要 */
.abstract-section {
    margin-bottom: 20px;
}

.abstract-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 12px 0 6px;
}

.abstract-en {
    font-size: 14px;
    color: #4a5568;
}

.abstract-zh {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    color: #4a5568;
}

/* 链接按钮 */
.paper-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-btn {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1a365d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.link-btn:hover {
    background: #1a365d;
    color: #ffffff;
    border-color: #1a365d;
}

.link-cart.in-cart {
    background: #c9a227;
    color: #ffffff;
    border-color: #c9a227;
}

/* 内容区 / 首页日期列表 */
.content {
    padding: 32px 40px;
}

.section-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.date-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-item {
    display: block;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 6px;
    text-decoration: none;
    color: #1a365d;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    transition: all 0.2s ease;
}

.date-item:hover {
    background: #1a365d;
    color: #ffffff;
}

/* 页脚 */
.footer {
    padding: 32px 40px;
    background: #1a365d;
    text-align: center;
}

.footer-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-brand {
    font-size: 14px;
    color: #c9a227;
    margin-bottom: 8px;
}

/* 响应式 */
@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
    }

    .header {
        padding: 32px 24px;
    }

    .header-title {
        font-size: 24px;
    }

    .summary {
        flex-direction: column;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 16px;
    }

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

    .content,
    .paper,
    .category-header {
        padding-left: 24px;
        padding-right: 24px;
    }

    .cart-panel {
        margin: 24px;
    }
}
