/* 科技风格麻将记分系统样式 */

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

body {
    font-family: 'Microsoft YaHei', 'Arial', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.header h1 {
    font-size: 3rem;
    background: linear-gradient(45deg, #00d4ff, #0099cc, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
    to { text-shadow: 0 0 40px rgba(0, 212, 255, 0.8); }
}

.subtitle {
    color: #8892b0;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
}

.user-avatar-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 212, 255, 0.5);
}

.header-default-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.profile-btn {
    color: #00d4ff;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #00d4ff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.profile-btn:hover {
    background: #00d4ff;
    color: white;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.logout-btn {
    color: #ff6b6b;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ff6b6b;
    color: white;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
}

/* 认证容器 */
.auth-container {
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    color: #8892b0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn.active {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccd6f6;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: #8892b0;
}

.form-group small {
    color: #8892b0;
    font-size: 0.9rem;
}

/* 按钮样式 */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    padding: 10px 20px;
    background: linear-gradient(45deg, #6c757d, #495057);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.btn-info {
    padding: 10px 20px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn-warning {
    padding: 10px 20px;
    background: linear-gradient(45deg, #f093fb, #f5576c);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn-danger {
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.9rem;
}

.btn-transfer {
    padding: 10px 20px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-right: 10px;
}

.btn-transfer:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

/* 主页选项卡 */
.dashboard-container {
    max-width: 800px;
    margin: 0 auto;
}

.room-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.option-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.option-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.option-card h3 {
    color: #ccd6f6;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.option-card p {
    color: #8892b0;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* 房间页面样式 */
.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
}

.room-info h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ccd6f6;
}

.room-details {
    margin-top: 15px;
}

.room-info-row, .room-time-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.room-code-card, .online-count-card, .room-time-card, .room-duration-card {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.room-code-card:hover, .online-count-card:hover, .room-time-card:hover, .room-duration-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.info-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
}

/* 特殊样式 */
.room-code-card {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.3), rgba(74, 144, 226, 0.1));
    border-color: rgba(74, 144, 226, 0.4);
}

.online-count-card {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.3), rgba(46, 204, 113, 0.1));
    border-color: rgba(46, 204, 113, 0.4);
}

.room-time-card {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3), rgba(155, 89, 182, 0.1));
    border-color: rgba(155, 89, 182, 0.4);
}

.room-duration-card {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.3), rgba(230, 126, 34, 0.1));
    border-color: rgba(230, 126, 34, 0.4);
}

.room-code {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 4px;
}

.room-code:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.room-actions {
    display: flex;
    gap: 10px;
}

/* 统一room-actions中所有按钮的样式 */
.room-actions button,
.room-actions a {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

/* 广告样式 */
.homepage-ad {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
}

.room-bottom-ad {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
}

.room-popup-ad-modal {
    z-index: 10000;
}

.room-popup-ad-content {
    max-width: 80%;
    max-height: 80%;
    padding: 20px;
    text-align: center;
}

.room-popup-ad-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

@media (max-width: 768px) {
    .room-popup-ad-content {
        max-width: 95%;
        max-height: 90%;
        padding: 15px;
    }
    
    .room-popup-ad-content img {
        max-height: 60vh;
    }
}

/* 广告管理页面样式 */
.ads-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ad-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.ad-section h3 {
    color: #00d4ff;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    padding-bottom: 10px;
}

.upload-area {
    border: 2px dashed rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #8892b0;
}

.upload-area:hover {
    border-color: rgba(0, 212, 255, 0.6);
    background: rgba(0, 212, 255, 0.05);
    color: #ccd6f6;
}

.image-preview {
    max-width: 200px;
    max-height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-top: 10px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.btn-save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    font-size: 1rem;
    font-weight: 500;
    width: auto; /* 覆盖btn-primary的width: 100% */
}

.room-actions .btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    box-shadow: 0 3px 10px rgba(0, 212, 255, 0.3);
    width: auto; /* 覆盖btn-primary的width: 100% */
}

.room-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.room-actions .btn-info:hover,
.room-actions .btn-secondary:hover,
.room-actions .btn-warning:hover,
.room-actions .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 用户积分卡片 */
.user-score-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    text-align: center;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.user-score-card h3 {
    color: #ccd6f6;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.score-display {
    font-size: 3rem;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.score-display.negative {
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.score-change {
    color: #8892b0;
    font-size: 1.1rem;
}

/* 收款记录卡片 */
.transfer-records-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.transfer-records-card h3 {
    color: #ccd6f6;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.transfer-records-container {
    height: 240px; /* 调整高度以显示4条记录 */
    overflow-y: auto;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.2);
    scroll-behavior: smooth; /* 平滑滚动 */
}

.transfer-records-list {
    padding: 10px;
}

.transfer-record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid #00ff88;
    transition: all 0.3s ease;
    animation: slideInRecord 0.5s ease-out;
}

.transfer-record-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.transfer-record-info {
    flex: 1;
}

.transfer-record-from {
    color: #ccd6f6;
    font-weight: 600;
    margin-bottom: 4px;
}

.transfer-record-time {
    color: #8892b0;
    font-size: 0.9rem;
}

.transfer-record-amount {
    color: #00ff88;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.transfer-net {
    color: #00ff88;
    font-size: 0.9rem;
    margin-top: 2px;
    opacity: 0.9;
}
.transfer-record-net {
    color: #00ff88;
    font-size: 0.95rem;
    margin-top: 4px;
    opacity: 0.9;
}

.loading-records {
    text-align: center;
    color: #8892b0;
    padding: 20px;
    font-style: italic;
}

.no-records {
    text-align: center;
    color: #8892b0;
    padding: 20px;
    font-style: italic;
}

@keyframes slideInRecord {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条样式 */
.transfer-records-container::-webkit-scrollbar {
    width: 6px;
}

.transfer-records-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.transfer-records-container::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 3px;
}

.transfer-records-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.7);
}

/* 成员容器 */
.members-container {
    margin-bottom: 30px;
}

.members-container h3 {
    color: #ccd6f6;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* 成员搜索框与结果 */
.member-search { margin: 10px 0 15px; position: relative; }
.member-search input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: #ccd6f6;
}
.member-search input::placeholder { color: #8892b0; }
.member-search-results {
    margin-top: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}
.member-search-item {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.member-search-item:last-child { border-bottom: none; }
.member-search-item .name { color: #ccd6f6; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-search-item .score {
    color: #64ffda;
    background: rgba(100, 255, 218, 0.12);
    border: 1px solid rgba(100, 255, 218, 0.35);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}
.member-search-item .arrow { color: #8892b0; font-size: 1rem; }
.member-search-item .search-avatar-img,
.member-search-item .search-avatar-default {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 212, 255, 0.25);
}
.member-search-item .search-avatar-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(255,255,255,0.06));
    color: #ccd6f6;
    font-size: 14px;
}
.member-search-item:hover { background: rgba(255, 255, 255, 0.06); }

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 申请模式成员列表样式（紧凑、可点击、右箭头） */
.members-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    overflow: hidden;
}

.members-list .member-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    padding: 12px 14px;
}

.members-list .member-card:last-child {
    border-bottom: none;
}

.member-card.clickable { cursor: pointer; }

.members-list .member-avatar { width: 36px; height: 36px; border: 1px solid rgba(0, 212, 255, 0.3); }
.members-list .member-default-avatar { width: 36px; height: 36px; font-size: 16px; border: 1px solid rgba(0, 212, 255, 0.3); }

.members-list .member-info { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.members-list .member-name { font-size: 0.95rem; }
.members-list .member-score { color: #ff6b6b !important; font-weight: 600; font-size: 1rem; }
.members-list .member-arrow { margin-left: 8px; color: #8892b0; font-size: 1.1rem; }

@media (max-width: 768px) {
  .members-list { border-radius: 10px; }
  .members-list .member-card { padding: 12px; }
  .members-list .member-avatar,
  .members-list .member-default-avatar { width: 32px; height: 32px; }
}

.member-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.member-card.offline {
    opacity: 0.6;
    border-color: rgba(136, 146, 176, 0.3);
}

.member-avatar-section {
    flex-shrink: 0;
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 212, 255, 0.5);
}

.member-default-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    border: 2px solid rgba(0, 212, 255, 0.5);
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-name {
    color: #ccd6f6;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.owner-badge {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.offline-badge {
    background: rgba(136, 146, 176, 0.5);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.member-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff88;
}

.member-score.negative {
    color: #ff6b6b;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.close {
    color: #8892b0;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff6b6b;
}

.modal h2 {
    color: #ccd6f6;
    margin-bottom: 25px;
    text-align: center;
}

/* 排行榜样式 */
.ranking-list {
    max-height: 400px;
    overflow-y: auto;
}

.ranking-item {
    display: grid;
    grid-template-columns: 50px 50px 1fr 120px 100px;
    gap: 15px;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.ranking-item .rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d4ff;
    text-align: center;
}

.ranking-avatar-section {
    flex-shrink: 0;
}

.ranking-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 212, 255, 0.5);
}

.ranking-default-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    border: 2px solid rgba(0, 212, 255, 0.5);
}

.ranking-item .name {
    color: #ccd6f6;
    font-weight: 600;
}

.ranking-item .score {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ff88;
    text-align: right;
}

.ranking-item .score.negative {
    color: #ff6b6b;
}

.ranking-item .change {
    color: #8892b0;
    text-align: right;
    font-size: 0.9rem;
}

/* 设置页面样式 */
.settings-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.settings-section h3 {
    color: #ccd6f6;
    margin-bottom: 15px;
}

.member-manage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
    z-index: 1001;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 警告样式 */
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 10px;
    text-align: center;
}

.alert-error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.alert-success {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid #00ff88;
    color: #00ff88;
}

/* 转账记录样式 */
.transfer-history-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.transfer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #00d4ff;
    transition: all 0.3s ease;
}

.transfer-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.transfer-item.sent {
    border-left-color: #ff6b6b;
}

.transfer-item.received {
    border-left-color: #51cf66;
}

.transfer-info {
    flex: 1;
}

.transfer-users {
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.transfer-time {
    font-size: 12px;
    color: #888;
}

.transfer-amount {
    font-size: 16px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

.transfer-amount.sent {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.transfer-amount.received {
    color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
}

.no-transfers {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-style: italic;
}

/* 收到积分提示弹窗 */
.score-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    text-align: center;
    min-width: 300px;
    animation: scoreNotificationShow 0.5s ease-out;
}

.score-notification h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #51cf66;
}

.score-notification p {
    margin: 10px 0;
    font-size: 16px;
}

.score-notification .amount {
    font-size: 24px;
    font-weight: bold;
    color: #51cf66;
    text-shadow: 0 0 10px rgba(81, 207, 102, 0.5);
}

.score-notification .close-btn {
    margin-top: 20px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.score-notification .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

@keyframes scoreNotificationShow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 红包样式 */
.red-packet-notify {
    z-index: 10001;
}

.red-packet-content {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.4);
    animation: redPacketPulse 2s infinite;
}

@keyframes redPacketPulse {
    0%, 100% {
        box-shadow: 0 20px 40px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 25px 50px rgba(255, 107, 107, 0.6);
    }
}

.red-packet-header {
    margin-bottom: 20px;
}

.red-packet-icon {
    font-size: 60px;
    margin-bottom: 10px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.red-packet-title {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.red-packet-info {
    margin-bottom: 25px;
}

.sender-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
}

.packet-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.red-packet-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-claim {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 红包结果样式 */
.red-packet-result-content {
    text-align: center;
    padding: 30px;
}

.result-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: celebration 1s ease-out;
}

@keyframes celebration {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

.result-title {
    font-size: 24px;
    color: #00ff88;
    margin-bottom: 15px;
    font-weight: bold;
}

.result-amount {
    font-size: 48px;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.result-message {
    font-size: 16px;
    color: #ccd6f6;
    font-style: italic;
}

/* 个人信息页面样式 */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 212, 255, 0.5);
}

.profile-default-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    border: 3px solid rgba(0, 212, 255, 0.5);
}

.avatar-upload-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-upload-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
}

.profile-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    display: block;
    margin-bottom: 8px;
    color: #ccd6f6;
    font-weight: 500;
}

.profile-form input[type="text"],
.profile-form input[type="tel"],
.profile-form input[type="password"],
.profile-form input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.profile-form input[type="text"]:focus,
.profile-form input[type="tel"]:focus,
.profile-form input[type="password"]:focus,
.profile-form input[type="file"]:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.back-btn {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.3);
    color: #6c757d;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.back-btn:hover {
    background: rgba(108, 117, 125, 0.2);
    border-color: rgba(108, 117, 125, 0.5);
    color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .room-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .room-info h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .room-details {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .room-info-row, .room-time-row {
        flex-direction: row; /* 强制保持水平排列 */
        gap: 10px;
    }
    
    .room-code-card, .online-count-card, .room-time-card, .room-duration-card {
        padding: 10px 12px;
        margin-bottom: 0;
    }
    
    .info-label {
        font-size: 11px;
    }
    
    .info-value {
        font-size: 14px;
    }
    
    .room-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .room-actions button,
    .room-actions a {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 80px;
        width: auto; /* 确保移动端按钮宽度自适应 */
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .user-score-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .score-display {
        font-size: 2.5rem;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .member-card {
        padding: 15px;
    }
    /* 手机端：成员信息同一行显示并缩小尺寸 */
    .member-avatar {
        width: 36px;
        height: 36px;
        border: 1px solid rgba(0, 212, 255, 0.3);
    }
    .member-default-avatar {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border: 1px solid rgba(0, 212, 255, 0.3);
    }
    .member-info {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .member-name {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .member-score {
        font-size: 1rem;
    }
    /* 移动端后台：成员管理列表积分再缩小一点，避免超出 */
    .members-list .member-score {
        font-size: 0.8rem;
    }
    
    .ranking-item {
        grid-template-columns: 40px 40px 1fr 80px;
        gap: 10px;
        padding: 12px;
    }
    
    .ranking-item .change {
        display: none;
    }
    
    .score-notification {
        min-width: 280px;
        padding: 25px 30px;
        margin: 0 10px;
    }
    
    .transfer-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 12px;
    }
    
    .transfer-amount {
        align-self: flex-end;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 20px;
        width: 95%;
        max-width: 400px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* 更小屏幕优化 */
@media (max-width: 480px) {
    .room-info h1 {
        font-size: 1.5rem;
    }
    
    .room-details {
        gap: 10px;
    }
    
    .room-info-row, .room-time-row {
        flex-direction: row; /* 强制保持水平排列 */
        gap: 10px;
    }
    
    .room-code-card, .online-count-card, .room-time-card, .room-duration-card {
        padding: 8px 10px;
        margin-bottom: 0;
    }
    
    .info-label {
        font-size: 10px;
    }
    
    .info-value {
        font-size: 12px;
    }
    
    .room-actions {
        gap: 10px;
    }
    
    .room-actions button,
    .room-actions a {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 70px;
        width: auto; /* 确保小屏幕按钮宽度自适应 */
    }
    
    .score-display {
        font-size: 2rem;
    }
    
    .user-score-card {
        padding: 15px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #0099cc, #007399);
}

/* 红包记录样式 */
.red-packet-records-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

.red-packet-records-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 3% auto;
    padding: 0;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.records-modal-header {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    padding: 20px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.records-modal-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.records-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.records-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.records-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.records-tabs .tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #8892b0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

.records-tabs .tab-btn.active {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    border-bottom-color: #00d4ff;
}

.records-tabs .tab-btn:hover {
    background: rgba(0, 212, 255, 0.05);
    color: #00d4ff;
}

.records-tab-content {
    padding: 20px 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.user-records-tabs {
    display: flex;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.user-records-tabs .sub-tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #8892b0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.user-records-tabs .sub-tab-btn.active {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
}

.records-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.record-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.record-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.record-sender {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sender-name {
    font-weight: 600;
    color: #ccd6f6;
    font-size: 1.1rem;
}

.record-time {
    color: #8892b0;
    font-size: 0.9rem;
}

.record-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-active {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.status-finished {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.status-expired {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.claimed-amount {
    color: #00ff88;
    font-weight: 600;
    font-size: 1.1rem;
}

.record-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.record-message {
    color: #ccd6f6;
    font-style: italic;
    font-size: 1rem;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid #00d4ff;
}

.record-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #8892b0;
    font-size: 0.9rem;
}

.record-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.total-amount {
    color: #ffd700;
    font-weight: 500;
}

.packet-count {
    color: #00d4ff;
    font-weight: 500;
}

.claimed-info {
    color: #00ff88;
    font-weight: 500;
}

.remaining-info {
    color: #ff9500;
    font-weight: 500;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #8892b0;
    font-size: 1.1rem;
}

.no-records {
    text-align: center;
    padding: 40px;
    color: #8892b0;
    font-size: 1.1rem;
}

/* 红包详情弹窗样式 */
.red-packet-detail-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

.red-packet-detail-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.detail-modal-header {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    padding: 20px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-modal-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.detail-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.detail-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.detail-content {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.packet-detail {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.detail-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-title h3 {
    color: #ccd6f6;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.detail-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.detail-time {
    color: #8892b0;
    font-size: 0.9rem;
}

.detail-message {
    color: #ccd6f6;
    font-style: italic;
    font-size: 1.1rem;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border-left: 4px solid #00d4ff;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: #8892b0;
    font-size: 0.9rem;
}

.stat-value {
    color: #ccd6f6;
    font-weight: 600;
    font-size: 1rem;
}

.claims-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.claims-section h4 {
    color: #ccd6f6;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.claims-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.claim-item {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    gap: 15px;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.claim-rank {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.claim-user {
    color: #ccd6f6;
    font-weight: 500;
}

.claim-amount {
    color: #00ff88;
    font-weight: 600;
}

.claim-time {
    color: #8892b0;
    font-size: 0.85rem;
}

.no-claims {
    text-align: center;
    padding: 30px;
    color: #8892b0;
    font-size: 1rem;
}

/* 响应式设计 - 红包记录 */
@media (max-width: 768px) {
    .red-packet-records-content,
    .red-packet-detail-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .records-modal-header,
    .detail-modal-header {
        padding: 15px 20px;
    }
    
    .records-modal-header h2,
    .detail-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .records-tab-content,
    .detail-content {
        padding: 15px 20px;
    }
    
    .record-item {
        padding: 15px;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .record-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .record-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .detail-stats {
        grid-template-columns: 1fr;
    }
    
    .claim-item {
        grid-template-columns: 30px 1fr;
        gap: 10px;
    }
    
    .claim-amount,
    .claim-time {
        grid-column: 2;
        justify-self: end;
        font-size: 0.8rem;
    }
    
    .records-tabs .tab-btn,
    .user-records-tabs .sub-tab-btn {
        min-height: 44px;
        padding: 12px 16px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .records-close,
    .detail-close,
    .btn-claim,
    .btn-close {
        min-height: 44px;
        min-width: 44px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* 开关控件样式 */
.switch-group {
    margin-bottom: 20px;
}

.switch-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #ccd6f6;
    gap: 12px;
    margin-bottom: 5px;
    position: relative;
}

.switch-label input[type="checkbox"] {
    display: none;
}

.switch-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
    flex-shrink: 0;
    display: inline-block;
}

.switch-slider:before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #8892b0;
    top: 1px;
    left: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.switch-label input[type="checkbox"]:checked + .switch-slider {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-color: #00d4ff;
}

.switch-label input[type="checkbox"]:checked + .switch-slider:before {
    transform: translateX(26px);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.switch-group small {
    color: #8892b0;
    font-size: 0.85rem;
    margin-left: 0;
    margin-top: 5px;
    display: block;
    line-height: 1.4;
    padding-left: 62px;
}

/* 响应式设计 - 开关控件 */
@media (max-width: 768px) {
    .switch-label {
        font-size: 0.9rem;
        gap: 10px;
    }
    
    .switch-slider {
        width: 44px;
        height: 24px;
    }
    
    .switch-slider:before {
        width: 20px;
        height: 20px;
        top: 1px;
        left: 1px;
    }
    
    .switch-label input[type="checkbox"]:checked + .switch-slider:before {
        transform: translateX(22px);
    }
    
    .switch-group small {
        margin-left: 0;
        padding-left: 54px;
        font-size: 0.8rem;
    }
}

/* 隐藏积分样式 */
.hidden-score {
    color: #8892b0 !important;
    font-style: italic;
    opacity: 0.7;
}

/* 房间成员标题区域样式 */
.members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.members-title {
    margin: 0;
    font-size: 1.2rem;
    color: #ccd6f6;
}

.btn-invite {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.btn-invite:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.5);
}

/* 邀请弹窗样式 */
.invite-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.invite-section h3 {
    margin: 0 0 15px 0;
    color: #00d4ff;
    font-size: 1.1rem;
}

.invite-link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.invite-link-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #ccd6f6;
    font-size: 0.9rem;
}

.invite-link-container input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

.qr-code-container {
    text-align: center;
}

#qr-code {
    margin: 15px 0;
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.invite-section small {
    color: #8892b0;
    font-size: 0.85rem;
    display: block;
    margin-top: 8px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ccd6f6;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 邀请提示样式 */
.invite-notice {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
    animation: inviteGlow 2s ease-in-out infinite alternate;
}

.invite-notice p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

@keyframes inviteGlow {
    from {
        box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
    }
    to {
        box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
    }
}

/* 欢迎提示样式 */
.welcome-notice {
    background: linear-gradient(45deg, #51cf66, #40c057);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(81, 207, 102, 0.3);
    animation: welcomeFadeIn 0.8s ease-out;
}

.welcome-notice p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

@keyframes welcomeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes welcomeFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* 邀请确认页面样式 */
.invite-confirm-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    margin: 50px auto;
}

.invite-confirm-card h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.invite-confirm-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

.confirm-actions a {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.confirm-actions .btn-primary {
    background: #007bff;
    color: white;
}

.confirm-actions .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.confirm-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.confirm-actions .btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.confirm-actions .btn-danger {
    background: #dc3545;
    color: white;
}

.confirm-actions .btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .invite-confirm-card {
        margin: 20px;
        padding: 20px;
    }
    
    .confirm-actions {
        gap: 8px;
    }
    
    .confirm-actions a {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* 响应式设计 - 邀请功能 */
@media (max-width: 768px) {
    .members-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .btn-invite {
        align-self: stretch;
        text-align: center;
    }
    
    .invite-link-container {
        flex-direction: column;
    }
    
    .invite-section {
        padding: 15px;
    }
    
    #qr-code {
        padding: 10px;
    }
    
    .invite-notice {
        padding: 12px 15px;
        margin: 10px 0;
    }
    
    .invite-notice p {
        font-size: 0.9rem;
    }
}

/* 加入请求相关样式 */
.request-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.join-requests-list {
    max-height: 400px;
    overflow-y: auto;
}

.join-request-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.join-request-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.4);
}

.request-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.request-avatar-section {
    flex-shrink: 0;
}

.request-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.request-default-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.request-details {
    flex: 1;
}

.request-name {
    font-size: 16px;
    font-weight: 600;
    color: #ccd6f6;
    margin-bottom: 4px;
}

.request-phone {
    font-size: 14px;
    color: #8892b0;
    margin-bottom: 4px;
}

.request-time {
    font-size: 12px;
    color: #64748b;
}

.request-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.request-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.request-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-success {
    background: #51cf66;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #40c057;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(81, 207, 102, 0.3);
}

.btn-danger {
    background: #ff6b6b;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.no-requests {
    text-align: center;
    padding: 40px 20px;
    color: #8892b0;
}

.no-requests p {
    margin: 0;
    font-size: 16px;
}

/* 移动端适配 - 加入请求 */
@media (max-width: 768px) {
    .join-request-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .request-user-info {
        width: 100%;
    }
    
    .request-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .request-actions button {
        flex: 1;
        max-width: 80px;
    }
    
    .request-badge {
        width: 18px;
        height: 18px;
        font-size: 11px;
        top: -6px;
        right: -6px;
    }
}

/* 页面初始化状态指示器 */
.init-status {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 12, 12, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.init-status-content {
    text-align: center;
    color: #ffffff;
}

.init-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.init-message {
    font-size: 16px;
    color: #ccd6f6;
    font-weight: 500;
}