:root {
    /* 主色调 - 现代蓝紫渐变 */
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #7c3aed;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* 背景色 */
    --bg-color: #f8fafc;
    --bg-gradient: linear-gradient(180deg, #f8fafc 0%, #e0e7ff 100%);
    --card-bg: #ffffff;
    --card-hover: #fafbff;
    
    /* 文字颜色 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    
    /* 边框和分割线 */
    --border-color: #e2e8f0;
    --divider-color: #f1f5f9;
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    
    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-cool: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --gradient-purple: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    
    /* 毛玻璃效果 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 6px;
    --spacing: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    overflow-x: hidden;
    min-height: 100vh;
}

[v-cloak] {
    display: none;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* 登录页面 - 全新设计 */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

/* 动态背景装饰 */
.login-page::before,
.login-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(60px);
}

.login-page::before {
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    animation: float 8s ease-in-out infinite;
}

.login-page::after {
    bottom: -15%;
    left: -15%;
    width: 500px;
    height: 500px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
        opacity: 0.3;
    }
    50% { 
        transform: translate(30px, -30px) scale(1.1); 
        opacity: 0.5;
    }
}

.login-container {
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl) var(--spacing-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.login-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.login-header i {
    font-size: 64px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    animation: iconPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(255,255,255,0.3));
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.login-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.login-header p {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.login-form .form-group {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.login-form .form-group i.fa-user,
.login-form .form-group i.fa-lock {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
}

.login-form .form-group input {
    width: 100%;
    padding: 16px 48px 16px 48px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-md);
    font-size: 16px;
    background: rgba(255,255,255,0.95);
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-form .form-group input::placeholder {
    color: var(--text-tertiary);
}

.login-form .form-group input:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 8px 24px rgba(255,255,255,0.3), 0 0 0 4px rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.login-form .toggle-password {
    position: absolute;
    left: auto !important;
    right: var(--spacing-md) !important;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    pointer-events: auto !important;
    z-index: 10;
}

.login-form .toggle-password:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.btn-login {
    width: 100%;
    padding: 18px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255,255,255,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: var(--spacing);
}

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

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255,255,255,0.4);
}

.btn-login:active {
    transform: scale(0.98);
}

.btn-login:active::before {
    left: 100%;
}

/* 主应用容器 */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-gradient);
}

/* 顶部导航栏 - 紧凑毛玻璃效果 */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px var(--spacing-md);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header h1 {
    font-size: 17px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.app-header i {
    font-size: 19px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(102, 126, 234, 0.08);
}

.app-header i:active {
    background: rgba(102, 126, 234, 0.15);
    transform: scale(0.92);
}

/* 搜索栏 */
.search-bar {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    animation: slideDown 0.3s ease;
}

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

.search-bar i {
    color: var(--primary-color);
    margin: 0 10px;
    font-size: 18px;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

.search-bar .fa-times {
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s;
}

.search-bar .fa-times:active {
    background: var(--bg-color);
    transform: scale(0.9);
}

/* 主内容区 */
.app-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.app-content > div {
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.app-content.slide-left > div {
    animation: slideOutLeft 0.2s ease-out;
}

.app-content.slide-right > div {
    animation: slideOutRight 0.2s ease-out;
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-20%);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(20%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(20%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 首页 - 简洁现代设计 */
.page-home {
    padding: var(--spacing);
    background: transparent;
}

/* 统计卡片网格 - 横向布局 */
.stats-grid {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--spacing-xs);
}

.stats-grid::-webkit-scrollbar {
    display: none;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: var(--spacing);
    min-width: 130px;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.stat-card:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.stat-card i {
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.stat-info {
    text-align: left;
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 3px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 快速操作 - 网格布局 */
.quick-actions {
    margin-bottom: var(--spacing-md);
}

.quick-actions h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    padding: 0 var(--spacing-xs);
}

/* 快速操作网格 */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing) var(--spacing-xs);
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    min-height: 70px;
}

.action-item:active {
    transform: scale(0.96);
    background: var(--bg-color);
    border-color: var(--primary-color);
}

.action-item i {
    font-size: 24px;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.action-item:active i {
    transform: scale(1.08);
}

.action-item span {
    font-size: 11px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* 最近浏览 */
.recent-section {
    margin-bottom: var(--spacing-md);
}

.recent-section h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    padding: 0 var(--spacing-xs);
}

/* 列表页面 - 现代卡片设计 */
.page-list {
    padding: var(--spacing-sm) 0;
    background: transparent;
}

/* 筛选栏 */
.filter-bar {
    padding: var(--spacing) var(--spacing-md);
    background: transparent;
    margin-bottom: var(--spacing-sm);
}

.filter-bar select {
    width: 100%;
    padding: var(--spacing) var(--spacing-md);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--spacing) center;
    padding-right: 36px;
}

.filter-bar select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

/* 列表项容器 */
.list-items {
    background: transparent;
    padding: 0 var(--spacing);
}

.list-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    background: var(--card-bg);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(102, 126, 234, 0.08);
}

/* 左侧装饰条 */
.list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-item:active {
    transform: translateX(3px);
    box-shadow: var(--shadow);
}

.list-item:active::before {
    height: 50%;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.item-meta {
    font-size: 11px;
    color: var(--text-tertiary);
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.item-meta span {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(102, 126, 234, 0.04) 100%);
    padding: 3px var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--primary-color);
}

.list-item > i {
    color: var(--text-tertiary);
    margin-left: var(--spacing-sm);
    font-size: 14px;
    transition: all 0.3s;
}

.list-item:active > i {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--primary-color);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    background: var(--card-bg);
    margin: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(102, 126, 234, 0.15);
}

.load-more:active {
    transform: scale(0.98);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(102, 126, 234, 0.1) 100%);
    box-shadow: var(--shadow);
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    color: var(--text-tertiary);
    min-height: 300px;
}

.empty-state i {
    font-size: 72px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.2;
    background: linear-gradient(135deg, var(--text-secondary) 0%, var(--border-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: emptyFloat 3s ease-in-out infinite;
}

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

.empty-state p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* 聊天页面 - 全新设计 */
.page-chat {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: transparent;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing);
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

.message {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing);
    animation: messageSlideIn 0.3s ease;
}

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

.message-self {
    flex-direction: row-reverse;
}

.message-avatar img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 2px solid white;
}

.message-content {
    max-width: 70%;
    display: flex;
    flex-direction: column;
}

.message-self .message-content {
    align-items: flex-end;
}

.message-header {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: 3px;
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.message-self .message-header {
    flex-direction: row-reverse;
}

.message-username {
    font-weight: 700;
}

.message-time {
    opacity: 0.7;
}

.message-text {
    padding: var(--spacing) var(--spacing-md);
    border-radius: var(--radius);
    font-size: 14px;
    word-wrap: break-word;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.message-other .message-text {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-bottom-left-radius: var(--spacing-xs);
}

.message-self .message-text {
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: var(--spacing-xs);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 聊天输入框 - 紧凑设计 */
.chat-input {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.03);
    position: fixed;
    bottom: calc(50px + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    z-index: 90;
}

.chat-input input {
    flex: 1;
    padding: 10px var(--spacing-md);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: var(--radius-full);
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.3s;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.chat-input input::placeholder {
    color: var(--text-tertiary);
}

.chat-input button {
    width: 42px;
    height: 42px;
    border: none;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.chat-input button:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.4);
}

.chat-input button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 个人中心 - 精致设计 */
.page-profile {
    padding: var(--spacing);
    background: transparent;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--gradient-primary);
    border-radius: var(--radius);
    margin-bottom: var(--spacing);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

/* 背景装饰 */
.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.profile-avatar {
    position: relative;
    z-index: 1;
}

.profile-avatar img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.profile-name {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.5px;
}

.profile-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.25);
    padding: 4px var(--spacing);
    border-radius: var(--radius-full);
    display: inline-block;
    backdrop-filter: blur(10px);
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.profile-expire {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.profile-expire i {
    font-size: 10px;
}

.profile-expire.expire-warning {
    color: #fbbf24;
}

.profile-expire.expire-expired {
    color: #fca5a5;
}

/* 菜单列表 */
.profile-menu {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.08);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing);
    padding: var(--spacing-md) var(--spacing);
    border-bottom: 1px solid var(--divider-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--card-bg);
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--gradient-primary);
    opacity: 0.08;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item:active::before {
    width: 100%;
}

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

.menu-item:active {
    transform: translateX(3px);
}

.menu-item i:first-child {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(102, 126, 234, 0.05) 100%);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    position: relative;
    z-index: 1;
}

.menu-item span {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.menu-item i:last-child {
    color: var(--text-tertiary);
    font-size: 13px;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.menu-item:active i:last-child {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* 底部导航栏 - 紧凑设计 */
.app-nav {
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    position: relative;
}

/* 导航指示器 */
.app-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.4);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item i {
    font-size: 20px;
    color: var(--text-tertiary);
    margin-bottom: 2px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.nav-item span {
    font-size: 10px;
    color: var(--text-tertiary);
    font-weight: 600;
    transition: all 0.3s;
    letter-spacing: 0.1px;
}

/* 激活状态 */
.nav-item.active i {
    color: var(--primary-color);
    transform: translateY(-2px) scale(1.05);
}

.nav-item.active span {
    color: var(--primary-color);
    font-weight: 700;
}

/* 点击动画 */
.nav-item:active {
    transform: scale(0.95);
}

/* 未读消息徽章 */
.nav-item .badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 20px);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 导航指示器位置 */
.nav-item:nth-child(1).active ~ .app-nav::before,
.app-nav:has(.nav-item:nth-child(1).active)::before {
    transform: translateX(0);
}

.nav-item:nth-child(2).active ~ .app-nav::before,
.app-nav:has(.nav-item:nth-child(2).active)::before {
    transform: translateX(100%);
}

.nav-item:nth-child(3).active ~ .app-nav::before,
.app-nav:has(.nav-item:nth-child(3).active)::before {
    transform: translateX(200%);
}

.nav-item:nth-child(4).active ~ .app-nav::before,
.app-nav:has(.nav-item:nth-child(4).active)::before {
    transform: translateX(300%);
}

.nav-item:nth-child(5).active ~ .app-nav::before,
.app-nav:has(.nav-item:nth-child(5).active)::before {
    transform: translateX(400%);
}

/* 详情页面 - 全屏滑入设计 */
.detail-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-gradient);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    animation: slideInDetailPage 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition: none;
    touch-action: pan-y;
    will-change: transform;
}

.detail-page.swiping {
    transition: none;
}

.detail-page.closing {
    animation: slideOutDetailPage 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInDetailPage {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutDetailPage {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.detail-header h1 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.detail-header i {
    font-size: 22px;
    color: var(--primary-color);
    cursor: pointer;
    padding: var(--spacing);
    border-radius: var(--radius-full);
    transition: all 0.3s;
    background: rgba(102, 126, 234, 0.08);
}

.detail-header i:active {
    background: rgba(102, 126, 234, 0.15);
    transform: scale(0.92);
}

.detail-header .fa-star {
    color: var(--text-tertiary);
}

.detail-header .fa-star.active {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: starPulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.detail-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
    -webkit-overflow-scrolling: touch;
}

.regulation-detail h2,
.issue-detail h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    line-height: 1.4;
    color: var(--text-primary);
    animation: fadeInUp 0.5s ease;
    letter-spacing: -0.5px;
}

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

.detail-meta {
    display: flex;
    gap: var(--spacing);
    flex-wrap: wrap;
    font-size: 13px;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--divider-color);
    animation: fadeInUp 0.6s ease;
}

.detail-meta span {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(102, 126, 234, 0.05) 100%);
    color: var(--primary-color);
    padding: 8px var(--spacing-md);
    border-radius: var(--radius-full);
    font-weight: 700;
    border: 1px solid rgba(102, 126, 234, 0.2);
    letter-spacing: 0.3px;
}

.detail-info {
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.7s ease;
}

.info-row {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(102, 126, 234, 0.08);
}

.info-row label {
    display: flex;
    align-items: center;
    gap: var(--spacing);
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: var(--spacing);
    letter-spacing: 0.3px;
}

.info-row label::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.info-row span,
.info-row div {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.8;
    font-weight: 500;
}

.detail-text {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-primary);
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.8s ease;
    border: 1px solid rgba(102, 126, 234, 0.08);
}

/* 模态框 - 现代设计 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--spacing-lg);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.theme-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing);
    padding: var(--spacing-md);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-color);
}

.theme-item.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(102, 126, 234, 0.02) 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.theme-item:active {
    transform: scale(0.95);
}

.theme-preview {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 3px solid white;
}

.theme-item span {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.theme-item.active span {
    color: var(--primary-color);
    font-weight: 700;
}

.btn-close {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-close:active {
    transform: scale(0.98);
    background: var(--divider-color);
    border-color: var(--primary-color);
}

/* Toast 提示 - 精致设计 */
.toast {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--text-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    animation: toastSlideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 220px;
    text-align: center;
    letter-spacing: 0.3px;
}

.toast.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.4);
}

.toast.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.4);
}

.toast.info {
    background: var(--gradient-primary);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

@keyframes toastSlideDown {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-40px) scale(0.9);
    }
    50% {
        transform: translateX(-50%) translateY(8px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* 下拉刷新提示 */
.pull-refresh-tip {
    text-align: center;
    padding: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    background: var(--bg-color);
}

/* 骨架屏动画 */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* 页面切换动画 */
.page-enter {
    animation: pageSlideIn 0.3s ease;
}

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

/* 卡片入场动画 */
.card-animate {
    animation: cardFadeIn 0.4s ease backwards;
}

.card-animate:nth-child(1) { animation-delay: 0.05s; }
.card-animate:nth-child(2) { animation-delay: 0.1s; }
.card-animate:nth-child(3) { animation-delay: 0.15s; }
.card-animate:nth-child(4) { animation-delay: 0.2s; }

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

/* 长按效果 */
.long-press-effect:active {
    animation: longPress 0.5s ease;
}

@keyframes longPress {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); }
}

/* 波纹效果 */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    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.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* 响应式优化 */
@media (max-width: 375px) {
    .page-home {
        padding: var(--spacing);
    }
    
    .stat-card {
        min-width: 130px;
        padding: var(--spacing);
    }
    
    .stat-card i {
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .action-grid {
        gap: var(--spacing-sm);
    }
    
    .action-item {
        padding: var(--spacing) var(--spacing-xs);
        min-height: 72px;
    }
    
    .action-item i {
        font-size: 24px;
    }
    
    .action-item span {
        font-size: 10px;
    }
}

/* 安全区域适配 */
@supports (padding: max(0px)) {
    .app-container {
        padding-top: env(safe-area-inset-top);
    }
    
    .app-nav {
        padding-bottom: max(var(--spacing-sm), env(safe-area-inset-bottom));
    }
    
    .login-page {
        padding-top: max(var(--spacing-xl), env(safe-area-inset-top));
        padding-bottom: max(var(--spacing-xl), env(safe-area-inset-bottom));
    }
}

/* 主题 - 商务蓝 */
[data-theme="business-blue"] {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 主题 - 科技紫 */
[data-theme="tech-purple"] {
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

/* 主题 - 自然绿 */
[data-theme="nature-green"] {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
}

/* 主题 - 活力橙 */
[data-theme="energy-orange"] {
    --primary-color: #f97316;
    --primary-dark: #ea580c;
    --gradient-primary: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}

/* 主题 - 深邃黑 */
[data-theme="dark"] {
    --bg-color: #0f172a;
    --bg-gradient: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --card-bg: #1e293b;
    --card-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --border-color: #334155;
    --divider-color: #1e293b;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* 加载动画优化 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--divider-color);
    border-top-color: var(--primary-color);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

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

/* 搜索栏优化 */
.search-bar {
    display: flex;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    animation: slideDown 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

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

.search-bar i {
    color: var(--primary-color);
    margin: 0 var(--spacing);
    font-size: 18px;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
}

.search-bar input::placeholder {
    color: var(--text-tertiary);
}

.search-bar .fa-times {
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-full);
    transition: all 0.3s;
    color: var(--text-tertiary);
}

.search-bar .fa-times:active {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    transform: scale(0.9);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* 页面切换动画 */
.page-enter {
    animation: pageSlideIn 0.3s ease;
}

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

/* 卡片入场动画 */
.card-animate {
    animation: cardFadeIn 0.4s ease backwards;
}

.card-animate:nth-child(1) { animation-delay: 0.05s; }
.card-animate:nth-child(2) { animation-delay: 0.1s; }
.card-animate:nth-child(3) { animation-delay: 0.15s; }
.card-animate:nth-child(4) { animation-delay: 0.2s; }

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

/* 触摸反馈优化 */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}



/* Dark主题特殊适配 */
[data-theme="dark"] .loading-overlay {
    background: rgba(15, 23, 42, 0.95);
}

[data-theme="dark"] .login-form .form-group input {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .login-form .form-group input::placeholder {
    color: var(--text-tertiary);
}

[data-theme="dark"] .btn-login {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .action-item,
[data-theme="dark"] .list-item,
[data-theme="dark"] .profile-menu,
[data-theme="dark"] .filter-bar select {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .message-other .message-text {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .chat-input input {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .detail-content {
    color: var(--text-primary);
}

[data-theme="dark"] .info-row {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .modal-content {
    background: var(--card-bg);
    color: var(--text-primary);
}

[data-theme="dark"] .theme-item {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .load-more {
    background: var(--card-bg);
    color: var(--primary-color);
    border-color: var(--border-color);
}


/* 用户管理页面 */
.btn-add-user {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-add-user:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-sm);
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-item .item-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.user-nickname {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(102, 126, 234, 0.1);
    padding: 2px var(--spacing-sm);
    border-radius: var(--radius-sm);
}

.user-item .item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.role-badge {
    font-weight: 700;
}

.role-super-admin {
    color: #ef4444;
}

.role-admin {
    color: #3b82f6;
}

.role-user {
    color: var(--text-secondary);
}

.expire-normal {
    color: var(--success-color);
}

.expire-warning {
    color: var(--warning-color);
}

.expire-expired {
    color: var(--danger-color);
}

.user-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.btn-icon:active {
    transform: scale(0.95);
    background: rgba(102, 126, 234, 0.2);
}

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

.btn-icon.btn-danger:active {
    background: rgba(239, 68, 68, 0.2);
}

/* 用户表单模态框 */
.user-form-modal {
    max-width: 90%;
    width: 400px;
}

.user-form-modal h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.user-form .form-group {
    margin-bottom: var(--spacing-md);
}

.user-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.user-form .form-group input,
.user-form .form-group select {
    width: 100%;
    padding: var(--spacing) var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.3s;
}

.user-form .form-group input:focus,
.user-form .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.user-form .form-group input:disabled {
    background: var(--bg-color);
    color: var(--text-tertiary);
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: var(--spacing);
    margin-top: var(--spacing-lg);
}

.btn-cancel,
.btn-submit {
    flex: 1;
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel {
    background: var(--bg-color);
    color: var(--text-secondary);
}

.btn-cancel:active {
    background: var(--border-color);
}

.btn-submit {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-submit:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-sm);
}

/* Dark主题适配 - 用户管理 */
[data-theme="dark"] .btn-add-user {
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .user-form .form-group input,
[data-theme="dark"] .user-form .form-group select {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .user-form .form-group input:disabled {
    background: rgba(255, 255, 255, 0.05);
}
