/* TG云控系统 - 主样式文件 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 深色主题（默认） */
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-tertiary: #0f1329;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --accent-color: #667eea;
    --accent-color-2: #764ba2;
    --border-color: rgba(255,255,255,0.1);
    --card-bg: rgba(26, 31, 58, 0.6);
    --shadow: rgba(0,0,0,0.3);
}

[data-theme="light"] {
    /* 浅色主题 */
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8ecf1;
    --text-primary: #1a1f3a;
    --text-secondary: #5a6c7d;
    --accent-color: #667eea;
    --accent-color-2: #764ba2;
    --border-color: rgba(0,0,0,0.1);
    --card-bg: rgba(255,255,255,0.8);
    --shadow: rgba(0,0,0,0.1);
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

/* 登录页面 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
    font-size: 28px;
    font-weight: 700;
}

/* 主容器 */
.main-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-right: 1px solid var(--border-color);
    box-shadow: 4px 0 20px var(--shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: shimmer 2s ease infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.sidebar-header {
    padding: 20px 15px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-2) 100%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
    z-index: 1;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.sidebar-header h2 {
    color: #ffffff !important;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    flex: 1;
    margin: 0;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.5),
            0 2px 4px rgba(0, 0, 0, 0.5);
    }
    100% {
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 1),
            0 0 30px rgba(255, 255, 255, 0.7),
            0 0 40px rgba(255, 255, 255, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.5);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 主题切换按钮 - 侧边栏版本 */
.theme-toggle-sidebar {
    position: relative;
    z-index: 3;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.theme-toggle-sidebar:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.15) rotate(180deg);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 20px rgba(255, 255, 255, 0.3);
}

.theme-toggle-sidebar:active {
    transform: scale(1.05) rotate(180deg);
}

.theme-toggle-sidebar .theme-toggle-icon {
    font-size: 22px;
    line-height: 1;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
    user-select: none;
    pointer-events: none;
}

/* 保留原来的固定位置主题切换按钮（隐藏） */
.theme-toggle {
    display: none;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav > ul > li {
    margin: 5px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    border-radius: 0 8px 8px 0;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-item:hover::before,
.nav-item.active::before {
    width: 3px;
}

.nav-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
    color: var(--text-primary);
    color: #fff;
}

.nav-item.active {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-left-color: #667eea;
}

.nav-icon {
    margin-right: 12px;
    font-size: 18px;
}

.arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s;
}

.nav-group.active .arrow {
    transform: rotate(180deg);
}

.sub-menu {
    display: none;
    background: rgba(0,0,0,0.2);
    border-left: 3px solid #667eea;
    margin-left: 20px;
}

.nav-group.active .sub-menu {
    display: block;
}

.sub-menu li {
    margin: 0;
}

.sub-menu li a {
    padding: 12px 20px 12px 50px;
    display: block;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.sub-menu li a:hover,
.sub-menu li a.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

/* 主内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-tertiary);
    transition: background 0.3s ease;
}

.top-bar {
    background: var(--card-bg);
    padding: 18px 25px;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-primary);
}

.page-content {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    background: rgba(26, 31, 58, 0.6);
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.page-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.page-actions {
    display: flex;
    gap: 10px;
}

/* 表单样式 */
.form-section {
    background: rgba(26, 31, 58, 0.6);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0b0;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(15, 19, 41, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(15, 19, 41, 1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #888;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

.btn-block {
    width: 100%;
}

/* 表格样式 */
.table-container {
    background: rgba(26, 31, 58, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: rgba(102, 126, 234, 0.2);
}

th {
    padding: 15px;
    text-align: left;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #b0b0b0;
}

tbody tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-limited {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-banned {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

/* 标签页 */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(26, 31, 58, 0.95);
    margin: 5% auto;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #fff;
}

/* 聊天标签页容器 */
.chat-tabs-container {
    background: rgba(26, 31, 58, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.chat-tabs-header {
    display: flex;
    background: rgba(15, 19, 41, 0.8);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 10px;
    min-height: 50px;
}

.chat-tab {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
    max-width: 250px;
    position: relative;
    color: #b0b0b0;
}

.chat-tab:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #fff;
}

.chat-tab.active {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-color: #667eea;
}

.chat-tab-account {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

.chat-tab-close {
    margin-left: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.chat-tab-close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.chat-tabs-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.chat-tab-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
}

.chat-tab-panel.active {
    display: flex;
}

.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #888;
}

.chat-empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.chat-empty-state h3 {
    color: #b0b0b0;
    margin-bottom: 10px;
}

.chat-empty-state p {
    color: #888;
}

/* 聊天界面 */
.chat-container {
    display: flex;
    height: 100%;
    background: rgba(15, 19, 41, 0.3);
    overflow: hidden;
}

.chat-sidebar {
    width: 300px;
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
}

.chat-search {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chat-search input {
    width: 100%;
    padding: 10px;
    background: rgba(15, 19, 41, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #e0e0e0;
}

.chat-list {
    flex: 1;
    overflow-y: auto;
}

.chat-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.chat-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.chat-item.active {
    background: rgba(102, 126, 234, 0.2);
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(15, 19, 41, 0.5);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(15, 19, 41, 0.3);
}

.message-item {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 12px;
    max-width: 70%;
    word-wrap: break-word;
}

.message-item.sent {
    background: rgba(102, 126, 234, 0.3);
    margin-left: auto;
    text-align: right;
}

.message-item.received {
    background: rgba(255,255,255,0.05);
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(15, 19, 41, 0.5);
}

.chat-input-area textarea {
    width: 100%;
    padding: 12px;
    background: rgba(15, 19, 41, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #e0e0e0;
    resize: none;
    margin-bottom: 10px;
}

/* 统计卡片 */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(26, 31, 58, 0.6);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

/* 提示框 */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.account-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-selector select {
    padding: 8px 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    transition: all 0.3s ease;
}

.account-selector select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.file-upload-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-height: 60px;
        overflow: visible;
        position: relative;
    }
    
    .sidebar-header {
        display: none;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    
    .sidebar-nav > ul {
        display: flex;
        gap: 10px;
    }
    
    .sidebar-nav > ul > li {
        margin: 0;
    }
    
    .nav-item {
        white-space: nowrap;
        padding: 10px 15px;
        border-radius: 8px;
    }
    
    .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: 0 4px 20px var(--shadow);
        z-index: 100;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .main-content {
        width: 100%;
    }
    
    .page-content {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 10px;
        right: 10px;
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .page-header h2 {
        font-size: 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 10px;
        padding: 20px;
    }
    
    .chat-tabs-container {
        flex-direction: column;
    }
    
    .chat-tabs-header {
        flex-direction: row;
        overflow-x: auto;
        border-bottom: 1px solid var(--border-color);
        border-right: none;
    }
    
    .chat-tabs-content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-input, .form-select, textarea {
        font-size: 14px;
        padding: 10px;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 科技感动画效果 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--accent-color);
    }
    50% {
        box-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--accent-color);
    }
}

.tech-glow {
    animation: glow 2s ease-in-out infinite;
}

.tech-float {
    animation: float 3s ease-in-out infinite;
}

/* 加载状态优化 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 卡片悬停效果 */
.card, .stat-card, .form-section {
    transition: all 0.3s ease;
}

.card:hover, .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

/* 按钮动画 */
.btn-primary, .btn-secondary, .btn-sm {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before, .btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* 输入框焦点效果 */
.form-input:focus, .form-select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* 表格行悬停 */
table tbody tr {
    transition: all 0.2s ease;
}

table tbody tr:hover {
    background: var(--card-bg);
    transform: scale(1.01);
}

/* 账号选择模态框 */
.account-select-item {
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.account-select-item:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: translateY(-2px);
}

/* 表单提示文字 */
.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

/* 表单行 */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
