/* 接码平台 - 精美手机端设计 - 优化小屏显示 */

:root {
    --primary: #5B6BE0;
    --primary-light: #7C8AE8;
    --success: #2DC071;
    --danger: #E54D4D;
    --warning: #F5A623;
    --text: #1A1A2E;
    --text-light: #636E72;
    --text-muted: #A0AEC0;
    --bg: #F0F2F7;
    --card: #FFFFFF;
    --border: #E8E9EC;
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --radius: 14px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* 顶部 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(91, 107, 224, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFF;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.logo i {
    font-size: 20px;
}

/* 主内容 */
.content {
    margin-top: 48px;
    margin-bottom: calc(56px + var(--safe-bottom));
    padding: 12px;
    padding-bottom: 16px;
    min-height: calc(100vh - 104px);
}

/* 底部导航 */
.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(56px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--card);
    display: flex;
    border-top: 1px solid var(--border);
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item i {
    font-size: 20px;
    transition: transform 0.3s;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

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

.nav-item.active i {
    transform: scale(1.1);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 0 0 2px 2px;
}

/* 卡片 */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

/* 余额栏 */
.balance-bar {
    background: linear-gradient(135deg, #5B6BE0, #7C8AE8);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 24px rgba(91, 107, 224, 0.3);
}

.balance-bar .balance-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.balance-bar .balance-value {
    flex: 1;
    color: #FFF;
    font-size: 24px;
    font-weight: 700;
    margin-left: 12px;
}

.balance-bar .refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #FFF;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.balance-bar .refresh-btn:active {
    background: rgba(255, 255, 255, 0.3);
}

/* 刷新按钮通用样式 */
.refresh-btn {
    background: var(--bg);
    border: none;
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.refresh-btn:active {
    transform: rotate(180deg);
    background: var(--primary);
    color: #FFF;
}

/* 余额行 */
.balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

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

/* 公告 */
.notice {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.notice i {
    color: #FFF;
    font-size: 18px;
    margin-top: 1px;
    animation: bell 1s ease-in-out infinite;
}

@keyframes bell {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(8deg); }
    75% { transform: rotate(-8deg); }
}

.notice-content {
    flex: 1;
}

.notice-title {
    color: #FFF;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}

.notice-text {
    color: rgba(255,255,255,0.95);
    font-size: 13px;
    line-height: 1.6;
}

/* 输入区域 */
.input-box {
    margin-bottom: 14px;
}

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

.input-field {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    background: var(--bg);
}

.input-field:focus {
    border-color: var(--primary);
    background: var(--card);
    box-shadow: 0 0 0 3px rgba(91, 107, 224, 0.1);
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-tip {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #FFF;
    box-shadow: 0 4px 16px rgba(91, 107, 224, 0.35);
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 3px 10px rgba(91, 107, 224, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-text {
    background: none;
    color: var(--primary);
    padding: 8px 12px;
    font-weight: 500;
}

.btn-danger-text {
    background: none;
    color: var(--danger);
    padding: 8px 12px;
    font-weight: 500;
}

.btn-sm {
    padding: 12px 20px;
    font-size: 14px;
}

/* 按钮行 */
.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.btn-row .btn {
    flex: 1;
}

/* 列表头部 */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.list-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.list-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #FFF;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

/* 号码项 */
.phone-item {
    background: linear-gradient(135deg, #F8FAFF 0%, #F0F4FF 100%);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(91, 107, 224, 0.1);
    position: relative;
    overflow: hidden;
}

.phone-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(91, 107, 224, 0.2);
}

.phone-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

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

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: none;
    border-radius: 10px;
    color: var(--text-light);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.icon-btn:active {
    transform: scale(0.95);
    background: var(--primary);
    color: #FFF;
}

.icon-btn.danger:active {
    background: var(--danger);
}

.code-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    gap: 12px;
}

/* 短信内容区域 */
.sms-box {
    flex: 1;
    min-width: 0;
}

.sms-content {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    word-break: break-all;
    max-height: 44px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.sms-content.expanded {
    max-height: 200px;
    overflow-y: auto;
}

.sms-content:not(.expanded)::after {
    content: '...';
    position: absolute;
    bottom: 0;
    right: 0;
    padding-left: 20px;
    background: linear-gradient(90deg, transparent, #F8FAFF);
}

.code-tag {
    display: inline-block;
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: var(--success);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 500;
}

.code-tag b {
    font-size: 18px;
    letter-spacing: 1px;
}

.sms-expand {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    padding: 4px 0;
}

.code-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.code-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--danger);
    letter-spacing: 4px;
}

.code-empty {
    font-size: 15px;
    color: var(--text-muted);
}

/* 空状态 */
.empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.empty i {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.3;
}

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

/* 历史记录 */
.history-item {
    background: var(--bg);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-item:active {
    transform: scale(0.98);
    background: var(--border);
}

.history-phone {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.history-code {
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
    letter-spacing: 2px;
}

.history-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 充值项 */
.recharge-item {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    background: linear-gradient(135deg, #FAFBFF 0%, #F5F7FF 100%);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.recharge-item:active {
    transform: scale(0.99);
}

.recharge-item.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    box-shadow: 0 4px 12px rgba(91, 107, 224, 0.15);
}

.recharge-amount {
    min-width: 80px;
}

.recharge-amount .price {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

.recharge-amount .unit {
    font-size: 13px;
    color: var(--text-light);
}

.recharge-amount .vip {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.recharge-info {
    flex: 1;
    text-align: right;
    padding-right: 36px;
}

.recharge-info .rate {
    font-size: 16px;
    font-weight: 700;
    color: var(--danger);
}

.recharge-info .desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.recharge-check {
    position: absolute;
    right: 12px;
    color: var(--success);
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s;
}

.recharge-item.active .recharge-check {
    opacity: 1;
}

/* 支付方式 */
.pay-method {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.pay-method:active {
    transform: scale(0.99);
}

.pay-method.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #F8FAFF 0%, #F0F4FF 100%);
}

.pay-method i {
    font-size: 28px;
    margin-right: 12px;
}

.pay-method .alipay { color: #1677FF; }
.pay-method .wechat { color: #07C160; }

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

.pay-method .pay-tip {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

.pay-method .check {
    margin-left: auto;
    color: var(--primary);
    font-size: 18px;
}

/* 用户卡片 */
.user-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 12px;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 6px 20px rgba(91, 107, 224, 0.35);
    position: relative;
    overflow: hidden;
}

.user-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

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

.user-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.user-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 3px;
}

.user-vip {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 余额 */
.balance-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.balance-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

.balance-value small {
    font-size: 15px;
}

/* 统计 */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.stat-box {
    background: var(--card);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 菜单 */
.menu {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

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

.menu-item:active {
    background: var(--bg);
}

.menu-item i {
    color: var(--primary);
    font-size: 17px;
    width: 24px;
    text-align: center;
    margin-right: 12px;
}

.menu-item span {
    flex: 1;
    font-size: 14px;
}

.menu-item .arrow {
    color: var(--text-muted);
    font-size: 12px;
}

.menu-item .tag {
    background: linear-gradient(135deg, #FFE8E8, #FFD6D6);
    color: var(--danger);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 10px;
}

/* 客服 */
.chat-box {
    background: var(--bg);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    min-height: 280px;
    max-height: 380px;
    overflow-y: auto;
}

.chat-msg {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: fadeUp 0.3s ease;
}

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

.chat-msg .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.chat-msg.bot .avatar {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #FFF;
}

.chat-msg.user .avatar {
    background: var(--card);
    color: var(--text-light);
    border: 1px solid var(--border);
}

.chat-msg .bubble {
    background: var(--card);
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* FAQ按钮 */
.faq-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.faq-btn {
    padding: 10px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.faq-btn:active {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFF;
    transform: scale(0.97);
}

/* Toast */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #FFF;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 15px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
}

/* 提示框 */
.tip-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    color: var(--text-muted);
    font-size: 12px;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 85%;
    max-width: 340px;
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #FFF;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.modal-header i {
    font-size: 22px;
    color: var(--warning);
}

.modal-body {
    padding: 24px 20px;
    text-align: center;
}

.modal-body p {
    font-size: 15px;
    line-height: 1.8;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 0 20px 20px;
}

.modal-footer .btn {
    flex: 1;
    padding: 14px;
}

/* 安全区域适配 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .navbar {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(64px + env(safe-area-inset-bottom));
    }
    .content {
        margin-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

/* 小屏适配 */
@media screen and (max-width: 360px) {
    body { font-size: 15px; }
    .card { padding: 16px; }
    .recharge-amount .price { font-size: 28px; }
    .balance-value { font-size: 28px; }
}

/* 大屏适配 */
@media screen and (min-width: 500px) {
    .content {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============ 登录注册页面样式 ============ */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 30px 20px 20px;
    background: linear-gradient(180deg, #F8FAFF 0%, #EEF2FF 100%);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(91, 107, 224, 0.4);
}

.auth-logo i {
    font-size: 28px;
    color: #FFF;
}

.auth-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

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

.auth-tabs {
    display: flex;
    background: var(--card);
    border-radius: 12px;
    padding: 3px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #FFF;
    box-shadow: 0 4px 12px rgba(91, 107, 224, 0.3);
}

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

.auth-form .input-box {
    margin-bottom: 12px;
}

.auth-form .input-field {
    background: var(--card);
    border: 2px solid var(--border);
    padding: 14px 16px;
    font-size: 15px;
}

.auth-form .input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(91, 107, 224, 0.1);
}

.auth-btn {
    margin-top: 16px;
    padding: 14px;
    font-size: 15px;
}

.auth-tip {
    background: linear-gradient(135deg, #FFF9E6, #FFF3CC);
    border: 1px solid #FFE58F;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
    font-size: 13px;
    color: #D48806;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-tip i {
    color: #FAAD14;
    font-size: 16px;
}

.auth-tip b {
    color: #D48806;
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
}

.auth-footer p {
    font-size: 13px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Loading 动画 */
.loading {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 60px auto;
    animation: spin 0.8s linear infinite;
}

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

/* ============ 详情页样式 ============ */
.detail-page {
    min-height: 100vh;
    background: var(--bg);
}

.detail-header {
    position: sticky;
    top: 0;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 10;
}

.detail-header span {
    font-size: 18px;
    font-weight: 600;
}

.back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg);
    border-radius: 12px;
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn:active {
    transform: scale(0.95);
}

.detail-content {
    padding: 16px;
    padding-bottom: 40px;
}

/* 记录列表 */
.record-item {
    background: var(--card);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.record-main {
    flex: 1;
    min-width: 0;
}

.record-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.record-phone {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.record-code {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    color: var(--success);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.record-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.record-status {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.record-status.success {
    background: #E8F5E9;
    color: var(--success);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.record-status.abnormal {
    background: #FFF3E0;
    color: #E65100;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.record-status.pending {
    background: #E3F2FD;
    color: #1976D2;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.record-code-box {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 14px;
}

.record-code-box b {
    color: var(--primary);
    font-size: 16px;
}

.record-status.pending {
    background: #FFF3E0;
    color: var(--warning);
}

.record-status.cancelled {
    background: #FFEBEE;
    color: var(--danger);
}

.record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.record-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.record-cost {
    text-align: center;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

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

.cost-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--danger);
}

.record-vip {
    background: linear-gradient(135deg, #FFF9E6, #FFF3CC);
    color: #D48806;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.record-vip i {
    color: #FAAD14;
}

/* 退款状态 */
.record-item.refunded {
    background: #FFF5F5;
    border: 1px solid #FFEBEE;
}

.record-status.refunded {
    background: #FFEBEE;
    color: var(--danger);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.record-cost.refunded {
    opacity: 0.6;
}

.record-cost.refunded .cost-value {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* 号码元信息 */
.phone-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(91, 107, 224, 0.2);
    font-size: 12px;
    color: var(--text-muted);
}

.phone-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 64px;
    opacity: 0.2;
    margin-bottom: 20px;
}

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

/* ============ 分站页面样式 ============ */
.subsite-page {
    padding-bottom: 100px;
}

.subsite-banner {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    color: #FFF;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.subsite-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.subsite-banner-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
}

.subsite-banner-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
}

.subsite-banner-desc {
    font-size: 15px;
    opacity: 0.9;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: var(--primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg);
    border-radius: 14px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 18px;
}

.feature-text {
    flex: 1;
}

.feature-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.feature-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

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

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.check-item i {
    color: var(--success);
    font-size: 16px;
}

.profit-box {
    background: var(--bg);
    border-radius: 14px;
    padding: 16px;
}

.profit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

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

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

.profit-highlight {
    color: var(--danger);
    font-weight: 600;
}

.subsite-price-card {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    text-align: center;
    color: #FFF;
}

.price-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.price-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.price-value {
    font-size: 48px;
    font-weight: 800;
}

.price-value small {
    font-size: 24px;
}

.price-note {
    font-size: 12px;
    opacity: 0.8;
    padding-bottom: 20px;
}

.subsite-btn {
    padding: 18px;
    font-size: 17px;
    margin-top: 16px;
}

.subsite-footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.subsite-footer p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.subsite-footer i {
    color: var(--success);
}

/* ============ 支付页面样式 ============ */
.pay-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.pay-amount-box {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

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

.pay-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-top: 8px;
}

.pay-methods {
    margin-bottom: 24px;
}

.pay-tips {
    background: var(--bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.pay-tips p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 6px 0;
}

/* ============ 分页加载样式 ============ */
.load-more-btn {
    background: transparent !important;
    color: var(--primary) !important;
    border: 1px dashed var(--primary) !important;
    padding: 12px !important;
    margin-top: 16px;
    font-size: 14px;
}

.load-more-btn:active {
    background: rgba(91, 107, 224, 0.05) !important;
}

.list-end {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 16px;
}

/* ============ 支付选择样式 ============ */
.payment-types {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-type {
    flex: 1;
    padding: 16px 12px;
    background: var(--bg);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.payment-type.active {
    background: linear-gradient(135deg, rgba(91, 107, 224, 0.1), rgba(124, 138, 232, 0.1));
    border-color: var(--primary);
}

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

.payment-type-icon.alipay {
    color: #1677FF;
}

.payment-type-icon.wechat {
    color: #07C160;
}

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

.payment-type-tip {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}


/* ============ 滑动验证码样式 ============ */
.captcha-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.captcha-overlay.show {
    opacity: 1;
    visibility: visible;
}

.captcha-box {
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    border-radius: 20px;
    padding: 28px;
    width: 320px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.captcha-overlay.show .captcha-box {
    transform: scale(1) translateY(0);
}

.captcha-header {
    text-align: center;
    margin-bottom: 20px;
}

.captcha-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.captcha-title i {
    color: var(--primary);
}

.captcha-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.captcha-refresh {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.2s;
    z-index: 10;
}

.captcha-refresh:hover {
    background: #fff;
    color: var(--primary);
    transform: rotate(180deg);
}

.captcha-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #e8e8e8;
    margin-bottom: 16px;
}

.captcha-image {
    width: 100%;
    height: 160px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.captcha-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 滑块缺口 */
.captcha-gap {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) inset;
}

.captcha-gap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.6);
    border-radius: 4px;
}

/* 滑块 */
.captcha-block {
    position: absolute;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 5;
}

.captcha-block-inner {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.captcha-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 滑块轨道 */
.captcha-track {
    position: relative;
    height: 44px;
    background: linear-gradient(to right, #f0f2f5, #e4e7eb);
    border-radius: 22px;
    padding: 4px;
    margin-top: 12px;
}

.captcha-track-bg {
    position: absolute;
    left: 4px;
    top: 4px;
    bottom: 4px;
    width: 0;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    border-radius: 20px;
    transition: width 0.1s ease;
}

.captcha-track-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    color: var(--text-muted);
    pointer-events: none;
    transition: opacity 0.2s;
}

.captcha-track-text.hidden {
    opacity: 0;
}

.captcha-thumb {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 36px;
    height: 36px;
    background: linear-gradient(145deg, #ffffff, #f0f2f5);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, transform 0.1s;
    z-index: 10;
}

.captcha-thumb:active {
    cursor: grabbing;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.captcha-thumb i {
    color: var(--text-light);
    font-size: 16px;
    transition: color 0.2s;
}

.captcha-thumb:hover i {
    color: var(--primary);
}

/* 成功状态 */
.captcha-box.success .captcha-track-bg {
    background: linear-gradient(90deg, #4ade80, #22c55e);
}

.captcha-box.success .captcha-thumb {
    background: linear-gradient(145deg, #4ade80, #22c55e);
}

.captcha-box.success .captcha-thumb i {
    color: #fff;
}

/* 失败状态 */
.captcha-box.error {
    animation: captcha-shake 0.5s ease;
}

.captcha-box.error .captcha-thumb {
    background: linear-gradient(145deg, #f87171, #ef4444);
}

.captcha-box.error .captcha-thumb i {
    color: #fff;
}

@keyframes captcha-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
}

/* 验证结果提示 */
.captcha-result {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    margin-top: 12px;
    font-size: 14px;
    display: none;
}

.captcha-result.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.captcha-result.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* IP锁定页面 */
.ip-locked-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ip-locked-box {
    text-align: center;
    padding: 40px;
    max-width: 360px;
}

.ip-locked-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.4);
    animation: ip-pulse 2s infinite;
}

@keyframes ip-pulse {
    0%, 100% { box-shadow: 0 10px 40px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 10px 60px rgba(239, 68, 68, 0.6); }
}

.ip-locked-icon i {
    font-size: 48px;
    color: #fff;
}

.ip-locked-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.ip-locked-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    line-height: 1.6;
}

.ip-locked-contact {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.ip-locked-contact-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.ip-locked-qq {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #12b7f5, #0099ff);
    padding: 14px 28px;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.ip-locked-qq:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(18, 183, 245, 0.4);
}

.ip-locked-qq i {
    font-size: 20px;
}

/* 验证码加载中 */
.captcha-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 160px;
    color: var(--text-muted);
}

.captcha-loading i {
    font-size: 32px;
    margin-bottom: 12px;
    animation: captcha-spin 1s linear infinite;
}

@keyframes captcha-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
