/* 保持你原有的视觉与响应式规则（仅样式，不含任何固定数据） */
:root {
    --primary: #ffffff;
    --secondary: #f8f9fa;
    --accent: #006d77;
    --accent-dark: #004d55;
    --accent-light: #008891;
    --text: #333333;
    --text-secondary: #666666;
    --border: #e0e0e0;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif
}

body {
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden
}

/* 顶部导航栏 */
header {
    background: var(--primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border)
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo {
    display: flex;
    align-items: center;
    color: var(--accent);
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease
}

.logo:hover {
    transform: scale(1.05)
}

.logo i {
    margin-right: 10px;
    font-size: 32px
}

/* 搜索框 */
.search-container {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    max-width: 600px;
    margin: 0 30px
}

.search-box {
    display: flex;
    width: 100%;
    position: relative
}

.search-input {
    flex-grow: 1;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--border);
    border-radius: 30px;
    background: var(--primary);
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: all .4s ease;
    box-shadow: var(--card-shadow)
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 109, 119, .1)
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    padding: 0 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center
}

.search-btn:hover {
    background: var(--accent-dark)
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none
}

.nav-menu li {
    margin-left: 25px
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all .3s ease;
    position: relative;
    overflow: hidden
}

.nav-menu a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all .3s ease
}

.nav-menu a:hover {
    color: var(--accent)
}

.nav-menu a:hover:before {
    width: 100%
}

/* 页面标题和筛选 */
.page-header {
    padding: 40px 0 20px
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
    text-align: center
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto
}

/* 资讯分类 */
.news-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap
}

.news-tab {
    padding: 12px 25px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .3s ease;
    position: relative
}

.news-tab.active {
    color: var(--accent);
    font-weight: 600
}

.news-tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent)
}

.news-tab:hover:not(.active) {
    color: var(--accent)
}

/* 热门标签 */
.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center
}

.tag {
    padding: 8px 16px;
    background: var(--secondary);
    color: var(--text);
    border-radius: 20px;
    font-size: .9rem;
    cursor: pointer;
    transition: all .3s ease;
    border: 1px solid var(--border)
}

.tag:hover {
    background: var(--accent);
    color: #fff
}

/* 资讯内容布局 */
.news-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px
}

/* 主内容区 */
.news-main {
    display: flex;
    flex-direction: column;
    gap: 30px
}

/* 头条新闻 */
.headline-news {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px
}

.headline-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: all .3s ease
}

.headline-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow)
}

.headline-image {
    width: 100%;
    height: 200px;
    overflow: hidden
}

.headline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease
}

.headline-item:hover .headline-image img {
    transform: scale(1.05)
}

.headline-content {
    padding: 20px
}

.headline-category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    font-size: .8rem;
    margin-bottom: 10px
}

.headline-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4
}

.headline-excerpt {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6
}

.headline-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: .9rem
}

/* 普通新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--primary);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: all .3s ease
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow)
}

.news-image {
    flex: 0 0 200px;
    border-radius: 8px;
    overflow: hidden
}

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

.news-item:hover .news-image img {
    transform: scale(1.05)
}

.news-content {
    flex: 1
}

.news-category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    font-size: .8rem;
    margin-bottom: 10px
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4
}

.news-excerpt {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: .9rem
}

/* 侧边栏 */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px
}

.sidebar-section {
    background: var(--primary);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border)
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--accent)
}

/* 热门资讯 */
.hot-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px
}

.hot-news-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border)
}

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

.hot-news-rank {
    flex: 0 0 25px;
    height: 25px;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .9rem
}

.hot-news-content {
    flex: 1
}

.hot-news-title {
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px
}

.hot-news-meta {
    color: var(--text-secondary);
    font-size: .8rem
}

/* 即将上映 */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 15px
}

.upcoming-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border)
}

.upcoming-item:last-child {
    border-bottom: none;
    padding-bottom: 0
}

.upcoming-poster {
    flex: 0 0 60px;
    border-radius: 6px;
    overflow: hidden
}

.upcoming-poster img {
    width: 100%;
    height: auto;
    display: block
}

.upcoming-content {
    flex: 1
}

.upcoming-title {
    font-size: .95rem;
    font-weight: 500;
    margin-bottom: 5px
}

.upcoming-date {
    color: var(--accent);
    font-size: .8rem;
    font-weight: 500
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    gap: 10px
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all .3s ease;
    font-weight: 500
}

.page-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent)
}

.page-btn:hover:not(.active) {
    background: var(--secondary)
}

/* 页脚 */
footer {
    background: var(--secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border)
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent)
}

.footer-links {
    list-style: none
}

.footer-links li {
    margin-bottom: 12px
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all .3s ease;
    display: flex;
    align-items: center
}

.footer-links a i {
    margin-right: 8px;
    font-size: .8rem;
    color: var(--accent)
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px)
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 109, 119, .1);
    color: var(--accent);
    transition: all .3s ease
}

.social-links a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-5px)
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: .9rem;
    padding-top: 30px;
    border-top: 1px solid var(--border)
}

/* 响应式 */
@media (max-width:992px) {
    .nav-menu li {
        margin-left: 15px
    }

    .search-container {
        margin: 0 20px
    }

    .news-container {
        grid-template-columns: 1fr
    }

    .headline-news {
        grid-template-columns: 1fr
    }
}

@media (max-width:768px) {
    .nav-container {
        flex-wrap: wrap
    }

    .logo {
        margin-bottom: 10px
    }

    .search-container {
        order: 3;
        width: 100%;
        margin: 15px 0 0
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        margin-top: 15px
    }

    .page-title {
        font-size: 2rem
    }

    .news-tabs {
        flex-wrap: wrap
    }

    .news-tab {
        padding: 10px 15px
    }

    .news-item {
        flex-direction: column
    }

    .news-image {
        flex: 0 0 auto;
        width: 100%
    }

    .news-image img {
        height: 200px
    }
}

@media (max-width:576px) {
    .page-title {
        font-size: 1.8rem
    }

    .headline-title {
        font-size: 1.1rem
    }

    .news-title {
        font-size: 1.1rem
    }
}

/* 动画与滚动条 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.fade-in {
    animation: fadeInUp .6s ease forwards
}

.delay-1 {
    animation-delay: .1s
}

.delay-2 {
    animation-delay: .2s
}

.delay-3 {
    animation-delay: .3s
}

.delay-4 {
    animation-delay: .4s
}

.delay-5 {
    animation-delay: .5s
}

::-webkit-scrollbar {
    width: 8px
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .05)
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark)
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
    color: var(--accent);
    /* 按需 */
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 24px;
    line-height: 1;
}