
/* 头部区域 */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 20px;
    background: white;
    border-radius: 16px;
}

.news-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 8px 15px;
    min-width: 300px;
}

.search-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.search-icon img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.app-link {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}
/* 
.app-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    color: white;
    text-decoration: none;
} */

/* 标签页导航 */
.news-tabs {
    display: flex;
    background: white;
    border-radius: 16px;
    padding: 5px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab-item {
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-item:hover {
    background: #f8f9fa;
    color: #333;
}

.tab-item.active {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
}

/* 主要内容区域 */
.cols {
    display: flex;
    gap: 20px;
}

.main-section {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 标签页内容 */
.tab-content {
    display: none;
}

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

/* 资讯列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    border-bottom: 1px dashed #e0e0e0;
    padding: 20px 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

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


.news-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-item .news-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

.news-item:hover .news-title {
    color: #FF6B35;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.news-date {
    color: #999;
}

.news-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-views i {
    font-size: 12px;
}

/* 侧边栏 */
.sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Banner广告位 */
.banner-ad {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.banner-placeholder {
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 6px;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-more {
    font-size: 14px;
    color: #999 !important;
    text-decoration: none;
    font-weight: normal;
}

/* 最新资讯样式 */
.right-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.right-item span:first-child {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    flex: 1;
    margin-right: 10px;
}

.right-item .time {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* 热门专业样式 */
.major-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.major-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

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


.major-rank {
    width: 24px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color:#999;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}



.major-info {
    flex: 1;
    display: flex;
    font-size: 16px;
    color:#222;
    gap: 4px;
}

.major-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
}

.major-heat {
    font-size: 12px;
    color: #FF7016;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        padding: 10px;
    }
    
    .news-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-box {
        min-width: auto;
        width: 100%;
    }
    
    .news-tabs {
        overflow-x: auto;
        padding: 3px;
    }
    
    .tab-item {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .cols {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .main-section {
        padding: 15px;
    }
    
    .news-item {
        padding: 15px 0;
    }
    
    .news-item:hover {
        margin: 0 -15px;
        padding: 15px;
    }
    
    .right-item:hover {
        margin: 0 -15px;
        padding: 12px 15px;
    }
    
    .major-item:hover {
        margin: 0 -15px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .news-title {
        font-size: 24px;
    }
    
    .tab-item {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .news-item .news-title {
        font-size: 15px;
    }
    
    .major-name {
        font-size: 13px;
    }
}

/* 资讯详情页样式 */
.news-detail-container {
    margin-top: 0;
}

.news-detail-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
}

.news-detail-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.news-detail-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #999;
}

.news-detail-meta .news-date {
    color: #999;
}

.news-detail-meta .news-views {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
}

.news-detail-meta .news-views i {
    font-size: 14px;
}

.news-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    word-wrap: break-word;
}

.news-detail-body p {
    margin-bottom: 20px;
}

.news-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.news-detail-body h1,
.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4,
.news-detail-body h5,
.news-detail-body h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
}

.news-detail-body h1 {
    font-size: 28px;
}

.news-detail-body h2 {
    font-size: 24px;
}

.news-detail-body h3 {
    font-size: 20px;
}

.news-detail-body ul,
.news-detail-body ol {
    margin: 15px 0;
    padding-left: 30px;
}

.news-detail-body li {
    margin-bottom: 10px;
}

.news-detail-body a {
    color: #FF6B35;
    text-decoration: none;
}

.news-detail-body a:hover {
    text-decoration: underline;
}

.news-detail-body blockquote {
    border-left: 4px solid #FF6B35;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

.news-detail-body code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.news-detail-body pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
}

.news-detail-body pre code {
    background: none;
    padding: 0;
}

.news-item .news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item:hover .news-title a {
    color: #FF6B35;
}

/* 加载和错误状态 */
.loading,
.empty,
.error {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.error {
    color: #ff4444;
}

/* 标签页链接样式 */
.news-tabs .tab-item {
    text-decoration: none;
    display: block;
}

/* 搜索表单 */
.search-form {
    display: contents;
}

/* 响应式：详情页 */
@media (max-width: 768px) {
    .news-detail-content {
        padding: 20px;
    }
    
    .news-detail-title {
        font-size: 24px;
    }
    
    .news-detail-body {
        font-size: 15px;
    }
}



