:root {
    --bg-body: #0f0f1a;
    --bg-container: rgba(20, 20, 40, 0.85);
    --border-container: rgba(255, 255, 255, 0.06);
    --shadow-container: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --text-primary: #e8ecf5;
    --text-secondary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.3);
    --text-faint: rgba(255, 255, 255, 0.12);
    --text-placeholder: rgba(255, 255, 255, 0.25);
    --bg-input: rgba(255, 255, 255, 0.05);
    --border-input: rgba(255, 255, 255, 0.08);
    --bg-hover: rgba(255, 255, 255, 0.05);
    --bg-filter: rgba(255, 255, 255, 0.03);
    --border-filter: rgba(255, 255, 255, 0.06);
    --bg-thumb: linear-gradient(135deg, rgba(124, 92, 252, 0.15), rgba(74, 158, 255, 0.15));
    --border-thumb: rgba(255, 255, 255, 0.06);
    --bg-detail: rgba(20, 20, 40, 0.95);
    --border-detail: rgba(255, 255, 255, 0.08);
    --bg-tag: rgba(255, 255, 255, 0.05);
    --text-white: #fff;
    --bg-info: rgba(255, 255, 255, 0.02);
    --border-info: rgba(255, 255, 255, 0.04);
    --bg-result: rgba(255, 255, 255, 0.02);
    --bg-widget: rgba(255, 255, 255, 0.06);
    --bg-genre: rgba(124, 92, 252, 0.12);
    --text-genre: #a78bfa;
    --border-genre: rgba(124, 92, 252, 0.12);
}

html.light-theme body,
body.light-theme {
    --bg-body: #f5f5f7;
    --bg-container: rgba(255, 255, 255, 0.92);
    --border-container: rgba(0, 0, 0, 0.06);
    --shadow-container: 0 30px 80px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --text-primary: #1a1a1c;
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-muted: rgba(0, 0, 0, 0.45);
    --text-faint: rgba(0, 0, 0, 0.2);
    --text-placeholder: rgba(0, 0, 0, 0.35);
    --bg-input: rgba(0, 0, 0, 0.04);
    --border-input: rgba(0, 0, 0, 0.08);
    --bg-hover: rgba(0, 0, 0, 0.04);
    --bg-filter: rgba(0, 0, 0, 0.02);
    --border-filter: rgba(0, 0, 0, 0.06);
    --bg-thumb: linear-gradient(135deg, rgba(124, 92, 252, 0.08), rgba(74, 158, 255, 0.08));
    --border-thumb: rgba(0, 0, 0, 0.08);
    --bg-detail: rgba(255, 255, 255, 0.95);
    --border-detail: rgba(0, 0, 0, 0.08);
    --bg-tag: rgba(0, 0, 0, 0.04);
    --text-white: #1a1a1c;
    --bg-info: rgba(0, 0, 0, 0.02);
    --border-info: rgba(0, 0, 0, 0.05);
    --bg-result: rgba(0, 0, 0, 0.015);
    --bg-widget: rgba(0, 0, 0, 0.06);
    --bg-genre: rgba(124, 92, 252, 0.08);
    --text-genre: #7c5cfc;
    --border-genre: rgba(124, 92, 252, 0.15);
}

html.light-theme .logo-img,
body.light-theme .logo-img {
    filter: brightness(0);
}

html.light-theme .game-thumb .platform-tag,
body.light-theme .game-thumb .platform-tag {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 20px;
    transition: background 0.3s;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    width: 100%;
    background: var(--bg-container);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    border: 1px solid var(--border-container);
    box-shadow: var(--shadow-container);
    padding: 36px 44px 44px;
    transition: all 0.3s;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #7c5cfc, #4a9eff);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 30px rgba(79, 124, 255, 0.3);
    flex-shrink: 0;
    overflow: hidden;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    filter: brightness(10);
    transition: filter 0.3s;
    max-width: 100%;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-text span {
    background: linear-gradient(135deg, #7c5cfc, #4a9eff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-badge {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    letter-spacing: 0.5px;
    margin-left: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-input);
    background: var(--bg-widget);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.search-section {
    margin-bottom: 32px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border-radius: 16px;
    padding: 4px 4px 4px 22px;
    border: 1px solid var(--border-input);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #4a9eff;
    background: var(--bg-input);
    box-shadow: 0 0 40px rgba(74, 158, 255, 0.1), inset 0 0 30px rgba(74, 158, 255, 0.02);
}

.search-box .search-icon {
    color: var(--text-muted);
    font-size: 18px;
    margin-right: 8px;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 8px 16px 0;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    font-weight: 400;
}

.search-box input::placeholder {
    color: var(--text-placeholder);
}

.search-box .search-btn {
    background: linear-gradient(135deg, #7c5cfc, #4a9eff);
    border: none;
    color: #fff;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.search-box .search-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(74, 158, 255, 0.4);
}

.search-box .search-btn:active {
    transform: scale(0.96);
}

.hot-games {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.hot-games .label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    margin-right: 4px;
    letter-spacing: 0.5px;
}

.hot-games .label .fire {
    margin-right: 4px;
}

.hot-games a {
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--bg-input);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid var(--border-input);
    transition: all 0.25s ease;
    font-weight: 500;
}

.hot-games a:hover {
    background: rgba(124, 92, 252, 0.2);
    color: #fff;
    border-color: rgba(124, 92, 252, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(124, 92, 252, 0.15);
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0 12px;
    border-bottom: 1px solid var(--border-container);
    margin-bottom: 20px;
}

.stats-bar .result-count {
    font-size: 14px;
    color: var(--text-muted);
}

.stats-bar .result-count strong {
    color: var(--text-primary);
    font-weight: 700;
}

.stats-bar .result-count .highlight-num {
    color: #4a9eff;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 6px;
    padding: 16px 0 14px;
    border-bottom: 1px solid var(--border-container);
    margin-bottom: 20px;
}

.filter-section .filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding: 6px 10px;
    background: var(--bg-tag);
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-section .filter-group {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-section .filter-group a.filter-btn {
    padding: 5px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-filter);
    background: var(--bg-filter);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.filter-section .filter-group a.filter-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.filter-section .filter-group a.filter-btn.active {
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.2), rgba(74, 158, 255, 0.2));
    color: #fff;
    border-color: rgba(124, 92, 252, 0.4);
    font-weight: 600;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--bg-result);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.result-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-container);
    transform: translateX(6px);
}

.game-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: var(--bg-thumb);
    border: 1px solid var(--border-thumb);
    position: relative;
    overflow: hidden;
}

.game-thumb .game-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.game-thumb .platform-tag {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.7);
    padding: 1px 6px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.game-info {
    flex: 1;
    min-width: 0;
}

.game-info .game-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.game-info .game-name .name-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.game-info .game-name .name-link:hover {
    color: #4a9eff;
}

.game-info .game-name .version {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    background: var(--bg-tag);
    padding: 2px 12px;
    border-radius: 12px;
}

.game-info .game-name .tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.game-info .game-name .tag.hot {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.game-info .game-name .tag.new {
    background: rgba(74, 158, 255, 0.15);
    color: #4a9eff;
    border: 1px solid rgba(74, 158, 255, 0.15);
}

.game-info .game-name .tag.crack {
    background: rgba(255, 100, 100, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 100, 100, 0.15);
}

.game-info .game-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 5px;
    font-size: 13px;
    color: var(--text-muted);
}

.game-info .game-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-info .game-meta .genre {
    background: var(--bg-genre);
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-genre);
}

.game-size {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    text-align: right;
}

.game-size .dl-count {
    display: block;
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 2px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-container);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.25s ease;
    background: transparent;
    border: 1px solid transparent;
}

.pagination a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-container);
}

.pagination .active {
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.3), rgba(74, 158, 255, 0.3));
    color: var(--text-white);
    border-color: rgba(124, 92, 252, 0.2);
    pointer-events: none;
}

.pagination .disabled {
    opacity: 0.2;
    pointer-events: none;
}

.footer-info {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-faint);
    border-top: 1px solid var(--border-container);
    padding-top: 20px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== 详情页 ===== */
.detail-wrap {
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
}

.detail-card {
    background: var(--bg-detail);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 28px;
    border: 1px solid var(--border-detail);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    padding: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 28px 32px 16px 32px;
    border-bottom: 1px solid var(--border-container);
    position: sticky;
    top: 0;
    background: var(--bg-detail);
    backdrop-filter: blur(20px);
    border-radius: 28px 28px 0 0;
    z-index: 2;
}

.detail-title-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-game-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: var(--bg-thumb);
    border: 1px solid var(--border-thumb);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.detail-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.detail-title-text {
    color: var(--text-white);
    font-size: 22px;
    font-weight: 700;
}

.detail-title-text .sub-version {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 10px;
}

.detail-back {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-input);
    background: var(--bg-filter);
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
}

.detail-back:hover {
    background: rgba(255, 70, 70, 0.15);
    color: #ff6b6b;
    border-color: rgba(255, 70, 70, 0.2);
}

.detail-body {
    padding: 24px 32px 32px 32px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.detail-tags .mtag {
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.detail-tags .mtag.hot {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.detail-tags .mtag.new {
    background: rgba(74, 158, 255, 0.15);
    color: #4a9eff;
    border: 1px solid rgba(74, 158, 255, 0.15);
}

.detail-tags .mtag.crack {
    background: rgba(255, 100, 100, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 100, 100, 0.15);
}

.detail-tags .mtag.platform {
    background: var(--bg-tag);
    color: var(--text-muted);
    border: 1px solid var(--border-input);
}

.detail-tags .mtag.genre {
    background: var(--bg-genre);
    color: var(--text-genre);
    border: 1px solid var(--border-genre);
}

.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin-bottom: 24px;
    background: var(--bg-info);
    border-radius: 16px;
    padding: 18px 22px;
    border: 1px solid var(--border-info);
}

.detail-info-grid .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.detail-info-grid .info-item .label {
    color: var(--text-muted);
    min-width: 48px;
}

.detail-info-grid .info-item .value {
    color: var(--text-primary);
    font-weight: 500;
}

.detail-info-grid .info-item .value.highlight {
    color: #4a9eff;
}

.detail-description {
    margin-bottom: 24px;
}

.detail-description h4 {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.detail-description p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    background: var(--bg-info);
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid var(--border-info);
}

.detail-description .dl-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    margin-right: 16px;
    margin-bottom: 6px;
    padding: 6px 12px 6px 6px;
    background: var(--bg-widget);
    border-radius: 8px;
    border: 1px solid var(--border-input);
    transition: all 0.2s;
}

.detail-description .dl-link:hover {
    border-color: var(--accent);
    background: rgba(74,158,255,0.06);
}

.detail-description .dl-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 4px;
    flex-shrink: 0;
}

.detail-description .dl-link-icon img {
    width: 16px;
    height: 16px;
    display: block;
    object-fit: contain;
}

.detail-description .dl-none {
    display: inline-block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e53935, #ff6b6b);
    cursor: default;
    user-select: none;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h3 {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
}

/* ===== 留言板 / 评论通用样式 ===== */
.comment-section { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-container); }
.comment-section h4 { color: var(--text-muted); font-size: 13px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 16px; }
.comment-item { padding: 14px 0; border-bottom: 1px solid var(--border-container); }
.comment-item:last-child { border-bottom: none; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-nickname { color: #4a9eff; font-weight: 600; font-size: 14px; }
.comment-time { color: var(--text-faint); font-size: 12px; }
.comment-content { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.comment-form { margin-top: 16px; background: var(--bg-info); border-radius: 14px; padding: 18px 20px; border: 1px solid var(--border-info); }
.comment-form .form-row { display: flex; gap: 12px; margin-bottom: 12px; }
.comment-form input[type="text"] { flex: 1; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-input); background: var(--bg-input); color: var(--text-primary); font-size: 14px; outline: none; box-sizing: border-box; }
.comment-form input:focus, .comment-form textarea:focus { border-color: #4a9eff; }
.comment-form textarea { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-input); background: var(--bg-input); color: var(--text-primary); font-size: 14px; outline: none; resize: vertical; min-height: 70px; margin-bottom: 10px; box-sizing: border-box; }
.comment-form .btn-submit { background: linear-gradient(135deg, #7c5cfc, #4a9eff); border: none; color: #fff; padding: 10px 28px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.25s; }
.comment-form .btn-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(74,158,255,0.3); }
.cmt-msg { padding: 10px 16px; border-radius: 10px; margin-bottom: 12px; font-size: 13px; }
.cmt-msg.success { background: rgba(74,200,100,0.15); color: #4ac864; border: 1px solid rgba(74,200,100,0.1); }
.cmt-msg.error { background: rgba(255,70,70,0.15); color: #ff6b6b; border: 1px solid rgba(255,70,70,0.1); }
.empty-comments { color: var(--text-faint); font-size: 14px; padding: 20px 0; text-align: center; }
.cmt-closed { color: var(--text-faint); font-size: 13px; text-align: center; padding: 16px 0; }

.page-title h1 { color: var(--text-primary); }
.page-title p { color: var(--text-muted); font-size: 14px; }

/* Prevent horizontal overflow on all screens */
img, video, iframe { max-width: 100%; height: auto; }
pre, code { word-break: break-word; white-space: pre-wrap; }

@media (max-width: 768px) {
    body {
        padding: 12px 10px;
    }

    .container {
        padding: 20px 14px 28px;
        border-radius: 18px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-left {
        width: 100%;
    }

    .header-right {
        width: 100%;
        justify-content: flex-start;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .search-box {
        padding: 4px 4px 4px 14px;
        flex-wrap: wrap;
        background: var(--bg-input);
    }

    .search-box input {
        padding: 12px 6px 12px 0;
        font-size: 15px;
        width: 100%;
    }

    .search-box .search-btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
        margin-top: 4px;
        border-radius: 10px;
        font-size: 15px;
    }

    .search-box .search-icon {
        display: none;
    }

    .hot-games {
        gap: 8px;
    }

    .hot-games a {
        padding: 6px 14px;
        font-size: 12px;
    }

    .stats-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filter-section {
        flex-direction: column;
        gap: 6px;
        max-width: 100%;
    }

    .filter-section .filter-label {
        font-size: 11px;
        padding: 4px 8px;
    }

    .filter-section .filter-group {
        flex-wrap: wrap;
        gap: 6px 4px;
        max-width: 100%;
    }

    .filter-section .filter-group a.filter-btn {
        padding: 6px 14px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .result-item {
        flex-wrap: wrap;
        padding: 12px 14px;
        gap: 12px;
    }

    .game-thumb {
        width: 46px;
        height: 46px;
        font-size: 22px;
        border-radius: 10px;
    }

    .game-info .game-name {
        font-size: 14px;
    }

    .game-info .game-name .tag {
        font-size: 10px;
        padding: 1px 8px;
    }

    .game-info .game-meta {
        font-size: 12px;
        gap: 10px;
    }

    .game-size {
        margin-left: auto;
        font-size: 12px;
    }

    .pagination a,
    .pagination span {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 8px;
    }

    .logo-text {
        font-size: 20px;
    }

    .footer-info {
        font-size: 12px;
        gap: 16px;
    }

    .detail-card {
        border-radius: 16px;
    }

    .detail-header {
        padding: 16px 16px 12px 16px;
        border-radius: 16px 16px 0 0;
        flex-direction: row;
        gap: 8px;
    }

    .detail-title-area {
        min-width: 0;
        flex: 1;
    }

    .detail-title-text {
        font-size: 17px;
    }

    .detail-title-text .sub-version {
        font-size: 12px;
        margin-left: 6px;
        display: block;
        margin-top: 2px;
    }

    .detail-game-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .detail-body {
        padding: 14px 16px 20px 16px;
    }

    .detail-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 14px;
        font-size: 13px;
    }

    .detail-tags {
        gap: 6px;
    }

    .detail-tags .mtag {
        font-size: 11px;
        padding: 3px 12px;
    }

    .detail-description p {
        font-size: 14px;
        padding: 12px 14px;
    }

    .detail-description .dl-link {
        margin-right: 8px;
        font-size: 13px;
    }

    .comment-item {
        padding: 12px 14px;
    }

    .comment-form { padding: 14px 14px; }
    .comment-form .form-row { flex-direction: column; gap: 8px; }
    .comment-form input[type="text"] { font-size: 13px; padding: 10px 12px; width: 100%; }
    .comment-form textarea { font-size: 13px; padding: 10px 12px; min-height: 60px; }
    .comment-form .btn-submit { width: 100%; padding: 12px; font-size: 14px; }
    .comment-nickname { font-size: 13px; }
    .comment-content { font-size: 13px; }
    .comment-section { margin-top: 20px; padding-top: 16px; }

    .request-banner { flex-direction: column !important; text-align: center; padding: 16px 18px !important; }
    .request-banner a { width: 100%; justify-content: center; }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .detail-back {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}

@media (max-width: 420px) {
    body {
        padding: 8px 6px;
    }

    .container {
        padding: 14px 10px 20px;
        border-radius: 14px;
    }

    .header-left {
        gap: 10px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        border-radius: 10px;
    }

    .logo-text {
        font-size: 18px;
    }

    .game-info .game-meta {
        font-size: 11px;
        gap: 8px;
    }

    .hot-games a {
        font-size: 11px;
        padding: 4px 10px;
    }

    .game-info .game-name .version {
        font-size: 10px;
        padding: 1px 6px;
    }

    .game-info .game-name .tag {
        font-size: 9px;
        padding: 1px 6px;
    }

    .detail-title-text {
        font-size: 15px;
    }

    .detail-header {
        padding: 12px 12px 10px 12px;
    }

    .detail-body {
        padding: 10px 12px 16px 12px;
    }

    .detail-info-grid {
        padding: 10px 12px;
        font-size: 12px;
    }

    .footer-info {
        font-size: 11px;
        gap: 12px;
    }

    .pagination a,
    .pagination span {
        min-width: 30px;
        height: 30px;
        font-size: 11px;
        padding: 0 6px;
    }

    .tab-bar a {
        padding: 6px 10px;
        font-size: 11px;
    }
}
