:root {
    --primary-color: #00bcd4;
    --secondary-color: #536dfe;
    --dark-bg: #0a0e27;
    --card-bg: #141829;
    --border-color: #2d3548;
    --text-primary: #ffffff;
    --text-secondary: #a0a3bd;
    --success-color: #00e676;
    --warning-color: #ffd740;
    --danger-color: #ff5252;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏 */
.navbar {
    background: rgba(20, 24, 41, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1895px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

/* Logo 区域 */
.nav-logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s;
    margin-left: 40px;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-item {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.nav-item:hover {
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary-color);
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vip-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.btn-recharge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-recharge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* 帮助中心按钮 */
.btn-help {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
}

.btn-help:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.credits-badge, .balance-badge {
    background: var(--card-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid var(--border-color);
}

.user-menu {
    position: relative;
    cursor: pointer;
}

.username {
    padding: 8px 16px;
    background: var(--card-bg);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.username:hover {
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary-color);
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    padding-top: 4px;
    background: #0a1628;
    border: 1px solid #1a2942;
    border-radius: 12px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 1000;
}

/* 在菜单顶部添加一个不可见的桥接区域 */
.dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

.user-menu:hover .dropdown {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown a:hover {
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary-color);
}

.dropdown a.logout-link:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.menu-icon {
    font-size: 16px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-divider {
    height: 1px;
    background: #1a2942;
    margin: 6px 0;
}

.btn-login, .btn-register {
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-login {
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-register {
    background: var(--primary-color);
    color: white;
}

.btn-login:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-register:hover {
    background: #00acc1;
    transform: translateY(-2px);
}

/* 主内容 */
.main-content {
    max-width: 1895px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 140px);
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* 卡片 */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

/* 按钮 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #00acc1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Main Content Area */
main {
    flex: 1;
}

/* Footer */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: auto;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .page-title {
        font-size: 32px;
    }
}

/* 帮助中心弹窗 */
.help-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.help-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.help-modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
}

.help-modal-header h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin: 0;
}

.help-modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.help-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
    transform: rotate(90deg);
}

.help-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.help-section {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.help-section summary {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.help-section summary::-webkit-details-marker {
    display: none;
}

.help-section summary::before {
    content: '▶';
    font-size: 12px;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.help-section[open] summary::before {
    transform: rotate(90deg);
}

.help-section summary:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.help-content {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    animation: expandContent 0.3s ease;
}

@keyframes expandContent {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.help-content h4 {
    font-size: 15px;
    color: var(--primary-color);
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.help-content h4:first-child {
    margin-top: 0;
}

.help-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.help-content p strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 提示词模板容器 */
.prompt-template {
    position: relative;
    background: rgba(0, 188, 212, 0.05);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.prompt-template .prompt-text {
    margin-bottom: 8px;
    padding-right: 80px;
}

/* 复制按钮 */
.btn-copy-prompt {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.btn-copy-prompt:hover {
    background: linear-gradient(135deg, #00acc1 0%, #00838f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
}

.btn-copy-prompt:active {
    transform: translateY(0);
}

.btn-copy-prompt.copied {
    background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
}

@media (max-width: 768px) {
    .help-modal {
        padding: 10px;
    }
    
    .help-modal-content {
        max-height: 95vh;
    }
    
    .help-modal-header {
        padding: 16px;
    }
    
    .help-modal-header h2 {
        font-size: 20px;
    }
    
    .help-modal-body {
        padding: 16px;
    }
    
    .help-section summary {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .help-content {
        padding: 16px;
    }
    
    .help-content h4 {
        font-size: 14px;
    }
    
    .help-content p {
        font-size: 13px;
    }
}

/* ==================== 用户菜单按钮样式 ==================== */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 6px 16px 6px 6px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-primary);
}

.user-menu-btn:hover {
    background: rgba(0, 188, 212, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.2);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.user-vip-tag {
    font-size: 11px;
    color: #ffd700;
    line-height: 1;
}

/* ==================== 用户菜单弹窗样式 ==================== */
.user-menu-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-menu-modal.show {
    opacity: 1;
}

.user-menu-panel {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 350px;
    background: #1a2332;
    border: 1px solid rgba(45, 53, 72, 0.8);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.3s ease;
    overflow: hidden;
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 头部 */
.user-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(83, 109, 254, 0.1));
    border-bottom: 1px solid rgba(45, 53, 72, 0.5);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-title .icon {
    font-size: 24px;
}

.close-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.close-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    transform: rotate(90deg);
}

/* 积分卡片 */
.credits-card {
    margin: 20px 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 193, 7, 0.15));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.credits-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff9800, #ffc107);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.credits-info {
    flex: 1;
}

.credits-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.credits-value {
    font-size: 32px;
    font-weight: 700;
    color: #ffc107;
    line-height: 1;
}

/* VIP 卡片 */
.vip-card {
    margin: 0 24px 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15), rgba(156, 39, 176, 0.15));
    border: 1px solid rgba(233, 30, 99, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.vip-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

.vip-info {
    flex: 1;
}

.vip-status {
    margin-bottom: 4px;
}

.vip-tag {
    font-size: 18px;
    font-weight: 700;
    color: #e91e63;
}

.vip-tag.non-vip {
    color: var(--text-secondary);
}

.vip-expire {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 快捷菜单 */
.quick-menu {
    margin: 0 24px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.quick-menu .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    background: rgba(45, 53, 72, 0.3);
    border: 1px solid rgba(45, 53, 72, 0.5);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.quick-menu .menu-item:hover {
    background: rgba(0, 188, 212, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.2);
}

.quick-menu .menu-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.quick-menu .menu-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* 本地存储目录 */
.storage-section {
    margin: 0 24px 20px;
    padding: 20px;
    background: rgba(45, 53, 72, 0.3);
    border: 1px solid rgba(45, 53, 72, 0.5);
    border-radius: 16px;
}

.storage-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.storage-header .icon {
    font-size: 18px;
}

.storage-header .badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: auto;
}

.storage-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.storage-btn {
    width: 100%;
    padding: 12px;
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.storage-btn:hover {
    background: rgba(0, 188, 212, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

/* 退出登录按钮 */
.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 24px 24px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(211, 47, 47, 0.1));
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 12px;
    color: #f44336;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(211, 47, 47, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-menu-panel {
        width: calc(100% - 40px);
        right: 20px;
        top: 60px;
    }
    
    .quick-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== 充值弹窗样式 ========== */
.recharge-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recharge-modal.show {
    opacity: 1;
}

.recharge-modal-content {
    background: linear-gradient(180deg, #1a2332 0%, #0f1419 100%);
    border: 2px solid #2a3f5f;
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 弹窗头部 */
.recharge-modal-header {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(16, 185, 129, 0.1));
    border-bottom: 2px solid rgba(0, 188, 212, 0.2);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00bcd4, #10b981);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.header-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.modal-close-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    transform: rotate(90deg);
}

/* 弹窗主体 */
.recharge-modal-body {
    padding: 18px 20px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* 区域标签 */
.section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 套餐网格 */
.package-section {
    margin-bottom: 18px;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.package-card {
    position: relative;
    background: rgba(20, 24, 41, 0.6);
    border: 2px solid rgba(45, 53, 72, 0.8);
    border-radius: 14px;
    padding: 14px 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.package-card:hover {
    border-color: var(--primary-color);
    background: rgba(0, 188, 212, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.2);
}

.package-card.selected {
    border-color: var(--primary-color);
    background: rgba(0, 188, 212, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

.package-card.recommended {
    border-color: #ffd740;
}

.package-card.recommended:hover {
    box-shadow: 0 8px 24px rgba(255, 215, 64, 0.3);
}

.package-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, #ffd740, #ffa726);
    color: #000;
    padding: 3px 10px;
    border-radius: 0 12px 0 10px;
    font-size: 10px;
    font-weight: 700;
}

.package-credits {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.package-price {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.discount-tag {
    font-size: 11px;
    font-weight: 600;
    color: #ffd740;
    background: rgba(255, 215, 64, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
}

.package-label {
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* 加载和错误状态 */
.package-loading,
.error-message,
.empty-message {
    grid-column: 1 / -1;
    padding: 30px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.package-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(0, 188, 212, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 支付方式 */
.payment-section {
    margin-bottom: 16px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.payment-method {
    background: rgba(20, 24, 41, 0.6);
    border: 2px solid rgba(45, 53, 72, 0.8);
    border-radius: 12px;
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.payment-method:hover {
    border-color: var(--primary-color);
    background: rgba(0, 188, 212, 0.05);
}

.payment-method.active {
    border-color: var(--primary-color);
    background: rgba(0, 188, 212, 0.1);
}

.method-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #00bcd4, #0288d1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.method-icon.wechat-icon {
    background: linear-gradient(135deg, #07c160, #06ae56);
}

.method-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.method-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.payment-method.active .method-check {
    display: flex;
}

/* 订单摘要 */
.order-summary {
    background: rgba(0, 188, 212, 0.05);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.summary-row:not(:last-child) {
    border-bottom: 1px solid rgba(45, 53, 72, 0.5);
}

.summary-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.summary-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.summary-value.price {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
}

/* 提交按钮 */
.btn-submit-payment {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00bcd4, #10b981);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.btn-submit-payment:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.4);
}

.btn-submit-payment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(45, 53, 72, 0.5);
}

/* 支付提示 */
.payment-tips {
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    padding: 4px 0;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .recharge-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .package-grid {
        grid-template-columns: 1fr;
    }
    
    .header-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .header-title {
        font-size: 18px;
    }
}

/* ========== 二维码弹窗样式 ========== */
.qrcode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qrcode-modal.show {
    display: flex !important;
    opacity: 1;
}

.qrcode-modal-content {
    background: linear-gradient(180deg, #1a2332 0%, #0f1419 100%);
    border: 2px solid #2a3f5f;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    animation: modalSlideUp 0.3s ease;
}

.qrcode-header {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(16, 185, 129, 0.1));
    border-bottom: 2px solid rgba(0, 188, 212, 0.2);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 22px 22px 0 0;
}

.qrcode-header .header-text {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qrcode-header .header-icon {
    font-size: 32px;
}

.qrcode-header .header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.qrcode-header .header-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.qrcode-body {
    padding: 32px 24px;
    text-align: center;
}

.qrcode-image {
    width: 260px;
    height: 260px;
    margin: 0 auto 24px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.qrcode-image canvas,
.qrcode-image img {
    max-width: 100%;
    height: auto;
}

.order-info {
    background: rgba(0, 188, 212, 0.05);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.order-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: var(--text-primary);
    font-size: 14px;
}

.order-info .info-row:not(:last-child) {
    border-bottom: 1px solid rgba(45, 53, 72, 0.5);
}

.order-info .amount {
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
}

.payment-status {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.payment-status .status-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.payment-status .status-text {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

.payment-status .status-text.success {
    color: #10b981;
}

.btn-success {
    margin-top: 16px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-copy {
    padding: 10px 20px;
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: rgba(0, 188, 212, 0.2);
    transform: translateY(-2px);
}
