/* 变量 */
:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary-color: #ffffff;
    --primary-hover: #f1f5f9;
    --secondary-color: #e91e63;
    --accent-gold: #ffd700;
    --accent-green: #00e676;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --container-width: 1200px;
    --nav-height: 80px;
    --transition: all 0.3s ease;

    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-strong: rgba(255, 255, 255, 0.10);
    --glass-blur: 24px;
    --glass-blur-strong: 40px;
    --glass-sat: 1.8;
    --glass-border-bright: rgba(255, 255, 255, 0.18);
    --glass-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.10);
    --glass-radius: 18px;

    --glass-shadow-rich:
        0 1px 0 0 rgba(255, 255, 255, 0.14) inset,
        0 -1px 0 0 rgba(0, 0, 0, 0.25) inset,
        0 8px 24px -8px rgba(0, 0, 0, 0.45),
        0 20px 50px -12px rgba(0, 0, 0, 0.55),
        0 0 0 0.5px rgba(255, 255, 255, 0.06);
    --glass-shadow-rich-strong:
        0 1px 0 0 rgba(255, 255, 255, 0.20) inset,
        0 -1px 0 0 rgba(0, 0, 0, 0.30) inset,
        0 12px 32px -10px rgba(0, 0, 0, 0.5),
        0 28px 64px -16px rgba(0, 0, 0, 0.6),
        0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

/* 通用重置 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
* { font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif; }

a, button, [role="button"], .nav-register-btn, .login-submit,
.login-send-btn, .login-slider-handle, .spec-card, .hamburger,
.cookie-consent-btn, .footer-logo, .logo, .nav-online-indicator,
.user-avatar-btn, .user-menu-item {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

a:focus-visible, button:focus-visible, [role="button"]:focus-visible,
input:focus-visible, .login-slider-handle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
    border-radius: inherit;
}

.has-ripple { position: relative; overflow: hidden; }
.ripple-span {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    animation: ripple-fade 0.6s ease-out forwards;
}
@keyframes ripple-fade {
    to { transform: scale(2.4); opacity: 0; }
}

.nav-register-btn:active, .login-submit:active, .login-send-btn:active,
.cookie-consent-btn:active, .user-avatar-btn:active, .user-menu-item:active,
.footer-logo:active, .logo:active {
    transform: scale(0.97);
    transition: transform 0.08s ease;
}

html  {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

html:has(body:not(.page-no-scroll-snap)) {
    scroll-snap-type: y proximity;
}
html, body { min-width: 1280px; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: auto;
    overflow-y: auto;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(233, 30, 99, 0.08) 0%, transparent 20%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 无障碍: 跳到主内容 (键盘聚焦时显示) */
.skip-link {
    position: fixed;
    top: -120px;
    left: 16px;
    z-index: 2000;
    padding: 12px 20px;
    background: #fff;
    color: #0f172a;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 16px;
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

body::-webkit-scrollbar { height: 12px; }
body::-webkit-scrollbar-track { background: #0f172a; }
body::-webkit-scrollbar-thumb { background: #334155; border-radius: 6px; }
body::-webkit-scrollbar-thumb:hover { background: #475569; }

.hero,
.specs-section,
.contributors-section,
.group-info-section,
.appeal-section,
.footer {
    scroll-snap-align: start;
}

.scroll-down {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    user-select: none;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
}
.scroll-down:hover { color: #fff; }
.scroll-down:hover .scroll-down-arrow { transform: translateY(4px); }

.scroll-down-text {
    font-size: 0.78rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}
.scroll-down-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    animation: scroll-down-bounce 1.6s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.scroll-down:hover .scroll-down-arrow {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes scroll-down-bounce {
    0%, 100% { transform: translateY(0);   opacity: 1; }
    50%      { transform: translateY(10px); opacity: 0.5; }
}

.scroll-down.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}
@keyframes pulse-glow-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
@keyframes rainbow-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }

.scroll-fade-up {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-fade-up.revealed { opacity: 1; transform: translate3d(0, 0, 0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* 实时栏 */
.realtime-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 32px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.18), rgba(59, 130, 246, 0.18));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.8rem;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.realtime-bar b {
    color: var(--accent-green);
    font-weight: 800;
    margin: 0 3px;
    font-variant-numeric: tabular-nums;
}
.rtb-dot {
    width: 8px; height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse-glow 2s infinite;
    display: inline-block;
}
.realtime-bar.offline .rtb-dot { background: #ef4444; box-shadow: 0 0 10px #ef4444; animation: pulse-glow-red 2s infinite; }
.realtime-bar.offline b { color: #fca5a5; }
.rtb-sep { color: rgba(255,255,255,.25); }
.rtb-item { white-space: nowrap; }
@media (max-width: 640px) {
    .realtime-bar { font-size: 0.72rem; gap: 8px; }
}

/* 导航栏 */
.navbar {
    height: var(--nav-height);
    position: fixed;
    top: 24px; left: 50%; transform: translateX(-50%);
    width: min(92%, var(--container-width));
    z-index: 1000;

    background:
        linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.02) 100%),
        var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    border: 1px solid var(--glass-border-bright);
    border-radius: 999px;
    box-shadow: var(--glass-shadow-rich-strong);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0; left: 12%; right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    border-radius: 999px;
    pointer-events: none;
}
.nav-container { height: 100%; padding: 0 28px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 1px; flex-shrink: 0; }
.logo-svg { color: var(--primary-color); filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); flex-shrink: 0; }
.logo-img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.logo:hover .logo-img {
    transform: rotate(-6deg) scale(1.05);
    box-shadow: 0 0 14px rgba(0, 230, 118, 0.55);
}

.nav-online-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 14px;
    padding: 5px 12px 5px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: none;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-online-indicator:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(16, 185, 129, 0.7);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}
.nav-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
    animation: nav-pulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
.nav-online-text b {
    color: #6ee7b7;
    font-weight: 800;
    margin: 0 3px;
    font-variant-numeric: tabular-nums;
}
.nav-online-indicator.offline {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.45);
}
.nav-online-indicator.offline .nav-online-dot {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
    animation: none;
}
.nav-online-indicator.offline .nav-online-text b { color: #fca5a5; }
@keyframes nav-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); transform: scale(1); opacity: 1; }
    60%  { box-shadow: 0 0 0 8px rgba(0, 230, 118, 0);   transform: scale(1.15); opacity: 0.75; }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);   transform: scale(1); opacity: 1; }
}
@media (max-width: 1100px) {
    .nav-online-indicator { font-size: 0.72rem; padding: 4px 10px; margin-left: 8px; }
    .logo-img { width: 30px; height: 30px; }
}
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { font-size: 0.95rem; font-weight: 600; color: rgba(255, 255, 255, 0.8); transition: var(--transition); position: relative; padding: 5px 0; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary-color); transition: width 0.3s ease; box-shadow: 0 0 5px var(--primary-color); }
.nav-links a:hover { color: var(--primary-color); }
.nav-links a:hover::after { width: 100%; }
.nav-register-btn { background: linear-gradient(135deg, #22c55e, #16a34a) !important; color: #fff !important; padding: 8px 18px !important; border-radius: 20px; font-size: 0.88rem !important; font-weight: 600; letter-spacing: 0.5px; box-shadow: 0 2px 10px rgba(34, 197, 94, 0.35); transition: all 0.25s ease !important; cursor: pointer; }
.nav-register-btn:hover { background: linear-gradient(135deg, #16a34a, #15803d) !important; box-shadow: 0 4px 16px rgba(34, 197, 94, 0.5); transform: translateY(-1px); }
.nav-register-btn::after { display: none !important; }

/* 用户菜单 */
.nav-user-wrap { position: relative; display: inline-flex; align-items: center; }
.user-avatar-btn {
    width: 38px; height: 38px;
    padding: 0; border: 1px solid var(--glass-border-bright);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.user-avatar-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.user-avatar-btn[aria-expanded="true"] {
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.user-avatar-img {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 50%;
    pointer-events: none;
}

.user-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 248px;
    padding: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.05) 100%),
        var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur-strong)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(var(--glass-sat));
    border: 1px solid var(--glass-border-bright);
    border-radius: 16px;
    box-shadow: var(--glass-shadow-rich-strong);
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
    z-index: 1200;
}
.user-menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.user-menu-head {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 6px;
}
.user-menu-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}
.user-menu-info { min-width: 0; }
.user-menu-nick {
    font-size: 14px; font-weight: 600; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 170px;
}
.user-menu-uin {
    font-size: 12px; color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}
.user-menu-list { display: flex; flex-direction: column; gap: 2px; }
.user-menu-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
}
.user-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.user-menu-item svg { flex-shrink: 0; opacity: 0.7; }
.user-menu-item:hover svg { opacity: 1; }
.user-menu-logout {
    color: rgba(252, 165, 165, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
    border-radius: 0 0 10px 10px;
}
.user-menu-logout:hover {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
}
.user-menu-logout svg { color: inherit; }

/* 首屏 */
.hero {
    position: relative; height: 100vh; width: 100%;
    background: url('../material/c6d2dd6a664242e2e5faa640d28c340b.jpg');
    background-size: cover; background-position: center;
    display: flex; align-items: center; overflow: hidden;
    margin-top: 32px;
}
.hero-container { width: 100%; display: flex; padding-top: calc(var(--nav-height) + 28px); position: relative; z-index: 2; }
.hero-content { max-width: 700px; }

.server-status {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--bg-card); backdrop-filter: blur(12px);
    border: var(--glass-border); padding: 8px 16px; border-radius: 50px;
    margin-bottom: 20px; font-size: 0.9rem; color: #fff;
}
.status-dot { width: 10px; height: 10px; background-color: var(--accent-green); border-radius: 50%; box-shadow: 0 0 10px var(--accent-green); animation: pulse-glow 2s infinite; }
.highlight-green { background: linear-gradient(90deg, #34d399, #6ee7b7, #a7f3d0, #6ee7b7, #34d399); background-size: 300% 300%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; animation: rainbow-flow 4s ease infinite; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-left: 3px solid var(--accent-green); padding: 7px 16px; font-size: 0.82rem; color: #fff; margin-bottom: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; border-radius: 4px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-badge svg { color: var(--accent-green); filter: drop-shadow(0 0 4px var(--accent-green)); }

.hero h1 { font-size: 4rem; line-height: 1.2; font-weight: 900; margin-bottom: 22px; letter-spacing: -1.5px; text-shadow: 0 10px 30px rgba(0,0,0,0.5); color: #ffffff; padding-bottom: 0.15em; }
.hero h1 .highlight { background: linear-gradient(90deg, #34d399, #6ee7b7, #a7f3d0, #6ee7b7, #34d399, #10b981, #34d399); background-size: 400% 400%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; animation: rainbow-flow 5s ease infinite; padding-bottom: 0.15em; line-height: 1.2; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255, 255, 255, 0.88); margin-bottom: 36px; max-width: 560px; border-left: 2px solid rgba(0, 230, 118, 0.6); padding-left: 18px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); line-height: 1.7; }

.hero-features { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }
.h-feature { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 0.92rem; font-weight: 600; background: rgba(255, 255, 255, 0.06); padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: var(--transition); }
.h-feature:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(0, 230, 118, 0.4); }
.h-feature svg { color: var(--accent-green); filter: drop-shadow(0 0 5px var(--accent-green)); }

.hero-buttons { display: flex; gap: 16px; margin-bottom: 0; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 32px; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: var(--transition); border: none; text-transform: uppercase; letter-spacing: 0.5px; position: relative; overflow: hidden; }
.btn-primary { background: var(--primary-color); color: var(--bg-dark); box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-4px) scale(1.02); box-shadow: 0 0 40px rgba(255, 255, 255, 0.4); }
.btn-secondary { background: rgba(255, 255, 255, 0.05); color: #fff; border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--primary-color); transform: translateY(-4px); box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); }

.specs-section, .contributors-section,
.features-section, .gallery-section, .team-section, .help-section, .community-section, .contact-section,
.group-info-section,
.appeal-section {
    position: relative; background-color: var(--bg-dark); background-size: cover; background-position: center; overflow: hidden;
}
.specs-section::before, .contributors-section::before,
.features-section::before, .gallery-section::before, .team-section::before, .help-section::before, .community-section::before, .contact-section::before,
.group-info-section::before,
.appeal-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}
.specs-section .container, .contributors-section .container,
.features-section .container, .gallery-section .container, .team-section .container, .help-section .container, .community-section .container, .contact-section .container,
.group-info-section .container,
.appeal-section .container { position: relative; z-index: 2; }

.section-header { margin-bottom: 48px; opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity 0.6s ease, transform 0.6s ease; text-align: center; }
.section-header.revealed { opacity: 1; transform: translate3d(0, 0, 0); }
.section-title { font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 14px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.section-subtitle { font-size: 1.05rem; color: rgba(255, 255, 255, 0.75); max-width: 640px; margin: 0 auto; line-height: 1.7; }

/* 规格区 */
.specs-section { padding: 90px 0; display: flex; align-items: center; }
.specs-section::before { background: rgba(15, 23, 42, 0.45); }
/* 卡片网格: 还原 3 列 */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.spec-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 100%),
        var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    border: 1px solid var(--glass-border-bright);
    border-radius: var(--glass-radius); padding: 32px 24px; text-align: center;
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0; transform: translate3d(0, 50px, 0); box-shadow: var(--glass-shadow-rich);
    position: relative;
    contain: layout style;
    display: flex; flex-direction: column; align-items: center; min-height: 300px;
}
/* 顶部高光线 (玻璃边缘反光) */
.spec-card::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    pointer-events: none;
}
/* 渐变发光描边 (悬停时显现) */
.spec-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(0,230,118,0.4) 45%, rgba(255,255,255,0.08));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.spec-card.revealed { opacity: 1; transform: translate3d(0, 0, 0); }
.spec-card:nth-child(1) { transition-delay: 0.05s; }
.spec-card:nth-child(2) { transition-delay: 0.15s; }
.spec-card:nth-child(3) { transition-delay: 0.25s; }
.spec-card:nth-child(4) { transition-delay: 0.35s; }
.spec-card:nth-child(n+5) { transition-delay: 0.45s; }
.spec-card:hover {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.05) 100%),
        var(--glass-bg-strong);
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: var(--glass-shadow-rich-strong), 0 0 32px rgba(0, 230, 118, 0.08);
}
.spec-card:hover::after { opacity: 1; }

.spec-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    padding: 14px;
    display: block;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: content-box;
    transition: var(--transition);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.spec-card:hover .spec-icon {
    transform: scale(1.05) rotate(5deg);
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.4));
}

.spec-card.active .spec-icon {
    filter:
        drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3))
        drop-shadow(0 0 8px  rgba(16, 185, 129, 0.85))
        drop-shadow(0 0 18px rgba(16, 185, 129, 0.5));
    transform: scale(1.08) rotate(5deg);
    transition: none;
}

.spec-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.spec-desc { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 18px; line-height: 1.6; flex: 1; }
.spec-value { font-size: 0.92rem; font-weight: 800; color: var(--accent-green); padding: 7px 16px; background: rgba(0, 230, 118, 0.1); border-radius: 999px; display: inline-block; border: 1px solid rgba(0, 230, 118, 0.3); margin-top: auto; }

/* 功能区 */
.features-section { padding: 100px 0; content-visibility: auto; contain-intrinsic-size: auto 700px; }
.features-section::before { background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(5px); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.feature-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 100%),
        var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    border: 1px solid var(--glass-border-bright);
    border-radius: var(--glass-radius); padding: 30px;
    transition: var(--transition);
    display: flex; flex-direction: column; align-items: center; text-align: center;
    position: relative; overflow: hidden; contain: layout style;
    box-shadow: var(--glass-shadow-rich);
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    pointer-events: none;
}
.feature-card:hover {
    transform: translateY(-10px);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.05) 100%),
        var(--glass-bg-strong);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: var(--glass-shadow-rich-strong), 0 0 32px rgba(255, 255, 255, 0.06);
}
.feature-icon-wrapper { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; transition: var(--transition); }
.feature-card:hover .feature-icon-wrapper { transform: rotate(5deg) scale(1.1); }
.feature-icon { width: 100%; height: 100%; object-fit: contain; transition: var(--transition); filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
.feature-card:hover .feature-icon { filter: drop-shadow(0 8px 16px rgba(0, 188, 212, 0.4)); }

/* 群信息/申诉 */
.group-info-section, .appeal-section { padding: 100px 0; flex: 1; display: flex; align-items: center; background-attachment: fixed; }
.group-info-section::before, .appeal-section::before { background: rgba(15, 23, 42, 0.45); }
.group-info-section .container, .appeal-section .container { text-align: center; }

/* 贡献者 */
.contributors-section {
    background-color: var(--bg-dark);
    padding: 100px 0;
}
.contributors-section::before { background: rgba(15, 23, 42, 0.42); }

/* 经典视差背景: 单张图, scale 防露白, JS 按滚动缓慢平移 (背景比内容慢, 营造深度) */
.scroll-bg-section { position: relative; overflow: hidden; }
.scroll-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: opacity;
    transition: opacity 0.3s ease;
}

.contributors-carousel-container {
    max-width: 100%; margin: 50px 0 0; position: relative; padding: 20px 0;
    overflow: hidden;
}
.contributors-carousel-wrapper {
    display: flex; gap: 30px;
    justify-content: center;
    width: max-content;
    margin: 0 auto;
    min-width: 100%;
}

.contributors-carousel-container.auto-scroll {

    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.contributors-carousel-container.auto-scroll .contributors-carousel-wrapper {
    animation: contributors-scroll 40s linear infinite;
    will-change: transform;
    justify-content: flex-start;
}
.contributors-carousel-container.auto-scroll:hover .contributors-carousel-wrapper { animation-play-state: paused; }
.contributors-carousel-container.auto-scroll:focus-within .contributors-carousel-wrapper { animation-play-state: paused; }

@keyframes contributors-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {

    .contributors-carousel-container.auto-scroll .contributors-carousel-wrapper { animation: none; }
    .scroll-down-arrow { animation: none; }
    .status-dot { animation: none; }
    .nav-online-dot { animation: none; }
    .highlight, .highlight-green { animation: none; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.contributor-card {
    flex: 0 0 280px; width: 280px; min-width: 0;
    background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px;
    padding: 40px 30px; text-align: center; transition: var(--transition);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    position: relative; overflow: hidden;
}
/* 顶部渐变高光线 */
.contributor-card::before {
    content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.55), transparent);
    opacity: 0.6; transition: opacity 0.3s ease;
}
.contributor-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 230, 118, 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(0, 230, 118, 0.18);
}
.contributor-card:hover::before { opacity: 1; }
.contributor-avatar {
    width: 96px; height: 96px; border-radius: 50%; margin-bottom: 6px; overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2); box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    transition: var(--transition); background: rgba(255,255,255,0.05);
    position: relative;
}
.contributor-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contributor-card:hover .contributor-avatar {
    border-color: #4ade80; transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15), 0 8px 20px rgba(0,0,0,0.3);
}
.contributor-name { font-size: 1.4rem; color: #fff; font-weight: 800; }
.contributor-role {
    display: inline-block;
    font-size: 0.74rem; color: #6ee7b7; letter-spacing: 1.2px; margin-bottom: 6px;
    font-weight: 700; text-transform: uppercase;
    padding: 4px 12px; border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.32);
    transition: var(--transition);
}
.contributor-card:hover .contributor-role {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.55);
    color: #a7f3d0;
}
.contributor-desc {
    font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); line-height: 1.6;
    min-height: 60px;
}

/* 图廊 */
.gallery-section { padding: 100px 0; content-visibility: auto; contain-intrinsic-size: auto 800px; }
.gallery-section::before { background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(5px); }
.gallery-carousel-container { max-width: 1000px; margin: 50px auto 0; position: relative; }
.gallery-carousel-wrapper { width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,0.5); position: relative; border: 1px solid rgba(255,255,255,0.1); }
.gallery-active-image { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease-in-out; opacity: 1; }
.gallery-active-image.fade-out { opacity: 0; }
.gallery-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding: 0 10px; }
.gallery-text-content { color: rgba(255, 255, 255, 0.9); font-size: 1rem; max-width: 70%; line-height: 1.6; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.gallery-nav-buttons { display: flex; gap: 15px; }
.nav-btn { width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; backdrop-filter: blur(5px); }
.nav-btn:hover { background: var(--primary-color); color: var(--bg-dark); transform: scale(1.1); box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); }

/* 团队 */
.team-section { padding: 100px 0; content-visibility: auto; contain-intrinsic-size: auto 600px; }
.team-section::before { background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(5px); }
.team-carousel-container { max-width: 100%; margin: 50px 0 0; position: relative; padding: 20px 0; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.team-carousel-wrapper { display: flex; gap: 30px; width: max-content; animation: team-scroll 30s linear infinite; }
.team-carousel-container:hover .team-carousel-wrapper { animation-play-state: paused; }
@keyframes team-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.team-card { flex: 0 0 280px; width: 280px; background: transparent; border: none; border-radius: 20px; padding: 40px 30px; text-align: center; transition: var(--transition); display: flex; flex-direction: column; align-items: center; }
.team-card:hover { transform: translateY(-10px); }
.team-avatar { width: 100px; height: 100px; border-radius: 50%; margin-bottom: 20px; overflow: hidden; border: 3px solid rgba(255, 255, 255, 0.2); box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: var(--transition); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card:hover .team-avatar { border-color: #4ade80; transform: scale(1.05); }
.team-name { font-size: 1.5rem; color: #fff; margin-bottom: 5px; }
.team-role { font-size: 0.9rem; color: #4ade80; letter-spacing: 1px; margin-bottom: 15px; font-weight: 600; }
.team-desc { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); line-height: 1.6; }
@keyframes fadeInUpBtn { to { opacity: 1; transform: translateY(0); } }
.team-contact-btn { display: inline-block; margin-top: 20px; padding: 10px 24px; background: #ffffff; color: #0f172a; font-weight: 700; text-decoration: none; border-radius: 30px; transition: all 0.3s ease; opacity: 0; transform: translateY(20px); animation: fadeInUpBtn 0.8s forwards 0.5s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.team-contact-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3); background: #f8fafc; }

/* 帮助 */
.help-section { padding: 100px 0; content-visibility: auto; contain-intrinsic-size: auto 700px; }
.help-section::before { background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(5px); }
.help-section .container { text-align: center; }
.steps-container { display: flex; justify-content: center; align-items: flex-start; gap: 20px; margin-top: 50px; flex-wrap: wrap; }
.step-card { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 30px; text-align: center; flex: 1; min-width: 260px; max-width: 320px; transition: var(--transition); position: relative; overflow: hidden; }
.step-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.step-number { position: absolute; top: -10px; right: -10px; font-size: 5rem; font-weight: 900; color: rgba(255, 255, 255, 0.05); line-height: 1; z-index: 0; pointer-events: none; }
.step-icon { width: 70px; height: 70px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--accent-green); position: relative; z-index: 1; border: 1px solid rgba(255, 255, 255, 0.1); transition: var(--transition); }
.step-card:hover .step-icon { background: var(--accent-green); color: var(--bg-dark); transform: scale(1.1) rotate(10deg); box-shadow: 0 0 20px rgba(0, 230, 118, 0.4); }
.step-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 15px; position: relative; z-index: 1; }
.step-desc { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 25px; line-height: 1.6; position: relative; z-index: 1; min-height: 48px; }
.btn-step { display: inline-block; padding: 10px 24px; background: var(--primary-color); color: var(--bg-dark); border-radius: 8px; font-weight: 700; font-size: 0.9rem; transition: var(--transition); border: none; cursor: pointer; text-decoration: none; position: relative; z-index: 1; }
.btn-step:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2); }
.highlight-text { display: block; font-weight: 700; color: var(--accent-gold); margin-top: 15px; font-size: 1.1rem; position: relative; z-index: 1; }
.step-arrow { display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.3); padding-top: 100px; }

/* 社区 */
.community-section { padding: 100px 0; position: relative; background-color: var(--bg-dark); background-attachment: fixed; background-size: cover; background-position: center; z-index: 1; content-visibility: auto; contain-intrinsic-size: auto 600px; }
.community-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: -1; }
.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; max-width: 900px; margin: 0 auto; }
.community-card { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 40px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); text-align: center; transition: var(--transition); display: flex; flex-direction: column; align-items: center; contain: layout style; }
.community-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); background: rgba(255, 255, 255, 0.08); }
.community-icon-wrapper { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.community-icon-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)); transition: var(--transition); }
.community-card:hover .community-icon-img { transform: scale(1.1); }
.community-card h3 { font-size: 1.5rem; margin-bottom: 10px; color: #fff; }
.community-card p { color: #d1d5db; margin-bottom: 25px; line-height: 1.6; }
.qr-placeholder { width: 180px; height: 180px; background: rgba(0, 0, 0, 0.2); border: 2px dashed rgba(255, 255, 255, 0.2); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 25px; color: #9ca3af; font-size: 0.9rem; gap: 10px; position: relative; overflow: hidden; }
.qr-code { width: 100%; height: 100%; position: absolute; top: 0; left: 0; background: linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.05) 75%, transparent 75%, transparent); background-size: 20px 20px; opacity: 0.5; }
.qr-code img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.qr-placeholder span { position: relative; z-index: 2; background: rgba(15, 23, 42, 0.7); padding: 4px 12px; border-radius: 4px; margin-top: auto; margin-bottom: 6px; }
.community-btn { padding: 12px 30px; border-radius: 30px; font-weight: 600; text-decoration: none; transition: var(--transition); display: inline-block; cursor: pointer; border: none; }
.qq-btn { background: #3b82f6; color: #fff; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.qq-btn:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5); }
.wechat-btn { background: #10b981; color: #fff; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.wechat-btn:hover { background: #059669; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5); }

/* 联系 */
.contact-section { padding: 100px 0; position: relative; background-color: var(--bg-dark); background-attachment: fixed; background-size: cover; background-position: center; z-index: 1; content-visibility: auto; contain-intrinsic-size: auto 700px; }
.contact-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1; }
.contact-container { max-width: 1000px; margin: 0 auto; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 40px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-rules { text-align: left; padding-right: 20px; border-right: 1px solid rgba(255, 255, 255, 0.1); height: 100%; }
.rules-title { font-size: 1.5rem; margin-bottom: 25px; color: #fff; display: flex; align-items: center; gap: 10px; }
.rules-title svg { color: #10b981; }
.rules-list { display: flex; flex-direction: column; gap: 20px; padding: 0; margin: 0; }
.rules-list li { display: flex; gap: 15px; align-items: flex-start; color: #d1d5db; font-size: 0.95rem; line-height: 1.6; }
.rule-icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: rgba(16, 185, 129, 0.2); color: #10b981; border-radius: 50%; font-size: 0.8rem; font-weight: bold; flex-shrink: 0; margin-top: 2px; }
.rule-text strong { color: #fff; font-weight: 600; }
.contact-note { margin-top: 30px; padding: 15px; background: rgba(239, 68, 68, 0.1); border-left: 3px solid #ef4444; border-radius: 4px; }
.contact-note p { margin: 0; color: #fca5a5; font-size: 0.85rem; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.form-group label { color: #a0aec0; font-size: 0.9rem; font-weight: 500; margin-left: 4px; }
.form-group input, .form-group select, .form-group textarea { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 12px 16px; color: #fff; font-family: inherit; font-size: 1rem; transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #10b981; background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.form-group select option { background: #1a1a2e; color: #fff; }
.submit-btn { margin-top: 10px; background: linear-gradient(135deg, #10b981, #059669); color: #fff; border: none; padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 1.05rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 10px; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.msg-editor { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; overflow: hidden; transition: var(--transition); }
.msg-editor:focus-within { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.msg-editor textarea { background: transparent; border: none; border-radius: 0; padding: 12px 16px; width: 100%; color: #fff; font-family: inherit; font-size: 1rem; resize: vertical; min-height: 100px; line-height: 1.6; }
.msg-editor textarea:focus { outline: none; box-shadow: none; }
.msg-editor .upload-preview { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 12px; margin: 0; min-height: 0; }
.msg-editor-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.attach-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); padding: 5px 12px; border-radius: 6px; font-size: 0.85rem; cursor: pointer; transition: var(--transition); }
.attach-btn:hover { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); color: #10b981; }
.attach-hint { font-size: 0.8rem; color: rgba(255, 255, 255, 0.3); }
.upload-preview-item { position: relative; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.15); }
.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-preview-item .remove-btn { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; background: rgba(239, 68, 68, 0.9); color: #fff; border: none; border-radius: 50%; font-size: 11px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#attachment { display: none; }

/* 页脚 */
.footer { background: #0f172a; color: #94a3b8; padding-top: 80px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 60px; }
.footer-brand { flex: 1; min-width: 300px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; color: #fff; text-decoration: none; margin-bottom: 20px; }
.footer-logo-svg { color: #34d399; flex-shrink: 0; }
.footer-logo-img { width: 28px; height: 28px; flex-shrink: 0; padding: 4px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); box-sizing: content-box; }
.footer-desc { line-height: 1.8; max-width: 400px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 50px; }
.footer-column h4 { color: #fff; font-size: 1.1rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-column h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: #34d399; }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: #94a3b8; text-decoration: none; transition: var(--transition); }
.footer-column ul li a:hover { color: #34d399; padding-left: 5px; }
.footer-bottom { background: #020617; padding: 20px 0; text-align: center; font-size: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.disclaimer { color: #64748b; font-size: 0.8rem; margin-top: 5px; text-transform: uppercase; }

.hamburger { display: none; cursor: pointer; z-index: 1001; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: white; }

/* Toast */
.toast-container {
    position: fixed; top: 50px; right: 16px; z-index: 1200;
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    min-width: 200px; max-width: 340px;
    font-size: 0.92rem;
    border-left: 4px solid var(--accent-green);
    animation: toastIn .3s ease both;
}
.toast.error   { border-left-color: #ef4444; }
.toast.warning { border-left-color: #f59e0b; }
.toast.hide    { animation: toastOut .3s ease both; }
@keyframes toastIn  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(20px); } }

/* 桌面端强制布局 (固定大布局, 不做手机端紧凑) */
.hero { height: 100vh; min-height: 800px; }
.step-arrow { display: flex; }
.team-carousel-container { mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.team-carousel-wrapper { animation: team-scroll 30s linear infinite; }
.team-card-clone { display: block; }
.contact-rules { border-right: 1px solid rgba(255, 255, 255, 0.1); padding-right: 20px; padding-bottom: 0; }
.contact-container { margin: 0; }

@media (max-width: 99999px) {
    .hamburger { display: none !important; }
    .nav-links { display: flex !important; position: static !important; height: auto !important; background: none !important; padding: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border: 0 !important; }
    .nav-links li { margin: 0 !important; }
    .hero { height: 100vh; min-height: 800px; }
    .specs-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .features-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .contact-grid { grid-template-columns: 1fr 1fr !important; }
    .contact-rules { border-right: 1px solid rgba(255, 255, 255, 0.1) !important; padding-right: 20px !important; padding-bottom: 0 !important; }
    .step-arrow { display: flex !important; }
    .steps-container { flex-direction: row !important; align-items: flex-start !important; }
    .step-card { max-width: 320px !important; }
    .footer-container { flex-direction: row !important; }
    .footer-links { flex-direction: row !important; }
    .team-carousel-container { mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent) !important; -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent) !important; }
    .team-carousel-wrapper { animation: team-scroll 30s linear infinite !important; }
    .team-card-clone { display: block !important; }
    .contact-container { margin: 0 !important; }
}

/* 404 页 */
.page-404 { overflow-x: hidden !important; }
.error-404 {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    margin-top: 32px;
    background: url('../material/c6d2dd6a664242e2e5faa640d28c340b.jpg') center/cover no-repeat;
    overflow: hidden;
    padding: 120px 24px 80px;
}
.error-404::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.92) 100%);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    z-index: 0;
}
.error-404-container { position: relative; z-index: 1; text-align: center; max-width: 720px; }
.error-404-glow {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%);
    width: 540px; height: 540px; max-width: 90vw; max-height: 90vw;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.18) 0%, rgba(239, 68, 68, 0) 65%);
    z-index: 0; filter: blur(10px); animation: 404-pulse 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes 404-pulse {
    0%, 100% { transform: translate(-50%, -55%) scale(1);   opacity: 0.9; }
    50%      { transform: translate(-50%, -55%) scale(1.08); opacity: 1; }
}
.error-404-content { position: relative; z-index: 1; }
.error-404-badge {
    display: inline-block; padding: 6px 16px; border-radius: 999px;
    background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5; font-size: 0.78rem; font-weight: 700; letter-spacing: 2px;
    margin-bottom: 24px;
}
.error-404-title {
    font-size: clamp(7rem, 18vw, 13rem); font-weight: 900; line-height: 0.95;
    margin: 0 0 18px; letter-spacing: -0.04em; color: #fff;
    text-shadow: 0 12px 50px rgba(0, 0, 0, 0.6);
    display: inline-flex; gap: 0.04em;
}
.error-404-title .four { color: #fff; }
.error-404-title .zero {
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: 404-zero-wobble 3s ease-in-out infinite;
    display: inline-block;
}
@keyframes 404-zero-wobble {
    0%, 100% { transform: translateY(0)   rotate(0deg); }
    50%      { transform: translateY(-6px) rotate(2deg); }
}
.error-404-sub { font-size: 1.6rem; color: #fff; font-weight: 700; margin: 0 0 12px; }
.error-404-desc { font-size: 1.05rem; color: rgba(255, 255, 255, 0.75); line-height: 1.7; margin: 0 auto 36px; max-width: 540px; }
.error-404-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.error-404-quicklinks {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; align-items: center;
}
.error-404-quicklinks .ql-label { color: rgba(255, 255, 255, 0.5); }
.error-404-quicklinks a {
    color: rgba(255, 255, 255, 0.8); text-decoration: none; padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 999px;
    transition: all 0.2s ease;
}
.error-404-quicklinks a:hover {
    color: #fff; border-color: rgba(0, 230, 118, 0.6);
    background: rgba(0, 230, 118, 0.1);
}

.contributor-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    width: 100%;
}

[data-bg] {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.page-no-scroll-snap {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

body.page-no-scroll-snap .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.page-no-scroll-snap .group-info-section,
body.page-no-scroll-snap .appeal-section,
body.page-no-scroll-snap .login-section {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* 登录页 */
.login-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 28px 0 40px;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.login-section::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(15, 23, 42, 0.55) 100%);
    z-index: 1;
}
.login-glow {
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.28;
}
.login-glow-1 {
    top: -160px; left: -140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 65%);
}
.login-glow-2 {
    bottom: -180px; right: -140px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.16) 0%, transparent 70%);
}

.login-steps {
    display: flex; align-items: center; gap: 6px;
    margin: 0 0 22px;
    padding: 4px;
}
.login-step {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all .3s cubic-bezier(.22,1,.36,1);
}
.login-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.5);
    font-size: 10px; font-weight: 700; transition: all .3s;
}
.login-step-label {
    font-size: 11px; color: rgba(255, 255, 255, 0.4); font-weight: 600;
    letter-spacing: 0.3px; transition: color .3s;
}
.login-step-line {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    min-width: 12px;
}
.login-step.is-active {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.22), rgba(16, 185, 129, 0.18));
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 4px 14px rgba(52, 211, 153, 0.25);
}
.login-step.is-active .login-step-num {
    background: linear-gradient(135deg, #34d399, #10b981); color: #fff;
}
.login-step.is-active .login-step-label { color: #6ee7b7; }
.login-step.is-done .login-step-num {
    background: rgba(52, 211, 153, 0.2); color: #34d399;
}
.login-step.is-done .login-step-label { color: rgba(52, 211, 153, 0.7); }

.login-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.login-card-wrap {
    position: relative;
    width: 100%;
    z-index: 1;
}
.login-card {
    position: relative;
    width: 100%;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.02) 100%),
        rgba(20, 28, 48, 0.45);
    backdrop-filter: blur(40px) saturate(1.6);
    -webkit-backdrop-filter: blur(40px) saturate(1.6);
    border: 1px solid rgba(52, 211, 153, 0.28);
    border-radius: 20px;
    padding: 32px 28px 24px;
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.16) inset,
        0 -1px 0 0 rgba(0, 0, 0, 0.25) inset,
        0 24px 60px -20px rgba(0, 0, 0, 0.55),
        0 0 0 0.5px rgba(255, 255, 255, 0.06);
    z-index: 1;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    border-color: rgba(52, 211, 153, 0.45);
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.16) inset,
        0 -1px 0 0 rgba(0, 0, 0, 0.25) inset,
        0 28px 70px -20px rgba(0, 0, 0, 0.6),
        0 0 0 0.5px rgba(255, 255, 255, 0.06);
}

.login-card > * { position: relative; z-index: 2; }

.login-card-head {
    text-align: center;
    margin-bottom: 26px;
}
.login-card-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: transparent;
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 16px;
    padding: 8px;
    box-shadow:
        0 0 0 4px rgba(52, 211, 153, 0.08),
        0 0 24px -6px rgba(52, 211, 153, 0.35);
}
.login-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.login-card-title {
    font-size: 23px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #fff;
    letter-spacing: -0.01em;
}
.login-card-title .accent {
    background: linear-gradient(135deg, #34d399, #6ee7b7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}
.login-card-sub {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}
.login-form-sr {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px;
    height: 1px;
}
.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.login-field-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(110, 231, 183, 0.75);
    padding-left: 2px;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.login-field-label svg { opacity: 0.7; }
.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.login-input-icon {
    position: absolute;
    left: 14px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 1;
}
.login-input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 44px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}
.login-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.login-input:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.28);
}
.login-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(52, 211, 153, 0.7);
    box-shadow:
        0 0 0 3px rgba(52, 211, 153, 0.15),
        0 0 18px -4px rgba(52, 211, 153, 0.35);
}
.login-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
}
.login-input-wrap:focus-within .login-input-icon { color: rgba(255, 255, 255, 0.8); }

.login-avatar-slot {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
    z-index: 1;
}
.login-avatar-slot.is-loaded {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}
.login-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.login-input-wrap .login-input:not([id="loginCode"]) {
    padding-left: 48px;
}

.login-input-wrap-code { position: relative; }
.login-input-code {
    font-family: 'SF Mono', 'JetBrains Mono', 'Consolas', monospace;
    font-size: 18px;
    letter-spacing: 0.3em;
    text-align: left;
    padding-left: 44px;
    padding-right: 116px;
}
.login-send-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    padding: 0 14px;

    background: linear-gradient(135deg,
                    rgba(255, 255, 255, 0.16) 0%,
                    rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-family: inherit;
    cursor: pointer;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 2px 6px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, border-color 0.2s ease,
                color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.login-send-btn:hover:not(:disabled) {
    background: linear-gradient(135deg,
                    rgba(255, 255, 255, 0.28) 0%,
                    rgba(255, 255, 255, 0.16) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 4px 12px rgba(0, 0, 0, 0.35);
}
.login-send-btn:active:not(:disabled) {
    transform: translateY(-50%) scale(0.96);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 1px 3px rgba(0, 0, 0, 0.3);
}
.login-send-btn:disabled {
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}
.login-send-btn.is-counting {
    color: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    cursor: default;
}

.login-send-btn.is-soft {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.55);
    box-shadow: none;
}
.login-send-btn.is-soft::before { display: none; }
.login-send-btn.is-soft:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.login-send-btn.is-ready {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.28) 0%, rgba(16, 185, 129, 0.18) 100%);
    border-color: rgba(110, 231, 183, 0.6);
    color: #ecfdf5;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 2px 10px rgba(16, 185, 129, 0.3),
        0 0 0 3px rgba(52, 211, 153, 0.1);
}
.login-send-btn-text { pointer-events: none; user-select: none; }
.login-field-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 16px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.38);
    margin: 2px 2px 0;
    line-height: 1.5;
    transition: color 0.2s ease;
}
.login-field-hint.is-sent::before,
.login-field-hint.is-error::before {
    content: "";
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.login-field-hint.is-sent {
    color: rgba(110, 231, 183, 0.92);
    font-weight: 500;
}
.login-field-hint.is-sent::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>");
}
.login-field-hint.is-error {
    color: rgba(252, 165, 165, 0.95);
    font-weight: 500;
}
.login-field-hint.is-error::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fca5a5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 8v4M12 16h.01'/></svg>");
}

.login-input-wrap.is-error .login-input {
    border-color: rgba(244, 63, 94, 0.75);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.20);
    color: rgba(244, 63, 94, 0.9);
    animation: login-input-shake 0.45s ease;
}
@keyframes login-input-shake {
    0%, 100% { transform: translateX(0); }
    15%      { transform: translateX(-7px); }
    30%      { transform: translateX(7px); }
    45%      { transform: translateX(-5px); }
    60%      { transform: translateX(5px); }
    75%      { transform: translateX(-3px); }
    90%      { transform: translateX(3px); }
}

.login-input-wrap.is-error .login-avatar-slot {
    animation: login-avatar-shake 0.45s ease;
}
@keyframes login-avatar-shake {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    15%      { transform: translateY(-50%) translateX(-7px); }
    30%      { transform: translateY(-50%) translateX(7px); }
    45%      { transform: translateY(-50%) translateX(-5px); }
    60%      { transform: translateY(-50%) translateX(5px); }
    75%      { transform: translateY(-50%) translateX(-3px); }
    90%      { transform: translateY(-50%) translateX(3px); }
}

.login-input-wrap.is-valid .login-input {
    border-color: rgba(16, 185, 129, 0.75);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.login-input-wrap.is-valid .login-avatar-slot {
    border-color: rgba(16, 185, 129, 0.6);
}
.login-input-wrap.is-valid .login-input-icon {
    color: rgba(16, 185, 129, 0.9);
}

.login-input-wrap.is-error.is-valid .login-input {
    border-color: rgba(244, 63, 94, 0.75);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.20);
}

.login-slider-wrap {
    position: relative;
    width: 100%;
    margin-top: 2px;
}
.login-slider {
    position: relative;
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    user-select: none;
    touch-action: none;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.login-slider:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
}
.login-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.12) 100%);
    transition: width 0.05s linear, background 0.3s ease;
    z-index: 1;
}
.login-slider.is-success {
    border-color: rgba(16, 185, 129, 0.6);
    background: linear-gradient(180deg, rgba(16,185,129,0.10) 0%, rgba(16,185,129,0.04) 100%);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}
.login-slider.is-success .login-slider-fill {
    background: linear-gradient(90deg, rgba(16,185,129,0.18) 0%, rgba(16,185,129,0.32) 100%);
    width: 100% !important;
}
.login-slider.is-error {
    border-color: rgba(244, 63, 94, 0.6);

    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.18);
    animation: login-slider-shake 0.4s ease;
}
@keyframes login-slider-shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}

.login-slider-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    user-select: none;
    font-size: 13px;
    letter-spacing: 0.12em;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}
.login-slider.is-success .login-slider-text {
    color: rgba(110, 231, 183, 0.95);
    letter-spacing: 0.22em;
}
.login-slider.is-error .login-slider-text {
    color: rgba(244, 63, 94, 0.85);
}

.login-slider-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.10) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.85);
    cursor: move;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255,255,255,0.18) inset;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}
.login-slider-handle:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.14) 100%);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255,255,255,0.22) inset;
}
.login-slider-handle.is-dragging {
    cursor: grabbing;
    background: linear-gradient(180deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.18) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255,255,255,0.25) inset;
    transform: scale(1.04);
}
.login-slider.is-success .login-slider-handle {
    background: linear-gradient(180deg, rgba(16,185,129,0.45) 0%, rgba(16,185,129,0.28) 100%);
    border-color: rgba(110, 231, 183, 0.6);
    color: #ecfdf5;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35), 0 1px 0 rgba(255,255,255,0.2) inset;
}
.login-slider-handle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 2px;
}

.login-slider-error {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 16px;
    margin: 6px 2px 0;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(252, 165, 165, 0.95);
    font-weight: 500;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.login-slider-error::before {
    content: "";
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fca5a5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 8v4M12 16h.01'/></svg>") no-repeat center / contain;
}
.login-slider-wrap.is-error .login-slider-error,
.login-slider-wrap.has-error .login-slider-error {
    opacity: 1;
    transform: translateY(0);
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    background: linear-gradient(135deg,
                    rgba(52, 211, 153, 0.28) 0%,
                    rgba(16, 185, 129, 0.22) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(52, 211, 153, 0.4);
    border-radius: 11px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.14em;
    cursor: pointer;
    font-family: inherit;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 4px 14px rgba(0, 0, 0, 0.28);
    transition: background 0.2s ease, border-color 0.2s ease,
                transform 0.15s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.login-submit::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.12), transparent);
    pointer-events: none;
}
.login-submit:hover {
    background: linear-gradient(135deg,
                    rgba(255, 255, 255, 0.28) 0%,
                    rgba(255, 255, 255, 0.16) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28) inset,
        0 6px 18px rgba(0, 0, 0, 0.4);
}
.login-submit:active { transform: scale(0.985); }

.login-submit.is-soft {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    box-shadow: none;
}
.login-submit.is-soft::before { display: none; }
.login-submit.is-soft:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.85);
}

.login-submit.is-ready {
    border-color: rgba(52, 211, 153, 0.8);
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.55) 0%, rgba(16, 185, 129, 0.45) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 4px 18px rgba(52, 211, 153, 0.4),
        0 0 0 3px rgba(52, 211, 153, 0.1);
}
.login-submit.is-ready .login-submit-arrow {
    transform: translateX(0); opacity: 1;
}
.login-submit-arrow {
    transform: translateX(-6px); opacity: 0;
    transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .3s;
}
.login-submit:hover:not(:disabled) .login-submit-arrow {
    transform: translateX(2px); opacity: 0.9;
}

.login-submit.is-loading {
    cursor: wait;
    background: linear-gradient(135deg,
                    rgba(52, 211, 153, 0.2) 0%,
                    rgba(16, 185, 129, 0.15) 100%);
    border-color: rgba(52, 211, 153, 0.3);
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

.login-submit.is-success {
    background: linear-gradient(135deg,
                    rgba(74, 222, 128, 0.45) 0%,
                    rgba(34, 197, 94, 0.35) 100%);
    border-color: rgba(74, 222, 128, 0.7);
    color: #fff;
}
.login-submit-text {
    pointer-events: none;
    user-select: none;
    position: relative;
    z-index: 1;
}
.login-submit-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
}
.login-submit-secondary:hover {
    background: linear-gradient(135deg,
                    rgba(255, 255, 255, 0.18) 0%,
                    rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.4);
}

.login-hint {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}
.login-hint a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}
.login-hint a:hover { color: rgba(255, 255, 255, 0.85); text-decoration: underline; }

@media (max-width: 520px) {
    .login-section {
        padding: 80px 0 30px;
        background-attachment: scroll;
    }
    .login-container { padding: 0 16px; }
    .login-card {
        padding: 26px 22px 20px;
        border-radius: 18px;
        backdrop-filter: blur(24px) saturate(1.4);
        -webkit-backdrop-filter: blur(24px) saturate(1.4);
    }
    .login-card-title { font-size: 20px; }
    .login-card-logo { width: 46px; height: 46px; }
    .login-form { gap: 12px; }
    .login-input { height: 42px; }
    .login-submit { height: 42px; font-size: 13px; }
}

/* Cookie 提示 */
.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(120%);
    width: calc(100% - 32px);
    max-width: 640px;
    z-index: 9999;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%),
        var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur-strong)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(var(--glass-sat));
    border: 1px solid var(--glass-border-bright);
    border-radius: var(--glass-radius);
    padding: 16px 20px;
    box-shadow: var(--glass-shadow-rich-strong);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}
.cookie-consent.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cookie-consent-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fda4af;
}
.cookie-consent-body {
    flex: 1;
    min-width: 0;
}
.cookie-consent-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #fff;
}
.cookie-consent-text {
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}
.cookie-consent-actions {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cookie-consent-btn {
    height: 36px;
    padding: 0 16px;
    border-radius: 9999px;
    border: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.cookie-consent-btn-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.cookie-consent-btn-decline:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}
.cookie-consent-btn-accept {
    background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(244, 63, 94, 0.5);
}
.cookie-consent-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -6px rgba(244, 63, 94, 0.65);
}
.cookie-consent-btn-accept:active { transform: translateY(0); }

@media (max-width: 520px) {
    .cookie-consent {
        flex-wrap: wrap;
        padding: 14px;
        gap: 12px;
        bottom: 12px;
    }
    .cookie-consent-icon { width: 36px; height: 36px; }
    .cookie-consent-body { flex: 1 1 100%; order: 2; }
    .cookie-consent-actions { width: 100%; order: 3; justify-content: stretch; }
    .cookie-consent-btn { flex: 1; }
}

.scroll-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-fade-up.delay-200 { transition-delay: 0.2s; }
.scroll-fade-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.main-content {
    transition: opacity 0.22s ease, transform 0.22s ease;
}
body.is-loading .main-content {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}
body.is-entering .main-content {
    opacity: 0;
    transform: translateY(10px);
}

body:not(.is-loading):not(.is-entering) .main-content {
    opacity: 1;
    transform: translateY(0);
}

/* 页面加载进度 */
.page-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #06ccf4, #22c55e);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease, width 0.3s ease;
    pointer-events: none;
}
.page-progress.is-active {
    opacity: 1;
    width: 70%;
}
.page-progress.is-done {
    width: 100%;
    opacity: 0;
    transition: width 0.15s ease, opacity 0.3s ease 0.1s;
}

.user-menu-item.user-menu-admin {
    color: rgba(196, 181, 253, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
}
.user-menu-item.user-menu-admin:hover {
    background: rgba(139, 92, 246, 0.16);
    color: #fff;
}
.user-menu-item.user-menu-admin svg { color: #c4b5fd; }

/* 头衔徽章 */
.user-title-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.6;
    vertical-align: middle;
    border: 1px solid transparent;
    white-space: nowrap;
}
.user-title-badge.color-0 { color: #94a3b8; background: rgba(148,163,184,0.14); border-color: rgba(148,163,184,0.3); }
.user-title-badge.color-1 { color: #c4b5fd; background: rgba(196,181,253,0.14); border-color: rgba(196,181,253,0.32); }
.user-title-badge.color-2 { color: #60a5fa; background: rgba(96,165,250,0.14); border-color: rgba(96,165,250,0.32); }
.user-title-badge.color-3 { color: #34d399; background: rgba(52,211,153,0.14); border-color: rgba(52,211,153,0.32); }
.user-title-badge.color-4 { color: #fbbf24; background: rgba(251,191,36,0.14); border-color: rgba(251,191,36,0.32); }
.user-title-badge.color-5 { color: #f87171; background: rgba(248,113,113,0.14); border-color: rgba(248,113,113,0.32); }

/* 账号中心 */
.ac-backdrop {
    position: fixed; inset: 0;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
}
.ac-backdrop.show { display: flex; }
.ac-modal {
    background: #131a2e;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    width: 100%; max-width: 920px;
    max-height: 90vh;
    display: flex; flex-direction: column;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    color: #e2e8f0;
    overflow: hidden;
}
.ac-head {
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
}
.ac-head h3 { font-size: 16px; font-weight: 700; }
.ac-close {
    background: transparent; border: 0; color: #94a3b8;
    cursor: pointer; font-size: 24px; line-height: 1;
    padding: 4px 10px; border-radius: 6px; transition: all .2s;
}
.ac-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
.ac-body { padding: 18px 22px; overflow-y: auto; }

.ac-tabs {
    display: flex; gap: 4px; margin-bottom: 16px;
    padding: 5px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06); border-radius: 10px;
    overflow-x: auto;
}
.ac-tab {
    flex: 1; min-width: 80px;
    padding: 8px 12px; border: 0; background: transparent;
    color: #94a3b8; font-size: 13px; font-weight: 600;
    cursor: pointer; border-radius: 7px; transition: all .2s; white-space: nowrap; font-family: inherit;
}
.ac-tab:hover { color: #e2e8f0; background: rgba(255,255,255,0.06); }
.ac-tab.active { color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 4px 12px rgba(99,102,241,0.4); }

.ac-tab-panel { min-height: 200px; }

.ac-loading { padding: 40px 20px; text-align: center; color: #94a3b8; font-size: 14px; }
.ac-error { color: #f87171; }
.ac-empty { padding: 30px 20px; text-align: center; color: #94a3b8; font-size: 13px; }
.ac-spinner {
    width: 28px; height: 28px;
    border: 2.5px solid rgba(255,255,255,0.1);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    margin: 0 auto 14px;
    animation: ac-spin 0.8s linear infinite;
}
@keyframes ac-spin { to { transform: rotate(360deg); } }
.ac-muted { color: #94a3b8; }

.ac-info-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ac-info-head .ac-avatar { width: 48px; height: 48px; }
.ac-info-nick { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ac-info-uin { font-size: 12px; color: #94a3b8; margin-top: 3px; display: flex; align-items: center; gap: 6px; }

.ac-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 6px; }
.ac-detail-item { background: rgba(0,0,0,0.18); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 10px 12px; }
.ac-label { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.ac-value { font-size: 14px; font-weight: 600; word-break: break-all; }

.ac-section-title { font-size: 13px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.6px; margin: 22px 0 10px; font-weight: 600; }

.ac-perm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-perm-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(99,102,241,0.14); color: #c4b5fd; border: 1px solid rgba(99,102,241,0.3); }

.ac-list-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ac-search {
    flex: 1; background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; color: #e2e8f0; padding: 8px 12px; font-size: 13px; font-family: inherit;
}
.ac-search:focus { outline: 0; border-color: #8b5cf6; }
.ac-count { color: #94a3b8; font-size: 12px; white-space: nowrap; }

.ac-table-wrap { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; overflow: hidden; }
.ac-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ac-table th, .ac-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); white-space: nowrap; }
.ac-table th { color: #94a3b8; font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; background: rgba(0,0,0,0.2); }
.ac-table tbody tr:hover { background: rgba(255,255,255,0.04); }
.ac-table tbody tr:last-child td { border-bottom: 0; }
.ac-code { font-family: 'JetBrains Mono','Consolas',monospace; font-size: 12px; }

.ac-user-cell { display: flex; align-items: center; gap: 10px; }
.ac-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.ac-nick { font-weight: 600; display: flex; align-items: center; gap: 4px; }
.ac-uin { color: #94a3b8; font-size: 11px; }

.ac-title-badge {
    display: inline-block; padding: 1px 7px; border-radius: 999px;
    font-size: 10.5px; font-weight: 600; margin-left: 4px;
    border: 1px solid transparent; vertical-align: middle;
}
.ac-title-badge.color-0 { color: #94a3b8; background: rgba(148,163,184,0.14); border-color: rgba(148,163,184,0.3); }
.ac-title-badge.color-1 { color: #c4b5fd; background: rgba(196,181,253,0.14); border-color: rgba(196,181,253,0.32); }
.ac-title-badge.color-2 { color: #60a5fa; background: rgba(96,165,250,0.14); border-color: rgba(96,165,250,0.32); }
.ac-title-badge.color-3 { color: #34d399; background: rgba(52,211,153,0.14); border-color: rgba(52,211,153,0.32); }
.ac-title-badge.color-4 { color: #fbbf24; background: rgba(251,191,36,0.14); border-color: rgba(251,191,36,0.32); }
.ac-title-badge.color-5 { color: #f87171; background: rgba(248,113,113,0.14); border-color: rgba(248,113,113,0.32); }

.ac-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid transparent; }
.ac-badge.green { color: #34d399; background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.3); }
.ac-badge.red { color: #f87171; background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.3); }
.ac-badge.gray { color: #94a3b8; background: rgba(148,163,184,0.1); border-color: rgba(148,163,184,0.25); }

.ac-btn {
    border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.06); color: #e2e8f0;
    padding: 6px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 600;
    cursor: pointer; transition: all .2s; font-family: inherit;
}
.ac-btn:hover:not(:disabled) { background: rgba(255,255,255,0.12); }
.ac-btn:disabled { opacity: .5; cursor: not-allowed; }
.ac-btn-primary { color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); border-color: transparent; }
.ac-btn-primary:hover:not(:disabled) { filter: brightness(1.1); }
.ac-btn-danger { color: #f87171; border-color: rgba(248,113,113,0.4); }
.ac-btn-danger:hover:not(:disabled) { background: rgba(248,113,113,0.18); }

.ac-pager { display: flex; gap: 6px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.ac-pager button { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #e2e8f0; padding: 6px 11px; border-radius: 6px; font-size: 12px; cursor: pointer; font-family: inherit; }
.ac-pager button:hover:not(:disabled) { background: rgba(255,255,255,0.12); }
.ac-pager button:disabled { opacity: .35; cursor: not-allowed; }
.ac-pager button.active { background: linear-gradient(135deg, #6366f1, #8b5cf6); border-color: transparent; color: #fff; }

.ac-edit-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ac-edit-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }

.ac-form { background: rgba(0,0,0,0.15); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 14px; }
.ac-form-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ac-form-row:last-child { margin-bottom: 0; }
.ac-form-row label { font-size: 13px; color: #94a3b8; min-width: 70px; }
.ac-form-row select, .ac-form-row input[type="text"] {
    flex: 1; background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; color: #e2e8f0; padding: 7px 12px; font-size: 13px; font-family: inherit;
}
.ac-form-row select:focus, .ac-form-row input:focus { outline: 0; border-color: #8b5cf6; }

.ac-perm-matrix { display: flex; flex-direction: column; gap: 16px; }
.ac-perm-group h4 { font-size: 13px; color: #c4b5fd; margin-bottom: 8px; font-weight: 600; }
.ac-perm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.ac-perm-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 12px; background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.06); border-radius: 10px;
    cursor: pointer; transition: all .2s;
}
.ac-perm-item:hover { background: rgba(255,255,255,0.06); }
.ac-perm-item.checked { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.4); }
.ac-perm-item input[type="checkbox"] { margin-top: 3px; accent-color: #8b5cf6; width: 16px; height: 16px; cursor: pointer; }
.ac-perm-info { flex: 1; min-width: 0; }
.ac-perm-name { font-size: 13px; font-weight: 600; }
.ac-perm-key { font-family: 'JetBrains Mono','Consolas',monospace; font-size: 10.5px; color: #64748b; margin-left: 6px; }
.ac-perm-desc { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }

.ac-edit-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); }

.ac-toast {
    position: fixed; top: 24px; right: 24px; z-index: 10000;
    padding: 11px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #fff;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    transform: translateX(120%); transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.ac-toast.show { transform: none; }
.ac-toast.success { background: linear-gradient(135deg, #10b981, #059669); }
.ac-toast.error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.ac-toast.info { background: linear-gradient(135deg, #3b82f6, #2563eb); }

@media (max-width: 640px) {
    .ac-modal { max-width: 100%; max-height: 95vh; }
    .ac-tabs { flex-wrap: wrap; }
    .ac-tab { min-width: calc(50% - 2px); }
    .ac-perm-list { grid-template-columns: 1fr; }
}

