* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    overflow-x: auto;
    background-color: #ffffff;
}

/* ====== 导航栏样式 ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar:hover {
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar:hover .nav-link {
    color: #000000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 80px;
}

.logo-link {
    position: absolute;
    left: 150px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
}

.logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-hover {
    display: none;
}

.navbar:hover .logo-default {
    display: none;
}

.navbar:hover .logo-hover {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin-right: 40px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar:hover .nav-link::after {
    background-color: #000000;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-item-has-children {
    position: relative;
}

.nav-item-active > .nav-link::after {
    transform: scaleX(1);
}

/* 二级菜单样式 */
.sub-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 200px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    list-style: none;
    padding: 8px;
    border-radius: 16px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.12),
        0 2px 10px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2000;
}

.sub-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255, 255, 255, 0.98);
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.05));
}

.nav-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-menu-item {
    padding: 0;
    margin: 2px 0;
}

.sub-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 20px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.sub-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.sub-menu-link::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, #6ee7b7 0%, #10b981 100%);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.sub-menu-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.sub-menu-link:hover::before {
    opacity: 1;
}

.sub-menu-link:hover::after {
    transform: translateY(-50%) scaleY(1);
}

.sub-menu-item + .sub-menu-item {
    position: relative;
}

.sub-menu-item + .sub-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.06) 20%,
        rgba(0, 0, 0, 0.06) 80%,
        transparent 100%);
}

/* ====== 页面 Banner 区域 ====== */
.news-banner {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/banner4.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.55));
}

.news-banner-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #ffffff;
}

.news-banner-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 6px;
}

.news-banner-subtitle {
    font-size: 22px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 4px;
}

/* ====== 新闻列表区域 ====== */
.news-section {
    padding: 60px 20px;
    background-color: #f8fafc;
}

.news-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 24px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #6ee7b7 100%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 50px;
}

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

.news-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    gap: 30px;
}

.news-card-external {
    display: block;
    color: inherit;
    text-decoration: none;
}

.news-card-external .news-content {
    display: block;
}

.news-card-external .news-header {
    margin-bottom: 0;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #10b981;
    font-size: 14px;
    font-weight: 600;
}

.news-card-external:hover .news-read-more span {
    transform: translate(3px, -3px);
}

.news-read-more span {
    transition: transform 0.2s ease;
}

.news-empty {
    padding: 50px 20px;
    color: #6b7280;
    text-align: center;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(16, 185, 129, 0.15);
    border-color: #6ee7b7;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #6ee7b7 100%);
    border-radius: 16px 16px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-image {
    flex-shrink: 0;
    width: 280px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

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

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

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

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

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

.news-card:hover .news-title {
    color: #10b981;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #6b7280;
}

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

.news-date::before {
    content: '📅';
    font-size: 14px;
}

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

.news-source::before {
    content: '📰';
    font-size: 14px;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
}

.news-summary {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-tag {
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 16px;
    background-color: #f3f4f6;
    color: #6b7280;
}

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

.pagination-btn {
    padding: 10px 20px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    border-color: #10b981;
    color: #10b981;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #6ee7b7 100%);
    color: #ffffff;
    border-color: #10b981;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ====== 详情页样式 ====== */
.detail-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.detail-section-inner {
    max-width: 900px;
    margin: 0 auto;
}

.detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.detail-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    color: #6b7280;
    flex-wrap: wrap;
}

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

.detail-content {
    font-size: 16px;
    line-height: 2;
    color: #374151;
}

.detail-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0fdf4;
}

.detail-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 25px 0 15px;
}

.detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.detail-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.detail-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.detail-content li::before {
    content: '•';
    position: absolute;
    left: -10px;
    color: #10b981;
    font-weight: bold;
}

.detail-content strong {
    color: #10b981;
    font-weight: 600;
}

.detail-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.detail-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%);
    margin: 40px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    font-size: 16px;
    color: #10b981;
    text-decoration: none;
    border: 1px solid #10b981;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.back-link:hover {
    background: linear-gradient(135deg, #10b981 0%, #6ee7b7 100%);
    color: #ffffff;
}

.back-link::before {
    content: '←';
}

/* ====== 页脚样式 ====== */
.site-footer {
    position: relative;
    width: 100%;
    background-color: #0f0f1a;
    color: #ffffff;
    padding: 50px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    gap: 40px;
}

.footer-left {
    flex: 1;
}

.footer-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-intro {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-details {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-item {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qrcode-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #ffffff;
    padding: 6px;
}

.qrcode-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-beian {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.beian-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.beian-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ====== 响应式设计 ====== */
@media (max-width: 768px) {
    .navbar-container {
        height: 60px;
        padding: 0 15px;
    }

    .logo {
        height: 35px;
    }

    .nav-menu {
        gap: 20px;
        margin-right: 0;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }

    .news-banner {
        height: 40vh;
    }

    .news-banner-title {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .news-banner-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .news-section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 28px;
    }

    .news-card {
        flex-direction: column;
        padding: 24px;
    }

    .news-image {
        width: 100%;
        height: 200px;
    }

    .news-title {
        font-size: 20px;
    }

    .detail-section {
        padding: 40px 15px;
    }

    .detail-title {
        font-size: 24px;
    }

    .detail-content {
        font-size: 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .news-summary {
        -webkit-line-clamp: 2;
    }

    .news-meta {
        gap: 12px;
    }
}
