/* ============================================
   蜜蜂接口站 - 科技风主题样式
   主色调: 深蓝黑背景 + 荧光青绿高亮
   ============================================ */

/* ---- 基础变量 ---- */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.85);
    --bg-card-hover: rgba(31, 41, 55, 0.9);
    --bg-input: rgba(17, 24, 39, 0.6);
    --bg-sidebar: rgba(10, 14, 26, 0.95);
    --bg-header: rgba(10, 14, 26, 0.9);
    
    --accent-primary: #00f0ff;
    --accent-secondary: #00c8a0;
    --accent-gradient: linear-gradient(135deg, #00f0ff, #00c8a0);
    --accent-glow: 0 0 20px rgba(0, 240, 255, 0.3);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #00f0ff;
    
    --border-color: rgba(0, 240, 255, 0.15);
    --border-active: rgba(0, 240, 255, 0.5);
    
    --success: #00c8a0;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-display: 'Orbitron', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.1);
}

/* ---- 重置样式 ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 粒子背景画布 */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Vue cloak */
[v-cloak] { display: none; }

/* ---- 滚动条 ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.4);
}

/* ---- 通用按钮 ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
}
.btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.4);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.btn-outline:hover:not(:disabled) {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.05);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}
.btn-outline-light:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    font-weight: 600;
}
.btn-light:hover:not(:disabled) {
    background: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-full {
    width: 100%;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    transition: color 0.2s;
}
.btn-text:hover {
    color: var(--accent-primary);
}

.btn-danger-text {
    color: var(--danger);
}
.btn-danger-text:hover {
    color: #ff6b6b;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--danger);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.8;
}

/* ---- 卡片 ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
}

.card-header {
    padding: 20px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 24px;
}

/* ---- 加载动画 ---- */
.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   认证页面（登录/注册）
   ============================================ */
.auth-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15), transparent 70%);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
}

.logo-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.logo-subtitle {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 4px;
    margin-top: 4px;
}

/* 标签页 */
.auth-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
}

.auth-tab {
    padding: 10px 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.auth-tab.active {
    background: var(--accent-gradient);
    color: #000;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 240, 255, 0.25);
}

.auth-tab:not(.active):hover {
    color: var(--text-primary);
}

/* 认证表单 */
.auth-form {
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.4s ease;
}

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

/* ============================================
   主应用布局
   ============================================ */
#app {
    min-height: 100vh;
}

/* 顶部导航栏 */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
}

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

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
}

.user-info:hover {
    background: rgba(0, 240, 255, 0.08);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.user-name {
    font-size: 14px;
    color: var(--text-primary);
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.dropdown-icon.open {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 160px;
    box-shadow: var(--shadow-md);
    z-index: 200;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(0, 240, 255, 0.08);
    color: var(--text-primary);
}

.dropdown-icon-item {
    font-size: 16px;
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 220px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    z-index: 90;
    padding: 20px 0;
}

.sidebar-menu {
    flex: 1;
    padding: 0 12px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 4px;
    font-size: 14px;
    position: relative;
}

.sidebar-item:hover {
    background: rgba(0, 240, 255, 0.06);
    color: var(--text-primary);
}

.sidebar-item.active {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-primary);
    border-right: 2px solid var(--accent-primary);
}

.sidebar-item svg {
    flex-shrink: 0;
}

.badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
}

/* 侧边栏底部余额 */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    margin: 0 12px;
}

.balance-preview {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.balance-preview .balance-label {
    font-size: 12px;
    color: var(--text-muted);
}

.balance-preview .balance-value {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-primary);
}

/* 主内容区 */
.main-content {
    margin-left: 220px;
    margin-top: 60px;
    padding: 32px;
    min-height: calc(100vh - 60px);
    position: relative;
    z-index: 1;
}

.main-content.mobile {
    margin-left: 0;
    margin-bottom: 70px;
    padding: 20px;
}

/* 页面通用 */
.page {
    max-width: 900px;
    animation: fadeInUp 0.3s ease;
}

.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.page-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   录单页面
   ============================================ */

/* 通道选择 */
.channel-select {
    display: flex;
    gap: 12px;
}

.channel-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.channel-option:hover {
    border-color: var(--border-active);
}

.channel-option.active {
    border-color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.channel-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.3s;
}

.channel-option.active .channel-radio {
    border-color: var(--accent-primary);
}

.channel-radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.channel-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.channel-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

.tag-stable {
    background: rgba(0, 200, 160, 0.15);
    color: var(--success);
}

.tag-fast {
    background: rgba(0, 240, 255, 0.15);
    color: var(--accent-primary);
}

.channel-info {
    display: flex;
    align-items: center;
}

/* 输入方式切换 */
.input-tabs {
    display: flex;
    gap: 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 3px;
    margin-bottom: 16px;
    width: fit-content;
}

.input-tab {
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.input-tab.active {
    background: var(--accent-gradient);
    color: #000;
    font-weight: 600;
}

.input-mode-panel {
    animation: fadeIn 0.3s ease;
}

/* 上传区域 */
.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.upload-zone:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.02);
}

.upload-zone.drag-over {
    border-color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.05);
    color: var(--accent-primary);
}

.upload-text {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 500;
}

.upload-hint {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.7;
}

/* 手机号统计 */
.phone-stats {
    margin-top: 16px;
    padding: 16px;
    background: rgba(0, 200, 160, 0.05);
    border: 1px solid rgba(0, 200, 160, 0.15);
    border-radius: var(--radius-md);
}

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

.stats-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.stats-count strong {
    color: var(--success);
    font-size: 18px;
}

.phone-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.phone-tag {
    padding: 4px 10px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-primary);
}

.phone-more {
    padding: 4px 10px;
    color: var(--text-muted);
    font-size: 12px;
}

/* ============================================
   订单页面
   ============================================ */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-tab {
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: var(--font-body);
}

.filter-tab.active {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.filter-tab:not(.active):hover {
    border-color: var(--border-active);
    color: var(--text-primary);
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.08);
}

.order-no {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-primary);
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

.status-processing {
    background: rgba(59, 130, 246, 0.12);
    color: var(--info);
}

.status-completed {
    background: rgba(0, 200, 160, 0.12);
    color: var(--success);
}

.order-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 13px;
    color: var(--text-muted);
}

.info-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.info-code {
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

.info-time {
    color: var(--text-muted);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 15px;
}

.empty-state.small {
    padding: 30px 20px;
}

.load-more {
    text-align: center;
    margin-top: 20px;
}

/* ============================================
   钱包页面
   ============================================ */
.balance-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 200, 160, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.balance-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 200, 160, 0.08) 0%, transparent 50%);
}

.balance-content {
    position: relative;
    padding: 28px;
    z-index: 1;
}

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

.balance-card .balance-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.network-badge {
    padding: 4px 12px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.balance-amount {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.balance-actions {
    display: flex;
    gap: 12px;
}

/* 交易记录 */
.transaction-list {
    display: flex;
    flex-direction: column;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.06);
}

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

.tx-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tx-type {
    font-size: 14px;
    font-weight: 500;
}

.tx-recharge {
    color: var(--success);
}

.tx-withdraw {
    color: var(--warning);
}

.tx-time {
    font-size: 12px;
    color: var(--text-muted);
}

.tx-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.tx-amount {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
}

.tx-in {
    color: var(--success);
}

.tx-out {
    color: var(--danger);
}

.tx-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.status-completed {
    background: rgba(0, 200, 160, 0.1);
    color: var(--success);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ============================================
   充值/提现弹窗
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    animation: slideUp 0.3s ease;
}

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

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

.modal-title {
    font-size: 17px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 0 24px 24px;
}

/* 网络选择 */
.network-select {
    display: flex;
    gap: 10px;
}

.network-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    font-size: 14px;
    font-family: var(--font-mono);
}

.network-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* 金额选项 */
.amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.amount-option {
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.amount-option:hover {
    border-color: var(--border-active);
    color: var(--text-primary);
}

.amount-option.active {
    border-color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.amount-option.custom {
    padding: 0;
    overflow: hidden;
}

.amount-option.custom input {
    width: 100%;
    height: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-align: center;
    font-size: 13px;
    outline: none;
}

.amount-option.custom input::placeholder {
    color: var(--text-muted);
}

/* 余额提示 */
.balance-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 安全提示 */
.form-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--warning);
    line-height: 1.5;
}

.form-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================
   Toast 提示
   ============================================ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.3s ease;
    min-width: 200px;
}

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

.toast-success {
    background: rgba(0, 200, 160, 0.15);
    border: 1px solid rgba(0, 200, 160, 0.3);
    color: var(--success);
    backdrop-filter: blur(10px);
}

.toast-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    backdrop-filter: blur(10px);
}

.toast-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: rgba(0, 200, 160, 0.2);
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
}

/* Toast 过渡动画 */
.toast-enter-active,
.toast-leave-active {
    transition: all 0.3s ease;
}

.toast-enter-from {
    opacity: 0;
    transform: translateX(30px);
}

.toast-leave-to {
    opacity: 0;
    transform: translateX(30px);
}

/* ============================================
   移动端底部导航
   ============================================ */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-nav-item.active {
    color: var(--accent-primary);
}

.mobile-nav-item span {
    font-size: 11px;
}

/* ============================================
   录单页面 - 金额计算面板
   ============================================ */

.amount-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.amount-input {
    border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
    flex: 1;
}

.amount-unit {
    padding: 12px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
}

.calc-panel {
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.calc-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.calc-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.calc-label {
    color: var(--text-secondary);
}

.calc-value {
    color: var(--text-primary);
    font-weight: 500;
}

.calc-rmb {
    color: var(--success);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
}

.calc-total {
    padding: 14px 0 8px;
}

.calc-total .calc-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.calc-usdt {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
}

/* 原价（带删除线） */
.calc-original {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 14px;
}

/* 折扣率行 */
.calc-discount {
    padding: 10px 0;
}

.calc-discount .calc-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.calc-discount-badge {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 200, 160, 0.15));
    border: 1px solid var(--accent-primary);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.calc-balance {
    padding-top: 6px;
    font-size: 13px;
}

.calc-balance .calc-label {
    font-size: 13px;
    color: var(--text-muted);
}

.calc-balance .calc-value {
    font-family: var(--font-mono);
    color: var(--success);
}

.calc-balance .text-danger {
    color: var(--danger) !important;
}

/* 余额不足提示 */
.insufficient-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: var(--danger);
    font-size: 14px;
}

.insufficient-balance svg {
    flex-shrink: 0;
    color: var(--danger);
}

.insufficient-balance a {
    color: var(--accent-primary);
    text-decoration: underline;
    cursor: pointer;
}

/* 订单中的USDT金额 */
.info-usdt {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-weight: 600;
}

/* ============================================
   充值弹窗 - 倒计时 / 二维码 / 收款地址
   ============================================ */

.modal-lg {
    max-width: 480px;
}

/* 倒计时 */
.countdown-bar {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(0, 200, 160, 0.08));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.countdown-time {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.countdown-progress {
    width: 100%;
    height: 4px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.countdown-progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 1s linear;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* 充值信息 */
.recharge-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.recharge-amount-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recharge-label {
    font-size: 12px;
    color: var(--text-muted);
}

.recharge-amount-value {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-primary);
}

.recharge-network-row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.network-tag {
    padding: 6px 14px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-weight: 500;
}

/* 二维码区域 */
.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.qr-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.qr-wrap {
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#recharge-qrcode {
    display: flex;
    align-items: center;
    justify-content: center;
}

#recharge-qrcode img {
    max-width: 180px;
    max-height: 180px;
}

#recharge-qrcode canvas {
    max-width: 180px;
    max-height: 180px;
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

/* 收款地址 */
.address-section {
    margin-bottom: 20px;
}

.address-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.address-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 13px;
    word-break: break-all;
}

.address-text {
    flex: 1;
    color: var(--text-primary);
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--accent-primary);
}

/* 充值提示 */
.recharge-hints {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.hint-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hint-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    margin-top: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

.hint-highlight {
    color: var(--success);
}

.hint-highlight .hint-dot {
    background: var(--success);
    box-shadow: 0 0 6px rgba(0, 200, 160, 0.4);
}

.hint-dot.pulse {
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* 充值步骤确认区域 */
.recharge-confirm {
    animation: fadeIn 0.3s ease;
}
