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

body {
    font-family: "Microsoft YaHei", "SimHei", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 顶部导航栏 */
.header {
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    min-width: 100%;
    transition: background-color 0.3s, backdrop-filter 0.3s;
    box-sizing: border-box;
}

.header.scrolled {
    background-color: rgba(45, 11, 241, 0.95);
    position: fixed;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header.scrolled .navbar {
    background-color: transparent;
}

.navbar {
    padding: 15px 0;
    background-color: transparent;
    transition: background-color 0.3s;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-search {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 5px 15px;
    transition: background-color 0.3s;
}

.search-form:focus-within {
    background-color: #fff;
    box-shadow: 0 0 0 2px #0066cc;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    padding: 5px 10px;
    font-size: 14px;
    color: #333;
    width: 200px;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    padding: 0;
    transition: color 0.3s;
}

.search-btn:hover {
    color: #0066cc;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: #fff;
    font-size: 18px;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: #0066cc;
    font-size:20px;
    font-weight:bolder;
}

.nav-menu > li.has-submenu > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
    color: #999;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(24, 74, 236, 0.25);
    backdrop-filter: blur(2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    min-width: 110px;
    padding: 10px 0;
    display: none;
    z-index: 100;
    border-radius: 4px;
}

.nav-menu > li:hover .submenu {
    display: block;
}

.submenu li {
    padding: 0;
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

.submenu li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s;
}

/* 轮播图区域 */
.banner-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    z-index: 1;
    box-sizing: border-box;
}

.banner-slider {
    width: 100%;
    min-width: 100%;
    height: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
}

.banner-content {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
    z-index: 5;
    pointer-events: none;
}

.banner-content h2 {
    font-size: clamp(20px, 2.5vw, 36px);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background-color: rgba(0,0,0,0.3);
    padding: 15px 30px;
    border-radius: 5px;
    white-space: nowrap;
}

.banner-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
}

.banner-prev,
.banner-next {
    background-color: rgba(255,255,255,0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s;
}

.banner-prev:hover,
.banner-next:hover {
    background-color: rgba(255,255,255,0.8);
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #fff;
}

/* 新闻资讯和通知公告区域 */
.news-notice-section {
    background-color: #fff;
    padding: 60px 0 30px 0;
    margin-top: 100vh;
    position: relative;
    z-index: 2;
}

.news-notice-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.news-section-inline {
    flex: 2;
    min-width: 0;
}

.notice-section-inline {
    flex: 1;
    min-width: 0;
}

/* 新闻资讯区域 */
.news-section {
    background-color: #fff;
    padding: 60px 0;
}

.news-tabs {
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.news-tab {
    cursor: pointer;
    padding: 10px 0;
    position: relative;
}

.news-tab h3 {
    font-size: 18px;
    color: #666;
    font-weight: normal;
    transition: color 0.3s;
}

.news-tab.active h3 {
    color: #0066cc;
    font-weight: bold;
    font-size: 30px;
}

.news-tab.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
}

.more-link {
    margin-left: auto;
    color: #0066cc;
    font-size: 14px;
}

.news-content {
    position: relative;
    min-height: 120px;
}

.news-panel {
    display: none;
}

.news-panel.active {
    display: block;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-list .news-item:not(.featured) {
    margin-bottom: 0;
    border-bottom: 1px solid #e0e0e0;
}

.news-list .news-item:not(.featured):last-child {
    border-bottom: none;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    transition: box-shadow 0.3s;
}

.news-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-item.featured {
    flex-direction: row;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.news-item.featured .news-image {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 5px;
}

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

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

.news-item.featured .news-info {
    flex: 1;
}

.news-item.featured h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.news-item.featured p {
    color: #666;
    line-height: 1.8;
}

.news-item:not(.featured) {
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border-left: 3px solid #0066cc;
    border-radius: 0;
}

.news-item:not(.featured) .news-date {
    color: #999;
    font-size: 14px;
    min-width: 100px;
    text-align: right;
    order: 2;
}

.news-item:not(.featured) h4 {
    font-size: 16px;
    color: #333;
    flex: 1;
    transition: color 0.3s;
    order: 1;
    margin: 0;
    padding-right: 20px;
}

.news-item:not(.featured) h4 a {
    color: inherit;
    text-decoration: none;
}

.news-item:not(.featured) h4:hover,
.news-item:not(.featured) h4 a:hover {
    color: #0066cc;
}

.news-item.featured h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.news-item.featured h4 a:hover {
    color: #0066cc;
}

.news-item.featured .news-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.news-item.featured .news-image img {
    transition: transform 0.3s;
}

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

/* 通知公告 */
.notice-section {
    background-color: #f5f5f5;
    padding: 60px 0;
}

.notice-section-inline .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
}

.notice-section-inline .section-header h2 {
    font-size: 30px;
    color: #0066cc;
    font-weight: bold;
    margin: 0;
    padding: 10px 0;
    position: relative;
}

.notice-section-inline .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
}

.notice-section-inline .notice-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

.notice-section-inline .notice-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
}

.notice-section-inline .notice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.notice-section-inline .notice-image:hover img {
    transform: scale(1.05);
}

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

.section-header h2 {
    font-size: 28px;
    color: #333;
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 15px;
    background-color: #fff;
    border-left: 3px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-date-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 60px;
    flex-shrink: 0;
}

.notice-date {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    line-height: 1.2;
    background:#0066cc;
    margin-top: 5px;
}

.notice-year {
    font-size: 14px;
    color: #0066cc;
    margin-top: 2px;
    font-weight: bold;
}

.notice-title {
    flex: 1;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s;
}

.notice-title:hover {
    color: #0066cc;
}

/* 关于我们 */
.about-section {
    background-color: #fff;
    padding: 30px 0 80px 0;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    border-radius: 5px;
}

.about-text {
    flex: 1;
}

.section-title {
    font-size: 32px;
    color: #0066cc;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #0066cc;
}

.about-text h3 {
    font-size: 24px;
    color: #0066cc;
    margin-bottom: 20px;
}

.about-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.read-more {
    display: inline-block;
    color: #0066cc;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: #0052a3;
}

/* 平台介绍 */
.platform-section {
    background-color: #f5f5f5;
    padding: 80px 0;
}

.platform-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.platform-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.platform-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.platform-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.platform-icon {
    font-size: 20px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 15px;
}

.platform-item p {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
}

/* 数据统计 */
.stats-section {
    background-color: #0066cc;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.stats-section .section-title {
    color: #fff;
    margin-bottom: 50px;
}

.stats-section .section-title::after {
    background-color: #fff;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

.learn-more-btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: #fff;
    color: #0066cc;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.learn-more-btn:hover {
    background-color: #f0f0f0;
}

/* 页脚 */
.footer {
    background-color: #2c2c2c;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    gap: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-info {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-phone {
    font-size: 20px;
    color: #0066cc;
}

.footer-links {
    flex: 2;
    min-width: 300px;
}

.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
}

.footer-links .link-list + .link-list {
    margin-top: 10px;
}

.link-list li a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s;
}

.link-list li a:hover {
    color: #0066cc;
}

/* 公众号二维码样式已移除 */

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-search {
        display: none;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        max-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transition: max-height 0.3s;
        z-index: 1000;
    }

    .nav-menu.active {
        max-height: calc(100vh - 100px);
        padding: 20px 0;
        overflow-y: auto;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
        overflow: visible;
    }
    
    .nav-menu > li.has-submenu {
        overflow: visible;
    }

    .nav-menu > li > a {
        padding: 15px 20px;
        color: #333;
        text-shadow: none;
        font-size: 16px;
    }

    .nav-menu > li > a:hover,
    .nav-menu > li > a.active {
        color: #0066cc;
        font-weight: bold;
    }

    .nav-menu > li.has-submenu > a::after {
        color: #666;
    }

    .submenu {
        position: static;
        box-shadow: none;
        background-color: #f8f8f8;
        display: none;
        padding: 0;
        overflow: visible;
        max-height: none;
    }

    .submenu li a {
        color: #666;
        padding: 12px 20px 12px 40px;
    }

    .submenu li a:hover {
        color: #0066cc;
        background-color: #f0f0f0;
    }

    .nav-menu > li:hover .submenu,
    .nav-menu > li.active .submenu {
        display: block !important;
    }
    
    /* 确保移动端激活状态的子菜单显示 */
    .nav-menu.active > li.has-submenu.active > .submenu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: 500px !important;
        overflow: visible !important;
    }
    
    /* 确保子菜单项完全可见，不被裁剪 */
    .nav-menu > li.has-submenu.active {
        overflow: visible;
        position: relative;
        z-index: 10;
    }
    
    .nav-menu > li.has-submenu.active .submenu {
        position: relative;
        z-index: 11;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

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

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

    .banner-section {
        height: 400px;
        min-height: 400px;
        width: 100%;
        min-width: 100%;
        left: 0;
        right: 0;
    }

    .banner-content h2 {
        font-size: clamp(16px, 3vw, 24px);
        padding: 10px 20px;
        white-space: nowrap;
    }

    .news-notice-section {
        margin-top: 400px;
    }
}

/* 更小屏幕下新闻与通知改为单列 */
@media (max-width: 600px) {
    .news-notice-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .news-tabs {
        flex-wrap: wrap;
    }

    .news-item.featured {
        flex-direction: column;
    }

    .news-item.featured .news-image {
        width: 100%;
    }

    .about-content {
        flex-direction: column;
    }

    .platform-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
    }
}

