/* ============================================
   筑梦社区 - Aurora 极光玻璃态
   ============================================ */

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

:root {
    --bg-1: #0a0e1a;
    --bg-2: #0d1324;
    --bg-3: #111a2f;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-strong: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #f1f5f9;
    --text-dim: #cbd5e1;
    --text-muted: #94a3b8;
    --purple: #8b5cf6;
    --blue: #6366f1;
    --cyan: #22d3ee;
    --teal: #14b8a6;
    --pink: #ec4899;
    --accent-gold: #fbbf24;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --grad-aurora: linear-gradient(135deg, #8b5cf6 0%, #6366f1 40%, #22d3ee 80%, #14b8a6 100%);
    --grad-aurora-v: linear-gradient(180deg, #8b5cf6 0%, #6366f1 50%, #22d3ee 100%);
    --grad-aurora-r: radial-gradient(ellipse at center, rgba(139,92,246,.25) 0%, rgba(34,211,238,.15) 50%, transparent 80%);
    --glow-purple: 0 0 32px rgba(139, 92, 246, 0.35);
    --glow-cyan: 0 0 32px rgba(34, 211, 238, 0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --hero-bg-image: url(../images/hero-bg.jpg);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
    background: var(--bg-1);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 极光背景层 */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 600px; height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}
body::before {
    background: radial-gradient(circle, #8b5cf6, transparent 70%);
    top: -200px; left: -150px;
    animation: drift1 20s ease-in-out infinite alternate;
}
body::after {
    background: radial-gradient(circle, #22d3ee, transparent 70%);
    bottom: -200px; right: -150px;
    animation: drift2 25s ease-in-out infinite alternate;
}
@keyframes drift1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(100px, 80px) scale(1.2); } }
@keyframes drift2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-120px, -60px) scale(1.15); } }

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: #67e8f9; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== 导航 - 玻璃态 ===== */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(13, 19, 36, 0.6);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }

.logo { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: 0.5px; }
.logo img { width: 36px; height: 36px; border-radius: 8px; filter: drop-shadow(0 0 12px rgba(139,92,246,.5)); }
.logo-text {
    background: var(--grad-aurora);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    position: relative;
}
.logo-text::after {
    content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 60%;
    background: var(--grad-aurora); border-radius: 2px;
}

.nav-links { display: flex; gap: 4px; }
.nav-link {
    padding: 9px 18px; border-radius: 100px;
    color: var(--text-dim); font-weight: 500; font-size: 14px;
    transition: all .25s;
}
.nav-link:hover {
    background: var(--glass-strong); color: var(--text);
    box-shadow: inset 0 0 0 1px var(--glass-border);
}

.nav-cta {
    background: var(--grad-aurora); color: white !important;
    padding: 9px 22px !important; font-weight: 700 !important;
    box-shadow: 0 4px 20px rgba(139,92,246,.4), inset 0 1px 0 rgba(255,255,255,.2);
    transition: transform .2s, box-shadow .2s !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(139,92,246,.55); color: white !important; }
.nav-outline {
    border: 1px solid var(--glass-border); color: var(--text-dim); padding: 8px 18px;
    border-radius: 100px; font-weight: 500; font-size: 14px;
    transition: all .25s; background: var(--glass);
}
.nav-outline:hover { border-color: var(--purple); color: var(--text); background: var(--glass-strong); }

/* 用户菜单 */
.user-menu { position: relative; }
.user-avatar {
    display: flex; align-items: center; gap: 10px;
    background: var(--glass); border: 1px solid var(--glass-border);
    padding: 6px 14px 6px 6px; border-radius: 100px; color: var(--text);
    cursor: pointer; font-size: 14px; transition: all .25s;
    backdrop-filter: blur(10px);
}
.user-avatar:hover { border-color: var(--purple); box-shadow: var(--glow-purple); }
.user-avatar img, .avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.avatar-placeholder {
    background: var(--grad-aurora);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 13px;
}
.username { font-weight: 600; }

.dropdown {
    position: absolute; top: calc(100% + 12px); right: 0;
    background: rgba(17, 26, 47, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    min-width: 200px; display: none; overflow: hidden;
    box-shadow: 0 20px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04);
    animation: glassIn .2s ease-out;
}
@keyframes glassIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.dropdown.show { display: block; }
.dropdown a { display: block; padding: 13px 18px; color: var(--text-dim); font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.04); }
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: rgba(139,92,246,.12); color: var(--text); }
.dropdown-admin { color: var(--accent-gold) !important; font-weight: 600; }

/* 服务器条 */
.server-bar {
    background: rgba(13, 19, 36, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border); padding: 10px 0;
}
.server-bar .container { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px var(--success);
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--success); } 50% { opacity: .5; box-shadow: 0 0 4px var(--success); } }
.server-label { color: var(--text-muted); }
.server-ip {
    background: rgba(17,26,47,.6); padding: 5px 14px; border-radius: 100px;
    border: 1px solid var(--glass-border); font-family: "JetBrains Mono", Consolas, monospace;
    cursor: pointer; color: var(--cyan); font-size: 13px;
    transition: all .2s;
}
.server-ip:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.copy-hint { color: var(--text-muted); font-size: 12px; }

/* ===== 主内容 ===== */
.main-content { padding: 32px 24px 80px; position: relative; z-index: 1; }

/* 玻璃卡片 */
.card {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 26px; margin-bottom: 22px;
    transition: all .3s;
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: var(--grad-aurora); opacity: .5;
}
.card:hover { border-color: rgba(139,92,246,.25); transform: translateY(-2px); }

.card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px; padding-bottom: 14px;
    border-bottom: 1px solid var(--glass-border);
}
.card-header h2 { font-size: 18px; font-weight: 700; background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.more-link { font-size: 13px; color: var(--text-muted); }
.more-link:hover { color: var(--cyan); }

/* ===== Hero ===== */
.hero {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    padding: 90px 24px; text-align: center; margin-bottom: 32px;
    background-image:
        linear-gradient(135deg, rgba(10,14,26,.75), rgba(13,19,36,.85)),
        var(--hero-bg-image); /* 可自定义的英雄区域背景图片 */
    background-size: cover; background-position: center;
    border: 1px solid var(--glass-border);
    animation: heroFloat 20s ease-in-out infinite;
}
@keyframes heroFloat { 0%, 100% { background-position: center; } 50% { background-position: 52% 48%; } }

.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(139,92,246,.15), transparent 60%);
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
    font-size: 64px; font-weight: 900; margin-bottom: 14px; color: white;
    text-shadow: 0 0 40px rgba(139,92,246,.5), 0 4px 20px rgba(0,0,0,.5);
    letter-spacing: 4px;
    background: linear-gradient(180deg, #ffffff 0%, #c4b5fd 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.hero-subtitle { font-size: 18px; color: rgba(255,255,255,.85); margin-bottom: 32px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.hero-actions { display: flex; gap: 14px; justify-content: center; }

/* ===== 统计 ===== */
.stats-bar {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 22px; margin-bottom: 32px;
    display: flex; justify-content: space-around;
}
.stat-item { text-align: center; }
.stat-num { font-size: 30px; font-weight: 800; background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ===== 首页网格 ===== */
.home-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
@media (max-width: 820px) { .home-grid { grid-template-columns: 1fr; } }

/* 帖子 */
.post-list { display: flex; flex-direction: column; }
.post-item {
    padding: 16px 14px; border-radius: var(--radius-sm); margin-bottom: 6px;
    border: 1px solid transparent; transition: all .2s;
}
.post-item:hover { background: rgba(139,92,246,.06); border-color: rgba(139,92,246,.2); }
.post-item.pinned { background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(236,72,153,.05)); border-color: rgba(245,158,11,.3); }
.post-title { font-size: 15px; font-weight: 600; color: var(--text); display: block; margin-bottom: 8px; }
.post-title:hover { color: var(--cyan); }
.post-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; align-items: center; }
.post-category {
    background: rgba(139,92,246,.18); padding: 3px 12px; border-radius: 100px;
    color: #c4b5fd; font-size: 11px; font-weight: 600;
}
.post-author { display: flex; align-items: center; gap: 5px; }
.mini-avatar { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; }
.pin-tag { background: linear-gradient(135deg, #f59e0b, #ec4899); color: white; padding: 2px 10px; border-radius: 100px; font-size: 11px; font-weight: 800; margin-right: 8px; box-shadow: 0 2px 8px rgba(245,158,11,.3); }

/* 分类 */
.category-list { display: flex; flex-direction: column; gap: 8px; }
.category-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px; border-radius: var(--radius-sm);
    background: var(--glass); border: 1px solid var(--glass-border);
    transition: all .25s;
}
.category-item:hover { background: rgba(139,92,246,.1); border-color: rgba(139,92,246,.3); transform: translateX(4px); box-shadow: var(--glow-purple); }
.cat-icon { font-size: 24px; }
.cat-info { display: flex; flex-direction: column; }
.cat-name { font-weight: 600; color: var(--text); font-size: 14px; }
.cat-desc { font-size: 12px; color: var(--text-muted); }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 11px 24px; border: none; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: all .25s; text-decoration: none; letter-spacing: 0.5px;
}
.btn-primary {
    background: var(--grad-aurora); color: white;
    box-shadow: 0 4px 16px rgba(139,92,246,.4), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(139,92,246,.55); color: white; }
.btn-outline {
    background: var(--glass); color: var(--text-dim);
    border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
}
.btn-outline:hover { background: var(--glass-strong); color: var(--text); border-color: var(--purple); box-shadow: var(--glow-purple); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; box-shadow: 0 4px 14px rgba(239,68,68,.35); }
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(239,68,68,.5); }
.btn-small { padding: 5px 12px; font-size: 12px; }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 15px 36px; font-size: 16px; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 14px; color: var(--text-dim); }
.required { color: var(--danger); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%; padding: 12px 16px;
    background: rgba(13,19,36,.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text); font-size: 14px; font-family: inherit;
    transition: all .25s;
    backdrop-filter: blur(10px);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139,92,246,.2); background: rgba(17,26,47,.7);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-hint { display: block; margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.form-actions { display: flex; gap: 12px; }

/* ===== 认证页 ===== */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 280px); padding: 20px; }
.auth-card {
    background: var(--glass); backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    padding: 48px 40px; width: 100%; max-width: 440px;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
    position: relative; overflow: hidden;
}
.auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-aurora); }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-icon { font-size: 52px; margin-bottom: 10px; }
.auth-header h1 { font-size: 24px; margin-bottom: 4px; font-weight: 800; }
.auth-header p { color: var(--text-muted); font-size: 14px; }
.auth-form .btn { margin-top: 12px; }
.auth-footer { text-align: center; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--glass-border); font-size: 14px; color: var(--text-muted); }

/* ===== 提示框 ===== */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; border-left: 4px solid; font-size: 14px; }
.alert-error { background: rgba(239,68,68,.1); border-color: var(--danger); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,.1); border-color: var(--success); color: #6ee7b7; }
.alert-info { background: rgba(99,102,241,.12); border-color: var(--blue); color: #a5b4fc; }

/* ===== 论坛 ===== */
.forum-page .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.forum-page .page-header h1 { font-size: 26px; font-weight: 800; background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }

.search-form { display: flex; gap: 10px; margin-bottom: 14px; }
.search-form input, .search-form select {
    flex: 1; padding: 11px 14px; background: rgba(13,19,36,.6);
    border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
    color: var(--text); font-size: 14px;
}
.search-form input:focus, .search-form select:focus { outline: none; border-color: var(--purple); }
.search-form select { flex: 0 0 auto; }

.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { padding: 8px 18px; background: rgba(13,19,36,.5); border-radius: 100px; color: var(--text-muted); font-size: 13px; border: 1px solid var(--glass-border); transition: all .25s; cursor: pointer; text-decoration: none; }
.tab.active { background: var(--grad-aurora); border-color: transparent; color: white; font-weight: 600; box-shadow: 0 4px 14px rgba(139,92,246,.35); }
.tab:hover { color: var(--text); border-color: var(--purple); }

/* 论坛表格 */
.forum-table { display: flex; flex-direction: column; }
.forum-thead, .forum-row {
    display: grid; grid-template-columns: 2fr 1fr 1fr 0.6fr 0.6fr 1fr; gap: 10px;
    padding: 14px; align-items: center;
}
.forum-thead { background: rgba(13,19,36,.5); font-size: 12px; color: var(--text-muted); font-weight: 600; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.forum-row { border-bottom: 1px solid var(--glass-border); font-size: 14px; transition: all .2s; }
.forum-row:hover { background: rgba(139,92,246,.05); }
.forum-row.pinned { background: linear-gradient(90deg, rgba(245,158,11,.08), transparent); }
.col-title a { color: var(--text); font-weight: 500; }
.col-title a:hover { color: var(--cyan); }
.col-author { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.col-num, .col-time { font-size: 13px; color: var(--text-muted); }

@media (max-width: 820px) {
    .forum-thead { display: none; }
    .forum-row { grid-template-columns: 1fr; gap: 4px; }
}

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.page-btn { padding: 9px 16px; background: rgba(13,19,36,.6); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); color: var(--text-dim); font-size: 14px; text-decoration: none; }
.page-btn.active { background: var(--grad-aurora); border-color: transparent; color: white; font-weight: 600; box-shadow: 0 4px 14px rgba(139,92,246,.35); }
.page-btn:hover { border-color: var(--purple); color: var(--text); }
.page-info { padding: 9px 14px; color: var(--text-muted); font-size: 13px; }

/* ===== 帖子详情 ===== */
.post-detail { margin-bottom: 22px; }
.post-header { border-bottom: 1px solid var(--glass-border); padding-bottom: 20px; margin-bottom: 24px; }
.post-title-lg { font-size: 28px; margin-bottom: 14px; line-height: 1.3; font-weight: 800; }
.post-content { font-size: 16px; line-height: 2; word-wrap: break-word; color: var(--text); }
.post-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 28px 0; }
.post-image img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--glass-border); transition: transform .25s, box-shadow .25s; }
.post-image img:hover { transform: scale(1.03); box-shadow: var(--glow-purple); }
.post-actions { display: flex; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--glass-border); flex-wrap: wrap; }
.like-form { display: inline; }
.lock-tag { color: var(--warning); font-size: 12px; }

/* 评论 */
.comments-section h2 { margin-bottom: 20px; font-size: 19px; font-weight: 800; background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.comment-form { margin-bottom: 24px; }
.comment-form textarea { width: 100%; padding: 14px; background: rgba(13,19,36,.6); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); color: var(--text); font-size: 14px; margin-bottom: 12px; resize: vertical; font-family: inherit; min-height: 90px; }
.comment-form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139,92,246,.2); }
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-item { display: flex; gap: 14px; padding: 16px; background: rgba(13,19,36,.5); border-radius: var(--radius-sm); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); }
.comment-avatar img, .comment-avatar .avatar-placeholder { width: 42px; height: 42px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; gap: 12px; margin-bottom: 6px; align-items: center; }
.comment-author { font-weight: 700; color: var(--cyan); }
.comment-time { font-size: 12px; color: var(--text-muted); }
.comment-content { font-size: 14px; word-wrap: break-word; color: var(--text-dim); line-height: 1.7; }

/* ===== 个人资料 ===== */
.profile-header {
    display: flex; gap: 28px; align-items: center; margin-bottom: 28px; padding: 32px;
    background: var(--glass); backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
}
.profile-avatar img, .profile-avatar .avatar-placeholder {
    width: 110px; height: 110px; border-radius: var(--radius-sm); object-fit: cover;
    border: 3px solid #8b5cf6; box-shadow: var(--glow-purple);
}
.profile-avatar .avatar-placeholder { display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 900; background: var(--grad-aurora); color: white; }
.profile-info h1 { font-size: 28px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-weight: 800; }
.mc-id { color: var(--cyan); margin-bottom: 8px; font-size: 14px; }
.profile-bio { color: var(--text-dim); margin-bottom: 12px; font-size: 14px; }
.profile-stats { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.section-title { margin: 28px 0 14px; font-size: 22px; font-weight: 800; }
.avatar-preview { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; margin-bottom: 10px; display: block; border: 2px solid var(--glass-border); }

/* ===== 发帖/编辑 ===== */
.post-edit-page h1 { margin-bottom: 22px; font-size: 22px; font-weight: 800; background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.image-preview { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.image-preview img { width: 110px; height: 110px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--glass-border); }
.existing-images { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.existing-image { position: relative; cursor: pointer; }
.existing-image img { width: 130px; height: 130px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--glass-border); }
.existing-image input { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; cursor: pointer; }
.delete-overlay { position: absolute; inset: 0; background: rgba(239,68,68,.88); display: none; align-items: center; justify-content: center; color: white; font-weight: 700; border-radius: var(--radius-sm); font-size: 13px; }
.existing-image input:checked ~ img { opacity: .4; }
.existing-image input:checked ~ .delete-overlay { display: flex; }

/* ===== 角色徽章 ===== */
.role-badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 800; vertical-align: middle; }
.role-admin { background: linear-gradient(135deg, #f59e0b, #ec4899); color: white; box-shadow: 0 2px 8px rgba(245,158,11,.35); }
.role-mod { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; box-shadow: 0 2px 8px rgba(99,102,241,.35); }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.06); color: var(--text-muted); }
.status-active { background: rgba(16,185,129,.18); color: var(--success); }
.status-banned { background: rgba(239,68,68,.18); color: var(--danger); }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 56px 20px; color: var(--text-muted); font-size: 14px; }

/* ===== 管理后台 ===== */
.admin-page { display: grid; grid-template-columns: 230px 1fr; gap: 22px; }
@media (max-width: 820px) { .admin-page { grid-template-columns: 1fr; } }

.admin-sidebar {
    background: var(--glass); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    padding: 18px; height: fit-content; position: sticky; top: 90px;
}
.sidebar-title { font-size: 16px; font-weight: 800; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--glass-border); background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-link { padding: 11px 16px; border-radius: var(--radius-sm); color: var(--text-dim); font-size: 14px; transition: all .2s; }
.sidebar-link:hover { background: rgba(139,92,246,.12); color: var(--text); }
.sidebar-link.active { background: var(--grad-aurora); color: white; font-weight: 700; box-shadow: 0 4px 14px rgba(139,92,246,.35); }
.sidebar-back { display: block; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--glass-border); font-size: 13px; color: var(--text-muted); }

.admin-content { min-width: 0; }
.admin-content > h1 { margin-bottom: 22px; font-size: 22px; font-weight: 800; background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card {
    background: var(--glass); backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    padding: 20px; display: flex; align-items: center; gap: 14px; position: relative;
}
.stat-icon { font-size: 34px; }
.stat-num { font-size: 26px; font-weight: 800; background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 12px; color: var(--text-muted); }
.stat-trend { position: absolute; top: 10px; right: 14px; font-size: 11px; color: var(--success); font-weight: 600; }

.admin-panels { display: grid; gap: 22px; }

.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--glass-border); }
.admin-table th { background: rgba(13,19,36,.6); font-weight: 600; color: var(--text-muted); font-size: 13px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: rgba(139,92,246,.04); }
.admin-table select { padding: 5px 10px; background: rgba(13,19,36,.6); border: 1px solid var(--glass-border); border-radius: 6px; color: var(--text); font-size: 13px; }
.admin-table select:focus { outline: none; border-color: var(--purple); }
.action-cell { display: flex; gap: 4px; flex-wrap: wrap; }

/* ===== 页脚 ===== */
.mc-footer { background: rgba(13,19,36,.7); border-top: 1px solid var(--glass-border); margin-top: 48px; padding: 36px 0 0; backdrop-filter: blur(16px); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 22px; padding-bottom: 22px; }
.footer-info { flex: 1; min-width: 280px; /* 确保在小屏幕下有足够宽度 */ max-width: 60%; /* 限制宽度，防止占据过多空间 */ }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; /* 允许链接换行 */ }

@media (max-width: 600px) { /* 针对小屏幕设备的调整 */
    .footer-info { max-width: 100%; margin-bottom: 20px; /* 在换行时增加底部间距 */ }
    .footer-links { justify-content: center; width: 100%; }
}

.footer-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-desc { color: var(--text-muted); font-size: 14px; }
.footer-bottom { text-align: center; padding: 18px; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 13px; }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,.3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,.5); }

/* ===== 响应式 ===== */
@media (max-width: 820px) {
    .nav-links { display: none; }
    .nav-inner { height: auto; padding: 12px 0; flex-wrap: wrap; }
    .hero { padding: 60px 20px; }
    .hero-title { font-size: 40px; letter-spacing: 2px; }
    .profile-header { flex-direction: column; text-align: center; padding: 24px; }
    .profile-stats { justify-content: center; }
    .stats-bar { flex-wrap: wrap; gap: 16px; }
}

/* ============================================
   公会称号徽章
   ============================================ */
.title-badge {
    display: inline-block; padding: 2px 10px; border-radius: 100px;
    font-size: 11px; font-weight: 700; vertical-align: middle; margin-left: 6px;
}
.title-leader { background: linear-gradient(135deg, #f59e0b, #ef4444); color: white; box-shadow: 0 2px 8px rgba(245,158,11,.35); }
.title-vice { background: linear-gradient(135deg, #8b5cf6, #ec4899); color: white; box-shadow: 0 2px 8px rgba(139,92,246,.35); }
.title-elite { background: linear-gradient(135deg, #22d3ee, #14b8a6); color: white; box-shadow: 0 2px 8px rgba(34,211,238,.35); }
.title-member { background: rgba(148,163,184,.2); color: var(--text-dim); }
.title-diplomat { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; box-shadow: 0 2px 8px rgba(99,102,241,.35); }

/* ============================================
   弹窗公告
   ============================================ */
.popup-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.6);
    backdrop-filter: blur(8px); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
}
.popup-overlay.show { opacity: 1; }
.popup-box {
    background: var(--bg-2); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 40px; max-width: 500px; width: 90%;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
    transform: scale(.9); transition: transform .3s; position: relative;
}
.popup-overlay.show .popup-box { transform: scale(1); }
.popup-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-aurora); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.popup-title { font-size: 20px; font-weight: 800; margin-bottom: 16px; text-align: center; }
.popup-content { color: var(--text-dim); font-size: 15px; line-height: 1.8; text-align: center; white-space: pre-wrap; }
.popup-close { display: block; margin: 28px auto 0; }
.popup-x { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; }
.popup-x:hover { color: var(--text); }

/* ============================================
   滚动公告
   ============================================ */
.scroll-announcement {
    background: var(--grad-aurora); overflow: hidden;
    padding: 10px 0; position: relative;
}
.scroll-text {
    display: inline-block; white-space: nowrap; color: white; font-weight: 600;
    font-size: 14px; animation: scrollLeft 20s linear infinite;
    padding-left: 100%;
}
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ============================================
   图片欣赏板块
   ============================================ */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px; margin-top: 16px;
}
.gallery-item {
    position: relative; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--glass-border); cursor: pointer;
    transition: all .3s; aspect-ratio: 4/3;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--glow-purple); border-color: rgba(139,92,246,.3); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,14,26,.9) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 14px; opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3 { color: var(--text); font-size: 15px; margin-bottom: 4px; }
.gallery-overlay p { color: var(--text-muted); font-size: 12px; }

/* ============================================
   公会指令板块
   ============================================ */
.commands-section { margin-top: 20px; }
.commands-group { margin-bottom: 20px; }
.commands-group-title {
    font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--text);
    display: flex; align-items: center; gap: 8px;
}
.commands-group-title::before { content: ''; width: 4px; height: 16px; background: var(--grad-aurora); border-radius: 2px; }
.commands-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px;
}
.cmd-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; background: rgba(13,19,36,.5);
    border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
    transition: all .2s; cursor: pointer;
}
.cmd-item:hover { background: rgba(139,92,246,.08); border-color: rgba(139,92,246,.3); }
.cmd-code {
    font-family: "JetBrains Mono", Consolas, monospace;
    background: rgba(139,92,246,.15); color: #c4b5fd;
    padding: 4px 12px; border-radius: 6px; font-size: 13px;
    white-space: nowrap; flex-shrink: 0;
}
.cmd-desc { color: var(--text-muted); font-size: 13px; }
.cmd-copy-hint { font-size: 11px; color: var(--success); opacity: 0; transition: opacity .2s; flex-shrink: 0; }
.cmd-item:hover .cmd-copy-hint { opacity: 1; }

/* ============================================
   公会信息卡片
   ============================================ */
.guild-info-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px; margin-bottom: 24px;
}
.guild-info-item {
    text-align: center; padding: 18px;
    background: var(--glass); backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
}
.guild-info-num { font-size: 24px; font-weight: 800; background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guild-info-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   社交链接
   ============================================ */
.social-links { display: flex; gap: 12px; margin-top: 8px; }
.social-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 100px; background: var(--glass); border: 1px solid var(--glass-border); color: var(--text-dim); font-size: 13px; transition: all .2s; }
.social-link:hover { border-color: var(--purple); color: var(--text); box-shadow: var(--glow-purple); }

