/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== 顶部导航 ===== */
.site-header {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-svg {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: transform 0.2s;
}
.logo-svg:hover { transform: rotate(10deg) scale(1.1); }
.site-title h1 a {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}
.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
}
.user-id { background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.user-nick { font-weight: 600; }
.user-coins { color: #ffd700; font-weight: 600; }

/* 按钮 */
.btn-login, .btn-register, .btn-logout, .btn-checkin-header, .btn-profile, .btn-admin {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-login { background: #fff; color: #e74c3c; }
.btn-login:hover { background: #fde8e8; }
.btn-register { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-register:hover { background: rgba(255,255,255,0.3); }
.btn-logout { background: rgba(0,0,0,0.2); color: #fff; }
.btn-checkin-header { background: #ffd700; color: #333; font-weight: 600; }
.btn-checkin-header:hover { background: #ffed4a; }
.btn-profile, .btn-admin { background: rgba(255,255,255,0.15); color: #fff; }
.btn-profile:hover, .btn-admin:hover { background: rgba(255,255,255,0.25); }

/* ===== 广告位 ===== */
.ad-banner-section {
    max-width: 1400px;
    margin: 15px auto;
    padding: 0 20px;
}
.ad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.ad-slot {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    aspect-ratio: 3/1;
}
.ad-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #aaa;
    font-size: 14px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #ddd;
    border-radius: 8px;
}

/* ===== 滚动广告 ===== */
.scroll-ad-section {
    max-width: 1400px;
    margin: 0 auto 15px;
    padding: 0 20px;
}
.scroll-ad-container {
    background: linear-gradient(90deg, #fff3e0, #fff8e1);
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.scroll-ad-label {
    background: #ff9800;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    white-space: nowrap;
}
.scroll-ad-track {
    display: flex;
    gap: 30px;
    animation: scrollAd 20s linear infinite;
    white-space: nowrap;
}
.scroll-ad-item {
    color: #e65100;
    font-size: 14px;
    transition: color 0.2s;
}
.scroll-ad-item:hover { color: #bf360c; text-decoration: underline; }
@keyframes scrollAd {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== 主内容布局 ===== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 30px;
}
.forum-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 260px;
    gap: 15px;
}

/* ===== 分区卡片 ===== */
.forum-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.section-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-header h2 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
.btn-publish {
    background: rgba(255,255,255,0.25);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    transition: background 0.2s;
}
.btn-publish:hover { background: rgba(255,255,255,0.4); }

.section-body {
    padding: 12px 16px;
    flex: 1;
}

/* ===== 帖子列表 ===== */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.post-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.post-item:last-child { border-bottom: none; }
.post-item:hover { background: #fafafa; }
.post-item.post-top { background: #fffbeb; }

.post-title {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.post-title:hover { color: #e74c3c; }

.post-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #999;
}
.tag-top {
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 4px;
    font-weight: 600;
}
.tag-announce {
    background: #3498db;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 4px;
    font-weight: 600;
}
.empty-hint {
    text-align: center;
    color: #bbb;
    padding: 30px 0;
    font-size: 14px;
}

/* ===== 数字地带按钮 ===== */
.digital-zone .section-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}
.digital-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px !important;
}
.digital-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.btn-game { background: #e8f5e9; color: #2e7d32; }
.btn-game:hover { background: #c8e6c9; }
.btn-badge { background: #fff3e0; color: #e65100; }
.btn-badge:hover { background: #ffe0b2; }
.btn-number { background: #e3f2fd; color: #1565c0; }
.btn-number:hover { background: #bbdefb; }
.btn-gift { background: #fce4ec; color: #c62828; }
.btn-gift:hover { background: #f8bbd0; }
.btn-recharge { background: #f3e5f5; color: #6a1b9a; }
.btn-recharge:hover { background: #e1bee7; }
.btn-contact { background: #e0f7fa; color: #00695c; }
.btn-contact:hover { background: #b2ebf2; }

/* ===== 认证页面 ===== */
.auth-page {
    max-width: 440px;
    margin: 40px auto;
    padding: 0 20px;
}
.auth-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.auth-card h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #e74c3c;
    font-size: 22px;
}
.login-type-toggle {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231,76,60,0.1);
}
.form-group textarea {
    resize: vertical;
    font-family: inherit;
}
.form-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}
.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}
.form-divider span {
    background: #fff;
    padding: 0 16px;
    color: #999;
    font-size: 13px;
    position: relative;
}
.form-info {
    background: #f0f8ff;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #1565c0;
    border-left: 3px solid #1565c0;
}
.btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(231,76,60,0.3); }
.btn-full { width: 100%; }
.auth-links {
    text-align: center;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.auth-links a {
    color: #e74c3c;
    font-size: 14px;
}
.auth-links a:hover { text-decoration: underline; }

/* ===== Flash 消息 ===== */
.flash-messages {
    max-width: 1400px;
    margin: 10px auto;
    padding: 0 20px;
}
.flash {
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}
.flash-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.flash-danger { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.flash-warning { background: #fff8e1; color: #f57f17; border: 1px solid #ffe082; }
.flash-info { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

/* ===== 打卡页面 ===== */
.checkin-page { max-width: 500px; margin: 30px auto; padding: 0 20px; }
.checkin-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-align: center;
}
.checkin-card h2 { color: #e74c3c; margin-bottom: 20px; }
.checkin-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
}
.stat-box { text-align: center; }
.stat-box .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #e74c3c;
}
.stat-box .stat-label {
    font-size: 14px;
    color: #999;
}
.btn-checkin-big {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    border: none;
    padding: 16px 48px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin: 10px 0;
}
.btn-checkin-big:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(255,152,0,0.3); }
.checkin-done p { color: #4caf50; font-size: 18px; font-weight: 600; }
.checkin-tip { color: #999; font-size: 14px; margin-top: 8px; }
.checkin-rules {
    text-align: left;
    margin-top: 24px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
}
.checkin-rules h3 { font-size: 14px; color: #666; margin-bottom: 8px; }
.checkin-rules li { font-size: 13px; color: #888; margin-left: 20px; list-style: disc; }

/* ===== 个人资料 ===== */
.profile-page { max-width: 800px; margin: 30px auto; padding: 0 20px; }
.profile-header {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 24px;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.profile-avatar { flex-shrink: 0; }
.profile-avatar img {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-default {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}
.profile-info h2 { font-size: 22px; color: #333; }
.profile-id { color: #999; font-size: 14px; }
.profile-sig { color: #666; font-size: 14px; margin: 4px 0 10px; }
.profile-stats { display: flex; gap: 16px; font-size: 13px; color: #888; }

.profile-sections { display: flex; flex-direction: column; gap: 16px; }
.profile-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.profile-section h3 { font-size: 16px; color: #333; margin-bottom: 16px; border-left: 3px solid #e74c3c; padding-left: 10px; }

.badge-wall, .gift-inventory {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.badge-item, .gift-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 14px;
}
.badge-icon, .gift-icon { font-size: 20px; }

/* ===== 帖子详情 ===== */
.post-detail-page { max-width: 800px; margin: 30px auto; padding: 0 20px; }
.post-detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.post-detail-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.post-detail-header h2 { font-size: 22px; }
.post-detail-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #999; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; margin-bottom: 20px; }
.post-detail-content { font-size: 15px; line-height: 1.8; color: #444; margin-bottom: 20px; white-space: pre-wrap; }
.post-contact { background: #f0f8ff; padding: 12px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.post-author-info { padding: 12px; background: #f9f9f9; border-radius: 8px; font-size: 13px; color: #888; margin-bottom: 20px; }
.btn-back {
    display: inline-block;
    padding: 8px 20px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    transition: background 0.2s;
}
.btn-back:hover { background: #e0e0e0; }

/* ===== 发帖页面 ===== */
.post-form-page { max-width: 700px; margin: 30px auto; padding: 0 20px; }
.post-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.post-form-card h2 { color: #e74c3c; margin-bottom: 20px; }

/* ===== 分类页面 ===== */
.category-page { max-width: 900px; margin: 30px auto; padding: 0 20px; }
.category-header {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 16px;
}
.category-header h2 { font-size: 20px; }
.category-header p { color: #999; font-size: 14px; flex: 1; }
.category-posts {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.post-list-full .post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.post-list-full .post-item:last-child { border-bottom: none; }

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.btn-page {
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}
.btn-page:hover { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.page-info { font-size: 14px; color: #999; }

/* ===== 子页面（数字地带等） ===== */
.sub-page { max-width: 900px; margin: 30px auto; padding: 0 20px; }
.sub-page-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.sub-page-card h2 { color: #e74c3c; margin-bottom: 8px; font-size: 22px; }
.page-desc { color: #999; font-size: 14px; margin-bottom: 20px; }
.login-hint { color: #e74c3c; font-size: 14px; }
.login-hint a { color: #e74c3c; text-decoration: underline; }

/* ===== 徽章网格 ===== */
.badge-grid, .gift-grid, .number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.badge-card, .gift-card, .number-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}
.badge-card:hover, .gift-card:hover, .number-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.badge-card.badge-owned { border-color: #4caf50; background: #f1f8e9; }
.badge-icon-large { font-size: 40px; margin-bottom: 8px; }
.badge-card h3, .gift-card h3 { font-size: 15px; margin-bottom: 4px; }
.badge-price, .gift-price { color: #e74c3c; font-weight: 600; font-size: 14px; margin: 8px 0; }
.gift-stock { font-size: 12px; color: #999; margin-bottom: 8px; }
.badge-status, .gift-status, .number-status { font-size: 12px; color: #999; }
.badge-status.owned, .number-status.owned { color: #4caf50; font-weight: 600; }

.number-display {
    font-size: 28px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}
.number-card.number-sold { opacity: 0.5; }

.gift-icon-large { font-size: 40px; margin-bottom: 8px; }
.gift-card.gift-soldout { opacity: 0.5; }

/* ===== 充值 ===== */
.recharge-info { margin: 20px 0; }
.balance-box {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}
.balance-box strong { font-size: 28px; }
.recharge-form { margin: 20px 0; }
.recharge-packages h3 { font-size: 16px; margin-bottom: 12px; color: #555; }
.package-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.package-btn {
    padding: 12px 24px;
    border: 2px solid #e74c3c;
    background: #fff;
    color: #e74c3c;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.package-btn:hover { background: #e74c3c; color: #fff; }

/* ===== 联系 ===== */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 10px;
}
.contact-icon { font-size: 28px; }
.contact-item strong { display: block; font-size: 15px; }
.contact-item p { font-size: 13px; color: #888; margin-top: 2px; }

/* ===== 游戏 ===== */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.game-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}
.game-card h3 { font-size: 16px; margin-bottom: 8px; }
.game-card p { font-size: 13px; color: #999; }

/* ===== 通用小按钮 ===== */
.btn-small {
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s;
}
.btn-small:hover { background: #f5f5f5; }
.btn-small.btn-danger { color: #e74c3c; border-color: #e74c3c; }
.btn-small.btn-danger:hover { background: #e74c3c; color: #fff; }

/* ===== 底部 ===== */
.site-footer {
    background: #2c3e50;
    padding: 24px 20px;
    margin-top: 40px;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}
.footer-quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}
.footer-btn {
    padding: 8px 18px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s;
}
.footer-btn:hover { background: rgba(255,255,255,0.2); }
.footer-info {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

/* ===== 后台管理 ===== */
.admin-body { background: #f0f2f5; }
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 220px;
    background: #2c3e50;
    padding: 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-logo h2 { color: #fff; font-size: 18px; }
.admin-logo p { color: rgba(255,255,255,0.5); font-size: 12px; }
.admin-nav { padding: 10px 0; }
.admin-nav-item {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: all 0.2s;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.admin-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 8px 0; }

.admin-main { flex: 1; padding: 0; }
.admin-header {
    background: #fff;
    padding: 12px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
}
.admin-user-info { font-size: 14px; color: #666; }

.admin-page { padding: 24px; }
.admin-page h2 { font-size: 20px; margin-bottom: 20px; color: #333; }
.admin-tip { font-size: 13px; color: #999; margin-bottom: 16px; }

.admin-form-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.admin-form-card h3 { font-size: 16px; margin-bottom: 12px; color: #555; }

.form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.form-row .form-group { flex: 1; min-width: 150px; }
.checkbox-group { display: flex; align-items: center; }

/* 管理表格 */
.admin-table {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-collapse: collapse;
}
.admin-table th {
    background: #f8f9fa;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
}
.admin-table td {
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}
.admin-table tr:hover td { background: #fafafa; }
.action-cell { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }

.tag-yes { color: #4caf50; font-weight: 600; }
.tag-no { color: #e74c3c; }
.number-highlight { font-family: 'Courier New', monospace; font-weight: 700; color: #e74c3c; font-size: 16px; }

/* 仪表盘 */
.admin-dashboard { padding: 24px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.stat-card .stat-icon { font-size: 36px; }
.stat-card .stat-info .stat-number { font-size: 28px; font-weight: 700; color: #e74c3c; }
.stat-card .stat-info .stat-label { font-size: 13px; color: #999; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .forum-layout {
        grid-template-columns: 1fr 1fr;
    }
    .ad-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .forum-layout { grid-template-columns: 1fr; }
    .header-container { flex-direction: column; gap: 10px; }
    .ad-grid { grid-template-columns: 1fr; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: static; }
    .form-row { flex-direction: column; }
    .footer-quick-links { justify-content: center; }
    .stats-grid { grid-template-columns: 1fr; }
}
