/* ========================================
   游戏发布站 - 主样式表
   浅色游戏主题，响应式设计
   ======================================== */

/* === CSS变量 === */
:root {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #eef2ff;
    --text-primary: #1e1e2e;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-orange: #f97316;
    --accent-orange-hover: #ea580c;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border-color: #e5e7eb;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* === 重置 & 基础 === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

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

/* === 滚动条 === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* === 头部导航 === */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 2px 12px rgba(99,102,241,0.06);
}



.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: -0.5px;
}
.logo:hover {
    color: var(--accent);
    transform: translateY(-1px);
}
.logo-icon {
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #6366f1, #f97316);
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(99,102,241,0.25);
}

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

.nav a {
    padding: 8px 18px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}
.nav a:hover {
    color: var(--accent);
    background: rgba(99,102,241,0.08);
}
.nav a.active {
    color: var(--accent);
    background: rgba(99,102,241,0.1);
    font-weight: 600;
}

/* 当前激活页底部指示条 */
.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 3px 3px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border: 1.5px solid transparent;
    border-radius: 24px;
    padding: 0 6px 0 16px;
    transition: all 0.3s ease;
    margin-left: 12px;
}
.search-box:focus-within {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}
.search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 8px 10px;
    font-size: 14px;
    width: 170px;
}
.search-box button {
    background: var(--accent-orange);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.search-box button:hover {
    background: var(--accent-orange-hover);
    transform: scale(1.05);
}

/* 移动端切换按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

/* === 主体内容 === */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    min-height: calc(100vh - 64px - 200px);
}

/* === 页面标题（全宽 Banner） === */
.page-header {
    margin: -24px calc(50% - 50vw) 32px calc(50% - 50vw);
    padding: 48px 24px 44px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #fef3c7 100%);
    border-bottom: 1px solid rgba(99,102,241,0.12);
    position: relative;
    overflow: hidden;
    text-align: center;
}
/* 装饰圆 */
.page-header::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(99,102,241,0.04);
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(99,102,241,0.03);
}
/* 底部波浪 */
.page-header .wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 30px;
    background: var(--bg-primary);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30'%3E%3Cpath d='M0,15 C200,0 400,30 600,15 C800,0 1000,30 1200,15 L1200,30 L0,30 Z' fill='black'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30'%3E%3Cpath d='M0,15 C200,0 400,30 600,15 C800,0 1000,30 1200,15 L1200,30 L0,30 Z' fill='black'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}
.page-header h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1e1e2e;
    position: relative;
    z-index: 1;
}
.page-header p {
    color: #6b7280;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* 内部板块全宽 Banner */
.section-banner {
    margin: 0 calc(50% - 50vw) 0 calc(50% - 50vw);
    padding: 28px 24px 26px;
    background: linear-gradient(135deg, #eef2ff 0%, #fef3c7 100%);
    border-top: 1px solid rgba(99,102,241,0.08);
    border-bottom: 1px solid rgba(99,102,241,0.12);
    text-align: center;
}
.section-banner h2 {
    font-size: 22px;
    font-weight: 800;
    color: #1e1e2e;
    margin-bottom: 6px;
}
.section-banner p {
    font-size: 14px;
    color: #6b7280;
}

/* === 分类导航 === */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.category-nav a,
.category-nav button {
    padding: 8px 18px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.category-nav a:hover,
.category-nav button:hover {
    background: rgba(108, 99, 255, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}
.category-nav a.active,
.category-nav button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* === 游戏卡片网格 === */
.games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.game-card-cover {
    position: relative;
    aspect-ratio: 16/8;
    overflow: hidden;
    background: var(--bg-secondary);
}
.game-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.game-card:hover .game-card-cover img {
    transform: scale(1.05);
}
.game-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    backdrop-filter: blur(4px);
}

.game-card-body {
    padding: 10px 14px 12px;
}
.game-card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.game-card-title a {
    color: var(--text-primary);
}
.game-card-title a:hover {
    color: var(--accent);
}
.game-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    line-height: 1.4;
}
.game-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}
.game-card-meta span { display: flex; align-items: center; gap: 4px; }

/* === 游戏详情页 === */
.game-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.game-detail-cover {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    aspect-ratio: 16/9;
}
.game-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-detail-info h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.game-meta-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}
.game-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.game-meta-item .label {
    font-size: 12px;
    color: var(--text-muted);
}
.game-meta-item .value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.game-download-area {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.download-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
    color: #fff;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}
.tag {
    padding: 4px 12px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--accent);
    border-radius: 12px;
    font-size: 12px;
}

.game-description {
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}
.game-description h2 {
    font-size: 20px;
    margin-bottom: 12px;
}
.game-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
}

/* 截图区 */
.screenshots {
    margin: 24px 0;
}
.screenshots h2 {
    font-size: 20px;
    margin-bottom: 16px;
}
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.screenshots-grid img {
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    aspect-ratio: 16/9;
    object-fit: cover;
}
.screenshots-grid img:hover {
    transform: scale(1.02);
    border-color: var(--accent);
}

/* 评论区域 */
.comments-section {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}
.comments-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
}
.comment-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: var(--transition);
}
.comment-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.comment-form input[type="text"] {
    width: 200px;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    margin-right: 10px;
}
.comment-form input[type="text"]:focus {
    border-color: var(--accent);
}
.comment-form .form-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}
.comment-form .btn {
    padding: 8px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.comment-form .btn:hover { background: var(--accent-hover); }

.comment-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}
.comment-item:last-child { border-bottom: none; }
.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.comment-author {
    font-weight: 600;
    font-size: 14px;
}
.comment-time {
    font-size: 12px;
    color: var(--text-muted);
}
.comment-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.comment-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 14px;
}

/* === 分页 === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 32px 0;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}
.page-link:hover {
    background: rgba(108, 99, 255, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}
.page-link.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.page-link.disabled:hover { background: var(--bg-card); border-color: var(--border-color); color: var(--text-secondary); }
.page-dots { color: var(--text-muted); padding: 0 4px; }

/* === 页脚 === */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 32px 20px;
    margin-top: 40px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}
.footer h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.footer p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.footer a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
}
.footer a:hover { color: var(--accent); }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

/* === 消息提示 === */
.msg {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.msg-success { background: rgba(76, 175, 80, 0.15); color: var(--success); border: 1px solid rgba(76, 175, 80, 0.3); }
.msg-error { background: rgba(244, 67, 54, 0.15); color: var(--danger); border: 1px solid rgba(244, 67, 54, 0.3); }
.msg-info { background: rgba(33, 150, 243, 0.15); color: #2196f3; border: 1px solid rgba(33, 150, 243, 0.3); }

/* === 空状态 === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-secondary); }
.empty-state p { font-size: 14px; }

/* === 首页 Hero 大横幅（浅色系） === */
.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 24px 56px;
    text-align: center;
    color: var(--text-primary);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, #f8faff 0%, #eef2ff 25%, #f5f3ff 50%, #fffbf5 75%, #f0fdf8 100%);
    z-index: 0;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: orbFloat 10s ease-in-out infinite;
}
.hero-orb-1 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, #c7d2fe, transparent 70%);
    top: -100px; left: -60px;
    animation-delay: 0s;
}
.hero-orb-2 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, #fed7aa, transparent 70%);
    bottom: -80px; right: -40px;
    animation-delay: 2.5s;
}
.hero-orb-3 {
    width: 220px; height: 220px;
    background: radial-gradient(circle, #bbf7d0, transparent 70%);
    top: 35%; left: 60%;
    transform: translate(-50%, -50%);
    animation-delay: 5s;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148,163,184,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: 1;
}
@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-14px) scale(1.01); }
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 30px;
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.1);
    font-size: 13px;
    color: #818cf8;
    margin-bottom: 20px;
}
.hero-badge strong {
    color: #f97316;
    font-size: 15px;
}
.hero-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.25;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #475569 0%, #818cf8 40%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 15px;
    color: #94a3b8;
    margin-bottom: 28px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 11px 26px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}
.hero-btn-primary {
    background: linear-gradient(135deg, #a5b4fc, #818cf8);
    color: #fff;
    box-shadow: 0 4px 16px rgba(129,140,248,0.2);
}
.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(129,140,248,0.28);
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: #fff;
}
.hero-btn-ghost {
    background: rgba(255,255,255,0.85);
    color: #64748b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.hero-btn-ghost:hover {
    background: #fff;
    color: #818cf8;
    border-color: rgba(129,140,248,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(129,140,248,0.08);
}
.hero-search {
    max-width: 500px;
    margin: 0 auto;
}
.hero-search-inner {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 4px 4px 4px 16px;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.hero-search-inner:focus-within {
    border-color: #c7d2fe;
    box-shadow: 0 0 0 4px rgba(129,140,248,0.08);
}
.hero-search-icon {
    flex-shrink: 0;
    color: #cbd5e1;
}
.hero-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 11px 10px;
    font-size: 14px;
}
.hero-search input::placeholder {
    color: #cbd5e1;
}
.hero-search button {
    padding: 9px 22px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #a5b4fc, #818cf8);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.hero-search button:hover {
    background: linear-gradient(135deg, #818cf8, #6366f1);
}

/* === 首页主体布局 === */
.home-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 40px;
}
.home-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* === 首页区域标题 + 筛选 === */
.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}
.home-section-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}
.home-filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.filter-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.filter-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* === 开服列表 === */
.launch-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.launch-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: visible;
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    padding: 10px 14px;
}

.launch-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
    background: var(--bg-card-hover);
}
.launch-expired { opacity: 0.5; }
.launch-expired:hover { opacity: 0.7; }
/* 第一行：标签 + 游戏名 */
.launch-row-1 {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 22px;
}
.launch-item .launch-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
    flex-shrink: 0;
}
.launch-item .launch-badge.badge-normal {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}
.launch-item .launch-badge.badge-sticky {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}
.launch-item .launch-badge.badge-premium {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
    color: #f59e0b;
}
.launch-item .launch-badge.badge-game-type {
    background: rgba(108, 99, 255, 0.1);
    color: var(--accent);
    cursor: pointer;
    transition: var(--transition);
}
.launch-item .launch-badge.badge-game-type:hover {
    background: var(--accent);
    color: #fff;
}
.launch-game-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.launch-type-icon-float {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 32px;
    height: 32px;
    z-index: 2;
    pointer-events: none;
}
.launch-type-icon-inline {
    vertical-align: middle;
    flex-shrink: 0;
}
.launch-type-icon-sticky {
    width: 22px;
    height: 14px;
}
.launch-type-icon-free {
    width: 14px;
    height: 12px;
}
/* 精品卡片：浅红背景 + 炫彩动态文字 */
.launch-premium {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}
.launch-premium:hover {
    background: rgba(245, 158, 11, 0.25) !important;
    border-color: rgba(245, 158, 11, 0.55) !important;
}
/* 精品炫彩渐变 + 扫光动画 — 用 @property 驱动色相旋转 */
@property --shine-hue {
    syntax: '<number>';
    initial-value: 0;
    inherits: false;
}
.launch-premium .launch-game-name,
.launch-premium .launch-server,
.launch-premium .launch-desc {
    position: relative !important;
    display: inline-block !important;
    --shine-hue: 0;
    background: linear-gradient(
        90deg,
        hsl(calc(var(--shine-hue)), 90%, 55%),
        hsl(calc(var(--shine-hue) + 60), 90%, 55%),
        hsl(calc(var(--shine-hue) + 120), 90%, 55%),
        hsl(calc(var(--shine-hue) + 180), 90%, 55%),
        hsl(calc(var(--shine-hue) + 240), 90%, 55%),
        hsl(calc(var(--shine-hue) + 300), 90%, 55%)
    ) !important;
    background-size: 200% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    animation: hueShift 3s linear infinite, sweepText 2.5s ease-in-out infinite !important;
}
.launch-premium .launch-server svg {
    -webkit-text-fill-color: unset !important;
    color: var(--text-muted) !important;
    background: none !important;
}
@keyframes hueShift {
    0%   { --shine-hue: 0; }
    100% { --shine-hue: 360; }
}
@keyframes sweepText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 置顶卡片：浅橙背景 + 红色文字 */
.launch-sticky {
    background: rgba(249, 115, 22, 0.12) !important;
    border-color: rgba(249, 115, 22, 0.35) !important;
}
.launch-sticky:hover {
    background: rgba(249, 115, 22, 0.2) !important;
    border-color: rgba(249, 115, 22, 0.5) !important;
}
.launch-sticky *:not(img):not(.launch-join-qq):not(.launch-badge):not(.badge-game-type):not(.badge-normal):not(.badge-sticky):not(.badge-premium):not(svg) {
    color: #dc2626 !important;
    -webkit-text-fill-color: unset !important;
    background: none !important;
}

/* 免费/新服卡片：浅蓝背景 + 文字颜色不变 */
.launch-normal {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}
.launch-normal:hover {
    background: rgba(59, 130, 246, 0.18) !important;
    border-color: rgba(59, 130, 246, 0.45) !important;
}
.launch-normal *:not(img) {
    color: inherit !important;
    -webkit-text-fill-color: unset !important;
    background: none !important;
}
/* 第二行：服务器 + 描述 */
.launch-row-2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    min-height: 20px;
}
.launch-server {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}
.launch-server svg {
    flex-shrink: 0;
    color: var(--text-muted);
}
.launch-desc {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
/* 右上角Q群按钮 */
.launch-join-qq {
    position: absolute;
    top: 8px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #12b7f5, #0d9de6);
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    z-index: 2;
}
.launch-join-qq:hover {
    background: linear-gradient(135deg, #0da8e0, #0a8fc7) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(18, 183, 245, 0.3);
}

/* === 首页空状态 === */
.home-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 2px dashed var(--border-color);
}
.home-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.home-empty h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.home-empty p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}
.btn-publish {
    display: inline-flex;
    align-items: center;
    padding: 10px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.btn-publish:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99,102,241,0.4);
    color: #fff;
}


/* === 响应式 === */
@media (max-width: 768px) {
    .header-inner { padding: 0 16px; }
    
    .menu-toggle { display: block; }
    
    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }
    .nav.open { display: flex; }
    .nav a { width: 100%; }
    
    .search-box { width: 100%; }
    .search-box input { width: 100%; }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .launch-list {
        grid-template-columns: 1fr;
    }
    
    .game-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-meta-list { grid-template-columns: 1fr 1fr; }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .page-header { padding: 36px 16px 40px; }
    .page-header h1 { font-size: 24px; }
    
    .game-detail-info h1 { font-size: 22px; }
    
    .screenshots-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .comment-form .form-row {
        flex-wrap: wrap;
    }
    .comment-form input[type="text"] {
        width: 100%;
        margin-right: 0;
    }

    /* 首页响应式 */
    .hero {
        padding: 50px 16px 40px;
        min-height: 320px;
    }
    .hero-title {
        font-size: 26px;
    }
    .hero-desc {
        font-size: 14px;
    }
    .hero-actions {
        gap: 8px;
    }
    .hero-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .hero-search-inner {
        border-radius: 12px;
    }
    .stats-bar-inner {
        flex-wrap: wrap;
        gap: 16px;
        padding: 16px;
    }
    .stats-bar-item {
        padding: 0 16px;
    }
    .stats-bar-num {
        font-size: 22px;
    }
    .stats-bar-icon {
        font-size: 24px;
    }
    .stats-bar-divider {
        display: none;
    }
    .home-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .game-card-body { padding: 8px 12px 10px; }
    .game-card-title { font-size: 13px; }
    .game-card-desc { display: none; }

    .hero-title { font-size: 22px; }
    .hero-badge { font-size: 12px; padding: 4px 12px; }
    .stats-bar-item { padding: 0 10px; }
    .stats-bar-num { font-size: 18px; }
    .stats-bar-label { font-size: 11px; }
    .stats-bar-icon { font-size: 20px; }
    .launch-list { grid-template-columns: 1fr; }
    .launch-item { border-radius: var(--radius-sm); }
    .filter-tab { padding: 5px 12px; font-size: 12px; }
}

/* === 后台样式 === */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 240px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    flex-shrink: 0;
}
.admin-sidebar .logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}
.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(108, 99, 255, 0.1);
    color: var(--accent);
}
.admin-main {
    flex: 1;
    padding: 24px;
    overflow-x: auto;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.admin-header h1 {
    font-size: 22px;
    font-weight: 700;
}

/* 后台统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
}
.stat-card .number {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}
.stat-card .label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 后台表格 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.admin-table th {
    background: var(--bg-secondary);
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}
.admin-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(108, 99, 255, 0.03); }

/* 后台按钮 */
.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}
.btn-edit { background: rgba(108, 99, 255, 0.15); color: var(--accent); }
.btn-edit:hover { background: rgba(108, 99, 255, 0.25); }
.btn-delete { background: rgba(244, 67, 54, 0.15); color: var(--danger); }
.btn-delete:hover { background: rgba(244, 67, 54, 0.25); }
.btn-approve { background: rgba(76, 175, 80, 0.15); color: var(--success); }
.btn-approve:hover { background: rgba(76, 175, 80, 0.25); }

/* 后台表单 */
.admin-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 800px;
}
.admin-form .form-group {
    margin-bottom: 18px;
}
.admin-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}
.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form input[type="number"],
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.admin-form textarea { min-height: 120px; resize: vertical; }
.admin-form .help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.form-actions .btn {
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.form-actions .btn-primary {
    background: var(--accent);
    color: #fff;
}
.form-actions .btn-primary:hover { background: var(--accent-hover); }
.form-actions .btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    text-decoration: none;
}
.form-actions .btn-secondary:hover { background: var(--border-color); }

/* === 登录/注册页面 === */
.auth-page {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}
.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 36px 40px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
}
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}
.auth-header h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}
.auth-header p {
    font-size: 14px;
    color: var(--text-muted);
}
.auth-form .form-group {
    margin-bottom: 18px;
}
.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}
.auth-form input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}
.auth-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: block;
}
.auth-form .btn-block {
    margin-top: 6px;
}
.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-muted);
}
.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}

/* === 用户中心（侧边栏布局） === */
.user-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}
.user-sidebar {
    width: 280px;
    flex-shrink: 0;
}
.user-sidebar-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.user-sidebar-card .user-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-orange));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.user-sidebar-info {
    flex: 1;
    min-width: 0;
}
.user-sidebar-info h1 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.user-sidebar-info .user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.user-sidebar-info .btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(244, 67, 54, 0.12);
    color: var(--danger);
    text-decoration: none;
    transition: var(--transition);
}
.user-sidebar-info .btn-logout:hover {
    background: var(--danger);
    color: #fff;
}
.user-sidebar-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
}
.user-sidebar-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}
.user-sidebar-section .announcement-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.user-sidebar-section .announcement-item:last-child {
    border-bottom: none;
}
.user-sidebar-section .announcement-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.user-sidebar-section .announcement-content {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.user-sidebar-section .announcement-time {
    font-size: 11px;
    color: var(--text-muted);
}
.user-main {
    flex: 1;
    min-width: 0;
}
.user-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
}
.user-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* === 订单状态徽标 === */
.order-status { display:inline-block; padding:2px 12px; border-radius:20px; font-size:12px; font-weight:600; }
.order-status.pending { background:rgba(245,158,11,0.12); color:#f59e0b; }
.order-status.completed, .order-status.paid { background:rgba(16,185,129,0.12); color:#10b981; }
.order-status.failed { background:rgba(239,68,68,0.12); color:#ef4444; }
.user-comment-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}
.user-comment-item:last-child {
    border-bottom: none;
}
.user-comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
}
.user-comment-game {
    font-weight: 600;
}
.user-comment-game a {
    color: var(--text-primary);
}
.user-comment-game a:hover {
    color: var(--accent);
}
.user-comment-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
}
.user-comment-time {
    color: var(--text-muted);
    margin-left: auto;
}
.user-comment-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === 用户中心公告 === */
.user-announcements {
    margin-bottom: 24px;
}
.announcement-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}
.announcement-item:last-child {
    border-bottom: none;
}
.announcement-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.announcement-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 4px;
}
.announcement-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* === 用户中心标签页 === */
.user-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.user-tab {
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition);
}
.user-tab:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.user-tab.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

/* === 开服信息表单 === */

/* --- 外层卡片 --- */
.launch-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05), 0 0 0 1px rgba(99,102,241,0.03);
    position: relative;
    overflow: hidden;
}
.launch-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-orange), #8b5cf6);
    border-radius: 14px 14px 0 0;
}

/* --- 卡片头部 --- */
.launch-form-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}
.launch-form-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-glow), rgba(139,92,246,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.launch-form-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.launch-form-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

/* --- 表单主体 --- */
.launch-form {
    max-width: 100%;
}
.launch-form .form-group {
    margin-bottom: 18px;
}
.launch-form label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.launch-form .required {
    color: #ef4444;
    font-weight: 700;
    margin-left: 2px;
}

/* --- 输入组 (图标+输入框) --- */
.launch-form .input-group {
    position: relative;
    display: flex;
    align-items: stretch;
}
.launch-form .input-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    z-index: 1;
    pointer-events: none;
    transition: transform 0.25s ease, color 0.25s ease;
}
.launch-form .input-icon-textarea {
    align-items: flex-start;
    padding-top: 14px;
}
.launch-form input[type="text"],
.launch-form textarea,
.launch-form select {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}
.launch-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.launch-form select:focus {
    border-color: var(--accent);
    background-color: #fff;
    box-shadow: 0 0 0 4px var(--accent-glow), 0 2px 12px rgba(99,102,241,0.08);
}
.launch-form input[type="text"]::placeholder,
.launch-form textarea::placeholder {
    color: #b0b4c0;
    font-weight: 400;
}
.launch-form input[type="text"]:hover,
.launch-form textarea:hover,
.launch-form select:hover {
    border-color: #c5c9d6;
    background-color: linear-gradient(135deg, #fbfcff 0%, #f7f9fc 100%);
}
.launch-form input[type="text"]:focus,
.launch-form textarea:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px var(--accent-glow), 0 2px 12px rgba(99,102,241,0.08);
}
.launch-form input[type="text"]:focus ~ .input-icon,
.launch-form textarea:focus ~ .input-icon,
.launch-form select:focus ~ .input-icon {
    transform: scale(1.1);
    color: var(--accent);
}
.launch-form textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

/* --- 双列布局 --- */
.launch-form-row {
    display: flex;
    gap: 14px;
}
.launch-form-row .form-group {
    flex: 1;
    min-width: 0;
}

/* --- 发布类型选择 --- */
.launch-type-selector {
    display: flex;
    gap: 10px;
}
.launch-type-option {
    flex: 1;
    cursor: pointer;
    padding: 12px 8px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.25s ease;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    overflow: hidden;
}
.launch-type-option::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    opacity: 0;
    box-shadow: 0 0 0 0 var(--accent-glow);
    transition: all 0.3s ease;
}
.launch-type-option:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99,102,241,0.12);
}
.launch-type-option.selected {
    border-color: var(--accent);
    background: var(--accent-glow);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 4px 16px rgba(99,102,241,0.12);
    transform: translateY(-2px);
}
.launch-type-option.selected::after {
    opacity: 1;
    box-shadow: 0 0 20px 2px var(--accent-glow);
}
.launch-type-option input[type="radio"] {
    display: none;
}
.launch-type-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 2px;
}
.launch-type-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}
.launch-type-desc {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 1px;
    white-space: nowrap;
}
.launch-type-price {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: middle;
}

/* --- 提交按钮 --- */
.form-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}
.launch-form .btn-submit,
.launch-form .btn-submit:link,
.launch-form .btn-submit:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 48px;
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99,102,241,0.30), 0 2px 8px rgba(99,102,241,0.15);
    letter-spacing: 0.5px;
    text-decoration: none;
}
.launch-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99,102,241,0.40), 0 3px 12px rgba(99,102,241,0.20);
    background: linear-gradient(135deg, #7c3aed 0%, var(--accent) 100%);
}
.launch-form .btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}

/* === 开服记录列表 === */
.launch-record-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}
.launch-record-item:last-child {
    border-bottom: none;
}
.launch-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}
.launch-record-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.launch-record-game {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}
.launch-record-server {
    font-size: 14px;
    color: var(--text-secondary);
}
.launch-record-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.launch-record-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 4px;
}
.launch-record-footer {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}
.launch-record-contacts {
    color: var(--text-secondary);
}
.launch-record-time {
    margin-left: auto;
}
.launch-record-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}
.btn-action.btn-edit {
    background: rgba(108, 99, 255, 0.12);
    color: var(--accent);
}
.btn-action.btn-edit:hover {
    background: rgba(108, 99, 255, 0.22);
    transform: translateY(-1px);
}
.btn-action.btn-renew {
    background: rgba(0, 200, 83, 0.12);
    color: #00c853;
}
.btn-action.btn-renew:hover {
    background: rgba(0, 200, 83, 0.22);
    transform: translateY(-1px);
}
.btn-action.btn-renew-disabled {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: not-allowed;
    background: rgba(158, 158, 158, 0.1);
    color: var(--text-muted);
    opacity: 0.7;
}
.btn-action.btn-delete {
    background: rgba(244, 67, 54, 0.12);
    color: var(--danger);
}
.btn-action.btn-delete:hover {
    background: rgba(244, 67, 54, 0.22);
    transform: translateY(-1px);
}
/* 编辑表单内联样式 */
.launch-record-edit {
    padding: 16px;
    background: rgba(108, 99, 255, 0.04);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 8px;
}
.launch-record-edit .launch-edit-form {
    margin: 0;
}
.launch-record-edit .edit-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}
.launch-record-edit .edit-form-row .form-group {
    flex: 1;
}
.launch-record-edit .form-group {
    margin-bottom: 12px;
}
.launch-record-edit .form-group:last-child {
    margin-bottom: 0;
}
.launch-record-edit label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.launch-record-edit input[type="text"],
.launch-record-edit textarea,
.launch-record-edit select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}
.launch-record-edit select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.launch-record-edit input[type="text"]:focus,
.launch-record-edit textarea:focus,
.launch-record-edit select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}
.launch-record-edit textarea {
    resize: vertical;
    min-height: 60px;
}
.launch-record-edit .launch-type-selector {
    display: flex;
    gap: 6px;
}
.launch-record-edit .launch-type-option {
    padding: 6px 12px;
    font-size: 12px;
}
.launch-record-edit .edit-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: flex-end;
}
.launch-record-edit .btn-cancel {
    background: rgba(0,0,0,0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.launch-record-edit .btn-cancel:hover {
    background: rgba(0,0,0,0.1);
}
.launch-record-edit .btn-submit {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s;
}

/* === 徽章（后台通用） === */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-free {
    background: rgba(108, 99, 255, 0.1);
    color: var(--accent);
}
.badge-sticky {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}
.badge-premium {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
    color: #f59e0b;
}
.badge-game-type {
    background: rgba(139,92,246,0.1);
    color: #8b5cf6;
}
.badge-success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
}
.badge-warning {
    background: rgba(255, 152, 0, 0.12);
    color: var(--warning);
}
.badge-danger {
    background: rgba(244, 67, 54, 0.1);
    color: var(--danger);
}

/* === Q群链接检测按钮 === */
.btn-check-qq {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
    height: 40px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    margin-left: -2px;
}
.btn-check-qq:hover {
    background: var(--accent-hover);
}
.btn-check-qq:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.qq-check-result {
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.5;
}
.input-group:has(.btn-check-qq) input {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

@media (max-width: 768px) {
    .auth-box {
        padding: 24px 20px;
    }
    .user-layout {
        flex-direction: column;
    }
    .user-sidebar {
        width: 100%;
    }
    .user-tabs {
        overflow-x: auto;
        gap: 4px;
    }
    .user-tab {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
    .launch-form-row {
        flex-direction: column;
    }
    .launch-type-selector {
        flex-wrap: wrap;
    }
}

/* === 后台响应式 === */
.admin-menu-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.admin-menu-toggle:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.admin-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 150;
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    .admin-menu-toggle {
        display: flex;
    }
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 240px;
        height: 100vh;
        z-index: 160;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: none;
    }
    .admin-sidebar.open {
        left: 0;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    }
    .admin-overlay.show {
        display: block;
    }
    .admin-main {
        padding: 16px;
        padding-top: 60px;
        min-width: 0;
        overflow-x: auto;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .admin-header h1 {
        font-size: 18px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-card {
        padding: 14px;
    }
    .stat-card .number {
        font-size: 22px;
    }
    .admin-table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
    }
    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
        white-space: nowrap;
    }
    .admin-form {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .launch-list { grid-template-columns: 1fr; }
    .launch-game-name { font-size: 15px; }
}
