/* 新闻页面样式 */

/* 主内容区 */
.news-main {
    padding-top: 100px;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* 日期标题 */
.date-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.date-header h1 {
    font-size: 1.8em;
    color: #333;
    margin: 0;
    text-align: center;
}

/* 日期选项卡 */
.date-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.date-tab {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    padding: 10px 20px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.date-tab:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.date-tab.active {
    background: #fff;
    color: #667eea;
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-shadow: none;
    font-weight: 700;
    transform: scale(1.05);
}

.date-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.date-tab.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 天气信息 */
.weather-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.weather-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 1.1em;
    color: #555;
}

.weather-icon {
    font-size: 1.4em;
}

.weather-divider {
    color: #ccc;
}

/* 趋势区块 */
.trends-section {
    margin-bottom: 32px;
}

.section-title {
    color: #fff;
    font-size: 1.5em;
    margin-bottom: 16px;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.trends-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.trend-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.05em;
    line-height: 1.6;
    color: #333;
}

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

.trend-number {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.9em;
}

.trend-content {
    flex: 1;
}

.trend-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.trend-desc {
    font-size: 0.95em;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.trend-text {
    font-size: 1.05em;
    line-height: 1.6;
    color: #333;
}

/* 新闻列表 */
.news-section {
    margin-bottom: 24px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border-left: 4px solid #667eea;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

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

.news-source {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.8em;
    font-weight: 600;
    flex-shrink: 0;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s;
    white-space: nowrap;
}

.news-link:hover {
    color: #764ba2;
    gap: 10px;
    text-decoration: underline;
}

.news-title {
    font-size: 1.05em;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.news-summary {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* 提示信息 */
.news-tip {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    font-size: 0.95em;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 24px;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer p {
    margin: 6px 0;
    font-size: 0.95em;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    z-index: 9999;
    color: #fff;
    font-size: 1.2em;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 移动端适配 */
@media (max-width: 768px) {
    .date-header h1 {
        font-size: 1.4em;
    }

    .date-tabs {
        gap: 6px;
    }

    .date-tab {
        padding: 8px 14px;
        font-size: 0.85em;
    }

    .weather-card {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .weather-divider {
        display: none;
    }

    .section-title {
        font-size: 1.3em;
    }

    .trend-item {
        font-size: 0.95em;
    }

    .news-title {
        font-size: 1em;
    }

    .news-summary {
        font-size: 0.9em;
    }
}
