/* 每日AI简报样式 - 全新极简设计 */

/* ========== 列表页样式 ========== */
.daily-page {
    padding: 40px 20px;
    min-height: 60vh;
}

.daily-page .page-header {
    text-align: center;
    margin-bottom: 40px;
}

.daily-page .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.daily-page .page-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0;
}

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

.daily-list {
    display: grid;
    gap: 1.25rem;
}

/* 简报卡片 */
.daily-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.daily-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.daily-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.daily-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.daily-title a:hover {
    color: #6366f1;
}

.daily-topics {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #fafafa;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
}

.daily-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.daily-stats {
    color: #9ca3af;
    font-size: 0.85rem;
}

.daily-read-more {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.daily-read-more:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* 空状态 */
.daily-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 3rem 2rem;
    color: #9ca3af;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 分页 */
.daily-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.6rem 1.25rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination-btn:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.9rem;
}

/* ========== 详情页样式 ========== */
.daily-detail-page {
    min-height: 60vh;
    padding: 2rem 0;
}

.detail-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.detail-main {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.detail-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.back-link {
    display: inline-block;
    color: #6366f1;
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

.detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: #111827;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.detail-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
}

.detail-type {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #f3f4f6;
    color: #6b7280;
}

.detail-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* ========== Markdown 内容 ========== */
.markdown-content {
    line-height: 1.7;
    color: #374151;
}

/* 分隔线 */
.markdown-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2.5rem 0;
}

/* ========== 概览区域 ========== */
.markdown-content .overview-section {
    margin: 0 0 2rem 0;
    padding: 1.25rem;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.markdown-content .brief-header {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
    font-weight: 400;
}

.markdown-content .brief-content {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #4b5563;
    margin: 0.6rem 0 0 0;
}

/* ========== 主题区域 ========== */
.markdown-content .topic-section {
    margin: 0 0 1.75rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.markdown-content .topic-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.markdown-content .topic-section-title {
    margin-bottom: 0.75rem;
}

.markdown-content .topic-section-title h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
    line-height: 1.4;
}

.markdown-content .topic-section-content {
    margin-bottom: 0.5rem;
}

.markdown-content .topic-text {
    margin: 0 0 0.6rem 0;
    line-height: 1.75;
    color: #4b5563;
    font-size: 1.0rem;
}

.markdown-content .topic-text:last-child {
    margin-bottom: 0;
}

/* ========== 相关阅读 - 极简弱化 ========== */
.markdown-content .topic-section-links {
    padding-top: 0.6rem;
    margin-top: 0.6rem;
    border-top: 1px solid #f3f4f6;
}

.markdown-content .related-reading-heading {
    font-size: 0.7rem;
    color: #9ca3af;
    margin: 0 0 0.4rem 0;
    font-weight: 500;
}

.markdown-content .related-reading-heading strong {
    font-weight: 500;
}

.markdown-content .related-reading-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.markdown-content .related-reading-item {
    display: block;
    line-height: 1.2rem;
}

.markdown-content .related-reading-link {
    /*color: #9ca3af;*/
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.0;
}

.markdown-content .related-reading-link:hover {
    color: #6366f1;
}

.markdown-content .related-reading-text {
    color: #9ca3af;
    font-size: 0.75rem;
    line-height: 1.4;
}

/* ========== 展望区域 ========== */
.markdown-content .summary-section {
    margin: 2rem 0 0 0;
    padding: 1.25rem;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.markdown-content .summary-header {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
    font-weight: 400;
}

.markdown-content .summary-content {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #4b5563;
    margin: 0.6rem 0 0 0;
}

/* ========== 链接样式 ========== */
.markdown-content a {
    color: #6366f1;
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

/* ========== 代码样式 ========== */
.markdown-content code {
    background: #f3f4f6;
    color: #ef4444;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85em;
}

.markdown-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 0.85rem;
}

.markdown-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* ========== 表格样式 ========== */
.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.85rem;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.markdown-content th {
    background: #f9fafb;
    font-weight: 600;
    color: #1f2937;
}

/* ========== 强调文本 ========== */
.markdown-content strong {
    font-weight: 600;
    color: #111827;
}

.markdown-content em {
    font-style: italic;
    color: #6b7280;
}

/* ========== 侧边栏 ========== */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-nav,
.sidebar-recent {
    box-sizing: border-box;
    width: 100%;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.sidebar-nav-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 3rem 0.75rem 3rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.sidebar-nav-btn .nav-arrow {
    position: absolute;
    width: 2rem;
    text-align: center;
}

.sidebar-nav-btn .nav-arrow:first-child {
    left: 0;
}

.sidebar-nav-btn .nav-arrow:last-child {
    right: 0;
}

.sidebar-nav-btn .nav-date {
    text-align: center;
}

.sidebar-nav-btn:hover:not(.disabled) {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.sidebar-nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sidebar-recent {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-item {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.recent-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.recent-item a {
    display: block;
    padding: 0.6rem 0;
    text-decoration: none;
    color: #374151;
    font-size: 0.9rem;
}

.recent-item a:hover {
    color: #6366f1;
}

.recent-date {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.recent-title {
    display: block;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .detail-container {
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        flex-direction: row;
    }

    .sidebar-nav-btn {
        flex: 1;
    }
}

@media (max-width: 768px) {
    /* 列表页移动端 */
    .daily-page {
        padding: 20px 15px;
    }

    .daily-page .page-title {
        font-size: 1.75rem;
    }

    .daily-page .page-subtitle {
        font-size: 0.95rem;
    }

    .daily-page .page-header {
        margin-bottom: 30px;
    }

    .daily-card {
        padding: 1.25rem;
    }

    .daily-title {
        font-size: 1.1rem;
    }

    .daily-topics {
        font-size: 0.85rem;
    }

    .daily-card-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .daily-pagination {
        gap: 1rem;
    }

    .pagination-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* 详情页移动端 */
    .detail-main {
        padding: 1.5rem;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    /* 移动端隐藏最近7日侧边栏 */
    .sidebar-recent {
        display: none;
    }

    .sidebar-nav {
        margin-bottom: 0;
    }

    .markdown-content .topic-section-title h2 {
        font-size: 1.05rem;
    }

    .markdown-content .brief-header,
    .markdown-content .summary-header {
        font-size: 0.9rem;
    }

    .markdown-content .brief-content,
    .markdown-content .summary-content,
    .markdown-content .topic-text {
        font-size: 0.85rem;
    }
}
