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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: rgba(10,10,15,0.55);
    color: #fff;
    overflow-x: hidden;
}

/* ========== 视频背景 ========== */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
}

/* ========== 第一屏 ========== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

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

.btn {
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: inline-block;
}

.btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-1px);
}

.btn-primary {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.35);
}

.btn-admin {
    background: rgba(255,100,100,0.2);
    border-color: rgba(255,100,100,0.4);
}

.hero-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-sub {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    transition: opacity 0.4s ease;
}

.hero-sub.fade-out {
    opacity: 0 !important;
    animation: none;
}

.scroll-hint {
    position: fixed;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
    cursor: pointer;
    z-index: 5;
    margin: 0;
    pointer-events: auto;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.scroll-hint.fade-out {
    opacity: 0 !important;
    animation: none;
    pointer-events: none;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255,255,255,0.6);
    border-bottom: 2px solid rgba(255,255,255,0.6);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(8px); }
    60% { transform: rotate(45deg) translateY(4px); }
}

/* ========== 磨砂玻璃层 + 头像区 ========== */
.glass-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 2;
    padding: 80px 40px;
    text-align: center;
    left: 0;
    right: 0;
}

/* 成员区：标准居中 */
.members-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.glass-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(30px) saturate(1.2);
    -webkit-backdrop-filter: blur(30px) saturate(1.2);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: -1;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 60px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.members-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
}

/* ========== 头像卡片 ========== */
.member-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-card:hover .member-avatar {
    transform: scale(1.15);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(255,255,255,0.1);
}

.member-card:hover .member-avatar img {
    transform: scale(1.1);
}

/* ========== 悬浮卡片 ========== */
.hover-card {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 220px;
    background: rgba(20,20,30,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.hover-card::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: rgba(20,20,30,0.85);
    border-right: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transform: translateX(-50%) rotate(45deg);
}

.member-card:hover .hover-card {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.hover-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    text-align: center;
}

.hover-bio {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    text-align: center;
}

.hover-link {
    display: block;
    margin-top: 12px;
    padding: 8px 0;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    text-align: center;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.hover-link:hover {
    background: rgba(255,255,255,0.2);
}

/* ========== 聊天面板 ========== */
.chat-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    height: 480px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(28px) saturate(1.6) brightness(1.1);
    -webkit-backdrop-filter: blur(28px) saturate(1.6) brightness(1.1);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 16px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateY(520px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.chat-panel.open {
    transform: translateY(0);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
}

#chat-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

#chat-close:hover {
    color: #fff;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* ========== 登录/注册弹窗 ========== */
.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(28px) saturate(1.3) brightness(0.95);
    -webkit-backdrop-filter: blur(28px) saturate(1.3) brightness(0.95);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.auth-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(36px) saturate(1.4) brightness(1.0);
    -webkit-backdrop-filter: blur(36px) saturate(1.4) brightness(1.0);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.auth-modal.open .auth-modal-box {
    transform: translateY(0) scale(1);
}

.auth-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    transition: color 0.3s, transform 0.2s;
}

.auth-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.auth-modal-box h2 {
    color: #fff;
    margin-bottom: 24px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 500;
}

.auth-modal-box .form-group {
    margin-bottom: 16px;
}

.auth-modal-box .form-group label {
    display: block;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.auth-modal-box .form-group input[type="text"],
.auth-modal-box .form-group input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

.auth-modal-box .form-group input:focus {
    border-color: rgba(255,255,255,0.4);
}

.auth-modal-box .admin-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    cursor: pointer;
    margin: 10px 0;
}

.auth-modal-box .admin-toggle input {
    width: auto;
}

.auth-modal-box .error-msg {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 4px;
    margin-bottom: 8px;
    min-height: 1.2em;
}

.auth-modal-box .btn-submit {
    width: 100%;
    padding: 13px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    font-family: inherit;
}

.auth-modal-box .btn-submit:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.auth-modal-box .auth-link {
    text-align: center;
    margin-top: 18px;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.auth-modal-box .auth-link a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.3s;
}

.auth-modal-box .auth-link a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ========== 个人中心弹窗 ========== */
.auth-modal-box.profile-box {
    max-width: 440px;
}

.profile-top {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.profile-avatar-lg {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
}

.profile-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-meta {
    min-width: 0;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-username {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.profile-role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    background: rgba(255,120,120,0.2);
    color: #ff9090;
    border: 1px solid rgba(255,120,120,0.3);
}

.auth-modal-box .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
    resize: vertical;
    min-height: 76px;
}

.auth-modal-box .form-group textarea:focus {
    border-color: rgba(255,255,255,0.4);
}

.avatar-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avatar-row img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
}

.auth-modal-box .form-group input[type="file"] {
    flex: 1;
    min-width: 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.auth-modal-box .form-group input[type="file"]::file-selector-button {
    padding: 8px 14px;
    margin-right: 12px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s;
}

.auth-modal-box .form-group input[type="file"]::file-selector-button:hover {
    background: rgba(255,255,255,0.25);
}

.field-hint {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-top: 6px;
}

.error-msg.msg-success {
    color: #8fd88f;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .top-bar {
        padding: 16px 20px;
    }
    .nav-buttons {
        gap: 8px;
    }
    .btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    .members-row {
        gap: 24px;
    }
    .member-avatar {
        width: 80px;
        height: 80px;
    }
    .hover-card {
        width: 180px;
    }
    .chat-panel {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}
