/* ==================== 统计标签 ==================== */
.stats-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: var(--color-text-primary);
    border: 2px solid #dee2e6;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stats-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.stats-badge:hover::before {
    left: 100%;
}

.stats-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15), 0 0 30px rgba(0, 0, 0, 0.1);
}

.stats-badge--success {
    background: linear-gradient(135deg, #00e676, #00c853);
    color: white;
    border-color: #00e676;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4), 0 0 30px rgba(0, 230, 118, 0.3);
}

.stats-badge--success:hover {
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.5), 0 0 40px rgba(0, 230, 118, 0.4);
}

.stats-badge--error {
    background: linear-gradient(135deg, #ff1744, #f50057);
    color: white;
    border-color: #ff1744;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.4), 0 0 30px rgba(255, 23, 68, 0.3);
}

.stats-badge--error:hover {
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.5), 0 0 40px rgba(255, 23, 68, 0.4);
}

/* ==================== 账号列表 ==================== */
.account-grid {
    padding: var(--layout-content-padding) 24px;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: repeat(var(--card-columns), 1fr);
    gap: var(--card-gap);
    align-content: start;
}

.account-grid::-webkit-scrollbar {
    width: 6px;
}

.account-grid::-webkit-scrollbar-track {
    background: transparent;
}

.account-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.account-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .account-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .account-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==================== 账号卡片 ==================== */
.account-card {
    background: var(--color-bg-elevated);
    border: 3px solid var(--color-border-default);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: var(--card-height);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.account-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    pointer-events: none;
}

.account-card:hover::before {
    left: 100%;
}

.account-card:hover {
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.3), 0 0 40px rgba(76, 175, 80, 0.2);
    transform: translateY(-6px) scale(1.02);
    border-color: #4CAF50;
}

.account-card--enabled {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 3px solid #66bb6a;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.25), 0 0 30px rgba(76, 175, 80, 0.15);
}

.account-card--enabled:hover {
    border-color: #4CAF50;
    box-shadow: 0 8px 35px rgba(76, 175, 80, 0.4), 0 0 50px rgba(76, 175, 80, 0.3);
}

.account-card--disabled {
    background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
    border: 3px solid #ef5350;
    box-shadow: 0 4px 20px rgba(244, 67, 54, 0.25), 0 0 30px rgba(244, 67, 54, 0.15);
}

.account-card--disabled:hover {
    border-color: #f44336;
    box-shadow: 0 8px 35px rgba(244, 67, 54, 0.4), 0 0 50px rgba(244, 67, 54, 0.3);
}

[data-theme="dark"] .account-card--enabled {
    background: linear-gradient(135deg, #1a2e1a 0%, #243324 100%);
    border: 3px solid #66bb6a;
    box-shadow: 0 4px 20px rgba(102, 187, 106, 0.3), 0 0 30px rgba(102, 187, 106, 0.2);
}

[data-theme="dark"] .account-card--enabled:hover {
    border-color: #81c784;
    box-shadow: 0 8px 35px rgba(102, 187, 106, 0.5), 0 0 50px rgba(102, 187, 106, 0.4);
}

[data-theme="dark"] .account-card--disabled {
    background: linear-gradient(135deg, #2e1a1a 0%, #332424 100%);
    border: 3px solid #ef5350;
    box-shadow: 0 4px 20px rgba(239, 83, 80, 0.3), 0 0 30px rgba(239, 83, 80, 0.2);
}

[data-theme="dark"] .account-card--disabled:hover {
    border-color: #f44336;
    box-shadow: 0 8px 35px rgba(239, 83, 80, 0.5), 0 0 50px rgba(239, 83, 80, 0.4);
}

.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.account-card-id {
    font-family: var(--font-family-mono);
    font-size: 11px;
    font-weight: 700;
    color: #1a237e;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.1));
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

[data-theme="dark"] .account-card-id {
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.2), rgba(66, 165, 245, 0.15));
    color: #90caf9;
    border-color: rgba(66, 165, 245, 0.4);
}

.account-card-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.account-card-status--enabled {
    background: linear-gradient(135deg, #00e676, #00c853);
    color: white;
    box-shadow: 0 3px 12px rgba(0, 230, 118, 0.5), 0 0 20px rgba(0, 230, 118, 0.3);
}

.account-card-status--disabled {
    background: linear-gradient(135deg, #ff1744, #f50057);
    color: white;
    box-shadow: 0 3px 12px rgba(255, 23, 68, 0.5), 0 0 20px rgba(255, 23, 68, 0.3);
}

.account-card-label {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid var(--color-border-default);
    border-radius: 4px;
    background: var(--color-bg-input);
    color: var(--color-text-primary);
    font-size: 11px;
    outline: none;
    transition: all 0.2s;
}

.account-card-time {
    font-size: 12px;
    color: #1a237e;
    padding: 8px 12px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 8px;
    border: 2px solid #64b5f6;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.2), 0 0 20px rgba(33, 150, 243, 0.1);
    letter-spacing: 0.3px;
}

[data-theme="dark"] .account-card-time {
    color: #e3f2fd;
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    border-color: #42a5f5;
    box-shadow: 0 2px 10px rgba(66, 165, 245, 0.3), 0 0 20px rgba(66, 165, 245, 0.2);
}

.account-card-label:focus {
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 2px rgba(217, 119, 87, 0.1);
}

.account-card-stats {
    display: flex;
    justify-content: space-around;
    gap: 12px;
}

.account-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.account-stat-label {
    font-size: 10px;
    color: var(--color-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-stat-value {
    font-weight: 800;
    font-size: 20px;
    color: var(--color-text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.account-stat--success .account-stat-value {
    color: #00e676;
    text-shadow: 0 0 15px rgba(0, 230, 118, 0.6), 0 2px 8px rgba(0, 230, 118, 0.3);
}

.account-stat--error .account-stat-value {
    color: #ff1744;
    text-shadow: 0 0 15px rgba(255, 23, 68, 0.6), 0 2px 8px rgba(255, 23, 68, 0.3);
}

.account-card-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* ==================== 按钮组件 ==================== */
.btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
    height: 32px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.btn:hover::before {
    left: 100%;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: var(--color-bg-input) !important;
    color: var(--color-text-secondary) !important;
    border-color: var(--color-border-default) !important;
}

.btn--primary {
    background: linear-gradient(135deg, #00e676, #00c853);
    color: white;
    border: 2px solid #00e676;
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.4), 0 0 30px rgba(0, 230, 118, 0.3);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #00c853, #00b248);
    box-shadow: 0 6px 30px rgba(0, 230, 118, 0.6), 0 0 50px rgba(0, 230, 118, 0.5);
    transform: translateY(-3px) scale(1.03);
    border-color: #00c853;
}

.btn--secondary {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border: 2px solid #e0e0e0;
    color: var(--color-text-primary);
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08), 0 0 20px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.5px;
}

.btn--secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2), 0 0 30px rgba(33, 150, 243, 0.2);
    transform: translateY(-3px) scale(1.03);
    border-color: #2196F3;
}

.btn--header {
    padding: 6px 14px;
    border: 1px solid #dee2e6;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    color: var(--color-text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn--header:hover:not(:disabled) {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.btn--card {
    padding: 8px 20px;
    font-size: 13px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 1px solid #dee2e6;
    color: var(--color-text-primary);
    height: 36px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-width: 80px;
    letter-spacing: 0.5px;
}

.btn--card:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px) scale(1.02);
}

.btn--refresh:hover:not(:disabled) {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: white;
    border-color: #00bcd4;
    box-shadow: 0 6px 25px rgba(0, 188, 212, 0.5), 0 0 30px rgba(0, 188, 212, 0.4);
}

.btn--toggle:hover:not(:disabled) {
    background: linear-gradient(135deg, #00e676, #00c853);
    color: white;
    border-color: #00e676;
    box-shadow: 0 6px 25px rgba(0, 230, 118, 0.5), 0 0 30px rgba(0, 230, 118, 0.4);
}

.btn--danger {
    color: #c62828;
}

.btn--danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff1744, #f50057);
    color: white;
    border-color: #ff1744;
    box-shadow: 0 6px 25px rgba(255, 23, 68, 0.5), 0 0 30px rgba(255, 23, 68, 0.4);
    transform: translateY(-3px) scale(1.02);
}

[data-theme="dark"] .btn--danger {
    color: #ef5350;
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .btn--danger:hover:not(:disabled) {
    background: #c62828;
    color: white;
}

.btn--success {
    color: #2e7d32;
}

.btn--success:hover:not(:disabled) {
    background: #2e7d32;
    color: white;
    border-color: #2e7d32;
}

[data-theme="dark"] .btn--success {
    color: #66bb6a;
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .btn--success:hover:not(:disabled) {
    background: #2e7d32;
    color: white;
}

[data-theme="dark"] .btn--card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
}

[data-theme="dark"] .btn--card:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-icon {
    font-size: 14px;
}

/* ==================== 空状态 ==================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-secondary);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* ==================== Toast 通知 ==================== */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 10px 16px;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    z-index: 100001;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toast-slide-in 0.3s ease;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast--success { background: var(--color-success); }
.toast--error { background: var(--color-danger); }
.toast--info { background: var(--color-accent-primary); }
.toast--warning { background: var(--color-warning); }

/* ==================== 思考中动画 ==================== */
.thinking-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
}

.thinking-dots {
    display: inline-flex;
    gap: 4px;
}

.thinking-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent-primary);
    animation: thinking-bounce 1.4s infinite ease-in-out;
}

.thinking-dot:nth-child(1) {
    animation-delay: 0s;
}

.thinking-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes thinking-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* ==================== 统计卡片 ==================== */
.stats-card {
    padding: 20px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-default);
    border-radius: 8px;
    text-align: center;
}

.stats-card-label {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.stats-card-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* ==================== 数据表格 ==================== */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--color-border-default);
    border-radius: 8px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-elevated);
}

.data-table thead {
    background: var(--color-bg-hover);
    border-bottom: 1px solid var(--color-border-default);
}

.data-table th {
    padding: 12px 15px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    background: #f5f5f5;
}

.data-table th:last-child {
    text-align: right;
    padding-right: 20px;
}

.data-table td {
    padding: 12px 15px;
    border-top: 1px solid var(--color-border-default);
    font-size: 13px;
    color: var(--color-text-primary);
}

.data-table td:last-child {
    text-align: right;
    padding-right: 20px;
    white-space: nowrap;
}

.data-table tbody tr {
    cursor: pointer;
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: #f5f5f5 !important;
}

/* ==================== 徽章 ==================== */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.badge--success {
    background: rgba(45, 138, 86, 0.1);
    color: var(--color-success);
}

.badge--error {
    background: rgba(209, 77, 77, 0.1);
    color: var(--color-danger);
}

/* ==================== 小按钮 ==================== */
.btn--small {
    padding: 4px 10px;
    font-size: 12px;
}

.btn--danger {
    background: var(--color-danger);
    color: white;
}

.btn--danger:hover {
    background: #c44;
}

/* ==================== 聊天界面 ==================== */
.chat-container {
    display: flex;
    height: 100%;
    gap: 0;
}

.chat-sidebar {
    width: 220px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-right: 2px solid var(--color-border-default);
    padding: 20px;
    overflow-y: auto;
}

[data-theme="dark"] .chat-sidebar {
    background: linear-gradient(135deg, #1a1a1a 0%, #1e1e1e 100%);
}

.chat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-item {
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
}

.chat-item:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.chat-item:hover .chat-item-actions {
    opacity: 1;
}

.chat-item--active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(33, 150, 243, 0.1));
    border-color: #4CAF50;
}

.chat-item-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.chat-item-date {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.chat-item-actions {
    position: absolute;
    bottom: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.chat-item-btn {
    padding: 4px 8px;
    background: rgba(255, 77, 77, 0.9);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.chat-item-btn:hover {
    background: #ff1744;
    transform: scale(1.1);
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-elevated);
}

.chat-header {
    height: 60px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-border-default);
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

[data-theme="dark"] .chat-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #1e1e1e 100%);
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.chat-input-area {
    padding: 20px 24px;
    border-top: 2px solid var(--color-border-default);
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

[data-theme="dark"] .chat-input-area {
    background: linear-gradient(135deg, #1a1a1a 0%, #1e1e1e 100%);
}

.chat-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--color-border-default);
    border-radius: 8px;
    background: var(--color-bg-input);
    color: var(--color-text-primary);
    font-size: 14px;
    font-family: var(--font-family-base);
    resize: vertical;
    outline: none;
    transition: all 0.3s;
}

.chat-input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.chat-message-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    gap: 12px;
    animation: fadeIn 0.3s;
}

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

.chat-message--user {
    flex-direction: row-reverse;
}

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

.chat-message--user .chat-message-avatar {
    background: linear-gradient(135deg, #00e676, #00c853);
    color: white;
}

.chat-message--assistant .chat-message-avatar {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.chat-message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.chat-message--user .chat-message-content {
    background: linear-gradient(135deg, #00e676, #00c853);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message--assistant .chat-message-content {
    background: var(--color-bg-input);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-default);
    border-bottom-left-radius: 4px;
}

.thinking-indicator {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.thinking-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2196F3;
    animation: thinkingPulse 1.4s infinite ease-in-out;
}

.thinking-dot:nth-child(1) {
    animation-delay: 0s;
}

.thinking-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes thinkingPulse {
    0%, 60%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* 确认对话框 */
.confirm-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    animation: overlayFadeIn 0.2s;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.confirm-dialog {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 77, 77, 0.2);
    animation: slideUp 0.3s ease-out;
}

[data-theme="dark"] .confirm-dialog {
    background: linear-gradient(135deg, #2a2d35, #1e2028);
}

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

.confirm-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.2), rgba(255, 23, 68, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 3px solid rgba(255, 77, 77, 0.4);
}

.confirm-icon i {
    font-size: 36px;
    color: #ff4d4d;
}

.confirm-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 16px 0;
}

[data-theme="dark"] .confirm-title {
    color: #ffffff;
}

.confirm-message {
    font-size: 15px;
    color: #666666;
    text-align: center;
    margin: 0 0 36px 0;
    line-height: 1.6;
}

[data-theme="dark"] .confirm-message {
    color: #aaaaaa;
}

.confirm-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-confirm-cancel {
    padding: 12px 32px;
    border: 2px solid #d0d0d0;
    border-radius: 10px;
    background: #ffffff;
    color: #333333;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.btn-confirm-cancel:hover {
    background: #f5f5f5;
    border-color: #999999;
    transform: translateY(-1px);
}

[data-theme="dark"] .btn-confirm-cancel {
    background: transparent;
    border-color: #555555;
    color: #ffffff;
}

[data-theme="dark"] .btn-confirm-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #777777;
}

.btn-confirm-ok {
    padding: 12px 32px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff4d4d, #ff1744);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(255, 77, 77, 0.5);
    min-width: 140px;
}

.btn-confirm-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 77, 77, 0.6);
}

.btn-confirm-ok i {
    font-size: 16px;
}

/* ==================== 添加账号页面样式 ==================== */
.add-account-container {
    padding: 32px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

/* 表单面板 */
.form-panel {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--color-border-default);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #2196F3, #9C27B0);
    opacity: 0;
    transition: opacity 0.3s;
}

.form-panel:hover::before {
    opacity: 1;
}

.form-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.15), 0 0 0 1px rgba(76, 175, 80, 0.2) inset;
    border-color: rgba(76, 175, 80, 0.4);
}

.form-panel--featured {
    background: linear-gradient(135deg, #ffffff 0%, #f1f8e9 100%);
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 8px 35px rgba(76, 175, 80, 0.12), 0 0 0 1px rgba(76, 175, 80, 0.15) inset;
}

.form-panel--featured::before {
    opacity: 1;
}

.form-panel--secondary {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    opacity: 0.85;
}

[data-theme="dark"] .form-panel {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

[data-theme="dark"] .form-panel--featured {
    background: linear-gradient(135deg, #1e2e1e 0%, #243324 100%);
    border-color: rgba(102, 187, 106, 0.3);
}

[data-theme="dark"] .form-panel--secondary {
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
}

/* 表单面板头部 */
.form-panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(33, 150, 243, 0.05));
    border-bottom: 2px solid rgba(76, 175, 80, 0.1);
    position: relative;
}

.form-panel-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4CAF50, #66bb6a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3), 0 0 30px rgba(76, 175, 80, 0.2);
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3), 0 0 30px rgba(76, 175, 80, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4), 0 0 40px rgba(76, 175, 80, 0.3);
    }
}

.form-panel-icon--secondary {
    background: linear-gradient(135deg, #757575, #9e9e9e);
    box-shadow: 0 6px 20px rgba(117, 117, 117, 0.3), 0 0 30px rgba(117, 117, 117, 0.2);
}

.form-panel-title-group {
    flex: 1;
}

.form-panel-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 4px 0;
    background: linear-gradient(135deg, #2c3e50, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .form-panel-title {
    background: linear-gradient(135deg, #ffffff, #66bb6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-panel-subtitle {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.form-panel-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, #00e676, #00c853);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ==================== 钱包信息显示 ==================== */
.wallet-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(33, 150, 243, 0.08));
    border: 2px solid rgba(76, 175, 80, 0.2);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.wallet-label-inline {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-secondary);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.wallet-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.wallet-info:hover::before {
    left: 100%;
}

.wallet-info:hover {
    border-color: rgba(76, 175, 80, 0.35);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.wallet-amount {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #4CAF50, #2196F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    line-height: 1.2;
    font-family: var(--font-family-mono);
}

[data-theme="dark"] .wallet-info {
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.12), rgba(66, 165, 245, 0.12));
    border-color: rgba(102, 187, 106, 0.3);
    box-shadow: 0 3px 10px rgba(102, 187, 106, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .wallet-info:hover {
    border-color: rgba(102, 187, 106, 0.4);
    box-shadow: 0 5px 15px rgba(102, 187, 106, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .wallet-amount {
    background: linear-gradient(135deg, #81c784, #64b5f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== 账号统计信息 ==================== */
.form-group .account-stats-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 28px 32px !important;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(33, 150, 243, 0.08));
    border-top: 2px solid rgba(76, 175, 80, 0.2);
    border-bottom: 2px solid rgba(76, 175, 80, 0.2);
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-group .account-stats-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
    pointer-events: none;
    z-index: 0;
}

.form-group .account-stats-info:hover::before {
    left: 100%;
}

.form-group .account-stats-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
    z-index: 1;
}

.form-group .account-stats-item {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.6 !important;
    margin: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group .account-stats-item:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.form-group .account-stats-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.3px;
    line-height: 1.5 !important;
    padding: 0 !important;
    text-transform: uppercase;
    font-size: 11px;
    opacity: 0.8;
}

.form-group .account-stats-value {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #4CAF50, #2196F3, #9C27B0);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    min-width: 32px;
    text-align: center;
    line-height: 1.4 !important;
    padding: 0 4px !important;
    animation: gradient-shift 3s ease infinite;
    position: relative;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.form-group .account-stats-unit {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    line-height: 1.5 !important;
    padding: 0 !important;
    letter-spacing: 0.5px;
}

.form-group .account-stats-divider {
    font-size: 18px;
    color: rgba(76, 175, 80, 0.4);
    font-weight: 600;
    line-height: 1.5 !important;
    padding: 0 4px !important;
    opacity: 0.6;
}

.account-count-control {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 8px;
    padding: 6px 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-radius: 50px;
    border: 2px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.account-count-control:hover {
    border-color: rgba(76, 175, 80, 0.5);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.account-count-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(33, 150, 243, 0.2));
    color: #4CAF50;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.account-count-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    pointer-events: none;
}

.account-count-btn:active::before {
    width: 200%;
    height: 200%;
}

.account-count-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(33, 150, 243, 0.3));
    border-color: rgba(76, 175, 80, 0.7);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 14px rgba(76, 175, 80, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.account-count-control .account-stats-value {
    min-width: 40px;
    text-align: center;
    padding: 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: #4CAF50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
    border-radius: 20px;
    padding: 4px 12px;
    margin: 0 2px;
    box-shadow: inset 0 2px 4px rgba(76, 175, 80, 0.1);
}

.account-count-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

[data-theme="dark"] .account-stats-info {
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.12), rgba(66, 165, 245, 0.12));
    border-top-color: rgba(102, 187, 106, 0.3);
    border-bottom-color: rgba(102, 187, 106, 0.3);
    border-left: none;
    border-right: none;
    box-shadow: 0 4px 20px rgba(102, 187, 106, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .account-stats-item {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 187, 106, 0.3);
}

[data-theme="dark"] .account-stats-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(102, 187, 106, 0.4);
}

[data-theme="dark"] .account-stats-label {
    color: #bbb;
}

[data-theme="dark"] .account-stats-unit {
    color: #bbb;
}

[data-theme="dark"] .account-stats-divider {
    color: rgba(102, 187, 106, 0.5);
}

[data-theme="dark"] .account-count-control {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3));
    border-color: rgba(102, 187, 106, 0.4);
    box-shadow: 0 4px 12px rgba(102, 187, 106, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .account-count-control:hover {
    border-color: rgba(102, 187, 106, 0.6);
    box-shadow: 0 6px 16px rgba(102, 187, 106, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .account-count-control .account-stats-value {
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.15), rgba(66, 165, 245, 0.15));
    color: #81c784;
    box-shadow: inset 0 2px 4px rgba(102, 187, 106, 0.15);
}

[data-theme="dark"] .account-stats-value {
    background: linear-gradient(135deg, #81c784, #64b5f6, #ba68c8);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

[data-theme="dark"] .account-count-btn {
    border-color: rgba(102, 187, 106, 0.5);
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.2), rgba(66, 165, 245, 0.2));
    color: #81c784;
    box-shadow: 0 2px 6px rgba(102, 187, 106, 0.3);
}

[data-theme="dark"] .account-count-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.3), rgba(66, 165, 245, 0.3));
    border-color: rgba(102, 187, 106, 0.7);
    box-shadow: 0 4px 12px rgba(102, 187, 106, 0.4);
}

/* 账号统计信息内的提示文本 */
.account-stats-hint {
    width: 100%;
    margin-top: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: none;
    border: none;
    border-radius: 0;
    position: relative;
    z-index: 1;
}

.account-hint-icon {
    font-size: 16px;
    color: #4CAF50;
    opacity: 0.7;
    animation: pulse-icon 2s ease-in-out infinite;
}

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

.account-stats-hint .form-hint {
    display: inline !important;
    margin-top: 0 !important;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 0;
    width: auto;
}

[data-theme="dark"] .account-stats-hint {
    background: none;
    border: none;
}

[data-theme="dark"] .account-stats-hint .form-hint {
    display: inline !important;
    color: #aaa;
}

[data-theme="dark"] .account-hint-icon {
    color: #81c784;
}

/* 表单面板主体 */
.form-panel-body {
    padding: 28px;
}

/* 表单行 */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.form-row--grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 32px;
}

/* 表单组 */
.form-group {
    flex: 1;
}

.form-group--full {
    width: 100%;
}

.form-group--toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(33, 150, 243, 0.05));
    border-radius: 12px;
    border: 2px solid rgba(76, 175, 80, 0.1);
    transition: all 0.3s;
}

.form-group--toggle:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
    border-color: rgba(76, 175, 80, 0.2);
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-primary);
}

.form-label i {
    font-size: 16px;
    color: #4CAF50;
}

.form-group--toggle .form-label {
    margin-bottom: 0;
    flex: 1;
}

/* 增强输入框 */
.form-input--enhanced {
    padding: 14px 16px;
    border: 2px solid var(--color-border-default);
    border-radius: 12px;
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
    font-size: 14px;
    font-family: var(--font-family-base);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-input--enhanced:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1), 0 4px 12px rgba(76, 175, 80, 0.2);
    outline: none;
    transform: translateY(-1px);
}

.form-hint {
    display: block;
    margin-top: 12px;
    color: var(--color-text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

/* 增强开关 */
.toggle-switch--enhanced {
    width: 52px;
    height: 28px;
}

.toggle-switch--enhanced .toggle-slider {
    background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch--enhanced input:checked + .toggle-slider {
    background: linear-gradient(135deg, #4CAF50, #66bb6a);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch--enhanced .toggle-slider:before {
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.toggle-switch--enhanced input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid rgba(76, 175, 80, 0.1);
}

.btn--large {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    min-width: 180px;
    height: 48px;
    letter-spacing: 0.5px;
}

.btn--large .btn-icon {
    font-size: 18px;
}

/* OAuth 信息面板 */
.oauth-info-panel {
    margin-top: 24px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(76, 175, 80, 0.05));
    border: 2px solid rgba(33, 150, 243, 0.2);
    border-radius: 16px;
    padding: 20px;
    animation: slideDown 0.4s ease-out;
}

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

.oauth-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(33, 150, 243, 0.2);
}

.oauth-info-header i {
    font-size: 20px;
    color: #2196F3;
}

.oauth-info-header span {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text-primary);
}

.oauth-info-content {
    font-family: var(--font-family-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--color-text-primary);
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(255, 255, 255, 0.5);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(33, 150, 243, 0.1);
}

[data-theme="dark"] .oauth-info-content {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(66, 165, 245, 0.2);
}

/* 即将推出占位符 */
.coming-soon-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    color: var(--color-text-secondary);
    text-align: center;
}

.coming-soon-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
    color: var(--color-text-secondary);
}

.coming-soon-placeholder p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* ==================== 启用账号卡片（现代科技风格） ==================== */
.enable-account-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.08), rgba(76, 175, 80, 0.08));
    border: 2px solid rgba(33, 150, 243, 0.2);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
}

.enable-account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.enable-account-card:hover::before {
    left: 100%;
}

.enable-account-card:hover {
    border-color: rgba(33, 150, 243, 0.4);
    box-shadow: 0 8px 30px rgba(33, 150, 243, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

[data-theme="dark"] .enable-account-card {
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.12), rgba(102, 187, 106, 0.12));
    border-color: rgba(66, 165, 245, 0.3);
    box-shadow: 0 4px 20px rgba(66, 165, 245, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .enable-account-card:hover {
    border-color: rgba(66, 165, 245, 0.5);
    box-shadow: 0 8px 30px rgba(66, 165, 245, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.enable-account-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.enable-account-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2196F3, #42a5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4), 0 0 20px rgba(33, 150, 243, 0.2);
    position: relative;
    overflow: hidden;
}

.enable-account-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: iconShine 3s infinite;
}

@keyframes iconShine {
    0% {
        left: -50%;
    }
    50%, 100% {
        left: 150%;
    }
}

.enable-account-icon-wrapper i {
    font-size: 20px;
    color: white;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.enable-account-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.enable-account-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #2196F3, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

[data-theme="dark"] .enable-account-label {
    background: linear-gradient(135deg, #66b3ff, #81c784);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.enable-account-desc {
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

/* 现代科技风格开关 */
.toggle-switch--modern {
    position: relative;
    width: 54px;
    height: 30px;
    flex-shrink: 0;
}

.toggle-switch--modern input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch--modern .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #bdbdbd, #9e9e9e);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 32px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-switch--modern .toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, #ffffff, #f5f5f5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.toggle-switch--modern input:checked + .toggle-slider {
    background: linear-gradient(135deg, #4CAF50, #66bb6a);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1), 0 0 20px rgba(76, 175, 80, 0.4);
}

.toggle-switch--modern input:checked + .toggle-slider:before {
    transform: translateX(24px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.toggle-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.6), transparent);
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    opacity: 0;
}

.toggle-switch--modern input:checked ~ .toggle-glow {
    width: 80px;
    height: 80px;
    opacity: 1;
    animation: togglePulse 2s infinite;
}

@keyframes togglePulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* ==================== 数据表格 ==================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table thead {
    background: var(--color-bg-secondary);
}

.data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-border);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s;
}

.data-table tbody tr:hover {
    background: var(--color-bg-secondary);
}

.data-table td {
    padding: 16px;
    color: var(--color-text-primary);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge--success {
    background: #d4edda;
    color: #155724;
}

.badge--warning {
    background: #fff3cd;
    color: #856404;
}

.badge--error {
    background: #f8d7da;
    color: #721c24;
}

/* ==================== IP 控制区域 ==================== */
.ip-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.ip-filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    padding: 8px 16px;
    border: 2px solid var(--color-border);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.filter-tab:hover {
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.filter-tab.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.3);
}

.ip-search-bar {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 600px;
}

.ip-search-bar .form-input {
    flex: 1;
    min-width: 150px;
}

/* ==================== 现代科技风格按钮 ==================== */
.btn--card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn--card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn--card:hover::before {
    width: 300px;
    height: 300px;
}

.btn--card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn--danger {
    background: linear-gradient(135deg, #ff4757, #ff6348);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.btn--danger::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    transform: rotateZ(60deg) translate(-5em, 7.5em);
    transition: transform 0.6s;
}

.btn--danger:hover::after {
    transform: rotateZ(60deg) translate(1em, -10em);
}

.btn--success {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    border: none;
    color: white;
}

.btn--success:hover {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
}

/* 日志按钮特殊样式 */
.btn--card:has(.ri-file-list-line) {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
}

.btn--card:has(.ri-file-list-line):hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* 封禁/解封按钮动态样式 */
.btn--card.btn--danger {
    background: linear-gradient(135deg, #ff4757, #ff6348);
    animation: pulse-red 2s infinite;
}

.btn--card.btn--success {
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(255, 71, 87, 0.5);
    }
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(29, 209, 161, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(29, 209, 161, 0.5);
    }
}

/* ==================== 优化过滤标签样式 ==================== */
.filter-tab {
    position: relative;
    background: var(--color-bg-primary);
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.filter-tab:hover::before {
    opacity: 1;
}

.filter-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.filter-tab.active::before {
    opacity: 0;
}

.filter-tab i {
    transition: transform 0.3s;
}

.filter-tab:hover i {
    transform: scale(1.2);
}

.filter-tab.active i {
    animation: bounce 0.6s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ==================== 统计卡片网格 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.stat-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-default);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

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

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
}

/* ==================== 导入进度条 ==================== */
.import-progress {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0;
}
