/* css/style.css */
:root {
    --primary-blue: #1a237e;
    --secondary-blue: #283593;
    --accent-gold: #D4AF37;
    --accent-red: #dc2626;
    --light-bg: #F8FAFC;
    --dark-text: #1E293B;
    --medium-text: #475569;
    --nav-bg: #1a237e;
    --header-bg: #ffffff;
    --footer-bg: #1a237e; 
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    --gradient-secondary: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    --gradient-light: linear-gradient(135deg, #F8FAFC 0%, #E4E7EB 100%);
    --card-bg: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 4px rgba(15, 62, 104, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 62, 104, 0.08);
    --shadow-lg: 0 8px 24px rgba(15, 62, 104, 0.12);
    --shadow-xl: 0 12px 36px rgba(15, 62, 104, 0.15);
}

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

body {
    font-family: 'Noto Sans SC', 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background: url('/skin/images/bj.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* 添加半透明覆盖层，提高内容可读性 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    z-index: -1;
}

/* 添加背景图案 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(26, 35, 126, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 20%);
    z-index: -1;
    pointer-events: none;
}

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

/* TOP按钮样式 */
#top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3f4dbb;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.3s ease;
}

#top-btn:hover {
    background: var(--gradient-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* 移动端顶部栏 */
.mobile-header {
    display: none;
    background: var(--header-bg);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

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

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mobile-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    border-radius: 4px;
}

.mobile-logo-text {
    color: var(--primary-blue);
}

.mobile-logo-text h1 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.mobile-logo-text span {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    border-radius: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
}

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

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

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

/* 桌面端顶部Header区域 */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-text);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 300px;
    height: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--primary-blue);
}

.site-subtitle {
    font-size: 0.8rem;
    color: var(--medium-text);
    margin-top: 0.2rem;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

/* 搜索框样式 */
.search-box {
    position: relative;
}

.search-box input {
    padding: 0.5rem 1rem 0.5rem 2.2rem;
    border: 1px solid var(--border-color);
    background: var(--light-bg);
    color: var(--dark-text);
    width: 120px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    border-radius: 4px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    width: 220px;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.search-box i {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-text);
}

/* 图标和链接样式 */
.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--medium-text);
    font-size: 0.75rem;
    transition: all 0.3s ease;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
}

.icon-link:hover {
    color: var(--primary-blue);
    background: rgba(26, 35, 126, 0.05);
}

.icon-link i {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

/* 国旗图标式语言切换器 - 与您提供的CSS保持一致 */
.language-flags {
    display: flex;
    align-items: center;
    gap: 4px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px;
    box-shadow: var(--shadow-sm);
}

/* 将.flag-btn改为<a>标签样式 */
.flag-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none; /* 添加去除下划线 */
    color: inherit; /* 继承颜色 */
}

/* 移除原有hover背景，改为超链接样式 */
.flag-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.flag-btn:hover::before {
    opacity: 0.08;
}

/* 活动状态 */
.flag-btn.active {
    background: rgba(26, 35, 126, 0.12);
    box-shadow: 0 2px 4px rgba(26, 35, 126, 0.1);
}

.flag-btn.active .lang-name {
    color: var(--primary-blue);
    font-weight: 700;
}

.flag-btn.active .flag-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.lang-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--medium-text);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.flag-btn:hover .lang-name {
    color: var(--primary-blue);
}

.flag-btn:hover .flag-icon {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 移动端样式 */
@media (max-width: 768px) {
    .language-flags {
        gap: 2px;
        padding: 1px;
    }
    
    .flag-btn {
        padding: 5px 8px;
        gap: 4px;
    }
    
    .flag-icon {
        width: 18px;
        height: 13px;
    }
    
    .lang-name {
        font-size: 0.7rem;
    }
    
    /* 移动端菜单内的语言切换器 */
    .mobile-flags {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
        justify-content: center;
    }
    
    .mobile-flags .flag-btn {
        color: white;
    }
    
    .mobile-flags .flag-btn::before {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-flags .flag-btn.active {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .mobile-flags .lang-name {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .mobile-flags .flag-btn.active .lang-name {
        color: white;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .flag-btn {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .flag-icon {
        width: 22px;
        height: 16px;
    }
    
    .lang-name {
        font-size: 0.85rem;
    }
}

/* 国旗加载失败时的后备样式 */
.flag-icon:before {
    content: '🏳️';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
}

.flag-icon[src*="404"]:before,
.flag-icon[src=""]:before {
    opacity: 1;
}

/* 语言切换动画 */
@keyframes flagSwitch {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.flag-btn.active .flag-icon {
    animation: flagSwitch 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 悬停效果增强 */
.flag-btn {
    position: relative;
}

.flag-btn:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.flag-btn:hover:after {
    width: 70%;
}

.flag-btn.active:after {
    width: 80%;
    background: var(--accent-gold);
}


/* 主导航栏样式 */
.main-nav {
    background: rgba(26, 35, 126, 0.95);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.main-nav .container {
    position: relative;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

.main-nav li {
    list-style: none;
    margin: 0;
    position: relative;
}

.main-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    font-size: 0.95rem;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 70%;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.main-nav a.active {
    background: rgba(255, 255, 255, 0.1);
}

/* 修复二级菜单显示问题 */
.nav-item {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.nav-item:hover .submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.submenu a {
    color: var(--dark-text);
    padding: 0.7rem 1.2rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.submenu a:hover {
    background: rgba(26, 35, 126, 0.05);
    color: var(--primary-blue);
}

.submenu a::after {
    display: none;
}

/* 移动端侧边菜单 */
.mobile-side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 300px;
    height: 100vh;
    background: var(--nav-bg);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-side-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--header-bg);
}

.mobile-menu-title {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 600;
}

.mobile-close-btn {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 1.3rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    border-radius: 4px;
}

.mobile-close-btn:hover {
    background: rgba(26, 35, 126, 0.1);
}

.mobile-menu-content {
    padding: 0.8rem 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.2rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    font-size: 0.95rem;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.mobile-nav-link.active i {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.4rem 0;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu a {
    display: block;
    padding: 0.7rem 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 400;
    transition: background 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.mobile-submenu a:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--accent-gold);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 主要内容样式 */
.main-content {
    padding: 2rem 0;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.6rem;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-secondary);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    border-radius: 4px;
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card {
    background: var(--card-bg);
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    backdrop-filter: blur(5px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

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

/* 页脚样式 */
footer {
    background: rgba(26, 35, 126, 0.95);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    backdrop-filter: blur(10px);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    display: block;
    color: #CBD5E1;
    margin-bottom: 0.6rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(3px);
}

    .footer-links-container div {
        width: 50%;
        float: left;
    }
    .footer-links-container{   grid-column: span 2 / span 2; }

/* 社交媒体图标样式 */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-icon i {
    font-size: 1.1rem;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.8s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    /* 移动端布局 */
    .mobile-header {
        display: block;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .site-header {
        display: none;
    }
    
    .main-nav {
        display: none;
    }
    
    .search-box input {
        width: 140px;
    }
    
    .search-box input:focus {
        width: 160px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .card {
        padding: 1.2rem !important;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
    
    /* TOP按钮在移动端调整 */
    #top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
        .footer-links-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }
    
    
    
}

/* 桌面端样式 */
@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
    
    .site-header {
        display: block;
    }
    
    .main-nav {
        display: block;
    }
}
/* css/about.css */
/* 关于特区页面特定样式 */
    .page-nav {
            background: white;
            box-shadow: var(--shadow-md);
            margin: 2rem auto 2rem auto;
            border-radius: 8px;
            padding: 0;
            max-width: 1200px;
            position: static;
            z-index: 1;
        }
        
        .page-nav ul {
            display: flex;
            list-style: none;
            overflow-x: auto;
            white-space: nowrap;
            padding: 0;
            border-radius: 8px;
        }
        
        .page-nav li {
            flex: 1;
            text-align: center;
            border-right: 1px solid var(--border-color);
        }
        
        .page-nav li:last-child {
            border-right: none;
        }
        
        .page-nav a {
            display: block;
            padding: 1.2rem 1.5rem;
            color: var(--medium-text);
            font-weight: 500;
            text-decoration: none;
            position: relative;
            transition: all 0.3s ease;
            font-size: 1rem;
        }
        
        .page-nav a:hover {
            color: var(--primary-blue);
            background: rgba(26, 35, 126, 0.03);
        }
        
        .page-nav a.active {
            color: var(--primary-blue);
            font-weight: 600;
            background: rgba(26, 35, 126, 0.05);
        }
        
        .page-nav a.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--accent-gold);
        }
     
        
/* 页面标题样式 */
.page-header {
    background: linear-gradient(135deg, #2d3a9e 0%, #3f4dbb 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 手机版二维码悬浮效果样式 - 向右显示 */
.mobile-qr-container {
    position: relative;
    cursor: pointer;
}

.mobile-qr-popup {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%) translateX(10px);
    width: 140px;
    background: white;
    box-shadow: var(--shadow-lg);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.mobile-qr-popup::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: white;
}

/* 添加阴影三角形以匹配设计 */
.mobile-qr-popup::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border: 9px solid transparent;
    border-right-color: var(--border-color);
    z-index: -1;
}

.mobile-qr-container:hover .mobile-qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(12px);
}

.qr-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.mobile-qr-container:hover .qr-image {
    transform: scale(1.02);
}

.qr-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--medium-text);
    margin-top: 8px;
    font-weight: 500;
    line-height: 1.3;
}

/* 确保有足够的悬停区域 */
.icon-link {
    position: relative;
    padding: 0.5rem 0.8rem !important;
}

/* 防止二维码被导航栏遮挡 */
.site-header {
    z-index: 1001;
}

/* 移动端隐藏二维码效果 */
@media (max-width: 768px) {
    .mobile-qr-popup {
        display: none;
    }
    
    .mobile-qr-container:hover .mobile-qr-popup {
        display: none;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .mobile-qr-popup {
        width: 80px;
        padding: 5px;
    }
    
    .qr-text {
        font-size: 0.8rem;
    }
}
/* 移动端顶部栏样式修改 */
.mobile-header {
    display: none;
    background: var(--header-bg);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

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

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

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

.mobile-logo-image img {
    height: 40px;
    width: auto;
}

/* 移动端工具容器 */
.mobile-tools-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 移动端搜索框样式 */
.mobile-search-toggle {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mobile-search-toggle:hover {
    background: rgba(26, 35, 126, 0.1);
}

/* 移动端搜索框容器 */
.mobile-search-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1002;
}

.mobile-search-container.active {
    display: block;
}

.mobile-search-wrapper {
    display: flex;
    gap: 8px;
}

.mobile-search-wrapper input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.mobile-search-wrapper button {
    padding: 8px 16px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* 移动端语言切换器样式 */
.mobile-language-toggle {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mobile-language-toggle:hover {
    background: rgba(26, 35, 126, 0.1);
}

.mobile-language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1002;
    min-width: 150px;
}

.mobile-language-dropdown.active {
    display: block;
}

.mobile-language-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--dark-text);
    transition: background 0.3s ease;
}

.mobile-language-item:hover {
    background: rgba(26, 35, 126, 0.05);
}

.mobile-language-item.active {
    background: rgba(26, 35, 126, 0.1);
    color: var(--primary-blue);
    font-weight: 600;
}

.mobile-language-flag {
    width: 20px;
    height: 15px;
    margin-right: 10px;
    border-radius: 2px;
}

/* 移动端菜单按钮位置调整 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    border-radius: 4px;
    margin-left: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .mobile-header {
        display: block;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .site-header {
        display: none;
    }
    
    .main-nav {
        display: none;
    }
    
    /* 移除移动端侧边菜单中的语言切换和搜索 */
    .mobile-side-menu .language-flags,
    .mobile-side-menu .search-box {
        display: none;
    }
}
        /* 简繁转换按钮样式 */
        .traditional-toggle {
            background: none;
            border: none;
            cursor: pointer;
            color: #666;
            font-size: 14px;
            padding: 4px 8px;
            border-radius: 4px;
            transition: all 0.3s ease;
            margin-left: 5px;
        }
        
        .traditional-toggle:hover {
            background-color: #f0f0f0;
            color: #333;
        }
        
        .traditional-toggle.active {
            background-color: #e8f0fe;
            color: #1a56db;
            font-weight: 500;
        }
        
        .language-tools {
            display: flex;
            align-items: center;
            gap: 4px;
             /* margin-left: 10px;
          border-left: 1px solid #e0e0e0;
            padding-left: 10px;*/   
     }
        
        .mobile-traditional-toggle {
            background: none;
            border: none;
            color: #666;
            font-size: 14px;
            padding: 6px 10px;
            border-radius: 4px;
            cursor: pointer;
        }
        
        .mobile-traditional-toggle.active {
            color: #1a56db;
            font-weight: 500;
        }
        
        .mobile-traditional-toggle:hover {
            background-color: #f0f0f0;
        }
        
        /* 移动端语言切换区域调整 */
        .mobile-tools-container {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .mobile-language-tools {
            display: flex;
            align-items: center;
            gap: 5px;
            border-right: 1px solid #e0e0e0;
            padding-right: 8px;
            margin-right: 8px;
        }
        
        /* 繁体字转换专用样式 */
        body.traditional-mode {
            font-family: "Microsoft JhengHei", "Noto Sans TC", "Noto Sans SC", sans-serif;
        }
        
        /* 简繁转换加载动画 */
        .language-converting {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(255, 255, 255, 0.9);
            padding: 20px 30px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            z-index: 9999;
            display: none;
        }
        
        .language-converting.show {
            display: block;
        }
        
        .converting-text {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 16px;
            color: #333;
        }
        
        .converting-spinner {
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #1a56db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }