/*
Theme Name: News Theme
Author: sy
Description: 岩思类脑新闻主题，支持新闻列表和详情页面
Version: 1.0.6
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news-theme
*/

/* 字体声明已移至 fonts.css.php 文件 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 确保 ul, li 正常显示 */
ul, ol {
    list-style: none;
}

li {
    display: block;
}

html {
    min-width: 850px;
    overflow-x: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #050F18;
    min-width: 850px;
    overflow-x: auto;
}

/* News Container 样式 */
.news-container {
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.site-header {
    display: none; /* 隐藏默认头部 */
}

/* 确保 main 容器不影响 hero section */
main.container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* 首页时移除 main 容器的限制 */
body.home main.container,
body.blog main.container {
    padding: 0;
    max-width: 100%;
}

/* Hero Section 样式 */
.hero-section {
    width: 100vw;
    height: 900px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* custom-header 改为 relative：参与文档流，page-header 会自然排在其下方 */

.page-header {
    text-align: center;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0;
    margin: 0;
}

.page-title {
    font-family: 'Bauhaus', sans-serif;
    font-size: 95px;
    font-weight: 400;
    color: #999999;
    line-height: 104px;
    text-align: center;
    font-style: normal;
    background: linear-gradient(0deg, rgba(238,238,238,0.4) 0%, #FFFFFF 50%, rgba(255,255,255,0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 1s ease-out forwards;
    margin: 0 0 12px 0;
    display: block;
}

.page-subtitle {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 26px;
    color: #FFFFFF;
    line-height: 37px;
    text-align: center;
    font-style: normal;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
}

/* News Content Body 样式 */
.news-content-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4%;
    row-gap: 10%;
    align-items: start; /* 允许不同高度的卡片，不强制对齐 */
    padding: 80px 0px; 
    margin-top: -450px;
    margin-left: 18%;
    margin-right: 18%;
    position: relative;
    z-index: 1;
    background-color: transparent; 
}

/* News Item Module 样式 */
.news-item-module {
    background-color: transparent; 
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* 移除 height: 100%，允许内容自适应高度 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item-module:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); 
}

.image-link {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 7; /* 增加图片高度，让格子更高 */
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

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

.image-link:hover .news-image {
    transform: scale(1.05); 
}

.image-placeholder {
    width: 100%;
    height: 100%;
    color: #aaa;
    font-size: 14px;
    text-align: center;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2a2a2a; 
}

.news-item-content {
    padding: 1.2vw 0.8vw; /* 增加内边距，让格子更高 */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* 移除 overflow: hidden 和 min-height: 0，让内容自适应 */
}

.title-link {
    text-decoration: none;
    color: inherit;
}

.news-title {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #FFFFFF;
    line-height: 21px;
    text-align: left;
    font-style: normal;
    transition: color 0.3s ease;
    margin-bottom: 16px; /* 增加标题和描述之间的间距 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* 英文版字体样式 */
.news-title[lang="en-US"] {
    font-family: HelveticaNeue, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 中文版字体样式 */
.news-title[lang="zh-CN"] {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
}

.title-link:hover .news-title {
    color: #765AF8;
}

.news-description {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #BDBDBD;
    line-height: 19px;
    text-align: left;
    font-style: normal;
    /* 移除行数限制，让文字完全显示 */
    word-break: break-word;
}

/* 英文版字体样式 */
.news-description[lang="en-US"] {
    font-family: HelveticaNeue, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 中文版字体样式 */
.news-description[lang="zh-CN"] {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 单篇新闻详情页样式 */
.single-news {
    background: #fff;
    border-radius: 8px;
    padding: 75px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: max(100px, calc((100% - 1280px) / 2));
    margin-right: max(100px, calc((100% - 1280px) / 2));
    max-width: 1280px;
}

/* 文章页：正文居中布局 */
.single-news-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.single-news-main {
    width: 100%;
}

.article-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc-item + .article-toc-item {
    margin-top: 6px;
}

.article-toc-item.level-h3 {
    padding-left: 14px;
}

.article-toc-link {
    display: block;
    color: #4a5568;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.article-toc-link:hover {
    background: #f6f7fb;
    color: #2c3e50;
}

.article-toc-link.is-active {
    background: #eef2ff;
    color: #2c3e50;
    font-weight: 600;
}

/* 左侧新闻列表导航 */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list-item + .article-list-item {
    margin-top: 6px;
}

.article-list-link {
    display: block;
    color: #4a5568;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* 英文版字体样式 */
.article-list-link[lang="en-US"] {
    font-family: HelveticaNeue, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 中文版字体样式 */
.article-list-link[lang="zh-CN"] {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
}

.article-list-link:hover {
    background: #f6f7fb;
    color: #2c3e50;
}

.article-list-item.is-current .article-list-link {
    background: #eef2ff;
    color: #2c3e50;
    font-weight: 600;
}

.article-list-empty {
    font-size: 12px;
    color: #999;
    padding: 6px 8px;
}

/* 英文版字体样式 */
.article-list-empty[lang="en-US"] {
    font-family: HelveticaNeue, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 中文版字体样式 */
.article-list-empty[lang="zh-CN"] {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 30px;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

/* 英文版字体样式 */
.back-button[lang="en-US"] {
    font-family: HelveticaNeue, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 中文版字体样式 */
.back-button[lang="zh-CN"] {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
}

.back-button:hover {
    background-color: #2980b9;
}

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

.news-header h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* 英文版字体样式 */
.news-header h1[lang="en-US"] {
    font-family: HelveticaNeue, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 中文版字体样式 */
.news-header h1[lang="zh-CN"] {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
}

.news-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.news-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.news-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* 英文版字体样式 */
.news-content[lang="en-US"],
.news-content[lang="en-US"] p,
.news-content[lang="en-US"] h1,
.news-content[lang="en-US"] h2,
.news-content[lang="en-US"] h3,
.news-content[lang="en-US"] h4,
.news-content[lang="en-US"] h5,
.news-content[lang="en-US"] h6,
.news-content[lang="en-US"] li,
.news-content[lang="en-US"] span,
.news-content[lang="en-US"] div {
    font-family: HelveticaNeue, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 中文版字体样式 */
.news-content[lang="zh-CN"],
.news-content[lang="zh-CN"] p,
.news-content[lang="zh-CN"] h1,
.news-content[lang="zh-CN"] h2,
.news-content[lang="zh-CN"] h3,
.news-content[lang="zh-CN"] h4,
.news-content[lang="zh-CN"] h5,
.news-content[lang="zh-CN"] h6,
.news-content[lang="zh-CN"] li,
.news-content[lang="zh-CN"] span,
.news-content[lang="zh-CN"] div {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

/* 上一篇/下一篇导航 */
.news-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
    min-width: 200px;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 15px 20px;
    background-color: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: 1px solid #e0e0e0;
}

.nav-previous a:hover,
.nav-next a:hover {
    background-color: #e9ecef;
}

.nav-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* 英文版字体样式 */
.nav-label[lang="en-US"] {
    font-family: HelveticaNeue, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 中文版字体样式 */
.nav-label[lang="zh-CN"] {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
}

.nav-title {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

/* 英文版字体样式 */
.nav-title[lang="en-US"] {
    font-family: HelveticaNeue, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 中文版字体样式 */
.nav-title[lang="zh-CN"] {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 响应式设计 */
@media (max-width: 1280px) {
    .hero-section {
        height: 680px;
    }
    .page-title {
        font-size: 80px;
        line-height: 88px;
    }
    .page-subtitle {
        font-size: 18px;
        line-height: 25px;
    }
    .news-content-body {
        margin-left: 10%;
        margin-right: 10%;
        margin-top: -350px;
    }
    .news-title {
        font-size: 16px;
        line-height: 17px;
        margin-bottom: 18px; /* 增加间距 */
    }
    .news-description {
        font-size: 12px;
        line-height: 16px;
        /* 移除行数限制，让文字完全显示 */
    }

    
    /* 响应式图片高度 */
    .image-link {
        aspect-ratio: 8 / 2.8; /* 增加图片高度，让格子更高 */
        max-height: 200px; /* 增加最大高度 */
    }
}

/* 850px以下保持850px时的样式 */
@media (max-width: 850px) {
    .hero-section {
        width: 850px; /* 固定宽度，不再使用100vw */
        height: 680px;
        margin-left: calc(-425px + 50%); /* 850px / 2 = 425px，固定居中 */
        margin-right: calc(-425px + 50%);
    }
    .page-title {
        font-size: 80px;
        line-height: 88px;
    }
    .page-subtitle {
        font-size: 18px;
        line-height: 25px;
    }
    .news-content-body {
        margin-left: 10%;
        margin-right: 10%;
        margin-top: -350px;
    }
    .news-title {
        font-size: 16px;
        line-height: 17px;
        margin-bottom: 18px;
    }
    .news-description {
        font-size: 12px;
        line-height: 16px;
    }
    .image-link {
        aspect-ratio: 8 / 2.8;
        max-height: 200px;
    }
    
    .news-item-content {
        padding: 10px 7px; /* 850px时的1.2vw 0.8vw固定值 */
    }
}

/* @media (max-width: 768px) {
    .page-header {
        padding: 0;
        margin: 0;
    }
    .news-content-body {
        grid-template-columns: 1fr;
        margin-left: 5%;
        margin-right: 5%;
        margin-top: -200px;
        padding: 40px 0px;
    }
    
    .single-news {
        padding: 30px;
        margin-top: 30px;
        margin-bottom: 30px;
        margin-left: max(20px, calc((100% - 1280px) / 2));
        margin-right: max(20px, calc((100% - 1280px) / 2));
        max-width: 1280px;
    }

    .single-news-layout {
        flex-direction: column;
    }

    .single-news-main {
        width: 100%;
    }
    
    .news-header h1 {
        font-size: 24px;
    }
    
    .news-navigation {
        flex-direction: column;
    }
    
    .nav-previous,
    .nav-next {
        width: 100%;
    }
    
    .page-title {
        font-size: 50px;
        line-height: 60px;
    }
    
    .page-subtitle {
        font-size: 16px;
        line-height: 22px;
    }
    
} */

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* ============================================
   Header 样式
   ============================================ */
.custom-header {
    position: relative;
    background: transparent;
    height: 140px;
    width: 100vw;
    display: flex !important;
    align-items: center;
    color: white;
    z-index: 100;
    flex-direction: row;
    pointer-events: auto;
}

.custom-header * {
    pointer-events: auto;
}

.logo {
    position: absolute;
    left: 12vw;
    display: flex;
    align-items: center;
    height: 50px;
    text-decoration: none;
    cursor: pointer;
}

.logo img {
    width: 132px;
    height: 50px;
}

.nav-wrapper {
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex !important;
    list-style: none !important;
    padding: 0;
    margin: 0;
    gap: 52px;
    flex-direction: row;
}

.nav-list li {
    display: flex !important;
    flex-direction: row;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 22px;
    cursor: pointer;
    pointer-events: auto;
}

.nav-link,
.dropdown-title {
    font-size: 16px;
    line-height: 22px;
    display: flex;
    align-items: center;
    color: #ffffff;
    position: relative;
    user-select: none;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    z-index: 1;
}

/* 英文版字体样式 */
.nav-link[lang="en-US"],
.dropdown-title[lang="en-US"] {
    font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: bold;
}

/* 中文版字体样式 */
.nav-link[lang="zh-CN"],
.dropdown-title[lang="zh-CN"] {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
}

.nav-link {
    cursor: pointer;
    pointer-events: auto;
}

.nav-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.nav-link:hover,
.dropdown-title:hover {
    color: #ffffff;
}

.dropdown-icon {
    margin-left: 4px;
    width: 12px;
    height: 12px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px 0;
    margin: 0;
    min-width: 120px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* CustomDropdown.vue 同款 hover 展开 */
.custom-dropdown-wrapper {
    position: relative;
    display: inline-block;
    outline: none;
}

.dropdown-trigger {
    cursor: pointer;
    user-select: none;
}

.default-trigger {
    display: flex;
    align-items: center;
}

.custom-dropdown-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu.right {
    left: auto;
    right: 0;
    transform: translateY(-10px);
}

.custom-dropdown-wrapper:hover .dropdown-menu.right {
    transform: translateY(0);
}

.dropdown-item {
    color: #fff;
    background-color: #000;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: none;
    text-align: center;
    text-decoration: none;
    display: block;
}

/* 英文版字体样式 */
.dropdown-item[lang="en-US"] {
    font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 中文版字体样式 */
.dropdown-item[lang="zh-CN"] {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
}

.dropdown-item.active {
    color: #765AF8;
    font-weight: 400;
    background-color: #111;
}

.dropdown-item:hover {
    background-color: #111;
    color: #fff;
    text-decoration: none;
}

/* 移除 hover 时的旋转效果 */

/* 紫色下划线 */
.indicator {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 4px;
    background: #765AF8;
    pointer-events: none;
    z-index: -1;
}

/* 语言切换按钮样式 */
.language-switcher {
    position: absolute;
    right: 10vw;
    display: flex;
    align-items: center;
}

.language-dropdown {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
    user-select: none;
    text-decoration: none;
    pointer-events: auto;
}

/* 英文版字体样式 */
.language-btn[lang="en-US"] {
    font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: bold;
}

/* 中文版字体样式 */
.language-btn[lang="zh-CN"] {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
}

.language-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-btn .dropdown-icon {
    margin-left: 4px;
    width: 12px;
    height: 12px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* 语言下拉菜单 */
.language-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 120px;
    display: none;
    z-index: 1000;
    border-radius: 4px;
}

.language-dropdown:hover .language-dropdown-menu {
    display: block;
}

.language-dropdown-menu li {
    padding: 0;
}

.language-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s;
}

/* 英文版字体样式 */
.language-dropdown-menu a[lang="en-US"] {
    font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 中文版字体样式 */
.language-dropdown-menu a[lang="zh-CN"] {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
}

.language-dropdown-menu a:hover,
.language-dropdown-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Header 响应式设计 */
@media (max-width: 1280px) {
    .custom-header {
        height: 100px;
    }

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

    .nav-list {
        gap: 42px;
    }

    .nav-link,
    .dropdown-title {
        font-weight: 400;
        font-size: 12px;
        color: #FFFFFF;
        line-height: 17px;
        text-align: center;
        font-style: normal;
    }

    /* 英文版字体样式 */
    .nav-link[lang="en-US"],
    .dropdown-title[lang="en-US"] {
        font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    /* 中文版字体样式 */
    .nav-link[lang="zh-CN"],
    .dropdown-title[lang="zh-CN"] {
        font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .indicator {
        width: 26px;
        height: 2.5px;
        bottom: -5px;
    }

    .language-btn {
        font-weight: 400;
        font-size: 12px;
        color: #FFFFFF;
        line-height: 17px;
        text-align: center;
        font-style: normal;
    }

    /* 英文版字体样式 */
    .language-btn[lang="en-US"] {
        font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    /* 中文版字体样式 */
    .language-btn[lang="zh-CN"] {
        font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
    }
}

@media (max-width: 1000px) {
    .logo {
        left: 5vw;
    }

    .language-switcher {
        right: 3vw;
    }

}

/* 850px以下保持850px时的Header样式 */
@media (max-width: 850px) {
    .custom-header {
        width: 850px; /* 固定宽度，不再使用100vw */
        height: 100px;
    }

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

    .nav-list {
        gap: 42px;
    }

    .nav-link,
    .dropdown-title {
        font-weight: 400;
        font-size: 12px;
        color: #FFFFFF;
        line-height: 17px;
        text-align: center;
        font-style: normal;
    }

    /* 英文版字体样式 */
    .nav-link[lang="en-US"],
    .dropdown-title[lang="en-US"] {
        font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    /* 中文版字体样式 */
    .nav-link[lang="zh-CN"],
    .dropdown-title[lang="zh-CN"] {
        font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .indicator {
        width: 26px;
        height: 2.5px;
        bottom: -5px;
    }

    .language-btn {
        font-weight: 400;
        font-size: 12px;
        color: #FFFFFF;
        line-height: 17px;
        text-align: center;
        font-style: normal;
    }

    /* 英文版字体样式 */
    .language-btn[lang="en-US"] {
        font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    /* 中文版字体样式 */
    .language-btn[lang="zh-CN"] {
        font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .logo {
        left: 43px; /* 850px时的5vw固定值 */
    }

    .language-switcher {
        right: 26px; /* 850px时的3vw固定值 */
    }
}

/* ============================================
   Footer 样式
   ============================================ */
.footer-container {
    background: linear-gradient(180deg, #000000 0%, #060e15 100%);
    border-radius: 20px;
    color: #fff;
    padding: 50px 50px 60px 50px;
    font-size: 16px;
    margin: 60px;
    height: 334px;
    line-height: 22px;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid !important;
    width: 100%;
    grid-template-columns: 6fr 3fr 3fr 2fr !important;
    border-bottom: 1px solid #979797;
    height: 225px;
}

.footer-logo-section {
    display: flex;
    align-items: flex-start;
}

.footer-logo-section .logo {
    width: 132px;
    height: 50px;
    position: static;
}

.footer-section1 {
    color: #fff;
    min-width: 330px;
}

.footer-section2 {
    color: #fff;
    min-width: 320px;
}

.footer-title {
    font-size: 24px;
    line-height: 33px;
    margin-bottom: 21px;
    font-weight: bold;
}

/* 英文版字体样式 */
.footer-title[lang="en-US"] {
    font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
    margin-bottom: 20px;
}

/* 中文版字体样式 */
.footer-title[lang="zh-CN"] {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-section1 .footer-title[lang="en-US"] {
  margin-bottom: 26px;
}
.footer-section2 .footer-title[lang="en-US"] {
  margin-bottom: 20px;
}

.footer-first-line {
    margin-bottom: 27px;
}

.footer-first-line[lang="en-US"] {
    margin-bottom: 25px;
}

.footer-last-line {
    margin-top: 27px;
}

.footer-columns1 {
    display: flex !important;
    gap: 98px;
    flex-direction: row;
}

.footer-columns2 {
    display: flex !important;
    gap: 47px;
    flex-direction: row;
}

.footer-col {
    display: flex !important;
    flex-direction: column;
    gap: 27px;
}

.footer-section2 .footer-col[lang="en-US"] {
    gap: 0;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

/* 英文版字体样式 */
.footer-link[lang="en-US"] {
    font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 中文版字体样式 */
.footer-link[lang="zh-CN"] {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-link:hover {
    color: #fff;
}

.footer-address {
    color: #fff;
    font-size: 14px;
    font-family: PingFangSC, PingFang SC, sans-serif;
}

/* 英文版字体样式 */
.footer-address[lang="en-US"] {
    color: #999999;
    font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-text {
    color: #fff;
}

/* 英文版字体样式 */
.footer-text[lang="en-US"] {
    font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 中文版字体样式 */
.footer-text[lang="zh-CN"] {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-email {
    color: #fff;
    white-space: nowrap;
    font-size: 14px;
    font-family: PingFangSC, PingFang SC, sans-serif;
}

/* 英文版字体样式 */
.footer-email[lang="en-US"] {
    color: #999999;
    font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
    margin-top: 20px;
}

.footer-qr {
    text-align: center;
    position: relative;
}

.icon-qr-groups {
    display: flex !important;
    justify-content: center;
    gap: 24px;
    flex-direction: row;
}

.icon-qr-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
}

.icon-button img {
    width: 32px;
    height: 32px;
}

.qr-image-popup {
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 132px;
    border: none;
    z-index: 10;
}

.footer-bottom {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    padding-top: 28px;
    flex-direction: row;
}

/* 英文版字体样式 */
.footer-bottom[lang="en-US"],
.footer-bottom[lang="en-US"] span {
    font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 中文版字体样式 */
.footer-bottom[lang="zh-CN"],
.footer-bottom[lang="zh-CN"] span {
    font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-bottom-left span {
    margin-right: 20px;
}

/* Footer 响应式设计 */
@media (max-width: 1280px) {
    .footer-container {
        height: 267px;
    }
    .footer-content {
        height: 150px;
    }
    .footer-logo-section .logo {
        height: 40px;
        width: auto;
    }

    .footer-title {
        font-weight: 600;
        font-size: 16px;
        color: #FFFFFF;
        line-height: 22px;
        text-align: left;
        font-style: normal;
        margin-bottom: 12px;
    }

    /* 英文版字体样式 */
    .footer-title[lang="en-US"] {
        font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    /* 中文版字体样式 */
    .footer-title[lang="zh-CN"] {
        font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .footer-section1 .footer-title[lang="en-US"] {
    margin-bottom: 21px;
    }
    .footer-section2 .footer-title[lang="en-US"] {
    margin-bottom: 8px;
    }

    .footer-address {
        font-size: 12px;
    }

    /* 英文版字体样式 */
    .footer-address[lang="en-US"] {
        color: #999999;
        font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .footer-link,
    .footer-text,
    .footer-email {
        font-weight: 400;
        font-size: 12px;
        color: #FFFFFF;
        line-height: 17px;
        text-align: left;
        font-style: normal;
    }

    /* 英文版字体样式 */
    .footer-link[lang="en-US"],
    .footer-text[lang="en-US"],
    .footer-email[lang="en-US"] {
        font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .footer-email[lang="en-US"] {
        color: #999999;
        margin-top: 6px;
    }

    /* 中文版字体样式 */
    .footer-link[lang="zh-CN"],
    .footer-text[lang="zh-CN"],
    .footer-email[lang="zh-CN"] {
        font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .footer-section1 {
        min-width: 190px;
    }

    .footer-section2 {
        min-width: 280px;
    }

    .footer-content {
        grid-template-columns: 4fr 2fr 2fr 1.5fr;
    }

    .footer-first-line {
        margin-bottom: 14px;
    }
    .footer-first-line[lang="en-US"] {
        margin-bottom: 12px;
        max-width: 250px;
    }

    .footer-last-line {
        margin-top: 14px;
    }

    .footer-columns1 {
        gap: 39px;
    }

    .footer-columns2 {
        gap: 22px;
    }

    .footer-col {
        gap: 16px;
    }

    .footer-section2 .footer-col[lang="en-US"] {
        gap: 0;
    }

    .footer-bottom {
        font-weight: 500;
        font-size: 10px;
        color: #FFFFFF;
        line-height: 14px;
        text-align: left;
        font-style: normal;
    }

    /* 英文版字体样式 */
    .footer-bottom[lang="en-US"],
    .footer-bottom[lang="en-US"] span {
        font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    /* 中文版字体样式 */
    .footer-bottom[lang="zh-CN"],
    .footer-bottom[lang="zh-CN"] span {
        font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .icon-qr-groups {
        gap: 16px;
    }

    .icon-button img {
        width: 26px;
        height: 26px;
    }

    .qr-image-popup {
        position: absolute;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: auto;
        border: none;
        z-index: 10;
    }

    .footer-bottom-left span {
        margin-right: 34px;
    }
}

/* 850px以下保持850px时的Footer样式 */
@media (max-width: 850px) {
    .footer-container {
        height: 267px;
    }
    .footer-content {
        height: 150px;
    }
    .footer-logo-section .logo {
        height: 40px;
        width: auto;
    }

    .footer-title {
        font-weight: 600;
        font-size: 16px;
        color: #FFFFFF;
        line-height: 22px;
        text-align: left;
        font-style: normal;
        margin-bottom: 12px;
    }

    /* 英文版字体样式 */
    .footer-title[lang="en-US"] {
        font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    /* 中文版字体样式 */
    .footer-title[lang="zh-CN"] {
        font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .footer-section1 .footer-title[lang="en-US"] {
    margin-bottom: 21px;
    }
    .footer-section2 .footer-title[lang="en-US"] {
    margin-bottom: 8px;
    }

    .footer-address {
        font-size: 12px;
    }

    /* 英文版字体样式 */
    .footer-address[lang="en-US"] {
        color: #999999;
        font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .footer-link,
    .footer-text,
    .footer-email {
        font-weight: 400;
        font-size: 12px;
        color: #FFFFFF;
        line-height: 17px;
        text-align: left;
        font-style: normal;
    }

    /* 英文版字体样式 */
    .footer-link[lang="en-US"],
    .footer-text[lang="en-US"],
    .footer-email[lang="en-US"] {
        font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .footer-email[lang="en-US"] {
        color: #999999;
        margin-top: 6px;
    }

    /* 中文版字体样式 */
    .footer-link[lang="zh-CN"],
    .footer-text[lang="zh-CN"],
    .footer-email[lang="zh-CN"] {
        font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .footer-section1 {
        min-width: 190px;
    }

    .footer-section2 {
        min-width: 280px;
    }

    .footer-content {
        grid-template-columns: 4fr 2fr 2fr 1.5fr;
    }

    .footer-first-line {
        margin-bottom: 14px;
    }
    .footer-first-line[lang="en-US"] {
        margin-bottom: 12px;
        max-width: 250px;
    }

    .footer-last-line {
        margin-top: 14px;
    }

    .footer-columns1 {
        gap: 39px;
    }

    .footer-columns2 {
        gap: 22px;
    }

    .footer-col {
        gap: 16px;
    }

    .footer-section2 .footer-col[lang="en-US"] {
        gap: 0;
    }

    .footer-bottom {
        font-weight: 500;
        font-size: 10px;
        color: #FFFFFF;
        line-height: 14px;
        text-align: left;
        font-style: normal;
    }

    /* 英文版字体样式 */
    .footer-bottom[lang="en-US"],
    .footer-bottom[lang="en-US"] span {
        font-family: DINAlternate, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    /* 中文版字体样式 */
    .footer-bottom[lang="zh-CN"],
    .footer-bottom[lang="zh-CN"] span {
        font-family: PingFangSC, PingFang SC, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .icon-qr-groups {
        gap: 16px;
    }

    .icon-button img {
        width: 26px;
        height: 26px;
    }

    .qr-image-popup {
        position: absolute;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: auto;
        border: none;
        z-index: 10;
    }

    .footer-bottom-left span {
        margin-right: 34px;
    }
}

/* 分页导航样式 - 类似 ResultView.vue 的实现 */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.news-pagination .pagination-btn {
    background-color: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 300;
    text-decoration: none;
    line-height: 1;
    margin: 0;
    position: relative;
}

.news-pagination .pagination-btn.pagination-arrow {
    width: 40px;
    height: 40px;
}

.news-pagination .pagination-btn.pagination-arrow svg {
    width: 16px;
    height: 16px;
    display: block;
}

.news-pagination .pagination-btn:not(:first-child):not(:last-child) {
    width: 25px;
    height: 25px;
    font-size: 0.9em;
}

.news-pagination .pagination-btn:hover:not(.disabled) {
    background-color: #30363d;
    border-color: #8b949e;
}

.news-pagination .pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.news-pagination .pagination-btn.active {
    background-color: #765AF8;
    border-color: #765AF8;
    color: #fff;
}

.news-pagination .ellipsis {
    color: #c9d1d9;
    padding: 0 8px;
    display: flex;
    align-items: center;
    margin: 0;
}

