/**
 * SynVow 控制台公共样式
 * 统一所有控制台页面的布局，避免页面切换时的位移问题
 */

/* 基础设置 */
html {
    overflow-y: scroll;
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
}

body.console-preload {
    visibility: hidden;
}

body.console-ready {
    visibility: visible;
}

.console-toast {
    position: fixed;
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10010;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.sv-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.sv-change-pwd-dialog {
    background: linear-gradient(180deg, #1a2a3a, #0d1a24);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    width: 420px;
    position: relative;
}

.sv-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #667788;
    font-size: 24px;
    cursor: pointer;
}

.sv-change-pwd-title {
    color: #10c296;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.sv-pwd-field {
    position: relative;
}

.sv-pwd-input {
    width: 100%;
    background: #1e3a4a;
    border: 1px solid #334455;
    border-radius: 8px;
    padding: 12px 40px 12px 12px;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.sv-pwd-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: #10c296;
    cursor: pointer;
    padding: 0;
}

.sv-pwd-eye svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sv-pwd-error {
    font-size: 12px;
    color: #ef4444;
    min-height: 16px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.sv-pwd-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.sv-pwd-cancel,
.sv-pwd-submit {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
}

.sv-pwd-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #9ca3af;
    cursor: pointer;
}

.sv-pwd-submit {
    background: #334455;
    border: none;
    color: #6b7280;
    cursor: not-allowed;
    transition: all 0.2s;
}

.sv-pwd-submit.is-active {
    background: #10c296;
    color: white;
    cursor: pointer;
}

.sv-bind-code-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
}
.sv-bind-code-row .sv-pwd-input {
    width: 0;
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}
button.sv-bind-code-btn {
    flex: 0 0 auto;
    min-width: 108px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}
button.sv-bind-code-btn:hover {
    border-color: rgba(16, 194, 150, 0.45);
    color: #10c296;
}
button.sv-bind-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.sv-bind-err {
    min-height: 18px;
    margin: 8px 0 4px;
    font-size: 12px;
    color: #f87171;
}
button.sv-bind-link,
.sv-bind-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #10c296;
    font-size: 13px;
    line-height: 1.4;
}
button.sv-bind-link:hover,
.sv-bind-link:hover {
    text-decoration: underline;
}

/* CSS 变量 */
:root {
    --card-gap: 16px;
    --sidebar-content-gap: 32px;
    --card-radius: 12px;
    --max-width: 1440px;
    --sidebar-width: 200px;
}

/* 侧边栏卡片 */
.sidebar-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--card-radius);
    padding: 24px 16px;
}

/* 菜单项 */
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.menu-item.active {
    background: rgba(16, 194, 150, 0.15);
    color: #10c296;
}

.menu-item svg {
    width: 20px;
    height: 20px;
}

/* 控制台卡片 */
.dashboard-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--card-radius);
    padding: 24px;
    transition: all 0.3s ease;
}

.profile-info-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 10px;
}
.profile-logout {
    margin-left: auto;
    color: #ef4444 !important;
}
.profile-pwd-label { margin-left: 8px; }
.profile-copy-id {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
}
.profile-copy-id:hover { color: #d1d5db; }
.profile-copy-id svg { width: 14px; height: 14px; }
.profile-stats-grid {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin: 12px 0 14px;
}
.profile-stat {
    width: 180px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
}
.profile-stat-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}
.profile-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #10c296;
}

/* 卡片标题 */
.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.card-title svg {
    width: 16px;
    height: 16px;
}

/* 余额显示 */
.balance-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.balance-currency {
    color: #10c296;
}

/* 统计值 */
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
}

/* 动画 */
@keyframes flyInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flyInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flyInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fly-in-up {
    animation: flyInUp 0.6s ease-out forwards;
}

.fly-in-right {
    animation: flyInRight 0.6s ease-out forwards;
}

.fly-in-left {
    animation: flyInLeft 0.6s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
    opacity: 0;
}

.delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-300 {
    animation-delay: 0.3s;
    opacity: 0;
}

.delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

/* 粒子背景 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -40;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(16, 194, 150, 0.6);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }

    90% {
        opacity: 1;
        transform: translateY(10vh) scale(1);
    }

    100% {
        transform: translateY(-10vh) scale(0);
        opacity: 0;
    }
}

.particle:nth-child(1) {
    left: 5%;
    animation-duration: 12s;
    animation-delay: 0s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(2) {
    left: 15%;
    animation-duration: 15s;
    animation-delay: 2s;
    width: 5px;
    height: 5px;
    background: rgba(16, 194, 150, 0.4);
}

.particle:nth-child(3) {
    left: 25%;
    animation-duration: 10s;
    animation-delay: 4s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(4) {
    left: 35%;
    animation-duration: 18s;
    animation-delay: 1s;
    width: 4px;
    height: 4px;
    background: rgba(29, 91, 166, 0.5);
}

.particle:nth-child(5) {
    left: 45%;
    animation-duration: 14s;
    animation-delay: 3s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(6) {
    left: 55%;
    animation-duration: 11s;
    animation-delay: 5s;
    width: 6px;
    height: 6px;
    background: rgba(16, 194, 150, 0.3);
}

.particle:nth-child(7) {
    left: 65%;
    animation-duration: 16s;
    animation-delay: 2s;
    width: 2px;
    height: 2px;
    background: rgba(29, 91, 166, 0.4);
}

.particle:nth-child(8) {
    left: 75%;
    animation-duration: 13s;
    animation-delay: 4s;
    width: 4px;
    height: 4px;
}

.particle:nth-child(9) {
    left: 85%;
    animation-duration: 17s;
    animation-delay: 1s;
    width: 3px;
    height: 3px;
    background: rgba(16, 194, 150, 0.5);
}

.particle:nth-child(10) {
    left: 95%;
    animation-duration: 12s;
    animation-delay: 3s;
    width: 5px;
    height: 5px;
    background: rgba(29, 91, 166, 0.3);
}

/* 雾气效果 */
.fog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -45;
    overflow: hidden;
}

.fog {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.12;
}

.fog-1 {
    background: radial-gradient(ellipse 80% 50% at 20% 60%, rgba(6, 182, 212, 0.5) 0%, transparent 60%);
    animation: fogDrift1 25s ease-in-out infinite;
}

.fog-2 {
    background: radial-gradient(ellipse 60% 40% at 70% 30%, rgba(16, 194, 150, 0.4) 0%, transparent 50%);
    animation: fogDrift2 30s ease-in-out infinite;
}

.fog-3 {
    background: radial-gradient(ellipse 70% 60% at 50% 80%, rgba(8, 145, 178, 0.45) 0%, transparent 55%);
    animation: fogDrift3 35s ease-in-out infinite;
}

@keyframes fogDrift1 {

    0%,
    100% {
        transform: translateX(0) translateY(0) scale(1);
    }

    25% {
        transform: translateX(5%) translateY(-3%) scale(1.1);
    }

    50% {
        transform: translateX(-3%) translateY(5%) scale(0.95);
    }

    75% {
        transform: translateX(-5%) translateY(-2%) scale(1.05);
    }
}

@keyframes fogDrift2 {

    0%,
    100% {
        transform: translateX(0) translateY(0) scale(1);
    }

    33% {
        transform: translateX(-4%) translateY(4%) scale(1.08);
    }

    66% {
        transform: translateX(6%) translateY(-3%) scale(0.92);
    }
}

@keyframes fogDrift3 {

    0%,
    100% {
        transform: translateX(0) translateY(0) scale(1);
    }

    50% {
        transform: translateX(4%) translateY(-5%) scale(1.1);
    }
}

/* 按钮 */
.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 20px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary-sm {
    background: linear-gradient(135deg, #10c296 0%, #0891b2 100%);
    color: white;
    border: none;
}

.btn-primary-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 194, 150, 0.3);
}

.btn-outline-sm {
    background: transparent;
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline-sm:hover {
    border-color: #10c296;
    color: #10c296;
}

/* 状态徽章 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 20px;
}

.status-unbound {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-bound {
    background: rgba(16, 194, 150, 0.1);
    color: #10c296;
}

.status-processing {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

/* 公告 */
.announcement-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-dot {
    width: 6px;
    height: 6px;
    background: #10c296;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 图表容器 */
.chart-container {
    position: relative;
    height: 180px;
}

/* 额外延迟类 */
.delay-500 {
    animation-delay: 0.5s;
    opacity: 0;
}

.delay-600 {
    animation-delay: 0.6s;
    opacity: 0;
}

/* 粒子 nth-child 补充 */
.particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    filter: blur(4px);
}

.particle:nth-child(11) {
    left: 10%;
    animation-duration: 14s;
    animation-delay: 6s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(12) {
    left: 30%;
    animation-duration: 16s;
    animation-delay: 7s;
    width: 4px;
    height: 4px;
    background: rgba(16, 194, 150, 0.4);
}

.particle:nth-child(13) {
    left: 50%;
    animation-duration: 11s;
    animation-delay: 8s;
    width: 3px;
    height: 3px;
    background: rgba(29, 91, 166, 0.5);
}

.particle:nth-child(14) {
    left: 70%;
    animation-duration: 15s;
    animation-delay: 9s;
    width: 5px;
    height: 5px;
}

.particle:nth-child(15) {
    left: 90%;
    animation-duration: 13s;
    animation-delay: 10s;
    width: 2px;
    height: 2px;
    background: rgba(16, 194, 150, 0.6);
}

/* 雾气 fog-4 */
.fog-4 {
    background: radial-gradient(ellipse 50% 30% at 80% 70%, rgba(6, 182, 212, 0.35) 0%, transparent 50%);
    animation: fogDrift4 28s ease-in-out infinite;
}

@keyframes fogDrift4 {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 0.12;
    }
    40% {
        transform: translateX(-6%) translateY(3%) scale(1.15);
        opacity: 0.18;
    }
    80% {
        transform: translateX(3%) translateY(-4%) scale(0.9);
        opacity: 0.08;
    }
}

/* 统计卡片 */
.stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(16, 194, 150, 0.3);
    box-shadow: 0 0 20px rgba(16, 194, 150, 0.1);
}

.stat-currency {
    color: #10c296;
    font-size: 1.25rem;
}

.stat-unit {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
    margin-left: 4px;
}

/* 表格通用样式 */
.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.orders-table td {
    padding: 16px;
    font-size: 14px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.orders-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* 状态徽标 */
.status-success {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    color: #10c296;
    background: rgba(16, 194, 150, 0.1);
    border-radius: 4px;
}

.status-pending {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 4px;
}

.status-failed {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
}

.order-type-recharge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    color: #10c296;
    background: rgba(16, 194, 150, 0.1);
    border-radius: 4px;
}

.order-type-consume {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    color: #0891b2;
    background: rgba(8, 145, 178, 0.1);
    border-radius: 4px;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}

.pagination-info {
    font-size: 14px;
    color: #6b7280;
    margin-right: 16px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 14px;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.pagination-btn.active {
    background: rgba(16, 194, 150, 0.15);
    border-color: #10c296;
    color: #10c296;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

/* 充值页面 */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
    padding-top: 8px;
}
.amount-btn {
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 14px 4px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.amount-gift-badge {
    position: absolute;
    top: -7px;
    right: -4px;
    z-index: 1;
    padding: 1px 5px;
    border-radius: 6px;
    background: #10c296;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    pointer-events: none;
}
.recharge-activity {
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.55;
}
.recharge-activity-title {
    margin-bottom: 4px;
    color: #fff;
    font-weight: 600;
}

.amount-btn:hover {
    background: rgba(16, 194, 150, 0.1);
    border-color: rgba(16, 194, 150, 0.3);
}

.amount-btn.selected {
    background: rgba(16, 194, 150, 0.2);
    border-color: #10c296;
    color: #10c296;
    box-shadow: 0 0 20px rgba(16, 194, 150, 0.2);
}

.custom-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: #10c296;
    box-shadow: 0 0 0 3px rgba(16, 194, 150, 0.1);
}

.custom-input::placeholder {
    color: #6b7280;
}

.custom-hint {
    color: #6b7280;
    font-size: 12px;
    margin: 8px 0 20px;
}
.custom-hint.is-error { color: #ef4444; }
.custom-hint.is-ok { color: #10c296; }

.payment-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.payment-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: #e5e7eb;
    font-size: 14px;
    cursor: pointer;
}
.payment-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pay-icon { width: 22px; height: 22px; flex-shrink: 0; }
.wechat-channel { border-color: rgba(7, 193, 96, 0.4); }
.wechat-channel:hover:not(:disabled) { border-color: #07c160; }
.alipay-channel { border-color: rgba(22, 119, 255, 0.4); }
.alipay-channel:hover:not(:disabled) { border-color: #1677ff; }
.wechat-color { color: #07c160; }
.alipay-color { color: #1677ff; }

.recharge-footer {
    text-align: center;
    color: #6b7280;
    font-size: 12px;
}

.qrcode-amount {
    text-align: center;
    color: #10c296;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #10c296;
}

.search-input::placeholder {
    color: #6b7280;
}

.search-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: rgba(16, 194, 150, 0.2);
    border-color: #10c296;
    color: #10c296;
}

.faq-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-bottom: 6px;
}

.faq-answer {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-container {
    background: rgba(20, 25, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #9ca3af;
}

.modal-close {
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
}

.order-table th {
    text-align: left;
    padding: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.order-table td {
    padding: 16px 12px;
    font-size: 14px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-date {
    font-size: 14px;
    color: white;
    margin-bottom: 4px;
}

.order-id {
    font-size: 12px;
    color: #6b7280;
}

.order-amount {
    font-size: 16px;
    font-weight: 600;
}

.status-paid {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    background: rgba(107, 114, 128, 0.3);
    border-radius: 4px;
}

/* 消费记录表格 */
.logs-table {
    width: 100%;
    border-collapse: collapse;
}

.logs-table th {
    text-align: left;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logs-table td {
    padding: 8px 16px;
    font-size: 13px;
    color: white;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logs-table td.cr-model {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    word-break: break-all;
}
.cr-preview-audio { width: min(480px, 80vw); }

/* 资源预览 */
.cr-link { color:#10c296; font-size:12px; padding:3px 8px; border:1px solid rgba(16,194,150,0.25); border-radius:4px; cursor:pointer; background:none; text-decoration:none; }
.cr-link:hover { background:rgba(16,194,150,0.1); }
.cr-none { color:#4b5563; font-size:12px; }
.cr-preview-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.85); display:flex; justify-content:center; align-items:center; z-index:9999; }
.cr-preview-box { position:relative; max-width:90vw; max-height:90vh; display:flex; align-items:center; justify-content:center; }
.cr-preview-close { position:absolute; top:-36px; right:0; background:none; border:none; color:white; font-size:28px; cursor:pointer; }
.cr-preview-media { max-width:85vw; max-height:85vh; border-radius:8px; }
.cr-preview-nav { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,0.5); border:none; color:white; font-size:36px; cursor:pointer; border-radius:4px; padding:4px 10px; }
.cr-preview-prev { left:-48px; }
.cr-preview-next { right:-48px; }
.cr-preview-count { position:absolute; bottom:-28px; left:50%; transform:translateX(-50%); color:#8899aa; font-size:13px; }

/* 令牌页面 */
.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.card-title-row .card-title {
    margin-bottom: 0;
}
.btn-api-docs {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 13px;
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-api-docs:hover {
    color: #10c296;
    border-color: rgba(16, 194, 150, 0.4);
    background: rgba(16, 194, 150, 0.08);
}
.btn-create {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-create:hover {
    background: rgba(16, 194, 150, 0.15);
    border-color: rgba(16, 194, 150, 0.3);
    color: #10c296;
}

.token-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.token-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.token-table td {
    padding: 16px;
    font-size: 14px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.token-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.token-key {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: monospace;
    font-size: 13px;
    color: #9ca3af;
}

.copy-btn {
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.copy-btn:hover {
    color: #10c296;
    background: rgba(16, 194, 150, 0.1);
}

.copy-btn svg { pointer-events: none; }

.action-link {
    color: #9ca3af;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}

.action-link:hover { color: #10c296; }

.action-divider {
    color: #4b5563;
    margin: 0 8px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #9ca3af;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: rgba(16, 194, 150, 0.2);
    border-color: rgba(16, 194, 150, 0.5);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background-color: #10c296;
    box-shadow: 0 0 8px rgba(16, 194, 150, 0.5);
}

.toggle-switch:hover .toggle-slider { border-color: rgba(255, 255, 255, 0.3); }

.status-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-text { font-size: 12px; }
.status-text.active { color: #10c296; }
.status-text.inactive { color: #6b7280; }

.token-usage {
    font-variant-numeric: tabular-nums;
    color: #d1d5db;
    font-size: 13px;
    white-space: nowrap;
}
.form-hint {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 16px;
}
.form-static {
    font-size: 14px;
    color: #10c296;
    font-variant-numeric: tabular-nums;
}

.form-label {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    outline: none;
}

.form-input:focus { border-color: #10c296; }

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel {
    padding: 8px 16px;
    font-size: 14px;
    color: #9ca3af;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
}

.btn-cancel:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-confirm {
    padding: 8px 16px;
    font-size: 14px;
    color: white;
    background: linear-gradient(135deg, #10c296, #0891b2);
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-confirm:hover { box-shadow: 0 4px 12px rgba(16, 194, 150, 0.3); }

.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
.btn-danger:hover { box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }

/* 微信绑定扫码弹窗 */
.sv-wechat-qr-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 10003; }
.sv-wechat-qr-box { background: rgba(20,25,35,0.98); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 24px; text-align: center; }
.sv-wechat-qr-title { color: #10c296; font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.sv-wechat-qr-tip { color: #6b7280; font-size: 13px; margin: 12px 0 16px; }
.sv-wechat-qr-close { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 6px 20px; color: #9ca3af; font-size: 13px; cursor: pointer; }
.sv-wechat-qr-close:hover { color: white; border-color: rgba(255,255,255,0.3); }