body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #7eeaff 0%, #b2f0ff 100%);
    overflow-x: hidden; /* 添加这行防止横向滚动 */
}

.topbar {
    width: 100%;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 70px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 10;
}

 .header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0 16px 0;
}
.site-title {
        font-size: 2rem;
        font-weight: bold;
        /* 主色调为绿色，带渐变和阴影，突出游戏风格 */
        background: linear-gradient(90deg, #7eeaff 0%, #4ec6e8 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-fill-color: transparent;
        letter-spacing: 1px;
        text-shadow: 0 2px 8px rgba(126, 234, 255, 0.18);
}
.site-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.search-categories {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.search-input {
    padding: 8px 16px;
    border-radius: 18px;
    border: 1px solid #b2f0ff;
    font-size: 1rem;
    outline: none;
    width: 200px;
    transition: border 0.2s;
}

.search-input:focus {
    border: 1.5px solid #00b6ff;
}

.category-select {
    padding: 8px 12px;
    border-radius: 18px;
    border: 1px solid #b2f0ff;
    font-size: 1rem;
    outline: none;
    background: #fff;
    color: #222;
    transition: border 0.2s;
}

.category-select:focus {
    border: 1.5px solid #00b6ff;
}

.center-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 0 32px 0;
    min-height: 700px;
    background: none;
}

.game-cards-side {
    width: 120px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-width: 100px;
    position: relative;
    z-index: 2;
}

.game-cards-side .game-list {
    height: 650px; /* 与iframe高度一致 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.game-iframe-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 1100px;
    max-width: 95vw;
    min-width: 320px;
    margin: 0 24px;
}

.game-iframe-block iframe {
    width: 100%;
    height: 680px;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    background: #222;
    border: none;
    display: block;
    max-width: 100%;
    max-height: 90vh;
}

@media (max-width: 900px) {
    .game-iframe-block iframe {
        height: 54vw;
        min-height: 220px;
        border-radius: 12px;
    }
}
@media (max-width: 600px) {
    .game-iframe-block iframe {
        height: 44vw;
        min-height: 160px;
        border-radius: 8px;
    }
}


.game-icon {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 18px;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.game-icon:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.game-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.game-card-title-hover {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 1.1rem;
    padding: 8px 0;
    text-align: center;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.2s;
}
.game-card:hover .game-card-title-hover {
    display: block;
    opacity: 1;
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 15px;
    text-align: center;
    padding: 8px 0 8px 0;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.game-icon:hover .game-title {
    opacity: 1;
}

.game-description {
    max-width: 900px;
    margin: 24px auto 0 auto;
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 28px 32px;
    text-align: left;
}

.game-description h2 {
    margin-top: 0;
    color: #00b6ff;
    font-size: 1.5rem;
    font-weight: bold;
}

.game-description p,
.game-description ol,
.game-description ul,
.game-description dl {
    color: #222;
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.footer {
    width: 100%;
    background: rgba(255,255,255,0.8);
    padding: 20px 0 10px 0;
    text-align: center;
    font-size: 15px;
    color: #222;
    margin-top: 30px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    color: #00b6ff;
    text-decoration: none;
    margin: 0 16px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #0077aa;
}

.footer-copy {
    font-size: 13px;
    color: #555;
}

.category-tabs {
    display: flex;
    gap: 10px;
}

.category-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 18px;
    background: #e6f7ff;
    color: #00b6ff;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.category-btn.active,
.category-btn:hover {
    background: #00b6ff;
    color: #fff;
}

.about-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
  box-sizing: border-box;
}

.h1 {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin: 32px 0 20px 0;
    letter-spacing: 1px;
    line-height: 1.2;
    color: #00506b;
    -webkit-text-stroke: 2px #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.gameh1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 18px 0;      /* 上无间距，下方18px */
    text-align: left;        /* 左对齐 */
    letter-spacing: 1px;
    line-height: 1.2;
    color: #fff;
    text-shadow:
        0 2px 8px rgba(0,64,128,0.25),
        0 0 2px #007fa3,
        0 1px 0 #fff;
    -webkit-text-stroke: 2px #2299bb;
}

.logo-link {
    display: inline-block;
    transition: opacity 0.2s;
}
.logo-link:hover {
    opacity: 0.7;
}

.screenshot {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0;
}

.screenshot img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1.5px 6px rgba(0,0,0,0.08);
    border: 1px solid #e0f7fa;
    background: #fff;
    padding: 8px;
}

/* 搜索结果样式 */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
    animation: fadeIn 0.2s ease;
}

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

.search-results-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.search-result-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
    color: #7eeaff;
    transform: translateX(4px);
}

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

.game-name {
    font-weight: 500;
    font-size: 1rem;
}

.search-no-results {
    padding: 24px 20px;
    text-align: center;
    color: #666;
}

.search-no-results p {
    margin: 8px 0;
}

.search-suggestion {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

mark {
    background-color: #ffeb3b;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 600;
}

/* 玩家评价样式优化 */
.player-reviews {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 32px 0 24px 0;
}

.review-item {
    padding: 18px 22px;
    border-radius: 10px;
    background: #f8fafd;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,182,255,0.06);
    font-size: 1rem;
    transition: box-shadow 0.2s;
}

.review-item .review-author {
    display: block;
    margin-top: 10px;
    color: #00b6ff;
    font-weight: 600;
    font-size: 0.98em;
    letter-spacing: 0.5px;
}

.review-highlight {
    background: linear-gradient(90deg, #e0f7fa 0%, #fff 100%);
    border-left: 5px solid #00b6ff;
    box-shadow: 0 4px 16px rgba(0,182,255,0.10);
}

.review-highlight .review-quote {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.review-highlight .quote-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.review-bg {
    background: #fffbe7;
    border-left: 5px solid #ffd600;
}

.review-border {
    border: 2px dashed #00b6ff;
    background: #f8fafd;
}

.review-simple {
    background: #f3f3f3;
    border-left: 4px solid #bdbdbd;
    font-style: italic;
}

.review-simple .review-text {
    color: #666;
}

/* FAQ折叠样式 */
.faq-list {
    margin: 24px 0;
}
.faq-item {
    margin-bottom: 12px;
    border-radius: 6px;
    background: #f8fafd;
    box-shadow: 0 1px 4px rgba(0,182,255,0.06);
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.08em;
    font-weight: bold;
    padding: 14px 16px;
    cursor: pointer;
    outline: none;
    transition: background 0.2s;
}
.faq-question:hover {
    background: #e0f7fa;
}
.faq-answer {
    display: none;
    padding: 0 16px 14px 16px;
    color: #444;
    font-size: 1em;
}
.faq-item.active .faq-answer {
    display: block;
}

/* 推荐游戏卡片样式 */
.recommended-games {
    margin: 36px 0 0 0;
    padding: 24px 18px;
    background: #f8fafd;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,182,255,0.06);
}
.recommended-games h2 {
    margin-bottom: 18px;
    color: #00b6ff;
}
.recommended-games-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
}
.recommended-games .game-card {
    width: 170px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,182,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 10px 14px 10px;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}
.recommended-games .game-card:hover {
    box-shadow: 0 8px 24px rgba(0,182,255,0.18);
    transform: translateY(-4px) scale(1.04);
}
.recommended-games .game-icon {
    width: 170px;
    height: 170px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,182,255,0.10);
    background: #f3faff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.recommended-games .game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.recommended-games .game-card-title-hover {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 60px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 1.08em;
    padding: 6px 0;
    text-align: center;
    border-radius: 0 0 10px 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.recommended-games .game-card:hover .game-card-title-hover {
    opacity: 1;
}
.recommended-games .game-card-desc {
    font-size: 0.98em;
    color: #666;
    text-align: center;
    margin-top: 8px;
    min-height: 38px;
    display: none; /* 默认隐藏 */
}
.recommended-games .game-card:hover .game-card-desc {
    display: block; /* 鼠标悬停时显示 */
}

/* 移动端适配 */
@media (max-width: 900px) {
    .recommended-games-cards {
        gap: 14px;
    }
    .recommended-games .game-card {
        width: 46vw;
        min-width: 140px;
        max-width: 200px;
    }
    .game-cards-side {
        display: none !important;
    }
}
@media (max-width: 600px) {
    .recommended-games {
        padding: 12px 4px;
    }
    .recommended-games-cards {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .recommended-games .game-card {
        width: 90vw;
        min-width: 120px;
        max-width: 98vw;
    }
}

/* 移动端导航栏汉堡菜单与标题优化 */
@media (max-width: 600px) {
    .topbar {
        height: 54px;
        padding: 0 8px;
        flex-direction: row;
        justify-content: space-between;
    }
    .header {
        padding: 8px 0 8px 0;
        gap: 8px;
    }
    .site-logo {
        width: 36px;
        height: 36px;
    }
    .site-title {
        font-size: 1.15rem;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 4px rgba(126, 234, 255, 0.12);
    }
    .category-tabs {
        display: none !important; /* 隐藏原导航内容 */
    }
    .hamburger-menu {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: none;
        border: none;
        cursor: pointer;
        margin-left: 8px;
    }
}

/* 默认隐藏汉堡菜单按钮，移动端显示 */
.hamburger-menu {
    display: none;
}

/* 可选：展开菜单样式 */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0,182,255,0.12);
    padding: 18px 0;
}
.mobile-nav-drawer.active {
    display: block;
}
.mobile-nav-drawer a {
    display: block;
    padding: 14px 24px;
    color: #00b6ff;
    font-size: 1.08rem;
    text-decoration: none;
    border-bottom: 1px solid #e0f7fa;
}
.mobile-nav-drawer a:last-child {
    border-bottom: none;
}

.recommended-games-below {
    margin: 32px 0 18px 0;
    padding: 0 0 0 0;
}
.recommended-games-below h2 {
    font-size: 1.18rem;
    color: #00b6ff;
    margin-bottom: 14px;
}
.recommended-games-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-start;
}
.recommended-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    text-decoration: none;
    background: #f8fafd;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,182,255,0.08);
    padding: 10px 6px;
    transition: box-shadow 0.18s, transform 0.18s;
    color: #222;
}
.recommended-game-card img {
    width: 150px;
    height: 130px;
    border-radius: 8px;
    margin-bottom: 6px;
    object-fit: cover;
}
.recommended-game-card span {
    font-size: 0.98em;
    color: #00b6ff;
    text-align: center;
}
.recommended-game-card:hover {
    box-shadow: 0 6px 18px rgba(0,182,255,0.18);
    transform: translateY(-2px) scale(1.04);
}
@media (max-width: 600px) {
    .recommended-games-list {
        gap: 10px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
    .recommended-game-card {
        width: 90px;
        padding: 8px 2px;
    }
    .recommended-game-card img {
        width: 48px;
        height: 48px;
    }
}

/* 游戏操作栏 - 主容器 */
.iframe-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 2px solid #00b6ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    gap: 20px;
    width: 100%; /* 添加这行 */
    box-sizing: border-box; /* 添加这行 */
    border-radius: 0 0 24px 24px; /* 可选：底部圆角与iframe匹配 */
}

/* 左侧:游戏元信息区 */
.game-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.game-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 2px solid #00b6ff;
    box-shadow: 0 4px 10px rgba(0, 182, 255, 0.4);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-thumb:hover {
    transform: scale(1.05);
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.game-author {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
    line-height: 1.3;
}

/* 右侧:操作按钮组 */
.game-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 通用按钮样式 */
.action-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 182, 255, 0.3);
    border-radius: 8px;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.action-btn:hover {
    background: rgba(0, 182, 255, 0.15);
    border-color: #00b6ff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 182, 255, 0.3);
}

.action-btn .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.action-btn .label {
    font-size: 13px;
}

/* 收藏按钮激活状态 */
.action-btn.fav-btn.active {
    background: rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
    color: #fbbf24;
}

.action-btn.fav-btn.active .icon {
    fill: #fbbf24;
    animation: heartBeat 0.5s ease;
}

/* 全屏按钮激活状态 */
.action-btn.fullscreen-btn.active {
    background: rgba(0, 182, 255, 0.2);
    border-color: #00b6ff;
    color: #00b6ff;
}

/* 分享按钮组 */
.share-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.share-label {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.share-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-icon:nth-child(2):hover { /* Twitter */
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: #ffffff;
}

.share-icon:nth-child(3):hover { /* Facebook */
    background: #1877F3;
    border-color: #1877F3;
    color: #ffffff;
}

.share-icon:nth-child(4):hover { /* Telegram */
    background: #229ED9;
    border-color: #229ED9;
    color: #ffffff;
}

.share-icon:nth-child(5):hover { /* Reddit */
    background: #FF4500;
    border-color: #FF4500;
    color: #ffffff;
}

.share-icon svg {
    width: 18px;
    height: 18px;
}

/* 动画效果 */
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1.05); }
    75% { transform: scale(1.2); }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .iframe-actions {
        padding: 12px 16px;
    }
    
    .game-actions {
        gap: 8px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .action-btn .label {
        font-size: 12px;
    }
    
    .share-group {
        padding-left: 8px;
    }
}

@media (max-width: 768px) {
    .iframe-actions {
        flex-direction: column;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 0 0 12px 12px; /* 调小圆角 */
    }
    
    .game-meta {
        width: 100%;
    }
    
    .game-thumb {
        width: 42px;
        height: 42px;
    }
    
    .game-info {
        flex: 1;
        min-width: 0; /* 防止文字溢出 */
    }
    
    .game-h1 {
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* 超长显示省略号 */
    }
    
    .game-author {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .game-actions {
        width: 100%;
        justify-content: center; /* 改为居中对齐 */
        gap: 8px;
    }
    
    .action-btn .label {
        display: none; /* 移动端隐藏文字,只显示图标 */
    }
    
    .action-btn {
        padding: 8px;
        min-width: 40px;
        height: 40px;
        justify-content: center;
    }
    
    .action-btn .icon {
        width: 18px;
        height: 18px;
    }
    
    .share-group {
        border-left: none;
        padding-left: 0;
        gap: 8px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .share-label {
        display: none;
    }
    
    .share-icon {
        width: 36px;
        height: 36px;
    }
}

/* 特别小的屏幕 */
@media (max-width: 480px) {
    .iframe-actions {
        padding: 8px 10px;
        gap: 10px;
    }
    
    .game-thumb {
        width: 38px;
        height: 38px;
    }
    
    .game-h1 {
        font-size: 14px;
    }
    
    .game-author {
        font-size: 10px;
    }
    
    .action-btn {
        padding: 7px;
        min-width: 36px;
        height: 36px;
    }
    
    .action-btn .icon {
        width: 16px;
        height: 16px;
    }
    
    .share-icon {
        width: 32px;
        height: 32px;
    }
    
    .share-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* 游戏标题 - 用于 iframe-actions 区域 */
.game-h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

/* ==================== 汉堡菜单 - 始终显示 ==================== */
.hamburger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    margin-right: 12px;
}

.hamburger-menu:hover {
    background: rgba(0, 182, 255, 0.1);
}

/* ==================== 侧边栏遮罩层 ==================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* ==================== 侧边栏抽屉 ==================== */
.sidebar-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-drawer.active {
    transform: translateX(0);
}

/* 侧边栏头部 */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 2px solid #e0f7fa;
    background: linear-gradient(135deg, #7eeaff 0%, #b2f0ff 100%);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.sidebar-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00506b;
}

.sidebar-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: rotate(90deg);
}

.sidebar-close svg {
    color: #00506b;
}

/* 侧边栏导航 */
.sidebar-nav {
    padding: 12px 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.sidebar-item:hover {
    background: rgba(0, 182, 255, 0.08);
    border-left-color: #00b6ff;
}

.sidebar-item.active {
    background: rgba(0, 182, 255, 0.12);
    border-left-color: #00b6ff;
    color: #00b6ff;
}

.sidebar-icon {
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
}

.sidebar-text {
    flex: 1;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 600px) {
    .topbar {
        height: 60px;
        padding: 0 12px;
    }
    
    .header {
        padding: 0;
        gap: 8px;
    }
    
    .site-logo {
        width: 32px;
        height: 32px;
    }
    
    .site-title {
        font-size: 1.1rem;
    }
    
    /* 移动端隐藏分类按钮，保留搜索框 */
    .category-tabs {
        display: none !important;
    }
    
    .search-categories {
        flex: 1;
        max-width: 180px; /* 缩小搜索框最大宽度 */
    }
    
    .search-input {
        width: 100%;
        padding: 6px 12px; /* 缩小内边距 */
        font-size: 0.9rem; /* 缩小字体 */
        border-radius: 16px; /* 稍微调小圆角 */
    }
    
    /* 侧边栏宽度适配 */
    .sidebar-drawer {
        width: 260px;
    }
}

/* 移动端删除旧的抽屉样式 */
.mobile-nav-drawer {
    display: none !important;
}
