/* 新闻页面特殊样式 */

/* 新闻导航 */
.news-nav {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: fit-content;
    margin: 0 auto;
}

.news-tab-btn {
    background: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    border-right: 1px solid #dee2e6;
}

.news-tab-btn:last-child {
    border-right: none;
}

.news-tab-btn.active {
    background: linear-gradient(135deg, #D1AA57, #B8941F);
    color: white;
}

.news-tab-btn:hover:not(.active) {
    background: #f8f9fa;
    color: #333;
}

/* 实时新闻标题区 */
.news-title-section {
    background: linear-gradient(135deg, #D1AA57, #B8941F);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.news-title-section h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.news-title-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* 新闻内容 */
.news-content {
    padding: 60px 0;
    min-height: 40vh;
}

.news-tab-content {
    display: none;
}

.news-tab-content.active {
    display: block;
}

.news-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-header h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.news-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 新闻列表 */
.news-list {
    display: grid;
    gap: 30px;
    min-height: 400px; /* 设置最小高度 */
}

.news-article {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
}

.news-date {
    color: #999;
    font-size: 14px;
}

.news-category {
    background: #D1AA57;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.news-article h3 {
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-article h3 a {
    color: #333;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-article h3 a:hover {
    color: #D1AA57;
}

.news-article p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #D1AA57;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #e55a2b;
}

.read-more i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 公告列表 */
.announcements-list {
    display: grid;
    gap: 25px;
}

.announcement-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.announcement-item:hover {
    transform: translateY(-3px);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 20px;
}

.announcement-header h3 {
    flex: 1;
    margin: 0;
}

.announcement-header h3 a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.announcement-header h3 a:hover {
    color: #D1AA57;
}

.announcement-date {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
}

.announcement-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.announcement-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #f8f9fa;
    color: #666;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tag.important {
    background: #D1AA57;
    color: white;
}

/* 公告筛选按钮 */
.announcement-filters {
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.filter-search {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #D1AA57;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #ddd;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #D1AA57;
    color: #D1AA57;
}

.filter-btn.active {
    background: #D1AA57;
    border-color: #D1AA57;
    color: white;
}

.filter-btn.active:hover {
    background: #B8941F;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-btn:hover {
    background: #D1AA57;
    color: white;
}

.page-btn.active {
    background: #D1AA57;
    border-color: #D1AA57;
    color: white;
}

.page-btn.next {
    background: #D1AA57;
    color: white;
    border-color: #D1AA57;
}

.page-btn.next:hover {
    background: #B8941F;
}

/* 市场快讯横幅 */
.market-alerts {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 20px 0;
    overflow: hidden;
}

.market-alerts h3 {
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.market-alerts h3 i {
    color: #ffd700;
}

.alerts-ticker {
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    display: flex;
    gap: 50px;
}

.alert-item {
    display: inline-block;
    padding: 0 20px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ============ 详情页面样式 ============ */

/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #D1AA57;
}

.breadcrumb i {
    color: #6c757d;
    margin: 0 10px;
    font-size: 12px;
}

.breadcrumb span {
    color: #495057;
    font-size: 14px;
    font-weight: 500;
}

/* 详情页面主体 */
.news-detail,
.announcement-detail {
    padding: 40px 0 80px;
    background: #f8f9fa;
}

.detail-article {
    max-width: 1800px;
    margin: 0 auto;
    padding: 40px 80px;
}

/* 文章标题 */
.article-title {
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* 文章头部 */
.article-meta {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

.article-date {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-date::before {
    content: "📅";
    font-size: 16px;
}

/* 文章内容 */
.article-content {
    color: #444;
    line-height: 1.8;
    font-size: 16px;
}

.article-content img {
    width: 100%;
    max-width: 100%;
}

/* 公告特殊样式 */
.announcement-alert {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeaa7;
    border-left: 5px solid #f39c12;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.15);
}

.announcement-alert i {
    color: #f39c12;
    font-size: 18px;
    margin-top: 2px;
}

/* 数据发布时间表 */
.data-schedule {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.schedule-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.schedule-item:last-child {
    margin-bottom: 0;
}

.schedule-time {
    font-weight: 600;
    color: #D1AA57;
    font-size: 14px;
}

.schedule-event {
    font-weight: 600;
    color: #2c3e50;
}

.schedule-forecast {
    color: #6c757d;
    font-style: italic;
}

/* 交易建议区域 */
.trading-advice {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid #dee2e6;
}

.advice-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #D1AA57;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.advice-section:last-child {
    margin-bottom: 0;
}

.advice-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.advice-section ul {
    margin: 0;
    padding-left: 20px;
}

.advice-section li {
    margin-bottom: 8px;
    color: #495057;
}

/* 风险提示 */
.risk-notice {
    background: linear-gradient(135deg, #f8d7da, #f1c0c7);
    border: 1px solid #f1c0c7;
    border-left: 5px solid #dc3545;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}



/* 文章操作按钮 */
.article-actions {
    margin-top: 40px;
    text-align: center;
}

.article-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #D1AA57;
    color: #D1AA57;
    background: white;
}

.article-actions .btn:hover {
    background: #D1AA57;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(209, 170, 87, 0.3);
}





/* 响应式设计 */
@media (max-width: 768px) {
    .news-tabs {
        width: 90%;
    }
    
    .news-tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .news-content {
        padding: 40px 0;
        min-height: 50vh; /* 移动端适当减少最小高度 */
    }
    
    .news-header h2 {
        font-size: 24px;
    }

    .news-title-section {
        padding: 80px 0 40px;
    }
    
    .news-title-section h2 {
        font-size: 2.5rem;
    }
    
    .news-article {
        padding: 20px;
    }
    
    .news-article h3 a {
        font-size: 18px;
    }
    
    .announcement-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .announcement-date {
        order: -1;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* 详情页面响应式 */
    .detail-article {
        padding: 20px 50px;
    }

    .article-title {
        font-size: 26px;
        margin: 0 0 15px 0;
    }

    .article-meta {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .article-content {
        font-size: 15px;
    }

    .article-content h3 {
        font-size: 18px;
        margin: 20px 0 10px;
    }

    .schedule-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .article-actions {
        padding: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .news-nav {
        padding: 15px 0;
    }
    
    .news-tab-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .news-content {
        padding: 30px 0;
        min-height: 45vh; /* 小屏幕设备进一步减少最小高度 */
    }
    
    .news-header h2 {
        font-size: 20px;
    }
    
    .news-header p {
        font-size: 16px;
    }

    .news-header {
        margin-bottom: 30px;
    }

    .news-title-section {
        padding: 60px 0 30px;
    }
    
    .news-title-section h2 {
        font-size: 2rem;
    }

    .news-title-section p {
        font-size: 1rem;
        max-width: 90%;
    }
    
    .news-article {
        padding: 15px;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-article h3 a {
        font-size: 16px;
    }
    
    .announcement-item {
        padding: 15px;
    }
    
    .announcement-header h3 a {
        font-size: 16px;
    }
    
    .market-alerts {
        padding: 15px 0;
    }
    
    .alert-item {
        font-size: 14px;
    }
    
    /* 移动端详情页面优化 */
    .breadcrumb {
        padding: 10px 0;
    }

    .breadcrumb a,
    .breadcrumb span {
        font-size: 12px;
    }

    .detail-article {
        padding: 15px 20px;
    }

    .article-title {
        font-size: 22px;
        margin: 0 0 12px 0;
    }

    .article-meta {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .article-content {
        font-size: 14px;
    }

    .article-content h3 {
        font-size: 16px;
        margin: 15px 0 8px;
        padding: 8px 0 8px 12px;
    }

    .announcement-alert,
    .risk-notice {
        padding: 15px;
        margin: 15px 0;
    }

    .data-schedule,
    .trading-advice {
        padding: 15px;
        margin: 15px 0;
    }

    .advice-section {
        padding: 15px;
    }

    .article-actions {
        margin-top: 30px;
    }
} 