﻿/* Root Variables */
:root {
    /* 将颜色变量更改为白色主题 */
    --primary-color: #ff2222;
    --bg-color: #ffffff;
    --card-bg: #f5f5f5;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --hover-color: #f0f0f0;
    --header-height: 80px;
    --mobile-header-height: 60px;
    /* 添加移动端导航栏高度 */
    --container-width: 1440px;

    /* 添加字体变量 */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== PC端隐藏移动端语言选择区域 ===== */
@media (min-width: 769px) {
    .mobile-lang-section {
        display: none !important;
    }
}

/* 导入 Inter 字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* 全局字体样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-color);
}

/* 标题样式 */
h1,
h2,
h3,
h4,
h5,
h6,
.story-title,
.section-title,
.news-title {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* 导航项样式 */
.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* 按钮和交互元素 */
button,
.story-category,
.news-category {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0;
}

/* 正文内容 */
p,
.story-excerpt,
.news-excerpt {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* 元数据和小字体 */
.story-meta,
.news-meta,
.crypto-info {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(45, 45, 45, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    margin-right: auto;
    /* 添加这行确保LOGO始终左对齐 */
}

.logo img {
    height: 40px;
    /* 确保LOGO图片有固定高度 */
    width: auto;
    object-fit: contain;
}

/* Logo优化 */
.logo {
    position: absolute !important;
    left: 60px !important;
    transform: none !important;
    display: flex;
    align-items: center;
    height: 40px;
    z-index: 999;
    margin-right: 0 !important;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: var(--hover-color);
}

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

/* Search Box */
.search-box {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 14px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

/* Language Switch */
.language-switch {
    position: relative;
    margin-left: 20px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: var(--hover-color);
}

.current-lang {
    font-weight: 500;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    width: 160px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lang-dropdown.active {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s ease;
}

.lang-option:hover {
    background: var(--hover-color);
}

.lang-code {
    font-weight: 500;
}

.lang-name {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Main Content */
.main {
    margin-top: calc(var(--header-height) + 40px);
    padding: 40px 20px;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.main-story,
.side-story {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.main-story {
    /* 保持16:9比例 */
    aspect-ratio: 16 / 9;
}

.side-story {
    /* 基础状态下也使用flex: 1来适应容器高度 */
    flex: 1;
    min-height: 0;
}

.main-story:hover,
.side-story:hover {
    transform: translateY(-5px);
}

.main-story img,
.side-story img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 默认使用cover */
    object-position: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.main-story:hover img,
.side-story:hover img,
.news-card:hover .news-image img {
    transform: scale(1.05);
}

.story-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    z-index: 2;
    /* 确保显示在图片上方 */
}

.story-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 16px;
}

.story-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.story-excerpt {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Side Stories */
.side-stories {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.side-story {
    /* 使用16:9比例而不是固定高度 */
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
}

.side-story .story-content {
    padding: 20px;
}

.side-story .story-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.side-story .story-category {
    font-size: 12px;
    padding: 4px 10px;
    margin-bottom: 8px;
}

/* News Section */
.news-section {
    margin-top: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
}

.tg-button {
    display: inline-block;
    background: white;
    color: #0088cc;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    display: flex;
    align-items: flex-start;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.news-image {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    margin-right: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-category {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-meta {
    font-size: 0.75em;
    color: var(--text-secondary);
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.news-meta i {
    margin-right: 5px;
    color: #a0a0a0;
}

.crypto-ticker {
    background: var(--card-bg);
    border-radius: 16px;
    margin: 40px 0;
    padding: 20px;
    overflow: hidden;
    white-space: nowrap;
    /* 防止换行 */
}

.crypto-scroll {
    display: inline-block;
    /* 让内容水平排列 */
    animation: scrollTicker 15s linear infinite;
    /* 动画：15秒循环 */
    width: max-content;
}

.crypto-item {
    display: inline-block;
    margin: 0 20px;
    font-family: Arial, sans-serif;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--hover-color);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

/* 水平滚动动画 */
@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* 向左移动100% */
    }
}

.crypto-item:hover {
    transform: translateY(-4px);
}

.crypto-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.crypto-info {
    flex: 1;
}

.crypto-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.crypto-price {
    color: var(--text-secondary);
    font-size: 14px;
}

.price-change {
    font-size: 14px;
    font-weight: 500;
}

.price-up {
    color: #4caf50;
}

.price-down {
    color: #f44336;
}

/* Footer */
.footer {
    background-color: var(--card-bg);
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hover-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: var(--bg-color);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
}

.newsletter-form button {
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    background: var(--primary-color);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    background-color: #ff3939;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive Design */

/* Adjust container width */
@media (max-width: 1440px) {
    :root {
        --container-width: 1200px;
    }
}

@media (max-width: 1200px) {
    :root {
        --container-width: 960px;
    }

    .news-grid,
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1.5fr 1fr;
    }

    .news-grid-container {
        grid-template-columns: 1.5fr 1fr;
        grid-template-rows: 1fr;
        gap: 20px;
        align-items: stretch;
    }

    .main-story {
        /* 保持16:9比例 */
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .sidebar-column {
        height: 100%;
    }

    .side-story {
        flex: 1;
        aspect-ratio: unset;
        min-height: 0;
    }
}

@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
    }

    .side-stories {
        flex-direction: row;
    }

    .side-story {
        /* 在992px断点仍使用flex分配 */
        flex: 1;
        aspect-ratio: unset;
        min-height: 0;
    }
}

/* Mobile Styles - Professional Optimization */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --container-padding: 15px;
        --font-size-small: 12px;
        --font-size-medium: 14px;
        --font-size-large: 16px;
        --spacing-small: 8px;
        --spacing-medium: 12px;
        --spacing-large: 16px;
        margin-top: 20px;
    }

    /* 头部优化 */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--header-height);
        background: rgba(45, 45, 45, 0.98);
        z-index: 1000;

        padding: 0;
    }

    .header-container {
        height: 100%;
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: none;
    }

    /* 菜单按钮 */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        height: 2px;
        width: 100%;
        background: white;
        margin: 3px 0;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Logo优化 */
    .logo {
        position: absolute !important;
        left: 60px !important;
        transform: none !important;
        display: flex;
        align-items: center;
        height: 40px;
        z-index: 999;
        margin-right: 0 !important;
    }

    .logo img {
        height: 40px;
        width: auto;
    }

    /* 语言切换隐藏 */
    .language-switch {
        display: none;
    }

    /* 分类菜单优化 */
    .category-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 280px;
        height: calc(100vh - var(--header-height));
        background: white;
        z-index: 999;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 0;
        border-radius: 0;
    }

    .category-menu.show {
        left: 0;
    }

    .category-menu-content {
        padding: 0;
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    /* 移除伪元素 */
    .category-menu::before,
    .category-menu::after {
        display: none;
    }

    /* 移动端语言选择区域 */
    .mobile-lang-section {
        background: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
        padding: 20px;
        margin: 0;
    }

    .mobile-lang-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin-bottom: 15px;
        text-align: center;
    }

    .mobile-lang-options {
        display: flex;
        gap: 10px;
        justify-content: center;
    }

    .mobile-lang-btn {
        flex: 1;
        max-width: 120px;
        padding: 12px 16px;
        background: white;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        color: #333;
        text-decoration: none;
        text-align: center;
        font-weight: 500;
        transition: all 0.3s ease;
        font-size: 14px;
    }

    .mobile-lang-btn.active {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
    }

    .mobile-lang-btn:hover {
        border-color: var(--primary-color);
        background: rgba(var(--primary-color-rgb), 0.1);
    }

    .mobile-lang-btn.active:hover {
        background: var(--primary-color);
        color: white;
    }

    /* 分类菜单项优化 */
    .category-menu-item {
        display: block;
        padding: 16px 20px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.3s ease;
        font-size: 16px;
        font-weight: 500;
        position: relative;
        background: white;
    }

    .category-menu-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--primary-color);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .category-menu-item:hover {
        background: #f8f9fa;
        color: var(--primary-color);
        padding-left: 25px;
    }

    .category-menu-item:hover::before {
        transform: scaleY(1);
    }

    .category-menu-item.active {
        background: var(--primary-color);
        color: white;
        font-weight: 600;
    }

    .category-menu-item.active::before {
        transform: scaleY(1);
        background: white;
    }

    /* 遮罩层 */
    .category-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .category-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* 主要内容区域调整 */
    .category-menu-spacer {
        height: var(--header-height);
        flex-shrink: 0;
    }

    .main {
        padding-top: 20px;
        min-height: calc(100vh - var(--header-height));
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    /* 新闻网格容器优化 */
    .news-grid-container {
        display: block !important; /* 移动端使用块级布局，垂直堆叠 */
        grid-template-columns: none;
        gap: 20px;
        margin-bottom: 30px;
    }

    .main-news-column {
        display: block !important;
        min-width: 0;
        margin-bottom: 20px;
    }

    .sidebar-column {
        display: block !important; /* 使用正常的块级布局，而不是contents */
        min-width: 0;
        margin-top: 0; /* 重置上边距 */
    }

    /* 移动端恢复16:9比例显示 */
    .main-story,
    .side-story {
        aspect-ratio: 16 / 9;
        flex: none; /* 移动端不使用flex分配 */
    }

    /* 侧边栏区域优化 */
    .sidebar-section {
        background: white;
        border-radius: 12px;
        padding: 15px !important;
        margin-bottom: 15px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border: 1px solid #f0f0f0;
    }

    .sidebar-title {
        font-size: 18px;
        font-weight: 700;
        color: #333;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--primary-color);
        position: relative;
    }

    .sidebar-title::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 40px;
        height: 2px;
        background: var(--primary-color);
        border-radius: 1px;
    }

    /* 新闻列表优化 */
    .news-list {
        margin-bottom: 30px;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .section-header {
        background: #f8f9fa;
        padding: 20px;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .section-title {
        font-size: 20px;
        font-weight: 700;
        color: #333;
        margin: 0;
        flex: 1;
    }

    .section-title::after {
        content: '';
        display: block;
        width: 40px;
        height: 3px;
        background: var(--primary-color);
        margin-top: 8px;
        border-radius: 2px;
    }

    .view-all {
        background: var(--primary-color);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .view-all:hover {
        background: var(--primary-color-dark);
        transform: translateY(-1px);
    }

    /* 头条新闻卡片优化 */
    .news-card-large,
    .main-story,
    .side-story {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        border: 1px solid #f0f0f0;
    }

    .news-card-large:hover,
    .main-story:hover,
    .side-story:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

    .news-card-large img,
    .main-story img,
    .side-story img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .news-card-large:hover img,
    .main-story:hover img,
    .side-story:hover img {
        transform: scale(1.05);
    }

    .news-card-large .news-content,
    .main-story .story-content,
    .side-story .story-content {
        padding: 20px;
    }

    .news-card-large .news-category,
    .story-category {
        display: inline-block;
        background: var(--primary-color);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .news-card-large .news-title,
    .story-title {
        font-size: 18px;
        font-weight: 700;

        line-height: 1.4;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-card-large .news-excerpt,
    .story-excerpt {
        color: #666;
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-card-large .news-meta,
    .story-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        color: #888;
        font-size: 12px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #f0f0f0;
    }

    /* 普通新闻卡片优化 */
    .news-card {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        border-color: var(--primary-color);
    }

    .news-card .news-image {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .news-card .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .news-card .news-content {
        padding: 0 5px;
        text-align: center;
    }

    .news-category-and-meta {
        justify-content: center;
    }

    .news-card .news-category {
        display: inline-block;
        background: var(--primary-color);
        color: white;
        padding: 4px 10px;
        border-radius: 15px;
        font-size: 11px;
        font-weight: 600;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        align-self: flex-start;
    }

    .news-card .news-title {
        font-size: 16px;
        -webkit-line-clamp: 2;
    }

    .news-card .news-excerpt {
        color: #666;
        font-size: 13px;
        -webkit-line-clamp: 3;
    }

    .news-card .news-meta {
        justify-content: center;
        font-size: 0.7em;
        padding-top: 8px;
    }

    .news-meta .news-time,
    .news-meta .news-author {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    /* Telegram横幅优化 */
    .telegram-banner {
        background: linear-gradient(135deg, #0088cc, #229ED9);
        color: white;
        padding: 15px !important;
        border-radius: 12px;
        text-align: center;
        margin-bottom: 15px !important;
        box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
    }

    .telegram-banner h4 {
        margin-bottom: 8px;
        font-size: 16px;
    }

    .telegram-banner p {
        margin-bottom: 15px;
        opacity: 0.9;
        font-size: 14px;
    }

    /* 分析卡片优化 */
    .analysis-card {
        background: white;
        border-radius: 8px;
        padding: 12px !important;
        margin-bottom: 12px;
        border-left: 4px solid var(--primary-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .analysis-card:hover {
        transform: translateX(2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .analysis-title {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        line-height: 1.4;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .analysis-meta {
        display: flex;
        justify-content: space-between;
        color: #888;
        font-size: 11px;
        flex-wrap: wrap;
        gap: 5px;
    }

    /* 加密货币滚动条优化 */
    .crypto-ticker {
        background: #f8f9fa;
        padding: 15px 0;
        margin: 20px 0;
        border-radius: 12px;
        overflow: hidden;
    }

    .crypto-item {
        min-width: 180px;
        margin-right: 15px;
        background: white;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    /* 分页优化 */
    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 30px 0;
        gap: 8px;
        flex-wrap: wrap;
    }

    .page-dot {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        color: #666;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .page-dot.active {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
    }

    .page-dot.special-page {
        background: #f8f9fa;
        border-color: #dee2e6;
        color: #6c757d;
    }

    /* 固定按钮优化 */
    .fixed-buttons {
        position: fixed;
        bottom: 20px;
        right: 15px;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .scroll-to-top,
    .telegram-btn {
        width: 50px;
        height: 50px;
        border-radius: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }

    .telegram-btn i,
    .scroll-to-top i {
        font-size: 20px;
    }

    /* 页脚优化 */
    .footer {
        background: #333;
        color: white;
        padding: 40px 0 20px;
        margin-top: 40px;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
        max-width: 100%;
    }

    .footer-section {
        text-align: center;
        padding: 0 20px;
    }

    .footer-title {
        font-size: 18px;
        margin-bottom: 15px;
        color: white;
    }

    .footer-section p {
        font-size: 14px;
        line-height: 1.6;
        color: #ccc;
    }

    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        color: #ccc;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.3s;
    }

    .footer-links a:hover {
        color: var(--primary-color);
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        background: var(--primary-color);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .newsletter-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-width: 280px;
        margin: 0 auto;
    }

    .newsletter-form input {
        padding: 12px 15px;
        border: none;
        border-radius: 25px;
        font-size: 14px;
        outline: none;
    }

    .newsletter-form button {
        padding: 12px 20px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 25px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #555;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 12px;
        color: #999;
        margin: 0;
    }

    /* 移动端隐藏导航栏中的语言切换 */
    .nav-menu .language-switch-mobile {
        display: none !important;
    }

    /* 移动端搜索框特殊样式 */
    .search-box {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        overflow: hidden;
        transition: all 0.3s ease;
        position: relative;
        z-index: 1002;
    }

    .search-box.active {
        width: calc(100vw - 30px);
        position: fixed;
        left: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid #ddd;
    }

    .search-input {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        border: none;
        padding: 0 50px 0 15px;
        color: white;
        font-size: 14px;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .search-box.active .search-input {
        opacity: 1;
        pointer-events: all;
        color: #333;
    }

    .search-input::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }

    .search-box.active .search-input::placeholder {
        color: rgba(51, 51, 51, 0.7);
    }

    .search-icon {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        color: white;
        font-size: 16px;
        cursor: pointer;
        z-index: 2;
        transition: color 0.3s ease;
    }

    .search-box.active .search-icon {
        color: var(--primary-color);
    }

    /* 搜索激活时隐藏LOGO和其他元素 */
    .search-active .logo {
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .search-active .menu-toggle {
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    /* 搜索激活时隐藏语言切换按钮 */
    .search-active .language-switch {
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    /* 确保登录按钮在搜索激活时保持可见且位置固定 */
    .login-button {
        display: inline-block;
        padding: 6px 16px;
        margin-right: 10px;
        background-color: rgba(255, 255, 255, 0.9);
        color: #333;
        border-radius: 20px;
        font-size: 14px;
        text-decoration: none;
        transition: background-color 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.2);
        position: relative;
        z-index: 1003;
        order: 999;
    }

    .login-button:hover {
        background-color: rgba(255, 255, 255, 1);
    }

    /* 搜索激活时的header-actions布局调整 */
    .search-active .header-actions {
        justify-content: flex-end;
        gap: 10px;
    }

    /* 搜索激活时的header样式调整 */
    .search-active .header-container {
        background-color: rgba(45, 45, 45, 0.98);
        justify-content: space-between;
    }

    /* 搜索激活时的覆盖层 */
    .search-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .search-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* 头部操作区域 - 移动端 */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    /* 移动端精选资讯优化 */
    .featured-item-img {
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
        padding: 8px !important;
        border-radius: 6px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .featured-item-img:hover {
        background: rgba(0, 0, 0, 0.02) !important;
    }

    .featured-text {
        flex: 1 !important;
        padding: 0 !important;
        min-width: 0 !important;
    }

    .featured-title {
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        color: #333 !important;
        margin-bottom: 4px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .featured-excerpt {
        font-size: 12px !important;
        color: #666 !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

   

    .featured-text {
        flex: 1 !important;
        padding: 0 !important;
        min-width: 0 !important;
    }
}

/* 超小屏幕优化 - 360px及以下 */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .main-story,
    .side-story {
        /* 确保在小屏幕上也使用16:9比例 */
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .main-story .story-title,
    .side-story .story-title {
        font-size: 16px;
        line-height: 1.3;
    }

    .news-image {
        width: 120px;
        height: 80px;
    }

    .footer {
        padding: 20px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link i {
        font-size: 16px;
    }

    .newsletter-form input,
    .newsletter-form button {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* 防止菜单激活时的滚动 */
.menu-active {
    overflow: hidden;
}

.menu-active .header {
    position: fixed;
    background: var(--primary-color);
}

/* 加载状态样式 */
.category-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.category-loading i {
    font-size: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 搜索框激活状态 */
.search-active .search-box {
    width: 200px;
}

.search-active .search-input {
    opacity: 1;
    pointer-events: all;
}

.search-active .header-container {
    background-color: rgba(45, 45, 45, 0.98);
}

/* Toast消息样式 */
.toast-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 14px;
    max-width: 90%;
    text-align: center;
}

.toast-message.show {
    opacity: 1;
    visibility: visible;
}

/* 加载指示器 */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-indicator .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 趋势话题标签样式 */
.trend-tab {
    display: inline-block;
    padding: 8px 16px;
    margin: 6px 8px 6px 0;
    font-size: 14px;
    color: #333;
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.trend-tab:hover {
    background-color: #d9eaff;
    color: #0056b3;
}

.trend-tab.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* 广告容器样式 */
.ad-container {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.ad-card img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.ad-card img:hover {
    transform: scale(1.02);
}

/* 登录按钮样式 */
.login-button {
    display: inline-block;
    padding: 6px 16px;
    margin-right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-button:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* 分析网格和卡片样式 */
.analysis-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.analysis-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.analysis-card:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.analysis-header {
    margin-bottom: 10px;
}

.analysis-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.analysis-meta {
    color: #666;
    font-size: 12px;
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* Topic Grid */
.topic-grid {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
}

.topic-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.topic-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== 精选资讯样式 ===== */
.featured-item-img {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    padding: 12px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.featured-item-img:hover {
    background: rgba(0, 0, 0, 0.02) !important;
    text-decoration: none;
    color: inherit;
}



.featured-text {
    flex: 1 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

.featured-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #333 !important;
    margin-bottom: 6px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.featured-excerpt {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ===== 新闻详情页面专用样式 ===== */

/* 加载和错误状态 */
.loading-container,
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    text-align: center;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #666;
}

.loading-spinner i {
    font-size: 32px;
    color: var(--primary-color);
}

.error-message {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    max-width: 500px;
}

.error-message i {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 16px;
}

.error-message h3 {
    margin-bottom: 12px;
    color: #333;
}

.error-message p {
    margin-bottom: 24px;
    color: #666;
}

.retry-btn,
.home-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin: 0 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.home-btn {
    background: #6c757d;
}

.retry-btn:hover {
    background: #ff3939;
}

.home-btn:hover {
    background: #5a6268;
}

/* 新闻详情内容样式 */
.detail-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
    margin: 16px 0;
}

.detail-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

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

/* 分享按钮样式 */
.twitter-btn {
    background: #1DA1F2;
}

.telegram-btn {
    background: #0088cc;
    color: white;
    text-decoration: none;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.copy-btn {
    background: #6c757d;
}

.twitter-btn:hover {
    background: #0d8bd9;
}

.telegram-btn:hover {
    background: #006fa3;
}

.copy-btn:hover {
    background: #5a6268;
}

/* 相关新闻区域 */
.related-news {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.related-news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.related-news-image {
    height: 180px;
    overflow: hidden;
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-news-content {
    padding: 20px;
}

.related-news-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.related-news-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-meta {
    display: flex;
    gap: 16px;
    color: #888;
    font-size: 12px;
}

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

/* 移动端优化 */
@media (max-width: 768px) {
    .detail-title {
        font-size: 24px;
    }

    .detail-meta {
        flex-direction: column;
        gap: 8px;
    }

    .related-news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .related-news {
        margin-top: 40px;
        padding-top: 30px;
    }

    .error-message {
        padding: 30px 20px;
        margin: 0 20px;
    }

    .related-news-content {
        padding: 10px;
    }
}

/* ===== PC端样式优化 ===== */
@media (min-width: 769px) {

    /* PC端头部布局优化 */
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        padding: 0 20px;
        max-width: 1600px;
        margin: 0 auto;
    }

    .logo {
        margin-right: 30px;
        flex-shrink: 0;
        position: relative !important;
        left: auto !important;
        transform: none !important;
    }

    nav {
        flex: 1;
        display: flex;
        justify-content: center;
        min-width: 0;
    }

    .nav-menu {
        display: flex !important;
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: 100%;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu li {
        margin: 0 6px;
        flex-shrink: 0;
    }

    .nav-link {
        color: #fff !important;
        text-decoration: none;
        padding: 6px 12px;
        border-radius: 20px;
        transition: background-color 0.3s ease;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        display: block;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: #fff !important;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-left: auto;
        flex-shrink: 0;
    }

    /* 搜索框优化 */
    .search-box {
        width: 250px;
    }

    .search-input {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #fff !important;
    }

    .search-input::placeholder {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    /* 语言切换优化 */
    .lang-btn {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #fff !important;
    }

    /* PC端网格布局优化 */
    .news-grid-container {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr;
        gap: 40px;
        align-items: stretch; /* 确保高度对齐 */
        margin-bottom: 40px;
    }

    .main-news-column {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .sidebar-column {
        display: flex;
        flex-direction: column;
        gap: 24px;
        min-width: 0;
        height: 100%; /* 填满网格单元格 */
    }

    /* 保持main-story的16:9比例 */
    .main-story {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
    }

    /* 让side-story平分可用高度，而不是使用固定比例 */
    .side-story {
        flex: 1; /* 平分sidebar-column的高度 */
        aspect-ratio: unset !important; /* 移除16:9限制 */
        height: auto !important;
        min-height: 0;
    }

    /* 图片在side-story中保持良好显示 */
    .main-story img,
    .side-story img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* PC端可以使用cover以获得更好的视觉效果 */
        object-position: center;
    }

    /* story-content应该作为覆盖层显示在图片上方 */
    .story-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 30px;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
        color: white;
        z-index: 2;
        /* 确保显示在图片上方 */
    }

    /* 侧边新闻的内容区域适配较小空间 */
    .side-story .story-content {
        padding: 20px;
    }

    .side-story .story-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .side-story .story-category {
        font-size: 12px;
        padding: 4px 10px;
        margin-bottom: 8px;
    }
}

/* ===== Telegram Banner 样式 ===== */
.telegram-banner {
    background: linear-gradient(135deg, #0088cc, #00a1d9);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    color: white;

}

.telegram-banner h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.telegram-banner p {
    opacity: 0.9;
    margin-bottom: 16px;
}

.tg-button {
    display: inline-block;
    background: white;
    color: #0088cc;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tg-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== 分页样式 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    padding: 20px 0;
}

.page-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-dot:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.page-dot.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 34, 34, 0.3);
}

.page-dot.disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

/* ===== 固定按钮样式 ===== */
.fixed-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}

.scroll-to-top,
.telegram-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.scroll-to-top {
    background: var(--primary-color);
    color: white;
}

.telegram-btn {
    background: #0088cc;
    color: white;
    text-decoration: none;
}

.scroll-to-top.show,
.telegram-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    background: #ff3939;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 34, 34, 0.3);
}

.telegram-btn:hover {
    background: #0077b3;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.3);
}

/* 移动端固定按钮调整 */
@media (max-width: 768px) {
    .fixed-buttons {
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top,
    .telegram-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* ===== 多语言支持优化 ===== */
.sidebar-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 8px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 侧边栏区域样式 */
.sidebar-section {
    margin-bottom: 32px;
}

.analysis-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.topic-grid {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
}

.topic-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.topic-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

#latestNews.news-list-two-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0;
    list-style: none;
}

.news-category-and-meta {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85em;
    flex-wrap: wrap;
    gap: 8px;
}

.top-badge {
    background-color: #ffeb3b;
    color: #cddc39;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    margin-right: 5px;
    white-space: nowrap;
}

.news-author {
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
}

/* ===== 新闻网格容器布局 - 基础定义 ===== */
.news-grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr;
    gap: 40px;
    align-items: stretch; /* 确保高度对齐 */
    margin-bottom: 40px;
}

.main-news-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    height: 100%; /* 填满网格单元格 */
}

/* ===== 新闻网格样式 ===== */
.featured-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 广告横幅样式 ===== */
.ad-banner {
    background: #f8f9fa;
    border-radius: 8px;

    text-align: center;

}

.ad-container {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.crypto-item {
    flex: 0 0 120px;
    min-width: 120px;
    font-size: 12px;
}

/* 移动端精选资讯优化 */
.featured-item-img {
    margin-bottom: 12px;
    border-radius: 10px;
}


.featured-text {
    padding: 12px;
}

.featured-title {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 6px;
    -webkit-line-clamp: 2;
}

.featured-excerpt {
    font-size: 12px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
}

.pagination {
    margin: 30px 0;
    padding: 15px 0;
    gap: 6px;
}





    .featured-item-img {
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

.pagination {
    margin: 30px 0;
    padding: 15px 0;
    gap: 6px;
}

/* ===== 精选资讯最终样式覆盖 ===== */
.featured-item-img {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    padding: 12px !important;
    border-radius: 8px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.featured-item-img:hover {
    background: rgba(0, 0, 0, 0.02) !important;
    transform: translateY(-2px);
}




.featured-text {
    flex: 1 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

.featured-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #333 !important;
    margin-bottom: 6px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.featured-excerpt {
    font-size: 13px !important;
    color: #666 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* 移动端最终覆盖 */
@media (max-width: 768px) {
    .featured-item-img {
        gap: 8px !important;
        margin-bottom: 10px !important;
        padding: 8px !important;
        border-radius: 6px !important;
    }
 
    .featured-title {
        font-size: 13px !important;
        margin-bottom: 4px !important;
    }

    .featured-excerpt {
        font-size: 11px !important;
        -webkit-line-clamp: 1 !important;
    }

    /* 确保精选资讯在移动端正确显示 */
    .topic-grid {
        background: white;
        border-radius: 8px;
        padding: 16px !important;
        margin-bottom: 20px;
    }

    .topic-tabs {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    /* 确保侧边栏区域在移动端正确显示 */
    .sidebar-section {
        margin-bottom: 20px !important;
        background: white;
        border-radius: 8px;
        padding: 16px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .sidebar-title {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
}
