* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: #0a0a0a;
    color: #fff;
    scroll-behavior: smooth;
}

/* ========== 导航栏 ========== */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2.5rem;
}

.nav-item {
    position: relative;
    padding: 0.5rem 0;
}

.nav-item a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width 0.3s ease;
}

.nav-item a:hover::after {
    width: 100%;
}

.nav-item.active a {
    color: #ff6b6b;
    font-weight: 600;
}

/* ========== 页面主体 ========== */
.page-wrapper {
    animation: pageEnter 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    margin-top: 76px;
    position: relative;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 轮播图 ========== */
.carousel-container {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 auto;
    max-width: 1600px;
    z-index: 1 !important;
}

.carousel-slide {
    display: flex;
    width: 100%;
    height: 100%;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.8);
}

.carousel-image.active {
    opacity: 1;
}

/* ========== 欢迎文字 ========== */
.content {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-text {
    text-align: center;
    position: relative;
    z-index: 10;
    perspective: 1000px;
}

.gradient-text {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53, #ffd966);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-shadow: 0 0 15px rgba(255,107,107,0.3);
    animation: 
        gradientFlow 5s ease infinite,
        textFloat 6s ease-in-out infinite;
    display: inline-block;
}

@keyframes textFloat {
    0%, 100% { transform: translateY(0) rotateX(5deg); }
    50% { transform: translateY(-15px) rotateX(-5deg); }
}

.subtitle-wrapper {
    overflow: hidden;
    margin-top: 1.5rem;
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    transform: translateY(100%);
    opacity: 0;
    animation: slideUp 1s ease forwards 0.5s;
    position: relative;
    padding: 0 1rem;
    background: linear-gradient(90deg, #ff6b6b, #ff8e53);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========== 新闻板块 - 修改部分开始 ========== */
.news-section {
    padding: 6rem 2rem;
    position: relative;
    background: radial-gradient(ellipse at top, #1a1a1a 0%, #0a0a0a 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.news-card {
    --card-bg: rgba(30, 30, 40, 0.96);
    --accent-color: #ff6b6b;
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, 
                box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.15);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.news-date {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.news-content {
    position: relative;
}

.news-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.8rem;
}

.news-title::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.8em;
    line-height: 0;
}

/* 新增内容截断样式 */
.news-summary {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    
    /* 多行省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(1.7em * 4); /* 行高 × 显示行数 */
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--accent-color) !important;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-section {
        padding: 4rem 1.5rem;
    }
    
    .news-card {
        padding: 1.2rem;
        border-radius: 0.8rem;
    }
    
    .news-title {
        font-size: 1.2rem;
        padding-left: 1.5rem;
    }
    
    /* 移动端显示3行 */
    .news-summary {
        -webkit-line-clamp: 3;
        line-clamp: 3;
        max-height: calc(1.7em * 3);
    }
}

@media (max-width: 480px) {
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    
    .news-date {
        font-size: 0.85rem;
    }
    
    /* 小屏幕显示2行 */
    .news-summary {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        max-height: calc(1.7em * 2);
    }
}
/* ========== 新闻板块 - 修改部分结束 ========== */

/* ========== 星空背景样式 ========== */
.star-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: 
        twinkle 3s infinite,
        starMove 20s linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes starMove {
    from { transform: translateY(-100vh); }
    to { transform: translateY(100vh); }
}

/* ===== 模态框样式 ===== */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    backdrop-filter: blur(10px);
}

.news-modal.active {
    opacity: 1;
    visibility: visible;
}

.news-modal[aria-hidden="false"] {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content {
    background: rgba(30, 30, 30, 0.95);
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 107, 107, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-modal.active .modal-content {
    transform: scale(1);
}

@keyframes modalFadeIn {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(10px); }
}

/* 关闭按钮 */
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

/* 模态框内容样式 */
.modal-title {
    color: #ff6b6b;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.modal-meta {
    display: flex;
    gap: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.modal-body {
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
    white-space: pre-wrap;
    padding-right: 1rem;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.modal-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 107, 107, 0.9);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.modal-link:hover {
    transform: translateY(-2px);
}

/* ========== 居中标题特效 ========== */
.news-section {
    position: relative;
    text-align: center; /* 容器居中 */
}

/* ========== 动态标题 - 悬停变色版 ========== */
.section-title {
    --hover-red: #D44D5C;  /* 悬停主色 */
    --hover-copper: #E58969; /* 悬停辅色 */
    
    display: inline-block;
    margin: 2rem auto;
    font-family: 'Microsoft Yahei', sans-serif;
    font-weight: 600;
    font-size: 2.2rem;
    color: rgba(255,255,255,0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0 1.5rem 0.3rem;
    cursor: default;
}

/* 底部装饰线 */
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--hover-red);
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

/* 悬停状态 */
.section-title:hover {
    color: transparent;
    text-shadow: 0 0 8px rgba(212, 77, 92, 0.3);
    transform: translateY(-2px);
}

.section-title:hover::after {
    width: 80%;
}

.section-title:hover i {
    color: var(--hover-copper);
    filter: drop-shadow(0 0 6px rgba(229, 137, 105, 0.3));
    transform: rotate(-10deg);
}

/* 图标样式 */
.section-title i {
    margin-right: 12px;
    color: rgba(255,255,255,0.9);
    transition: 
        color 0.4s ease,
        filter 0.4s ease,
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 文字渐变背景（悬停时显示） */
.section-title span {
    background-image: linear-gradient(
        135deg,
        var(--hover-red),
        var(--hover-copper)
    );
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 200% auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        padding: 0 1rem 0.4rem;
    }
    
    .section-title::after {
        width: 70%;
    }
}