/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4facfe;
    --primary-dark: #3a8fd6;
    --primary-light: #6ec1ff;
    --bg: #f0f2f5;
    --bg-white: #ffffff;
    --bg-dark: #1a1a2e;
    --text: #333333;
    --text-light: #888888;
    --text-white: #ffffff;
    --border: #e0e0e0;
    --success: #4caf50;
    --danger: #f44336;
    --warning: #ff9800;
    --shadow: 0 2px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --nav-height: 65px;
    --header-height: 60px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.hidden { display: none !important; }

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: all 0.2s;
}

input, select {
    font-family: inherit;
    outline: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    transition: border 0.3s;
}

input:focus, select:focus {
    border-color: var(--primary);
}

/* ========== 启动界面 ========== */
#splash-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease 2.5s forwards;
}

.splash-content {
    text-align: center;
    color: white;
}

.splash-logo {
    margin-bottom: 30px;
}

.splash-logo .logo-icon {
    font-size: 80px;
    margin-bottom: 15px;
    animation: bounce 1s infinite;
}

.splash-logo h1 {
    font-size: 36px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.splash-notice {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    display: inline-block;
}

.splash-loader {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: loadProgress 3s ease forwards;
}

.splash-timer {
    font-size: 14px;
    opacity: 0.8;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes loadProgress {
    to { width: 100%; }
}

/* ========== 登录/注册界面 ========== */
#auth-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.auth-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 400px;
    max-width: 90vw;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.5s ease;
}

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

.auth-logo {
    font-size: 50px;
    text-align: center;
    margin-bottom: 10px;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text);
}

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    font-size: 15px;
    color: var(--text-light);
    transition: all 0.3s;
}

.auth-tab.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
}

.btn-primary {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary), #00f2fe);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(79,172,254,0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.auth-message {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    min-height: 20px;
}

.auth-message.success { color: var(--success); }
.auth-message.error { color: var(--danger); }

/* ========== 主界面布局 ========== */
#main-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* 顶部栏 */
.main-header {
    height: var(--header-height);
    background: linear-gradient(135deg, var(--primary), #00f2fe);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: white;
    box-shadow: var(--shadow);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid rgba(255,255,255,0.5);
}

.current-username {
    font-weight: 600;
    font-size: 15px;
}

.user-score {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 13px;
}

.header-right {
    display: flex;
    gap: 8px;
}

.header-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.header-btn:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.05);
}

/* 主内容区 */
.main-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.page {
    height: 100%;
    overflow: hidden;
}

/* ========== 聊天布局 ========== */
.chat-layout {
    display: flex;
    height: 100%;
}

.chat-sidebar {
    width: 280px;
    min-width: 280px;
    background: white;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h3 {
    font-size: 16px;
    color: var(--text);
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.search-box {
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
}

.btn-small {
    padding: 8px 14px;
    background: var(--primary);
    color: white;
    font-size: 13px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.btn-small:hover {
    background: var(--primary-dark);
}

.friend-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    padding: 5px 0;
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.friend-item:hover {
    background: #f5f7fa;
}

.friend-item.active {
    background: #e8f4ff;
    border-right: 3px solid var(--primary);
}

.friend-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
}

.friend-avatar .avatar-frame-overlay {
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    pointer-events: none;
}

.friend-info {
    flex: 1;
    min-width: 0;
}

.friend-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-last-msg {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-badge {
    background: var(--danger);
    color: white;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* 聊天区域 */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    overflow: hidden;
}

.chat-header {
    height: 55px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    background: white;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 15px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-empty {
    margin: auto;
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
}

/* 消息气泡 */
.msg-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 70%;
}

.msg-wrapper.self {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.msg-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    max-width: 100%;
}

.msg-wrapper:not(.self) .msg-bubble {
    background: white;
    border-top-left-radius: 4px;
    box-shadow: var(--shadow);
}

.msg-wrapper.self .msg-bubble {
    background: var(--primary);
    color: white;
    border-top-right-radius: 4px;
}

.msg-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
    margin-top: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.msg-file:hover {
    background: rgba(0,0,0,0.1);
}

.msg-time {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
    text-align: center;
}

/* 输入区域 */
.chat-input-area {
    padding: 12px 20px;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input-area input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 24px;
    background: #f5f7fa;
    border: 1px solid transparent;
}

.chat-input-area input[type="text"]:focus {
    background: white;
    border-color: var(--primary);
}

.btn-send {
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--primary), #00f2fe);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 24px;
    transition: all 0.2s;
}

.btn-send:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(79,172,254,0.4);
}

/* ========== 排行榜 ========== */
.rank-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 0 20px;
    overflow-y: auto;
    height: 100%;
}

.rank-container h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.rank-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rank-tab {
    padding: 8px 20px;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-light);
    transition: all 0.3s;
}

.rank-tab.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.rank-list {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.rank-item:hover {
    background: #f9f9f9;
}

.rank-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 14px;
    flex-shrink: 0;
}

.rank-num.gold { background: #ffd700; color: #8b6914; }
.rank-num.silver { background: #c0c0c0; color: #555; }
.rank-num.bronze { background: #cd7f32; color: white; }
.rank-num.normal { background: #f0f0f0; color: #888; }

.rank-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 12px;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    flex-shrink: 0;
}

.rank-info {
    flex: 1;
}

.rank-name {
    font-size: 14px;
    font-weight: 600;
}

.rank-score {
    font-size: 12px;
    color: var(--text-light);
}

/* 积分商店 */
.rank-shop {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.rank-shop h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.shop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.shop-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.shop-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.shop-item span {
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--text);
}

.btn-buy {
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary), #00f2fe);
    color: white;
    font-size: 12px;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-buy:hover {
    transform: scale(1.05);
}

.btn-buy:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ========== 我的页面 ========== */
.profile-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 20px;
    overflow-y: auto;
    height: 100%;
}

.profile-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.profile-avatar-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.profile-avatar-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
}

.avatar-frame {
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    pointer-events: none;
}

.avatar-frame.frame1 { border-color: #4facfe; border-style: solid; }
.avatar-frame.frame2 { border-color: #ff6b6b; border-style: dashed; border-width: 4px; }
.avatar-frame.frame3 { 
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box, 
                linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff) border-box;
    border-radius: 50%;
}

.profile-info {
    width: 100%;
}

.profile-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-item label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.profile-value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.btn-tiny {
    padding: 4px 10px;
    background: var(--bg);
    color: var(--text-light);
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-tiny:hover {
    background: var(--primary);
    color: white;
}

/* 自定义头像框 */
.custom-frame-section, .custom-name-section {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.custom-frame-section h3, .custom-name-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.custom-frame-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.custom-control {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.custom-control label {
    font-size: 12px;
    color: var(--text-light);
}

.custom-control input[type="color"] {
    width: 100%;
    height: 36px;
    padding: 2px;
    border-radius: 6px;
    cursor: pointer;
}

.custom-control input[type="range"] {
    width: 100%;
    padding: 0;
    height: 36px;
}

.custom-control select {
    padding: 8px 12px;
    font-size: 14px;
}

.custom-frame-preview {
    display: flex;
    justify-content: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
}

.preview-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.custom-name-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.custom-name-controls input[type="text"] {
    flex: 1;
    padding: 10px 14px;
}

.custom-name-controls input[type="color"] {
    width: 50px;
    height: 36px;
    padding: 2px;
}

/* ========== 底部导航 ========== */
.bottom-nav {
    height: var(--nav-height);
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.nav-btn {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    color: var(--text-light);
    transition: all 0.2s;
    position: relative;
}

.nav-btn.active {
    color: var(--primary);
}

.nav-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

.nav-icon {
    font-size: 22px;
}

.nav-text {
    font-size: 11px;
    font-weight: 500;
}

/* ========== 模态框 ========== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: white;
    border-radius: var(--radius);
    width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 17px;
}

.modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e0e0e0;
}

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

.modal-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--border);
}

.modal-footer .btn-cancel {
    padding: 8px 20px;
    background: #f5f5f5;
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.modal-footer .btn-confirm {
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    z-index: 20000;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ========== 渐变名字 ========== */
.gradient-name {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    font-weight: 700;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ========== 群聊编码标签 ========== */
.group-code-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

/* ========== 文件消息 ========== */
.file-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(79,172,254,0.1);
    border: 1px solid rgba(79,172,254,0.3);
    border-radius: 10px;
    margin-top: 4px;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 300px;
}

.file-msg:hover {
    background: rgba(79,172,254,0.2);
}

.file-icon {
    font-size: 24px;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 11px;
    color: var(--text-light);
}

/* ========== 创建群聊表单 ========== */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
}

/* ========== 好友请求 ========== */
.request-list {
    margin-top: 10px;
}

.request-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.request-item:last-child {
    border-bottom: none;
}

.request-info {
    flex: 1;
}

.request-name {
    font-size: 14px;
    font-weight: 600;
}

.request-actions {
    display: flex;
    gap: 8px;
}

.btn-accept {
    padding: 6px 14px;
    background: var(--success);
    color: white;
    font-size: 12px;
    border-radius: 4px;
}

.btn-reject {
    padding: 6px 14px;
    background: var(--danger);
    color: white;
    font-size: 12px;
    border-radius: 4px;
}

/* ========== 头像选择 ========== */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 10px 0;
}

.avatar-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.avatar-option:hover {
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(79,172,254,0.5);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .chat-sidebar {
        width: 220px;
        min-width: 220px;
    }
    
    .auth-container {
        padding: 30px 25px;
    }
    
    .custom-frame-controls {
        grid-template-columns: 1fr;
    }
    
    .shop-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .chat-sidebar {
        width: 180px;
        min-width: 180px;
    }
    
    .friend-name {
        font-size: 13px;
    }
    
    .msg-wrapper {
        max-width: 85%;
    }
    
    .rank-container {
        padding: 0 10px;
    }
}
