/* 基础样式文件 - 包含头部、页脚、导航等通用样式 */

/* 全局重置和变量 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主题色统一管理 */
    --theme-primary: #00518E;
    --theme-primary-light: #0066B3;
    --theme-primary-dark: #003D6B;

    /* 辅助色 */
    --accent-purple: #7B61FF;
    --accent-cyan: #00C4E4;
    --accent-orange: #FF6B35;
    --accent-green: #00C9A7;

    /* 中性色 */
    --white: #FFFFFF;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --border-light: #F3F4F6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden; /* 防止横向滚动条 */
}

/* 顶部导航栏 */
.top-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 0;
    transition: all 0.3s ease;
}


.top-bar-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-gray);
}

.top-bar-left a {
    color: var(--text-gray);
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s;
}

.top-bar-left a:hover {
    color: var(--theme-primary);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 主导航栏 - "实事求是"艺术字底纹 */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}


/* 第一层："实事求是" - 最大最淡 */
.main-header::before {
    content: '实事求是';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 160px;
    font-weight: 900;
    color: rgba(0, 81, 142, 0.015);
    letter-spacing: 35px;
    pointer-events: none;
    white-space: nowrap;
    font-family: "STKaiti", "KaiTi", "SimKai", serif;
    z-index: 0;
}

/* 第二层："实事求是" - 中等大小和透明度 */
.main-header::after {
    content: '实事求是';
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    font-size: 100px;
    font-weight: 900;
    color: rgba(0, 81, 142, 0.025);
    letter-spacing: 20px;
    pointer-events: none;
    white-space: nowrap;
    font-family: "STKaiti", "KaiTi", "SimKai", serif;
    z-index: 0;
}

/* 第三层：小尺寸装饰 */
.header-watermark {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    font-size: 70px;
    font-weight: 900;
    color: rgba(0, 81, 142, 0.03);
    letter-spacing: 12px;
    pointer-events: none;
    white-space: nowrap;
    font-family: "STKaiti", "KaiTi", "SimKai", serif;
    z-index: 0;
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 16px 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    gap: 16px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--theme-primary);
    margin-bottom: 3px;
}

.logo-text p {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    min-width: 300px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 260px;
    padding: 10px 40px 10px 18px;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    font-size: 13px;
    transition: all 0.3s;
    outline: none;
    background: #FAFAFA;
}

.search-box input:focus {
    border-color: var(--theme-primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 81, 142, 0.08);
}

.search-box button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--theme-primary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.search-box button:hover {
    background: var(--theme-primary-light);
    transform: translateY(-50%) scale(1.05);
}

.lang-switch {
    padding: 8px 14px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    background: var(--white);
    cursor: pointer;
    font-size: 12px;
    color: var(--text-gray);
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.lang-switch:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

/* 移动端菜单切换按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--theme-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.mobile-menu-toggle:hover {
    background-color: rgba(0, 81, 142, 0.1);
}

/* 桌面端隐藏移动端展开按钮 */
.mobile-expand-btn {
    display: none;
}

/* 导航菜单 - 使用主题色 */
.nav-menu {
    background: var(--theme-primary);
    box-shadow: 0 2px 8px rgba(0, 81, 142, 0.15);
    transition: all 0.3s ease;
}


.nav-menu ul {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: center;
    gap: 5px;
}

/* 导航项目 */
.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 14px 22px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-item:hover .nav-link {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.nav-item:hover .nav-link::after {
    width: 40%;
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 8px 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: rgba(0, 81, 142, 0.05);
    color: var(--theme-primary);
    border-left-color: var(--theme-primary);
    padding-left: 24px;
}

/* 兼容原有样式 */
.nav-menu a:not(.dropdown-item) {
    display: block;
    padding: 14px 22px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-menu a:not(.dropdown-item)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-menu a:not(.dropdown-item):hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.nav-menu a:not(.dropdown-item):hover::after {
    width: 40%;
}


/* 面包屑导航 */
.breadcrumb-nav {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
}

.breadcrumb-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-content a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
    padding: 4px 8px;
    border-radius: 4px;
}

.breadcrumb-content a:hover {
    color: var(--theme-primary);
    background: rgba(0, 81, 142, 0.05);
}

.breadcrumb-separator {
    color: var(--text-light);
    margin: 0 4px;
}

.breadcrumb-current {
    color: var(--theme-primary);
    font-weight: 500;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #2C3E50 0%, #1a252f 100%);
    color: var(--white);
    padding: 50px 0 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 20px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.85;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-qr {
    text-align: center;
}

.qr-code {
    width: 130px;
    height: 130px;
    background: var(--white);
    border-radius: 10px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    opacity: 0.85;
    margin-top: 30px;
}

/* 页脚备案链接继承文字样式，保持原观感 */
.footer-bottom a,
.footer-bottom a:link,
.footer-bottom a:visited,
.footer-bottom a:active,
.footer-bottom a:focus {
    color: inherit;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}


/* 响应式 - 基础布局部分 */
@media (max-width: 1400px) {
    .header-content,
    .top-bar-content,
    .nav-menu ul,
    .footer-content,
    .breadcrumb-content {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* 主导航栏响应式 - 搜索框和英文按钮换行 */
@media (max-width: 1200px) {
    .header-content {
        justify-content: flex-start;
    }
    
    .logo-section {
        flex: 1;
        min-width: 0;
    }
    
    .header-actions {
        flex-basis: 100%;
        justify-content: flex-end;
        min-width: auto;
        margin-top: 8px;
    }
    
    .search-box input {
        width: 220px;
    }
}

@media (max-width: 992px) {
    .header-actions {
        justify-content: flex-end;
        gap: 15px;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .lang-switch {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .breadcrumb-content {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* 显示移动端菜单切换按钮 */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* 移动端弹窗式导航菜单 */
    .nav-menu {
        display: none;
        position: fixed;
        top: 90px;
        right: 20px;
        width: 240px;
        max-height: 70vh;
        background: var(--white);
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
        z-index: 9999;
        overflow-y: auto;
        transform: translateY(-10px) scale(0.95);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-menu.active {
        display: block;
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 8px;
        gap: 2px;
        max-width: none;
        margin: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: none;
    }
    
    .nav-link, .nav-menu a:not(.dropdown-item) {
        padding: 14px 16px;
        font-size: 15px;
        color: var(--text-dark);
        border-radius: 8px;
        display: flex;
        align-items: center;
        transition: all 0.2s ease;
        margin: 0;
    }
    
    /* 有子菜单的导航项样式 */
    .nav-item.has-dropdown .nav-link {
        padding-right: 50px;
        position: relative;
    }
    
    /* 移动端展开按钮 */
    .mobile-expand-btn {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border: none;
        background: rgba(0, 81, 142, 0.08);
        border-radius: 6px;
        color: var(--theme-primary);
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        transition: all 0.2s ease;
        z-index: 10;
    }
    
    .mobile-expand-btn:hover {
        background: rgba(0, 81, 142, 0.15);
        transform: translateY(-50%) scale(1.05);
    }
    
    .mobile-expand-btn::after {
        content: '▼';
        transition: transform 0.2s ease;
    }
    
    .nav-item.active .mobile-expand-btn::after {
        transform: rotate(180deg);
    }
    
    .nav-link:hover, .nav-menu a:not(.dropdown-item):hover {
        background: rgba(0, 81, 142, 0.08);
        color: var(--theme-primary);
    }
    
    .nav-link::after, .nav-menu a:not(.dropdown-item)::after {
        display: none;
    }
    
    /* 下拉菜单移动端样式 */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 81, 142, 0.04);
        box-shadow: none;
        border-radius: 6px;
        margin: 4px 0 0 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        padding: 0;
    }
    
    .nav-item.active .dropdown-menu {
        max-height: 300px;
        padding: 4px 0;
    }
    
    .dropdown-item {
        color: var(--text-gray);
        padding: 10px 20px;
        border-left: none;
        font-size: 14px;
        margin: 1px 0;
        border-radius: 4px;
        transition: all 0.2s ease;
    }
    
    .dropdown-item:hover {
        background: rgba(0, 81, 142, 0.1);
        color: var(--theme-primary);
        padding-left: 24px;
    }
    
    /* 移动端菜单遮罩层 */
    .nav-menu::before {
        display: none;
    }
    
    /* 移动端菜单遮罩 */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* 移动端导航菜单滚动条美化 */
    .nav-menu::-webkit-scrollbar {
        width: 4px;
    }
    
    .nav-menu::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 2px;
    }
    
    .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(0, 81, 142, 0.3);
        border-radius: 2px;
    }
    
    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 81, 142, 0.5);
    }
    
    .search-box input {
        width: 180px;
        font-size: 12px;
        padding: 8px 35px 8px 15px;
        height: 36px;
    }
    
    .search-box button {
        width: 28px;
        height: 28px;
        right: 4px;
    }
    
    .header-actions {
        justify-content: flex-end;
        gap: 10px;
        margin-top: 6px;
    }
    
    /* Logo和标题大小调整 */
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-text p {
        font-size: 10px;
    }
    
    /* 顶部栏适配 */
    .top-bar-content {
        padding: 0 20px;
        font-size: 11px;
    }
    
    .top-bar-left a {
        margin-right: 15px;
    }
    
    .header-content {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .search-box input {
        width: 140px;
        padding: 7px 32px 7px 12px;
        height: 32px;
        font-size: 11px;
    }
    
    .search-box button {
        width: 24px;
        height: 24px;
        right: 4px;
    }
    
    .lang-switch {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    .mobile-menu-toggle {
        padding: 6px;
        font-size: 20px;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .logo-text p {
        font-size: 9px;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .header-content {
        padding: 10px 15px;
    }
    
    .header-actions {
        margin-top: 4px;
        gap: 8px;
    }
    
    .top-bar-content {
        padding: 0 15px;
    }
    
    .breadcrumb-content {
        padding: 0 15px;
    }
}
