/* 新闻页面科技感样式 */

/* 页面容器 - 左右布局 */
.news-page-container {
    display: flex;
    gap: 24px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 左侧主要内容区 */
.news-main-content {
    flex: 1;
    min-width: 0;
}

/* 页面标题区域 - 科技感 */
.news-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.news-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.news-header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4a7bff 0%, #00d4ff 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 8px 32px rgba(74, 123, 255, 0.4);
    position: relative;
    z-index: 1;
}

.news-header-text {
    position: relative;
    z-index: 1;
}

.news-main-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
}

/* 统计信息卡片 */
.news-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(74, 123, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a7bff 0%, #00d4ff 100%);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(74, 123, 255, 0.15);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #4a7bff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* 时间线容器 */
.news-timeline-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* 日期区块 */
.news-date-section {
    margin-bottom: 40px;
}

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

/* 日期徽章 */
.news-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #4a7bff 0%, #00d4ff 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(74, 123, 255, 0.3);
}

/* 新闻项目容器 - 时间线 */
.news-items {
    position: relative;
    padding-left: 30px;
}

.news-items::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #4a7bff 0%, #00d4ff 50%, rgba(74, 123, 255, 0.2) 100%);
}

/* 单个新闻项目 */
.news-item {
    position: relative;
    margin-bottom: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border-radius: 12px;
    border: 1px solid rgba(74, 123, 255, 0.1);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(74, 123, 255, 0.15);
    border-color: rgba(74, 123, 255, 0.3);
}

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

/* 时间线圆点 */
.news-item-dot {
    position: absolute;
    left: -26px;
    top: 28px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #4a7bff 0%, #00d4ff 100%);
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(74, 123, 255, 0.3);
    z-index: 1;
}

/* 新闻标题 */
.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-title a {
    color: #1a1a2e;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.news-title a:hover {
    color: #4a7bff;
}

.news-title a i {
    font-size: 12px;
    color: #4a7bff;
    opacity: 0.7;
}

/* 新闻内容 */
.news-content {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}

/* 新闻元信息 */
.news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: #888;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-meta i {
    color: #4a7bff;
}

/* 加载更多按钮 */
.load-more-section {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #4a7bff 0%, #00d4ff 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(74, 123, 255, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 123, 255, 0.4);
}

/* 右侧边栏 */
.news-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* 侧边栏卡片 */
.sidebar-card {
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(74, 123, 255, 0.1);
}

.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(74, 123, 255, 0.1);
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

.sidebar-card-header i {
    color: #4a7bff;
    font-size: 16px;
}

.sidebar-card-body {
    padding: 16px 20px;
}

/* 热门AI工具 */
.sidebar-tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

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

.sidebar-tool-item:hover {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    transform: translateX(4px);
}

.sidebar-tool-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4a7bff 0%, #00d4ff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.sidebar-tool-info {
    flex: 1;
    min-width: 0;
}

.sidebar-tool-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.sidebar-tool-desc {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 分类标签 */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border: 1px solid rgba(74, 123, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: #4a7bff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: linear-gradient(135deg, #4a7bff 0%, #00d4ff 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* 订阅卡片 */
.subscribe-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

.subscribe-card .sidebar-card-header {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.subscribe-card .sidebar-card-header i {
    color: #00d4ff;
}

.subscribe-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    gap: 8px;
}

.subscribe-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.subscribe-input:focus {
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.15);
}

.subscribe-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4a7bff 0%, #00d4ff 100%);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(74, 123, 255, 0.4);
}

/* 快速链接 */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    color: #4a7bff;
    transform: translateX(4px);
}

.quick-link i {
    color: #4a7bff;
    font-size: 12px;
}

/* 最新快讯 */
.latest-news-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(74, 123, 255, 0.1);
}

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

.latest-news-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a2e;
    text-decoration: none;
    margin-bottom: 6px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.latest-news-title:hover {
    color: #4a7bff;
}

.latest-news-source {
    font-size: 11px;
    color: #888;
}

/* AI趋势卡片 */
.trend-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

.trend-card .sidebar-card-header {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.trend-card .sidebar-card-header i {
    color: #00d4ff;
}

.trend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.trend-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4a7bff 0%, #00d4ff 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.trend-info {
    flex: 1;
}

.trend-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.trend-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.trend-progress {
    height: 100%;
    background: linear-gradient(90deg, #4a7bff 0%, #00d4ff 100%);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* 热门标签 */
.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-tag {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border: 1px solid rgba(74, 123, 255, 0.2);
    border-radius: 16px;
    font-size: 12px;
    color: #4a7bff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hot-tag:hover {
    background: linear-gradient(135deg, #4a7bff 0%, #00d4ff 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.hot-tag.large {
    font-size: 14px;
    padding: 8px 16px;
}

.hot-tag.medium {
    font-size: 13px;
    padding: 7px 14px;
}

/* 工具统计卡片 */
.stats-card {
    background: linear-gradient(135deg, #4a7bff 0%, #00d4ff 100%);
    color: white;
}

.stats-card .sidebar-card-header {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.stats-card .sidebar-card-header i {
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stats-item {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stats-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stats-label {
    font-size: 12px;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .news-page-container {
        flex-direction: column;
    }
    
    .news-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .news-stats {
        grid-template-columns: 1fr;
    }
    
    .news-header {
        flex-direction: column;
        text-align: center;
    }
    
    .news-main-title {
        font-size: 24px;
    }
}
