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

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: #3192D8;
    background-image: url('../pic/bg左.png'), url('../pic/bg右.png');
    background-position: left top 260px, right top 260px;
    background-size: 30% auto, 30% auto;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed;
    color: #333;
}

/* 英文模式统一使用 Times New Roman */
body[data-language="en"],
body[data-language="en"] button {
    font-family: "Times New Roman", Times, serif;
}

/* 左右背景装饰图片 - 备用方案 */
.bg-decor {
    display: none;
}

/* 顶部横幅 */
.top-bar {
    background: transparent;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.top-bar-main {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.header-logo {
    height: 50px;
    vertical-align: middle;
}

.logo-container {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
}

.logo-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    padding-bottom: 3px;
}

.header-title {
    font-size: 16px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    text-decoration: none;
}

.header-title:hover {
    color: white;
    opacity: 1;
}

/* 中英文切换控件 */
.language-switch {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 3px;
    border: 1px solid rgba(255,255,255,0.82);
    border-radius: 999px;
    background: rgba(24,112,180,0.2);
    box-shadow: 0 3px 12px rgba(0,49,96,0.12);
    backdrop-filter: blur(5px);
}

.language-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: rgba(255,255,255,0.96);
}

.language-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.language-option {
    min-width: 66px;
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255,255,255,0.9);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.language-option:hover:not(.active) {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.language-option.active {
    background: #fff;
    color: #1769aa;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,45,86,0.2);
}

.language-option:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.language-divider {
    width: 1px;
    height: 18px;
    margin: 0 1px;
    background: rgba(255,255,255,0.55);
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* 个人信息区域 */
.profile-section {
    display: flex;
    gap: 30px;
    padding: 25px;
    background: transparent;
    border-radius: 15px;
    box-shadow: none;
}

.profile-photo img {
    width: 180px;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
    border: 4px solid rgba(255,255,255,0.3);
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-name {
    font-size: 40px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.profile-dept {
    font-size: 22px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.profile-title {
    font-size: 20px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.profile-email {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* 内容区域容器 */
.content-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
}

/* 左侧栏 */
.sidebar {
    background: rgba(255,255,255,0.97);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: fit-content;
}

/* 侧边导航样式 */
.side-nav ul {
    list-style: none;
}

.side-nav li {
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    color: #444;
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid transparent;
}

.side-nav li:hover {
    background: linear-gradient(135deg, #3498db 0%, #2989d8 100%);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(41, 137, 216, 0.4);
}

.side-nav li.active {
    background: linear-gradient(135deg, #1e5799 0%, #2989d8 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(30, 87, 153, 0.4);
}

/* 主内容区 */
.main-content {
    background: rgba(255,255,255,0.97);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.section h2 {
    color: #1e5799;
    font-size: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #1e5799;
    margin-bottom: 20px;
}

/* 科学研究容器 */
.research-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.research-sub-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #17a2b8;
}

.research-sub-section h3 {
    font-size: 17px;
    color: #17a2b8;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.research-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.research-item {
    background: rgba(23, 162, 184, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 15px;
    color: #333;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.project-list,
.patent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-item,
.patent-item {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    padding: 10px 14px;
    background: rgba(255,255,255,0.7);
    border-radius: 0 8px 8px 0;
    border-left: 3px solid #17a2b8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.patent-item {
    border-left-color: #00897b;
}

.project-item.more-item,
.patent-item.more-item {
    display: none;
}

.project-list[datacollapsed="false"] .project-item.more-item,
.patent-list[datacollapsed="false"] .patent-item.more-item {
    display: block;
}

.show-more-btn {
    text-align: center;
    padding: 10px;
    margin-top: 12px;
    color: #17a2b8;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    background: rgba(23, 162, 184, 0.1);
    transition: background 0.3s ease;
}

.show-more-btn:hover {
    background: rgba(23, 162, 184, 0.2);
}

/* 学术兼职样式 */
.teaching-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.teaching-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #00796b;
}

.teaching-section h3 {
    font-size: 17px;
    color: #00796b;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.teaching-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.teaching-item {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    padding: 10px 14px;
    background: rgba(255,255,255,0.7);
    border-radius: 0 8px 8px 0;
    border-left: 3px solid #00796b;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 论文列表样式 */
.papers-text {
    line-height: 1.8;
    color: #444;
}

.papers-text p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.papers-text p.more-item {
    display: none;
}

.papers-text[datacollapsed="false"] p.more-item {
    display: block;
}

.papers-text strong {
    font-weight: 700;
}

.papers-text .level-tag {
    color: #dc3545;
    font-weight: 700;
}

.highlight-fund {
    color: #2989d8;
    font-weight: 700;
    background: linear-gradient(transparent 60%, rgba(41, 137, 216, 0.15) 60%);
    padding: 0 2px;
}

.papers-show-more {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.papers-show-more:hover {
    background: rgba(40, 167, 69, 0.2);
}

/* 基本信息三块布局 */
.basic-info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #1e5799;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.info-card h3 {
    font-size: 17px;
    color: #1e5799;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.info-card.personal-intro {
    background: linear-gradient(135deg, #e8f4fc 0%, #d4e8f7 100%);
    border-left-color: #2989d8;
}

.info-card.personal-intro h3 {
    color: #2989d8;
}

.intro-text {
    font-size: 15px;
    line-height: 2;
    color: #444;
    margin: 0;
}

.intro-text strong {
    color: #2989d8;
    font-weight: 700;
    background: linear-gradient(transparent 60%, rgba(41, 137, 216, 0.15) 60%);
    padding: 0 2px;
}

.info-card.work-exp {
    background: linear-gradient(135deg, #e8faf8 0%, #d4f0f7 100%);
    border-left-color: #17a2b8;
}

.info-card.work-exp h3 {
    color: #17a2b8;
}

.info-row {
    display: flex;
    padding: 9px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 15px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    width: 130px;
    color: #555;
    font-weight: 600;
    flex-shrink: 0;
}

.info-row .value {
    color: #333;
    flex: 1;
}

.intro-text {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    text-align: justify;
}

.work-exp-item {
    padding: 14px 0;
    border-bottom: 1px dashed #ccc;
}

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

.work-exp-time {
    color: #17a2b8;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
}

.work-exp-detail {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

/* 招生计划卡片样式 */
.info-card.recruit-info {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left-color: #4caf50;
}

.info-card.recruit-info h3 {
    color: #2e7d32;
}

.info-card.recruit-info .info-row .label {
    color: #2e7d32;
    font-weight: 600;
}

.info-card.recruit-info .info-row .value {
    color: #333;
}

.recruit-wish-block {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 8px;
    padding: 12px 20px;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    color: #e65100;
    margin-top: 15px;
}

/* 科研项目样式 */
.project-item, .paper-item, .award-item {
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 15px;
    border-left: 5px solid #1e5799;
    border-radius: 0 10px 10px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover, .paper-item:hover, .patent-item:hover, .teaching-item:hover, .honors-text p:hover, .recruit-section:hover, .competition-text p:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(30, 87, 153, 0.2);
}

.project-title, .paper-title {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.project-info, .paper-info {
    color: #666;
    font-size: 14px;
}

/* 教育教学样式 */
.course-item {
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 15px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.course-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.course-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    font-size: 16px;
}

.course-info {
    color: #666;
    font-size: 14px;
}

/* 荣誉称号样式 */
.honors-text {
    line-height: 1.8;
    color: #444;
}

.honors-text p {
    margin: 0 0 12px 0;
    font-size: 14px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.8);
    border-radius: 0 8px 8px 0;
    border-left: 3px solid #ffc107;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 招生计划样式 */
.recruit-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recruit-section {
    padding: 16px 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 0 8px 8px 0;
    border-left: 4px solid #4caf50;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recruit-section h3 {
    font-size: 16px;
    color: #2e7d32;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(46, 125, 50, 0.3);
}

.recruit-section p {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

.recruit-wish {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left-color: #ff9800;
    text-align: center;
}

.recruit-wish p {
    font-size: 15px;
    font-weight: bold;
    color: #e65100;
}

/* 指导竞赛样式 */
.competition-text {
    line-height: 1.8;
    color: #444;
}

.competition-text p {
    margin: 0 0 12px 0;
    font-size: 14px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.8);
    border-radius: 0 8px 8px 0;
    border-left: 3px solid #007bff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 学生风采样式 */
.students-intro {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    border-radius: 10px;
    border-left: 4px solid #fbc02d;
}

.students-intro p {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin: 0;
    text-align: center;
}

.students-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    align-items: stretch;
}

.students-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.students-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    cursor: pointer;
}

/* 图片放大弹窗样式 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1e5799 0%, #2989d8 100%);
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
}

/* ============================================
   响应式设计 - 手机端适配
   ============================================ */

/* 小屏幕平板 (≤900px) */
@media (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    .student-card {
        grid-template-columns: repeat(2, 1fr);
    }
    .sidebar {
        display: none !important;
        visibility: hidden;
    }
}

/* 平板 (≤768px) */
@media (max-width: 768px) {
    .top-bar {
        flex-wrap: wrap;
        gap: 8px 12px;
    }
    .top-bar-main {
        flex: 1 1 100%;
        flex-wrap: wrap;
        gap: 10px 14px;
    }
    .language-switch {
        min-height: 38px;
    }
    .language-icon,
    .language-option {
        height: 30px;
    }
    .language-option {
        min-width: 60px;
        padding: 0 11px;
        font-size: 13px;
    }
    .header-title {
        margin-left: auto;
    }
    .container {
        padding: 0 12px;
    }
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
    }
    .profile-photo img {
        width: 150px;
        height: 200px;
    }
    .profile-name {
        font-size: 32px;
    }
    .profile-dept {
        font-size: 18px;
    }
    .profile-title {
        font-size: 16px;
    }
    .profile-email {
        font-size: 14px;
    }
    .main-content {
        padding: 20px 15px;
    }
    .section h2 {
        font-size: 20px;
    }
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
    .info-row .label {
        width: 100%;
    }
    .students-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .students-gallery img {
        height: auto;
        aspect-ratio: 4 / 3;
    }
    .top-bar {
        padding: 12px 15px;
    }
    .header-logo {
        height: 40px;
    }
    .logo-subtitle {
        font-size: 10px;
    }
    .header-title {
        font-size: 14px;
    }
}

/* 手机 (≤480px) */
@media (max-width: 480px) {
    body {
        background-size: 50% auto, 50% auto;
        background-position: left top 200px, right top 200px;
    }
    .container {
        padding: 0 10px;
        margin: 10px auto;
    }
    .profile-section {
        padding: 15px 10px;
        gap: 15px;
    }
    .profile-photo img {
        width: 120px;
        height: 160px;
    }
    .profile-name {
        font-size: 26px;
        margin-bottom: 10px;
    }
    .profile-dept {
        font-size: 15px;
        margin-bottom: 8px;
    }
    .profile-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    .profile-email {
        font-size: 13px;
    }
    .content-wrapper {
        gap: 15px;
    }
    .main-content {
        padding: 15px 12px;
        border-radius: 10px;
    }
    .section h2 {
        font-size: 18px;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    .info-card {
        padding: 15px;
    }
    .info-card h3 {
        font-size: 15px;
        padding-bottom: 10px;
        margin-bottom: 12px;
    }
    .intro-text {
        font-size: 14px;
        line-height: 1.8;
    }
    .info-row {
        font-size: 13px;
        padding: 7px 0;
    }
    .research-sub-section {
        padding: 15px;
    }
    .research-sub-section h3 {
        font-size: 15px;
    }
    .research-item {
        font-size: 13px;
        padding: 6px 12px;
    }
    .project-item, .patent-item, .teaching-item {
        font-size: 13px;
        padding: 8px 10px;
    }
    .papers-text p {
        font-size: 13px;
        line-height: 1.7;
    }
    .students-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .students-gallery img {
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: 8px;
    }
    .students-intro {
        padding: 12px 15px;
    }
    .students-intro p {
        font-size: 14px;
    }
    .honors-text p, .competition-text p {
        font-size: 13px;
        padding: 10px 12px;
    }
    .footer {
        padding: 20px 15px;
        font-size: 13px;
    }
    .top-bar {
        padding: 10px 12px;
    }
    .header-logo {
        height: 35px;
    }
    .logo-subtitle {
        font-size: 9px;
    }
    .header-title {
        font-size: 12px;
    }
    .top-bar-main {
        gap: 8px 10px;
    }
    .language-switch {
        min-height: 36px;
    }
    .language-icon {
        width: 28px;
        height: 28px;
    }
    .language-icon svg {
        width: 16px;
        height: 16px;
    }
    .language-option {
        min-width: 56px;
        height: 28px;
        padding: 0 9px;
        font-size: 12px;
    }
}

/* 超小屏幕 (≤360px) */
@media (max-width: 360px) {
    .profile-name {
        font-size: 22px;
    }
    .profile-dept {
        font-size: 13px;
    }
    .profile-title {
        font-size: 12px;
    }
    .section h2 {
        font-size: 16px;
    }
    .students-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .students-gallery img {
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

/* 移动端导航 - 汉堡菜单样式 */
@media (max-width: 900px) {
    .mobile-nav {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 10px 15px;
        background: rgba(255,255,255,0.98);
        border-radius: 10px;
        margin-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    .mobile-nav::-webkit-scrollbar {
        display: none;
    }
    .mobile-nav li {
        flex-shrink: 0;
        padding: 10px 16px;
        background: #f0f0f0;
        border-radius: 20px;
        font-size: 14px;
        color: #555;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }
    .mobile-nav li.active {
        background: linear-gradient(135deg, #1e5799 0%, #2989d8 100%);
        color: white;
        box-shadow: 0 2px 8px rgba(30, 87, 153, 0.4);
    }
    .mobile-nav li:hover:not(.active) {
        background: #e0e0e0;
    }
}

/* 桌面端隐藏移动端导航 */
@media (min-width: 901px) {
    .mobile-nav {
        display: none;
    }
}

.hamburger-menu,
.mobile-nav,
.mobile-nav-overlay {
    display: none;
}

@media (max-width: 900px) {
    .hamburger-menu {
        position: fixed;
        top: 50%;
        left: 12px;
        z-index: 10001;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 48px;
        height: 48px;
        padding: 9px;
        border-radius: 0 14px 14px 0;
        background: linear-gradient(135deg, #1e5799 0%, #2989d8 100%);
        box-shadow: 0 6px 20px rgba(0,0,0,0.22);
        cursor: pointer;
        transform: translateY(-50%);
        transition: left 0.3s ease, box-shadow 0.3s ease;
    }

    .hamburger-menu::after {
        content: "导航";
        position: absolute;
        left: 50px;
        top: 50%;
        transform: translateY(-50%);
        padding: 5px 8px;
        border-radius: 999px;
        background: rgba(255,255,255,0.96);
        color: #1e5799;
        font-size: 12px;
        white-space: nowrap;
        box-shadow: 0 3px 12px rgba(0,0,0,0.14);
    }

    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        border-radius: 3px;
        background: #fff;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .hamburger-menu.active {
        left: min(244px, calc(82vw - 36px));
    }

    .hamburger-menu.active::after {
        content: "";
        display: none;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10000;
        display: block;
        width: 280px;
        max-width: 82vw;
        height: 100vh;
        margin: 0;
        padding: 82px 18px 24px;
        border-radius: 0 18px 18px 0;
        background: rgba(255,255,255,0.98);
        box-shadow: 10px 0 28px rgba(0,0,0,0.22);
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 0.3s ease;
    }

    .mobile-nav.active {
        transform: translateX(0);
    }

    .mobile-nav ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        list-style: none;
    }

    .mobile-nav li {
        width: 100%;
        padding: 13px 16px;
        border: 1px solid rgba(30,87,153,0.12);
        border-radius: 10px;
        background: #f5f8fb;
        color: #444;
        font-size: 15px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-nav li.active {
        background: linear-gradient(135deg, #1e5799 0%, #2989d8 100%);
        color: #fff;
        box-shadow: 0 3px 10px rgba(30,87,153,0.35);
    }

    .mobile-nav li:hover:not(.active) {
        background: #e8f1fb;
        color: #1e5799;
    }

    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        z-index: 9999;
        display: block;
        background: rgba(0,0,0,0.35);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (min-width: 901px) {
    .hamburger-menu,
    .mobile-nav,
    .mobile-nav-overlay {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .container {
        z-index: 10;
    }

    .hamburger-menu {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        z-index: 10001;
        align-self: flex-start;
        width: 112px;
        height: 44px;
        margin: -4px 0 0;
        border-radius: 999px;
        transform: none;
        transition: box-shadow 0.3s ease, transform 0.3s ease;
    }

    .hamburger-menu::after {
        top: 50%;
        left: 52px;
        background: transparent;
        color: #fff;
        box-shadow: none;
    }

    .hamburger-menu span {
        width: 28px;
    }

    .hamburger-menu.active {
        left: auto;
        transform: none;
    }

    .hamburger-menu.active {
        opacity: 0;
        pointer-events: none;
    }

    .mobile-nav {
        z-index: 10003;
        padding: 34px 18px 24px;
    }

    .mobile-nav-overlay {
        z-index: 10002;
    }
}

@media (max-width: 900px) {
    .hamburger-menu {
        position: relative;
        align-self: stretch;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        max-width: none;
        height: 48px;
        margin: 0;
        padding: 0 18px;
        border: 1px solid rgba(255,255,255,0.75);
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(231,244,255,0.98) 100%);
        box-shadow: 0 8px 22px rgba(0,53,104,0.16);
        color: #1e5799;
        cursor: pointer;
        overflow: hidden;
    }

    .hamburger-menu::after {
        content: "";
        position: static;
        display: none;
    }

    .hamburger-menu .hamburger-lines {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        transform: none;
        opacity: 1;
    }

    .hamburger-menu .hamburger-lines span {
        display: block;
        width: 24px;
        height: 3px;
        border-radius: 999px;
        background: #1e5799;
        transition: none;
        transform: none;
        opacity: 1;
    }

    .hamburger-label {
        display: block;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0.02em;
        line-height: 1;
        transform: none;
        opacity: 1;
    }

    .hamburger-menu::before {
        content: "点击展开侧边栏目";
        margin-left: auto;
        font-size: 12px;
        color: rgba(30,87,153,0.66);
        white-space: nowrap;
    }

    .hamburger-menu.active .hamburger-lines span:nth-child(1),
    .hamburger-menu.active .hamburger-lines span:nth-child(2),
    .hamburger-menu.active .hamburger-lines span:nth-child(3) {
        transform: none;
        opacity: 1;
    }

    .hamburger-menu.active .hamburger-lines,
    .hamburger-menu.active .hamburger-label {
        transform: none;
        opacity: 1;
    }

    .hamburger-menu.active {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 420px) {
    .hamburger-menu::before {
        display: none;
    }
}

@media (max-width: 900px) {
    .hamburger-menu {
        position: fixed;
        top: 42%;
        left: 0;
        z-index: 10001;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 58px;
        min-width: 58px;
        height: 82px;
        min-height: 82px;
        margin: 0;
        padding: 10px 8px;
        border: 1px solid rgba(255,255,255,0.72);
        border-left: 0;
        border-radius: 0 16px 16px 0;
        background: linear-gradient(160deg, rgba(255,255,255,0.98) 0%, rgba(225,242,255,0.98) 100%);
        box-shadow: 6px 8px 24px rgba(0,43,86,0.22);
        color: #1e5799;
        cursor: pointer;
        transform: translateX(-5px);
        transition: transform 0.24s ease, box-shadow 0.24s ease, opacity 0.2s ease;
    }

    .hamburger-menu:hover,
    .hamburger-menu:focus-visible {
        transform: translateX(0);
        box-shadow: 8px 10px 28px rgba(0,43,86,0.28);
    }

    .hamburger-menu::before,
    .hamburger-menu::after {
        content: "";
        display: none;
    }

    .hamburger-menu .hamburger-lines {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 28px;
        height: 22px;
        flex: 0 0 auto;
        transform: none;
        opacity: 1;
    }

    .hamburger-menu .hamburger-lines span {
        display: block;
        width: 26px;
        height: 3px;
        border-radius: 999px;
        background: #1e5799;
        transition: none;
        transform: none;
        opacity: 1;
    }

    .hamburger-label {
        display: block;
        writing-mode: horizontal-tb;
        direction: ltr;
        unicode-bidi: normal;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0;
        line-height: 1.2;
        white-space: nowrap;
        max-width: 100%;
        transform: none;
        opacity: 1;
    }

    .hamburger-menu.active,
    .hamburger-menu.active:hover,
    .hamburger-menu.active:focus-visible {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-100%);
    }

    .hamburger-menu.active .hamburger-lines,
    .hamburger-menu.active .hamburger-lines span,
    .hamburger-menu.active .hamburger-label {
        transform: none;
        opacity: 1;
    }
}
