/* ============ 全局样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; 
    background: #F4F6F9; 
    color: #333; 
    line-height: 1.7;
}
a { color: #0f3460; text-decoration: none; }

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(59,130,246,0.4)); }
    50% { filter: drop-shadow(0 0 14px rgba(59,130,246,0.8)); }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* ============ 头部 ============ */
.header { 
    background: linear-gradient(135deg, #0a1628 0%, #0d3b66 40%, #1565c0 70%, #1e88e5 100%); 
    color: white; 
    padding: 28px 0; 
    box-shadow: 0 6px 24px rgba(13,59,102,0.25); 
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(30,136,229,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(21,101,192,0.1) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.header-inner { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 24px; 
    flex-wrap: wrap; 
    gap: 12px; 
    position: relative; 
    z-index: 1; 
}

.header h1 { 
    font-size: 26px; 
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 品牌 Logo 旁发光折线图图标 */
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    animation: logoGlow 3s ease-in-out infinite;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
}

.header .stats { 
    font-size: 14px; 
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 12px;
}

.header .stats span {
    font-weight: 600;
    color: #90caf9;
}

.header .stats .stat-badge {
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.3s ease;
}

.header .stats .stat-badge:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.25);
}

/* ============ 容器 ============ */
.container { 
    max-width: 1200px; 
    margin: 28px auto; 
    padding: 0 24px; 
    animation: fadeIn 0.5s ease-out;
}

/* ============ 搜索栏 ============ */
.search-bar { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 28px; 
    flex-wrap: wrap; 
    align-items: center; 
    animation: fadeInUp 0.4s ease-out;
}

.search-bar input { 
    flex: 1; 
    min-width: 200px; 
    padding: 14px 20px; 
    border: 2px solid #e0e4e8; 
    border-radius: 14px; 
    font-size: 15px; 
    outline: none; 
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.search-bar input:focus { 
    border-color: #3b82f6; 
    box-shadow: 0 0 0 4px rgba(59,130,246,0.12), 0 4px 12px rgba(0,0,0,0.08);
}

.search-bar button { 
    padding: 14px 28px; 
    border: none; 
    border-radius: 14px; 
    cursor: pointer; 
    font-size: 15px; 
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%); 
    color: white; 
    box-shadow: 0 4px 14px rgba(21,101,192,0.35);
    letter-spacing: 0.3px;
}

.search-bar button:hover { 
    background: linear-gradient(135deg, #0d47a1 0%, #1e88e5 100%); 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21,101,192,0.45);
}

.search-bar button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(21,101,192,0.3);
}

.search-bar button.secondary { 
    background: white; 
    color: #4b5563;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.search-bar button.secondary:hover { 
    background: #f9fafb; 
    border-color: #d1d5db;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    color: #1f2937;
}

.search-bar button.summary { 
    background: linear-gradient(135deg, #00897b 0%, #26a69a 100%);
    box-shadow: 0 4px 14px rgba(0,137,123,0.35);
}

.search-bar button.summary:hover { 
    background: linear-gradient(135deg, #00695c 0%, #00897b 100%);
    box-shadow: 0 8px 20px rgba(0,137,123,0.45);
}

.btn { 
    padding: 10px 20px; 
    border: none; 
    border-radius: 12px; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

/* ============ AI 总结网格卡片 ============ */
.ai-summary-section { 
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); 
    border-radius: 18px; 
    padding: 28px; 
    margin-bottom: 28px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); 
    border-left: 5px solid #10b981;
    animation: fadeInUp 0.5s ease-out;
}

.ai-summary-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 18px; 
    flex-wrap: wrap; 
    gap: 12px; 
}

.ai-summary-header h2 { 
    font-size: 22px; 
    color: #065f46; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: 700;
}

.ai-actions { 
    display: flex; 
    gap: 10px; 
}

.ai-summary-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 18px; 
}

@media (max-width: 800px) { 
    .ai-summary-grid { grid-template-columns: 1fr; } 
}

.ai-summary-card { 
    background: rgba(255,255,255,0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px; 
    box-shadow: 0 4px 16px rgba(0,0,0,0.06); 
    display: flex; 
    flex-direction: column; 
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.3s ease;
    overflow: hidden;
}

.ai-summary-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: rgba(59,130,246,0.2);
}

.ai-summary-card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 16px 20px; 
    border-bottom: 1px solid #f3f4f6; 
    font-weight: 600; 
    font-size: 16px; 
    color: #111827;
    background: linear-gradient(to bottom, #fafbfc, #ffffff);
}

.ai-summary-card-header .ai-summary-time { 
    font-size: 12px; 
    color: #9ca3af; 
    font-weight: normal; 
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 8px;
}

.ai-summary-card-body { 
    padding: 18px 20px; 
    flex: 1; 
    font-size: 14px; 
    line-height: 1.8; 
    color: #4b5563; 
    min-height: 80px; 
}

.ai-summary-card-body h3 { 
    font-size: 15px; 
    margin: 10px 0 6px; 
    color: #111827; 
    font-weight: 600;
}

.ai-summary-card-body h4 { 
    font-size: 14px; 
    margin: 8px 0 4px; 
    color: #374151; 
    font-weight: 600;
}

.ai-summary-card-body ul, .ai-summary-card-body ol { 
    padding-left: 18px; 
    margin: 6px 0; 
}

.ai-summary-card-body li { 
    margin: 4px 0; 
    line-height: 1.7;
}

.ai-summary-card-body strong { 
    color: #059669; 
    font-weight: 600;
}

.ai-summary-card-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 20px; 
    border-top: 1px solid #f3f4f6; 
    font-size: 12px; 
    color: #9ca3af;
    background: #fafbfc;
}

.ai-refresh-btn { 
    background: none; 
    border: 1px solid #e5e7eb; 
    border-radius: 10px; 
    cursor: pointer; 
    font-size: 13px; 
    padding: 5px 14px; 
    transition: all 0.3s ease;
    color: #6b7280;
}

.ai-refresh-btn:hover { 
    border-color: #10b981; 
    color: #059669;
    background: #ecfdf5;
    box-shadow: 0 2px 8px rgba(16,185,129,0.15);
}

.ai-summary-loading { 
    text-align: center; 
    color: #9ca3af; 
    padding: 24px 0; 
    font-size: 14px; 
}

.ai-summary-empty { 
    text-align: center; 
    color: #9ca3af; 
    padding: 32px 0; 
    font-size: 14px; 
}

.ai-summary-error { 
    text-align: center; 
    color: #ef4444; 
    padding: 24px 0; 
    font-size: 14px; 
}

/* 搜索结果总结弹窗 */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
    backdrop-filter: blur(4px);
    z-index: 1000; 
    justify-content: center; 
    align-items: center;
    animation: fadeIn 0.2s ease-out;
}

.modal-content { 
    background: rgba(255,255,255,0.95); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px; 
    max-width: 680px; 
    width: 92%; 
    max-height: 80vh; 
    overflow-y: auto; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: fadeInUp 0.3s ease-out;
    border: 1px solid rgba(255,255,255,0.6);
}

.modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 24px; 
    border-bottom: 1px solid #e5e7eb; 
}

.modal-header h3 { 
    font-size: 20px; 
    color: #111827; 
    margin: 0; 
    font-weight: 600;
}

.modal-close { 
    font-size: 28px; 
    cursor: pointer; 
    color: #9ca3af; 
    line-height: 1;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.modal-close:hover { 
    color: #111827;
    background: #f3f4f6;
}

.modal-body { 
    padding: 24px; 
}

.search-summary-input { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 18px; 
    flex-wrap: wrap; 
}

.search-summary-input input { 
    flex: 1; 
    min-width: 150px; 
    padding: 12px 18px; 
    border: 2px solid #e5e7eb; 
    border-radius: 14px; 
    font-size: 14px; 
    outline: none;
    transition: all 0.3s ease;
}

.search-summary-input input:focus { 
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.12);
}

.search-summary-input button { 
    padding: 12px 24px; 
    border: none; 
    background: linear-gradient(135deg, #00897b 0%, #26a69a 100%); 
    color: white; 
    border-radius: 14px; 
    cursor: pointer; 
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0,137,123,0.3);
}

.search-summary-input button:hover { 
    background: linear-gradient(135deg, #00695c 0%, #00897b 100%);
    box-shadow: 0 8px 20px rgba(0,137,123,0.4);
    transform: translateY(-2px);
}

/* ============ 新闻列表 ============ */
.news-list { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
    margin-bottom: 28px; 
}

.news-card { 
    background: rgba(255,255,255,0.88); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px; 
    padding: 24px 28px; 
    box-shadow: 0 2px 12px rgba(0,0,0,0.04), 0 0 0 1px rgba(255,255,255,0.6); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    border: 1px solid rgba(255,255,255,0.5);
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.news-card:nth-child(1) { animation-delay: 0.05s; }
.news-card:nth-child(2) { animation-delay: 0.1s; }
.news-card:nth-child(3) { animation-delay: 0.15s; }
.news-card:nth-child(4) { animation-delay: 0.2s; }
.news-card:nth-child(5) { animation-delay: 0.25s; }
.news-card:nth-child(6) { animation-delay: 0.3s; }
.news-card:nth-child(7) { animation-delay: 0.35s; }
.news-card:nth-child(8) { animation-delay: 0.4s; }
.news-card:nth-child(9) { animation-delay: 0.45s; }
.news-card:nth-child(10) { animation-delay: 0.5s; }

.news-card:hover { 
    box-shadow: 0 12px 32px rgba(0,0,0,0.08), 0 0 0 1px rgba(59,130,246,0.1); 
    transform: translateY(-3px);
    border-color: rgba(59,130,246,0.15);
}

.news-title { 
    font-size: 17px; 
    font-weight: 600; 
    margin-bottom: 12px; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    gap: 12px; 
    line-height: 1.5;
}

.news-title a { 
    color: #111827;
    transition: color 0.2s;
}

.news-title a:hover { 
    color: #1565c0; 
}

.news-content { 
    font-size: 14.5px; 
    color: #6b7280; 
    line-height: 1.8; 
    margin-bottom: 12px; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    cursor: pointer; 
    transition: all 0.3s ease; 
}

.news-content.expanded { 
    -webkit-line-clamp: unset; 
    display: block; 
}

.news-meta { 
    display: flex; 
    gap: 14px; 
    align-items: center; 
    flex-wrap: wrap; 
    font-size: 13px; 
    color: #9ca3af; 
}

.news-source, .news-date { 
    color: #9ca3af; 
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-tags { 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap; 
}

/* ============ 标签 - 胶囊药丸半透明设计 ============ */
.tag { 
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px; 
    background: rgba(59,130,246,0.08); 
    color: #1565c0; 
    border-radius: 20px; 
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(59,130,246,0.15);
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.tag:hover {
    background: rgba(59,130,246,0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59,130,246,0.1);
}

/* 不同标签颜色变体 */
.tag.tag-forex { background: rgba(16,185,129,0.08); color: #059669; border-color: rgba(16,185,129,0.18); }
.tag.tag-forex:hover { background: rgba(16,185,129,0.15); box-shadow: 0 2px 8px rgba(16,185,129,0.12); }

.tag.tag-stock { background: rgba(239,68,68,0.08); color: #dc2626; border-color: rgba(239,68,68,0.15); }
.tag.tag-stock:hover { background: rgba(239,68,68,0.15); box-shadow: 0 2px 8px rgba(239,68,68,0.12); }

.tag.tag-tech { background: rgba(124,58,237,0.08); color: #7c3aed; border-color: rgba(124,58,237,0.15); }
.tag.tag-tech:hover { background: rgba(124,58,237,0.15); box-shadow: 0 2px 8px rgba(124,58,237,0.12); }

.tag.tag-crypto { background: rgba(245,158,11,0.08); color: #d97706; border-color: rgba(245,158,11,0.15); }
.tag.tag-crypto:hover { background: rgba(245,158,11,0.15); box-shadow: 0 2px 8px rgba(245,158,11,0.12); }

.tag.tag-economy { background: rgba(6,182,212,0.08); color: #0891b2; border-color: rgba(6,182,212,0.15); }
.tag.tag-economy:hover { background: rgba(6,182,212,0.15); box-shadow: 0 2px 8px rgba(6,182,212,0.12); }

.tag.tag-gold { background: rgba(234,179,8,0.1); color: #a16207; border-color: rgba(234,179,8,0.2); }
.tag.tag-gold:hover { background: rgba(234,179,8,0.18); box-shadow: 0 2px 8px rgba(234,179,8,0.15); }

.tag.tag-bond { background: rgba(99,102,241,0.08); color: #4f46e5; border-color: rgba(99,102,241,0.15); }
.tag.tag-bond:hover { background: rgba(99,102,241,0.15); box-shadow: 0 2px 8px rgba(99,102,241,0.12); }

.tag.tag-oil { background: rgba(75,85,99,0.08); color: #374151; border-color: rgba(75,85,99,0.15); }
.tag.tag-oil:hover { background: rgba(75,85,99,0.15); box-shadow: 0 2px 8px rgba(75,85,99,0.1); }

/* ============ 筛选区 ============ */
.filter-section { 
    background: rgba(255,255,255,0.88); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px; 
    padding: 24px 28px; 
    margin-bottom: 28px; 
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(255,255,255,0.6);
    animation: fadeInUp 0.45s ease-out;
}

.filter-section h3 { 
    margin-bottom: 16px; 
    font-size: 17px;
    color: #111827;
    font-weight: 600;
}

.tag-filter { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
}

.tag-filter .tag-btn { 
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px; 
    border: 1px solid #e5e7eb; 
    background: white; 
    border-radius: 14px; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #4b5563;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.tag-filter .tag-btn:hover { 
    border-color: #3b82f6; 
    color: #1565c0;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(59,130,246,0.12);
    transform: translateY(-1px);
}

.tag-filter .tag-btn.active { 
    background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%); 
    color: white; 
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(21,101,192,0.35);
}

/* 标签按钮中的微型图标 */
.tag-btn .tag-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

/* ============ 分页 ============ */
.pagination { 
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    margin: 28px 0; 
    flex-wrap: wrap; 
}

.pagination button { 
    padding: 10px 16px; 
    border: 1px solid #e5e7eb; 
    background: white; 
    border-radius: 12px; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.pagination button:hover:not(:disabled) { 
    border-color: #3b82f6; 
    color: #1565c0;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(59,130,246,0.12);
    transform: translateY(-1px);
}

.pagination button.active { 
    background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%); 
    color: white; 
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(21,101,192,0.35);
}

.pagination button:disabled { 
    opacity: 0.4; 
    cursor: not-allowed; 
}

/* ============ 状态指示 ============ */
.loading { 
    text-align: center; 
    padding: 80px 20px; 
    color: #9ca3af; 
    font-size: 16px; 
}

.error-my { 
    text-align: center; 
    padding: 80px 20px; 
    color: #ef4444; 
    font-size: 16px; 
}

.empty { 
    text-align: center; 
    padding: 80px 20px; 
    color: #9ca3af; 
    font-size: 16px; 
}

/* ============ 总结页面专用样式 ============ */
.summary-toolbar { 
    display: flex; 
    justify-content: space-between; 
    gap: 18px; 
    align-items: flex-start; 
    margin-bottom: 28px; 
    padding-bottom: 20px; 
    border-bottom: 2px solid #e5e7eb;
    animation: fadeInUp 0.4s ease-out;
}

.summary-toolbar h2 { 
    font-size: 24px; 
    color: #111827; 
    margin-bottom: 8px;
    font-weight: 700;
}

.summary-toolbar p { 
    color: #6b7280; 
    font-size: 14px; 
    line-height: 1.7; 
}

.summary-grid { 
    display: grid; 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 18px; 
}

.summary-panel { 
    background: rgba(255,255,255,0.88); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.6); 
    border-radius: 18px; 
    box-shadow: 0 4px 16px rgba(0,0,0,0.04); 
    display: flex; 
    flex-direction: column; 
    min-height: 360px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
    overflow: hidden;
}

.summary-panel:nth-child(1) { animation-delay: 0.1s; }
.summary-panel:nth-child(2) { animation-delay: 0.15s; }
.summary-panel:nth-child(3) { animation-delay: 0.2s; }
.summary-panel:nth-child(4) { animation-delay: 0.25s; }

.summary-panel:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.summary-panel-wide { 
    grid-column: 1 / -1; 
    min-height: 260px; 
}

.summary-panel-header { 
    display: flex; 
    justify-content: space-between; 
    gap: 12px; 
    align-items: center; 
    padding: 18px 22px; 
    border-bottom: 1px solid #f3f4f6; 
    background: linear-gradient(to bottom, #fafbfc, #ffffff);
    border-radius: 18px 18px 0 0;
}

.summary-panel-header h3 { 
    font-size: 18px; 
    color: #111827; 
    margin-bottom: 4px;
    font-weight: 600;
}

.summary-panel-header span { 
    font-size: 13px; 
    color: #9ca3af; 
}

.summary-panel-body { 
    padding: 22px; 
    flex: 1; 
    font-size: 15px; 
    line-height: 1.9; 
    color: #374151; 
    overflow-y: visible; 
}

.summary-panel-body h3 { 
    font-size: 17px; 
    margin: 16px 0 8px; 
    color: #111827; 
    font-weight: 600;
}

.summary-panel-body h4 { 
    font-size: 16px; 
    margin: 12px 0 6px; 
    color: #374151; 
    font-weight: 600;
}

.summary-panel-body ul, .summary-panel-body ol { 
    padding-left: 20px; 
    margin: 8px 0; 
}

.summary-panel-body ul ul, .summary-panel-body ol ul,
.summary-panel-body ul ol, .summary-panel-body ol ol { 
    padding-left: 20px; 
    margin: 4px 0; 
}

.summary-panel-body ul ul ul, .summary-panel-body ol ol ol,
.summary-panel-body ul ol ul, .summary-panel-body ol ul ol { 
    padding-left: 0; 
    list-style: none; 
}

.summary-panel-body li { 
    margin: 5px 0;
    line-height: 1.8;
}

.summary-panel-body strong { 
    color: #059669; 
    font-weight: 600;
}

.summary-panel-meta { 
    padding: 14px 22px; 
    border-top: 1px solid #f3f4f6; 
    font-size: 13px; 
    color: #9ca3af; 
    min-height: 40px;
    background: #fafbfc;
    border-radius: 0 0 18px 18px;
}

.summary-card { 
    background: rgba(255,255,255,0.9); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); 
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
    border: 1px solid rgba(255,255,255,0.6);
}

.card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    padding: 26px 30px; 
    border-bottom: 1px solid #e5e7eb; 
    flex-wrap: wrap; 
    gap: 14px; 
    background: linear-gradient(to bottom, #fafbfc, #ffffff);
}

.card-header .title { 
    font-size: 22px; 
    font-weight: 700; 
    color: #111827; 
}

.card-header .meta { 
    font-size: 14px; 
    color: #9ca3af; 
    margin-top: 6px; 
}

.footer-actions { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    flex-wrap: wrap; 
}

.range-tabs { 
    display: flex; 
    gap: 4px; 
    background: #f3f4f6; 
    padding: 4px; 
    border-radius: 12px; 
}

.range-tab { 
    padding: 10px 18px; 
    border: none; 
    background: transparent; 
    border-radius: 10px; 
    cursor: pointer; 
    font-size: 14px; 
    color: #6b7280; 
    transition: all 0.3s ease; 
    font-weight: 500; 
}

.range-tab:hover { 
    color: #111827;
    background: rgba(255,255,255,0.5);
}

.range-tab.active { 
    background: white; 
    color: #1565c0; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
}

.btn-success { 
    padding: 12px 24px; 
    border: none; 
    background: linear-gradient(135deg, #00897b 0%, #26a69a 100%); 
    color: white; 
    border-radius: 12px; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 600; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0,137,123,0.3);
}

.btn-success:hover { 
    background: linear-gradient(135deg, #00695c 0%, #00897b 100%);
    box-shadow: 0 8px 20px rgba(0,137,123,0.4);
    transform: translateY(-2px);
}

.btn-success:disabled { 
    background: #9ca3af; 
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.card-body { 
    padding: 30px; 
}

.summary-content { 
    font-size: 16px; 
    line-height: 1.9; 
    color: #374151; 
}

.summary-content h3 { 
    margin: 26px 0 14px 0; 
    color: #111827; 
    font-size: 20px; 
    font-weight: 600;
}

.summary-content h4 { 
    margin: 18px 0 10px 0; 
    color: #374151; 
    font-size: 18px; 
    font-weight: 600;
}

.summary-content ul, .summary-content ol { 
    padding-left: 20px; 
    margin: 8px 0; 
}

.summary-content ul ul, .summary-content ol ul,
.summary-content ul ol, .summary-content ol ol { 
    padding-left: 20px; 
    margin: 4px 0; 
}

.summary-content ul ul ul, .summary-content ol ol ol,
.summary-content ul ol ul, .summary-content ol ul ol { 
    padding-left: 0; 
    list-style: none; 
}

.summary-content li { 
    margin: 5px 0;
    line-height: 1.8;
}

.summary-content strong { 
    color: #059669; 
    font-weight: 600;
}

.error-state { 
    text-align: center; 
    padding: 80px 20px; 
    color: #ef4444; 
    font-size: 16px; 
}

.spinner { 
    width: 40px; 
    height: 40px; 
    border: 3px solid #e5e7eb; 
    border-top-color: #3b82f6; 
    border-radius: 50%; 
    animation: spin 0.8s linear infinite; 
    margin: 0 auto 16px; 
}

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

.nav-link { 
    color: rgba(255,255,255,0.85); 
    text-decoration: none; 
    font-size: 14px; 
    padding: 8px 18px; 
    border: 1px solid rgba(255,255,255,0.25); 
    border-radius: 12px; 
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.nav-link:hover { 
    background: rgba(255,255,255,0.15); 
    color: white; 
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ============ 网站公告 ============ */
.site-notice {
    margin: 18px 0;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

.site-notice .notice-inner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-left: 5px solid #f59e0b;
    padding: 16px 22px;
    font-size: 14px;
    line-height: 1.8;
    color: #374151;
    border-radius: 10px;
}

.site-notice .notice-inner a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

/* ============ 滚动条美化 ============ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: #c4c9d0;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
    .header-inner { 
        flex-direction: column; 
        text-align: center; 
    }
    .header h1 { font-size: 22px; }
    .header .stats {
        justify-content: center;
    }
    .search-bar input { min-width: 150px; }
    .news-title { flex-direction: column; }
    .summary-toolbar { flex-direction: column; }
    .summary-grid { grid-template-columns: 1fr; }
    .news-card { padding: 18px 20px; }
    .news-content { -webkit-line-clamp: 3; font-size: 14px; padding: 4px 0; }
    .container { padding: 0 16px; }
    .filter-section { padding: 18px 20px; }
    .summary-panel { min-height: 280px; }
}

@media (max-width: 480px) {
    .header { padding: 18px 0; }
    .header h1 { font-size: 20px; }
    .search-bar { flex-direction: column; }
    .search-bar input { min-width: 100%; }
    .search-bar button { width: 100%; justify-content: center; }
    .tag-filter .tag-btn { padding: 8px 14px; font-size: 13px; }
    .pagination button { padding: 8px 12px; font-size: 13px; }
}
