/* ============================================
   传奇版本展示 - 统一样式表
   包含：主页 + 管理后台 + 详情页 + 画廊
   ============================================ */

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

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

:root {
    --bg: #0F1117;
    --bg2: #161822;
    --card: #1B1E2E;
    --hover: #212538;
    --input: #13151F;
    --t1: #E8E9EF;
    --t2: #8A8FA6;
    --t3: #525678;
    --bd: #262940;
    --bd2: #2E3148;
    --accent: #4FC3F7;
    --red: #E74C3C;
    --green: #2ECC71;
    --orange: #F39C12;
    --r: 10px;
    --r2: 6px;
    --header-h: 60px;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
    background: var(--bg);
    color: var(--t1);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(79,195,247,0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 30%, rgba(231,76,60,0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   一、主页 - 顶部导航
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(22,24,34,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bd);
    height: var(--header-h);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo .icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #E74C3C, #F39C12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo .text {
    font-size: 18px;
    font-weight: 700;
    color: var(--t1);
    white-space: nowrap;
}

.search-wrap {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    height: 40px;
    background: var(--input);
    border: 1px solid var(--bd2);
    border-radius: 20px;
    padding: 0 40px 0 40px;
    color: var(--t1);
    font-size: 14px;
    outline: none;
    transition: border .2s;
}

.search-input:focus { border-color: var(--accent); }

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--t3);
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--t3);
    cursor: pointer;
    display: none;
    padding: 2px;
}

.search-clear.show { display: block; }

/* PC 顶部 - 开服套餐表按钮 */
.header-vip-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    height: 36px;
    border-radius: 18px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(247, 147, 30, 0.35);
    transition: all .2s;
}

.header-vip-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(247, 147, 30, 0.45);
    filter: brightness(1.08);
}

.suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: var(--r2);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 200;
}

.suggestions.show { display: block; }

.sug-empty {
    padding: 16px;
    text-align: center;
    color: var(--t3);
    font-size: 13px;
}

.sug-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--bd);
    transition: background .15s;
}

.sug-item:last-child { border-bottom: none; }
.sug-item:hover { background: var(--hover); }

.sug-info { flex: 1; min-width: 0; }
.sug-name { font-size: 14px; color: var(--t1); }
.sug-name mark { background: rgba(79,195,247,0.25); color: var(--accent); border-radius: 2px; }
.sug-meta { font-size: 12px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-badge { font-size: 11px; padding: 2px 8px; border-radius: 4px; color: #fff; flex-shrink: 0; margin-left: 10px; }

/* ===== 横幅 ===== */
.hero-banner {
    position: relative;
    overflow: hidden;
    background: url('../images/hero-bg.png') center center / cover no-repeat;
    padding: 55px 24px 50px;
    text-align: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(30,20,94,0.55) 0%, rgba(50,46,128,0.45) 30%, rgba(114,49,119,0.35) 50%, rgba(43,20,50,0.55) 80%, rgba(30,20,94,0.6) 100%);
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-inner h1 {
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.hero-inner p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    letter-spacing: 3px;
}

@media (max-width: 600px) {
    .hero-banner { padding: 35px 16px 32px; }
    .hero-inner h1 { font-size: 24px; letter-spacing: 2px; }
    .hero-inner p { font-size: 13px; letter-spacing: 1px; }
}

/* ============================================
   二、主页 - 筛选栏
   ============================================ */
.filter-bar {
    position: sticky;
    top: var(--header-h);
    z-index: 99;
    background: rgba(15,17,23,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bd);
    padding: 10px 0;
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    margin-bottom: 4px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.filter-row:last-child { margin-bottom: 0; }

.filter-label {
    font-size: 15px;
    color: var(--t3);
    white-space: nowrap;
    padding-right: 6px;
    flex-shrink: 0;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    flex: 1;
}

.filter-tag {
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 15px;
    cursor: pointer;
    background: transparent;
    color: var(--t2);
    border: none;
    transition: all .15s;
    display: inline-block;
    white-space: nowrap;
}

.filter-tag:hover {
    color: var(--t1);
}

.filter-tag.active {
    background: rgba(10,108,255,0.85);
    color: #fff;
    font-weight: 500;
}

/* 卡片额外标签 */
.card-extra-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.card-extra-tags:empty {
    display: none;
}

.badge-extra {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    color: #fff;
    font-weight: 600;
}

/* ============================================
   三、主页 - 内容区
   ============================================ */
.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px 60px;
    position: relative;
    z-index: 1;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.result-info { font-size: 14px; color: var(--t2); }
.result-info strong { color: var(--t1); }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    border-color: var(--accent);
}

/* 刚才看过的版本卡片高亮 */
.card.viewed {
    border-color: #f5a623;
    border-width: 2px;
    box-shadow:
        0 0 0 3px rgba(245, 166, 35, 0.25),
        0 8px 24px rgba(245, 166, 35, 0.35);
    position: relative;
    animation: viewedPulse 2s ease-in-out 2;
}

.card.viewed::before {
    content: '✓ 刚才看过';
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f5a623, #f7931e);
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.5);
    pointer-events: none;
}

.card.viewed::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r);
    pointer-events: none;
    box-shadow: inset 0 0 0 2px rgba(245, 166, 35, 0.4);
}

@keyframes viewedPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25), 0 8px 24px rgba(245, 166, 35, 0.35); }
    50%      { box-shadow: 0 0 0 6px rgba(245, 166, 35, 0.45), 0 8px 32px rgba(245, 166, 35, 0.55); }
}

/* Toast 提示：刚才看过的版本在其他页 */
.viewed-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    color: #f5a623;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    border: 1px solid #f5a623;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 9999;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    display: flex;
    align-items: center;
    gap: 12px;
}
.viewed-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.viewed-toast button {
    background: #f5a623;
    color: #1a1a1a;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.viewed-toast button:hover { background: #ffb84d; }

.card-thumb {
    position: relative;
    height: 180px;
    background: var(--bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.card-thumb .placeholder {
    font-size: 28px;
    font-weight: 700;
}

.badge-type {
    position: absolute;
    top: 8px; left: 8px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: #fff;
    font-weight: 600;
}

.badge-engine {
    position: absolute;
    top: 8px; right: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #fff;
    font-weight: 600;
}

.badge-count {
    position: absolute;
    bottom: 8px; right: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #fff;
    background: rgba(0,0,0,0.6);
}

.card-body {
    padding: 14px;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.card-desc {
    font-size: 12px;
    color: var(--t3);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-engine-info {
    font-size: 12px;
    color: var(--t2);
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot { width: 6px; height: 6px; border-radius: 50%; }

.card-link { font-size: 12px; color: var(--accent); }

/* 分页 */
.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
}

.pager-btn {
    padding: 6px 14px;
    border: 1px solid var(--bd2);
    background: var(--card);
    color: var(--t2);
    border-radius: var(--r2);
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
}

.pager-btn:hover:not([disabled]) { border-color: var(--accent); color: var(--t1); }
.pager-btn.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }
.pager-btn[disabled] { opacity: 0.3; cursor: default; }

/* 空状态 */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--t3);
}

.empty .icon { font-size: 40px; margin-bottom: 12px; }
.empty h3 { font-size: 16px; color: var(--t2); margin-bottom: 6px; }

/* ============================================
   四、管理后台 - 密码验证
   ============================================ */
.auth-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
}

.auth-box {
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    padding: 40px;
    width: 360px;
    text-align: center;
}

.auth-box h2 { font-size: 20px; margin-bottom: 4px; }
.auth-box p { font-size: 13px; color: var(--t3); margin-bottom: 20px; }

.auth-box input {
    width: 100%;
    height: 42px;
    background: var(--input);
    border: 1px solid var(--bd2);
    border-radius: var(--r2);
    padding: 0 14px;
    color: var(--t1);
    font-size: 14px;
    outline: none;
    margin-bottom: 14px;
    text-align: center;
    letter-spacing: 4px;
}

.auth-box input:focus { border-color: var(--accent); }

.auth-box button {
    width: 100%;
    height: 42px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: var(--r2);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.auth-msg { margin-top: 10px; font-size: 13px; }
.auth-msg.error { color: var(--red); }

/* ============================================
   五、管理后台 - 面板
   ============================================ */
.admin-panel {
    min-height: 100vh;
    background: var(--bg);
}

.admin-header {
    background: var(--bg2);
    border-bottom: 1px solid var(--bd);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header h1 { font-size: 16px; }

.admin-nav { display: flex; align-items: center; gap: 12px; }

.admin-nav a {
    color: var(--t2);
    font-size: 13px;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--bd2);
    border-radius: var(--r2);
    transition: all .15s;
}

.admin-nav a:hover { color: var(--t1); border-color: var(--t3); }

.admin-nav button {
    background: none;
    border: 1px solid var(--bd2);
    color: var(--t3);
    padding: 6px 12px;
    border-radius: var(--r2);
    font-size: 13px;
    cursor: pointer;
}

.admin-nav button:hover { color: var(--red); border-color: var(--red); }

.nav-btn-ftp {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 5px 12px;
    font-weight: 600;
}
.nav-btn-ftp:hover {
    color: #fff !important;
    opacity: 0.9;
    border-color: var(--blue) !important;
}

.server-status {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    margin-right: 8px;
}

.server-status.online { background: rgba(46,204,113,0.15); color: var(--green); }
.server-status.offline { background: rgba(231,76,60,0.15); color: var(--red); }

/* 双栏布局 */
.admin-body {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    gap: 24px;
    min-height: calc(100vh - 56px);
    position: relative;
}

/* 左侧表单：PC 端固定悬浮，滚动时始终可见 */
.admin-form-area {
    flex: 0 0 400px;
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    padding: 16px;
    position: fixed;
    top: 76px;
    left: max(24px, calc((100vw - 1400px) / 2 + 24px));
    width: 400px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    z-index: 10;
}

.admin-form-area h2 {
    font-size: 16px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bd);
    font-weight: 700;
}

/* 右侧列表：给左侧固定表单留出空间 */
.admin-list-area {
    flex: 1;
    min-width: 0;
    margin-left: 424px;
}

.admin-list-area h2 {
    font-size: 16px;
    margin-bottom: 4px;
}

.list-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.list-count { font-size: 13px; color: var(--t3); }

.list-search input {
    background: var(--card);
    border: 1px solid var(--bd2);
    border-radius: var(--r2);
    padding: 6px 12px;
    color: var(--t1);
    font-size: 13px;
    outline: none;
    width: 160px;
}

.list-search input:focus { border-color: var(--accent); }

.list-filters { display: flex; gap: 6px; }

.lf-btn,
.filter-chip {
    padding: 4px 10px;
    border: 1px solid var(--bd2);
    background: var(--card);
    color: var(--t3);
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}

.lf-btn:hover,
.filter-chip:hover { color: var(--t1); border-color: var(--accent); }

.lf-btn.active,
.filter-chip.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* 表单分节 */
.form-section {
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: var(--r2);
    padding: 12px;
    margin-bottom: 10px;
}

.form-section .section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--bd);
}

/* 表单元素 */
.form-group {
    margin-bottom: 12px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--t2);
    margin-bottom: 4px;
    font-weight: 600;
}

.required { color: var(--red); }

.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--input);
    border: 1px solid var(--bd2);
    border-radius: var(--r2);
    padding: 8px 12px;
    color: var(--t1);
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.form-group select {
    height: 38px;
    cursor: pointer;
}

.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group select:disabled { opacity: 0.5; cursor: not-allowed; }

/* 游戏介绍：约两行高度 */
.form-group-desc textarea {
    min-height: 44px;
    height: 44px;
    resize: vertical;
    line-height: 1.4;
    padding: 6px 10px;
}

/* 游戏介绍：可输入较多文字，但高度不过大 */
.form-group-intro textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.7;
    padding: 8px 10px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .form-row-3 {
        flex-wrap: wrap;
    }
    .form-row-3 .form-group {
        flex: 1 1 calc(50% - 5px);
        min-width: 120px;
    }
}

@media (max-width: 600px) {
    .form-row-3 .form-group {
        flex: 1 1 100%;
    }
}

/* 批量添加图片 */
.img-batch-input {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.img-batch-input input {
    flex: 1;
    min-width: 100px;
    padding: 6px 10px;
    border: 1px solid var(--bd2);
    border-radius: var(--r2);
    background: var(--input);
    color: var(--t1);
    font-size: 13px;
    outline: none;
}

.img-batch-input input:focus { border-color: var(--accent); }

.img-batch-input button {
    padding: 6px 12px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--r2);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all .15s;
}

.img-batch-input button:hover { filter: brightness(1.1); }

.img-batch-input .btn-clear-img {
    background: var(--red);
}

.form-hint {
    font-size: 12px;
    color: var(--t3);
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.4;
}

.form-hint-inline {
    font-size: 11px;
    font-weight: 400;
    color: var(--t3);
    margin-left: 4px;
}

/* 多选标签组 */
.multi-select {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: var(--input);
    border: 1px solid var(--bd2);
    border-radius: var(--r2);
}

.ms-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid var(--bd2);
    border-radius: 4px;
    font-size: 12px;
    color: var(--t2);
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
    background: var(--card);
}

.ms-tag:hover {
    border-color: var(--accent);
    color: var(--t1);
}

.ms-tag input[type="checkbox"] {
    display: none;
}

.ms-tag:has(input:checked),
.ms-tag.checked {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
}

/* 图片预览工具条 */
.upload-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.preview-count {
    font-size: 12px;
    color: var(--t2);
    font-weight: 600;
}

.preview-hint {
    font-size: 11px;
    color: var(--t3);
    cursor: help;
}

/* 图片预览 */
.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 40px;
    padding: 8px;
    background: var(--input);
    border: 1px dashed var(--bd2);
    border-radius: var(--r2);
}

.preview-empty {
    width: 100%;
    text-align: center;
    padding: 12px;
    color: var(--t3);
    font-size: 12px;
}

.preview-item {
    position: relative;
    width: 80px; height: 60px;
    border-radius: var(--r2);
    overflow: hidden;
    border: 1px solid var(--bd2);
    flex-shrink: 0;
    background: var(--bg);
}

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

.preview-del {
    position: absolute;
    top: 2px; right: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all .15s;
}

.preview-del:hover { background: var(--red); }

.preview-num {
    position: absolute;
    bottom: 2px; left: 2px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
}

.preview-item.is-cover { border-color: var(--accent); border-width: 2px; }

.preview-cover-badge {
    position: absolute;
    top: 2px; left: 2px;
    background: var(--accent);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
}

.preview-setcover {
    position: absolute;
    bottom: 2px; right: 2px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: 1px solid var(--bd2);
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: all .15s;
}
.preview-setcover:hover { background: var(--accent); color: #000; border-color: var(--accent); }

.vlist-meta { font-size: 12px; color: var(--t3); margin-bottom: 4px; }

/* 按钮 */
.btn-primary {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: var(--r2);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}

.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-cancel {
    background: transparent;
    color: var(--t3);
    border: 1px solid var(--bd2);
    padding: 8px 16px;
    border-radius: var(--r2);
    font-size: 14px;
    cursor: pointer;
    margin-left: 8px;
    transition: all .15s;
}

.btn-cancel:hover { color: var(--t1); border-color: var(--t3); background: var(--bg); }

.form-actions { margin-top: 12px; }

.form-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.form-actions-bar .form-actions { margin-top: 0; }

.form-msg {
    margin-top: 10px;
    font-size: 13px;
    min-height: 20px;
}

.form-msg.success { color: var(--green); }
.form-msg.error { color: var(--red); }

/* 版本列表 */
.version-list { display: flex; flex-direction: column; gap: 8px; }

.list-empty {
    text-align: center;
    padding: 40px;
    color: var(--t3);
    font-size: 14px;
}

.vlist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    padding: 12px 16px;
    transition: border-color .15s;
}

.vlist-item:hover { border-color: var(--accent); }

.vlist-thumb {
    width: 70px; height: 50px;
    border-radius: var(--r2);
    overflow: hidden;
    background: var(--bg);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vlist-thumb img {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
}

.no-thumb {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
}

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

.vlist-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.vlist-type, .vlist-engine { font-weight: 600; font-size: 14px; }
.vlist-arrow { color: var(--t3); font-size: 12px; }
.vlist-imgcount { font-size: 11px; color: var(--t3); background: var(--bg); padding: 1px 6px; border-radius: 4px; }
.vlist-desc { font-size: 12px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vlist-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.vlist-edit, .vlist-del {
    padding: 5px 14px;
    border-radius: var(--r2);
    font-size: 12px;
    cursor: pointer;
    border: 1px solid var(--bd2);
    transition: all .15s;
}

.vlist-edit { background: var(--card); color: var(--accent); }
.vlist-edit:hover { border-color: var(--accent); }
.vlist-del { background: var(--card); color: var(--red); }
.vlist-del:hover { border-color: var(--red); }

/* ============================================
   六、详情页
   ============================================ */
.detail-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 56px;
    padding: 0 24px;
    background: var(--bg2);
    border-bottom: 1px solid var(--bd);
    position: sticky;
    top: 0;
    z-index: 50;
}

.dt-back {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    transition: opacity .2s;
}

.dt-back:hover { opacity: 0.7; }

.dt-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--t1);
}

/* 详情页顶部 - 开服套餐表按钮 */
.detail-vip-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    height: 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(247, 147, 30, 0.3);
    transition: all .2s;
}

.detail-vip-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(247, 147, 30, 0.4);
    filter: brightness(1.08);
}

/* 画廊 */
.gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.gallery-viewer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    height: 70vh;
    min-height: 400px;
    max-height: 800px;
    overflow: hidden;
}

.gallery-viewer img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
}

/* 点击放大提示 */
.gallery-zoom-hint {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 9;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-viewer:hover .gallery-zoom-hint {
    opacity: 1;
}

.gallery-zoom-hint svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.gallery-viewer .gallery-placeholder {
    min-height: auto;
    background: transparent;
}

/* 左右翻页按钮 */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background: rgba(0,0,0,0.45);
    border: none;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    opacity: 0;
}

.gallery-nav.prev { left: 0; border-radius: 0 8px 8px 0; }
.gallery-nav.next { right: 0; border-radius: 8px 0 0 8px; }

.gallery-viewer:hover .gallery-nav { opacity: 1; }
.gallery-nav:hover { background: rgba(0,0,0,0.7); width: 56px; }

/* 图片计数 */
.gallery-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 10;
    pointer-events: none;
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--t3);
    font-size: 14px;
    background: var(--bg2);
    border-radius: var(--r);
}

/* 缩略图条 */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    background: var(--bg2);
    border-bottom: 1px solid var(--bd);
    justify-content: flex-start;
    border-radius: 0 0 var(--r2) var(--r2);
}

.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--bd2); border-radius: 4px; }

.thumb-item {
    width: 80px; height: 52px;
    border-radius: var(--r2);
    overflow: hidden;
    border: 2px solid var(--bd);
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0;
    opacity: 0.5;
    position: relative;
}

.thumb-item:hover { border-color: var(--accent); opacity: 0.85; }
.thumb-item.active { border-color: var(--accent); opacity: 1; box-shadow: 0 0 0 2px rgba(79,195,247,0.3); }

.thumb-item img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* 详情内容 */
.detail-content {
    max-width: 1200px;
    margin: 24px auto 0;
    padding: 0 24px 40px;
}

.detail-block {
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    padding: 24px;
    margin-bottom: 16px;
}

.detail-block h3 {
    font-size: 15px;
    color: var(--accent);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bd);
}

.detail-desc {
    font-size: 14px;
    color: var(--t2);
    line-height: 1.9;
    white-space: pre-wrap;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--bd);
    font-size: 14px;
}

.detail-table tr:last-child td { border-bottom: none; }

.dt-label {
    color: var(--t3);
    width: 100px;
}

.dt-badge {
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}

.detail-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--t3);
}

.detail-error p { font-size: 15px; margin-bottom: 16px; }

.detail-error a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 20px;
    border: 1px solid var(--accent);
    border-radius: var(--r2);
    display: inline-block;
}

.detail-error a:hover { background: rgba(79,195,247,0.1); }

/* ============================================
   七、灯箱
   ============================================ */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.show { display: flex; }

/* 灯箱内容包裹层：可拖拽查看原图，超出滚动 */
.lightbox-img-wrap {
    max-width: 92vw;
    max-height: 88vh;
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    cursor: grab;
    background: transparent;
    border-radius: 4px;
}

.lightbox-img-wrap.dragging {
    cursor: grabbing;
}

/* 关键：始终按图片原始像素显示，不做任何缩放压缩 */
.lightbox-img-wrap img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
    -webkit-user-drag: none;
}

/* 图片较小时居中显示，不拉伸 */
.lightbox-img-wrap.small {
    align-items: center;
    justify-content: center;
}

/* 下载原图按钮 */
.lightbox-download {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10001;
    background: rgba(79,195,247,0.92);
    color: #06283d;
    border: none;
    border-radius: 22px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    transition: all .2s;
}

.lightbox-download:hover { background: #4FC3F7; transform: translateY(-2px); }

/* 触摸设备（手机/平板，横竖屏统一覆盖）：图片最大化适配屏幕，
   缩放/拖拽交给 JS 手势处理，并隐藏"下载原图"按钮 */
.lightbox.is-touch .lightbox-img-wrap {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    padding: 0;
    overflow: hidden;
    cursor: default;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    touch-action: none;
}

.lightbox.is-touch .lightbox-img-wrap.dragging { cursor: default; }

.lightbox.is-touch .lightbox-img-wrap img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transform-origin: center center;
    will-change: transform;
    -webkit-user-drag: none;
    user-select: none;
}

.lightbox.is-touch .lightbox-download { display: none; }

.lightbox.is-touch .lightbox-prev,
.lightbox.is-touch .lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    font-size: 24px;
    border-radius: 50%;
    opacity: 0.85;
}

.lightbox.is-touch .lightbox-prev { left: 8px; }
.lightbox.is-touch .lightbox-next { right: 8px; }

.lightbox.is-touch .lightbox-counter { bottom: 14px; font-size: 12px; }

.lightbox-close {
    position: fixed;
    top: 16px; right: 20px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    opacity: 0.6;
    transition: opacity .2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev, .lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    opacity: 0.5;
    transition: opacity .2s;
    padding: 20px;
    visibility: hidden;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }

.lightbox-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    z-index: 10000;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 900px) {
    .admin-body {
        flex-direction: column;
    }

    .admin-form-area {
        flex: none;
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        max-height: none;
        overflow-y: visible;
        z-index: auto;
    }

    .admin-list-area {
        margin-left: 0;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .filter-bar { padding: 10px 0; }
    .filter-row { padding: 0 12px; }
    .main { padding: 16px 12px 40px; }
    .gallery { padding: 12px; }
    .detail-content { padding: 0 12px 30px; }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-thumb { height: 140px; }

    .badge-featured {
        top: 30px;
        font-size: 10px;
        padding: 1px 8px;
    }

    .card-body {
        padding: 10px;
    }

    .card-title {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 2px;
    }

    .card-engine-info {
        font-size: 11px;
    }

    .card-link {
        font-size: 11px;
    }

    .logo .text { display: none; }

    .header-inner {
        padding: 0 12px;
        gap: 10px;
    }

    .header-vip-btn {
        padding: 0 10px;
        height: 30px;
        font-size: 12px;
        border-radius: 15px;
    }

    .search-input {
        height: 34px;
        font-size: 13px;
    }

    .admin-form-area {
        padding: 16px;
    }

    .auth-box {
        width: 90%;
        padding: 30px 20px;
    }

    .gallery-viewer { height: 50vh; min-height: 220px; max-height: 500px; }
    .gallery-viewer img { max-height: 100%; }
    .gallery-nav { width: 36px; height: 60px; font-size: 28px; }
    .gallery-thumbs { padding: 10px 12px; }
    .thumb-item { width: 70px; height: 50px; }
}

/* ============================================
   八、后台列表样式
   ============================================ */
.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    padding: 12px 16px;
    transition: border-color .15s;
    margin-bottom: 8px;
}

.list-item:hover { border-color: var(--accent); }

.list-item.editing {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(79,195,247,0.15);
}

.list-item-thumb {
    width: 70px; height: 50px;
    border-radius: var(--r2);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-item-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

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

.list-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-item-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.list-item-meta span {
    font-size: 12px;
    color: var(--t3);
    background: var(--bg);
    padding: 1px 6px;
    border-radius: 4px;
}

.list-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.list-tag {
    font-size: 11px;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
}

.list-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.list-item-actions button {
    padding: 5px 12px;
    font-size: 12px;
    border: 1px solid var(--bd2);
    border-radius: var(--r2);
    background: var(--card);
    color: var(--t2);
    cursor: pointer;
    transition: all .15s;
}

.list-item-actions button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.list-item-actions .btn-danger {
    border-color: var(--danger);
    color: var(--danger);
}

.list-item-actions .btn-danger:hover {
    background: rgba(239,68,68,0.1);
}

.list-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--t3);
    font-size: 14px;
}

/* ============================================
   九、精品版本相关样式
   ============================================ */

/* 筛选栏 - 精品推荐按钮 */
.filter-tag.featured-toggle {
    margin-left: 8px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(255,165,0,0.12));
    color: #FFD700;
    border: 1px solid rgba(255,215,0,0.3);
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.filter-tag.featured-toggle:hover {
    background: linear-gradient(135deg, rgba(255,215,0,0.22), rgba(255,165,0,0.22));
    color: #FFE55C;
}

.filter-tag.featured-toggle.active {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    border-color: #FFD700;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255,215,0,0.3);
}

/* 移动端筛选区：默认隐藏（媒体查询中显示） */
.mobile-filter-header,
.mobile-filter-drawer,
.mobile-filter-overlay {
    display: none;
}

/* ============================================
   移动端筛选抽屉（仅在小屏显示）
   ============================================ */
@media (max-width: 768px) {
    /* 顶部 header 与下方内容区左右对齐（移动端统一 12px 边距） */
    .header-inner {
        padding: 0 12px;
        gap: 10px;
    }

    .header-vip-btn {
        padding: 0 10px;
        height: 30px;
        font-size: 12px;
        border-radius: 15px;
    }

    .search-input {
        height: 34px;
        font-size: 13px;
    }

    /* 详情页顶部：手机端标题和按钮分散两端 */
    .detail-topbar {
        justify-content: space-between;
        height: auto;
        min-height: 56px;
        padding: 10px 12px;
    }

    .dt-title {
        white-space: normal;
        line-height: 1.35;
        max-width: calc(100% - 110px);
    }

    /* 隐藏 PC 平铺的两行筛选 */
    .filter-bar { padding: 0; }
    .desktop-filter { display: none !important; }

    /* 显示移动端单行头部 */
    .mobile-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 12px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .mobile-filter-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 1;
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid var(--bd);
        background: rgba(255,255,255,0.04);
        color: var(--t2);
        font-size: 14px;
        cursor: pointer;
        transition: all .15s;
        text-align: left;
        overflow: hidden;
    }

    .mobile-filter-btn:active {
        background: rgba(255,255,255,0.08);
    }

    .mobile-filter-btn .mfb-icon {
        font-size: 13px;
        color: var(--accent);
    }

    .mobile-filter-btn .mfb-text {
        color: var(--t2);
        flex-shrink: 0;
    }

    .mobile-filter-active {
        color: var(--t3);
        font-size: 13px;
        margin-left: auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-featured-btn {
        flex-shrink: 0;
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid rgba(255,215,0,0.35);
        background: linear-gradient(135deg, rgba(255,215,0,0.10), rgba(255,165,0,0.10));
        color: #FFD700;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all .15s;
        white-space: nowrap;
    }

    .mobile-featured-btn.active {
        background: linear-gradient(135deg, #FFD700, #FFA500);
        color: #1a1a1a;
        border-color: #FFD700;
    }

    .mobile-featured-btn:active {
        filter: brightness(1.1);
    }

    /* 遮罩层 */
    .mobile-filter-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.65);
        z-index: 199;
        opacity: 0;
        transition: opacity .25s;
    }

    .mobile-filter-overlay.show {
        display: block;
        opacity: 1;
    }

    /* 抽屉面板 */
    .mobile-filter-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100vw;
        max-height: 78vh;
        background: #0f1117;
        border-radius: 16px 16px 0 0;
        border-top: 1px solid var(--bd);
        z-index: 200;
        transform: translateY(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility .28s;
        box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
    }

    .mobile-filter-drawer.show {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-filter-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px 10px;
        border-bottom: 1px solid var(--bd);
        font-size: 16px;
        font-weight: 600;
        color: var(--t1);
        flex-shrink: 0;
    }

    .mobile-filter-close {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: rgba(255,255,255,0.08);
        color: var(--t2);
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-filter-body {
        overflow-y: auto;
        padding: 12px 16px 80px;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-filter-section {
        margin-bottom: 16px;
    }

    .mobile-filter-section-title {
        font-size: 13px;
        color: var(--t3);
        margin-bottom: 10px;
        font-weight: 500;
    }

    .mobile-filter-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .mobile-filter-tags .filter-tag {
        padding: 7px 14px;
        border-radius: 6px;
        font-size: 14px;
        background: rgba(255,255,255,0.05);
        border: 1px solid var(--bd);
        color: var(--t2);
        flex-shrink: 0;
    }

    .mobile-filter-tags .filter-tag.active {
        background: rgba(10,108,255,0.9);
        color: #fff;
        border-color: transparent;
    }

    .mobile-filter-footer {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px 16px 16px;
        background: linear-gradient(to top, #0f1117 70%, transparent);
        border-top: 1px solid var(--bd);
        flex-shrink: 0;
    }

    .mobile-filter-confirm {
        width: 100%;
        padding: 12px 0;
        border-radius: 8px;
        border: none;
        background: var(--accent);
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
    }

    .mobile-filter-confirm:active {
        filter: brightness(1.1);
    }
}

/* 卡片 - 精品徽章和金边 */
.card-featured {
    border-color: rgba(255,215,0,0.35);
}

.card-featured:hover {
    border-color: #FFD700;
    box-shadow: 0 12px 32px rgba(255,215,0,0.15);
}

.badge-featured {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    z-index: 6;
    box-shadow: 0 2px 8px rgba(255,215,0,0.4);
    white-space: nowrap;
}

/* 详情页 - 精品徽章 */
.dt-featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

/* 后台 - 精品复选框 */
.form-group-featured {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0;
}

.featured-label {
    display: flex !important;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.featured-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #FFD700;
    cursor: pointer;
}

.featured-text {
    font-size: 13px;
    color: #FFD700;
    font-weight: 600;
    white-space: nowrap;
}

/* 后台列表 - 精品标记 */
.list-item-featured {
    border-color: rgba(255,215,0,0.25);
    background: linear-gradient(135deg, rgba(255,215,0,0.03), transparent);
}

.list-featured-star {
    font-size: 14px;
}

/* ============================================
   时间显示 & 改时间按钮
   ============================================ */
.list-time {
    font-size: 11px;
    color: var(--accent);
    background: rgba(79,195,247,0.1);
    padding: 1px 6px;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
}

.list-item-actions .btn-time {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

.list-item-actions .btn-time:hover {
    background: rgba(139,92,246,0.1);
}

/* ============================================
   修改时间 Modal
   ============================================ */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-box {
    background: var(--card);
    border: 1px solid var(--bd2);
    border-radius: var(--r3);
    padding: 24px;
    width: 340px;
    max-width: 90vw;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.modal-box h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: var(--t1);
}

.modal-hint {
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--t3);
    line-height: 1.5;
}

.time-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    font-size: 14px;
    border: 1px solid var(--bd2);
    border-radius: var(--r2);
    background: var(--bg);
    color: var(--t1);
}

.time-msg {
    min-height: 16px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--danger);
}

.time-msg.error {
    color: var(--danger);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.modal-actions button {
    flex: 1;
    padding: 9px 0;
    font-size: 14px;
    border-radius: var(--r2);
    cursor: pointer;
    border: 1px solid var(--bd2);
}

.modal-actions .btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.modal-actions .btn-cancel {
    background: var(--card);
    color: var(--t2);
}

/* ============================================
   详情页广告横幅（图片版）
   ============================================ */
.ad-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--bd);
    border-radius: var(--r);
}

.ad-img {
    width: 100%;
    height: auto;
    display: block;
}
