/* 高级资产管理系统 - 超炫酷样式 */

/* ====== CSS变量定义 ====== */
:root {
    /* 主色彩系统 */
    --primary-cyan: #00eaff;
    --primary-blue: #3a7bd5;
    --primary-purple: #8b5cf6;
    --accent-gold: #fbbf24;
    --accent-emerald: #10b981;
    
    /* 背景渐变 */
    --bg-primary: linear-gradient(135deg, #0a0e1a 0%, #1a1f3a 25%, #2d1b69 50%, #0a0e1a 100%);
    --bg-secondary: linear-gradient(135deg, #1e293b 0%, #334155 50%, #0f172a 100%);
    
    /* 玻璃拟态效果 */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(0, 234, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* 霓虹发光效果 */
    --neon-cyan: 0 0 5px #00eaff, 0 0 10px #00eaff, 0 0 15px #00eaff, 0 0 20px #00eaff;
    --neon-blue: 0 0 5px #3a7bd5, 0 0 10px #3a7bd5, 0 0 15px #3a7bd5;
    --neon-purple: 0 0 5px #8b5cf6, 0 0 10px #8b5cf6, 0 0 15px #8b5cf6;
    
    /* 文本颜色 */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-accent: #00eaff;
    
    /* 主要颜色系统 */
    --primary-color: #00eaff;
    --primary-dark: #00c3d7;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --danger-color: #ef4444;
    
    /* 表面和边框 */
    --surface-color: rgba(255, 255, 255, 0.08);
    --border-color: rgba(0, 234, 255, 0.2);
    --hover-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(0, 234, 255, 0.15);
}

/* ====== 全局基础样式 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 投资资产页面特定布局 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
}

/* ====== 粒子背景系统 ====== */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* 动态几何背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 234, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(58, 123, 213, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
    animation: backgroundPulse 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

/* ====== 系统标题 ====== */
.system-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-align: center;
    margin: 40px 0 60px 0;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 50%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--neon-cyan);
    letter-spacing: -0.02em;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: brightness(1) drop-shadow(0 0 10px rgba(0, 234, 255, 0.5)); }
    100% { filter: brightness(1.2) drop-shadow(0 0 20px rgba(0, 234, 255, 0.8)); }
}

/* ====== 超级卡片系统 ====== */
.premium-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--glass-shadow);
}

.premium-card::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.5s;
}

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

.premium-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 234, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--primary-cyan);
}

/* ====== 卡片标题增强 ====== */
.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-accent);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
    border-radius: 2px;
    box-shadow: var(--neon-cyan);
}

/* ====== 超级按钮系统 ====== */
.btn-premium {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    border: none;
    border-radius: 16px;
    padding: 16px 32px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 8px 16px rgba(0, 234, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-premium::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;
}

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

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 24px rgba(0, 234, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        var(--neon-cyan);
}

.btn-premium:active {
    transform: translateY(0px);
}

/* 按钮变体 */
.btn-success-premium {
    background: linear-gradient(135deg, var(--accent-emerald), #059669);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.btn-success-premium:hover {
    box-shadow: 
        0 12px 24px rgba(16, 185, 129, 0.4),
        0 0 20px rgba(16, 185, 129, 0.6);
}

.btn-warning-premium {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    box-shadow: 0 8px 16px rgba(251, 191, 36, 0.3);
}

.btn-warning-premium:hover {
    box-shadow: 
        0 12px 24px rgba(251, 191, 36, 0.4),
        0 0 20px rgba(251, 191, 36, 0.6);
}

.btn-management-premium {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    box-shadow: 0 8px 16px rgba(107, 114, 128, 0.3);
}

.btn-management-premium:hover {
    box-shadow: 
        0 12px 24px rgba(107, 114, 128, 0.4),
        0 0 20px rgba(107, 114, 128, 0.6);
}

/* ====== 表格系统增强 ====== */
.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-table th {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    padding: 16px 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.premium-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.premium-table tbody tr {
    transition: all 0.3s ease;
}

.premium-table tbody tr:hover {
    background: rgba(0, 234, 255, 0.1);
    transform: scale(1.01);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ====== 表单控件增强 ====== */
.form-control-premium {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 234, 255, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-control-premium:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 
        0 0 0 3px rgba(0, 234, 255, 0.2),
        var(--neon-cyan);
    transform: scale(1.02);
}

.form-control-premium::placeholder {
    color: var(--text-muted);
}

/* ====== 主操作按钮区域 ====== */
.main-action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 40px 0;
    padding: 32px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(0, 234, 255, 0.2);
    flex-wrap: wrap;
}

/* ====== 资产汇总显示 ====== */
.asset-summary {
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.1), rgba(58, 123, 213, 0.1));
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    margin: 32px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.asset-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 234, 255, 0.1), transparent);
    animation: rotate 4s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.total-value {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 16px 0;
    text-shadow: var(--neon-cyan);
}

.currency-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.currency-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(0, 234, 255, 0.2);
    transition: all 0.3s ease;
}

.currency-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-cyan);
}

/* ====== 加载和动画效果 ====== */
.loading-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-accent);
    font-weight: 500;
}

.spinner-premium {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 234, 255, 0.3);
    border-top: 3px solid var(--primary-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ====== 通知系统 ====== */
.notification-premium {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 24px;
    color: white;
    font-weight: 600;
    box-shadow: var(--glass-shadow);
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notification-premium.show {
    transform: translateX(0);
}

.notification-premium.success {
    border-color: var(--accent-emerald);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.notification-premium.error {
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* ====== 响应式设计 ====== */
@media (max-width: 768px) {
    .premium-card {
        padding: 20px;
        margin: 16px 0;
        border-radius: 16px;
    }
    
    .main-action-buttons {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .btn-premium {
        width: 100%;
        max-width: 280px;
    }
    
    .total-value {
        font-size: 2rem;
    }
    
    .currency-breakdown {
        grid-template-columns: 1fr;
    }
}

/* ====== 特殊视觉效果 ====== */
.holographic {
    background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff, #06ffa5, #ffbe0b);
    background-size: 400% 400%;
    animation: holographic 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.glow-effect {
    filter: drop-shadow(0 0 8px currentColor);
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from { filter: brightness(1) drop-shadow(0 0 5px currentColor); }
    to { filter: brightness(1.3) drop-shadow(0 0 15px currentColor); }
}

/* 功能导航按钮 - 分类主题设计 */

/* 基础按钮重置 */
.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    border: none;
    border-radius: 16px;
    padding: 18px 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-btn::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;
    z-index: 1;
}

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

.nav-btn i {
    font-size: 1.4rem;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.nav-btn span {
    z-index: 2;
    position: relative;
}

/* 资产盘点按钮 - 蓝色科技主题 增强版 */
.nav-btn[href*="inventory"] {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.35) 0%, 
        rgba(59, 130, 246, 0.25) 50%, 
        rgba(147, 197, 253, 0.15) 100%
    );
    border: 2px solid rgba(6, 182, 212, 0.4);
    background-clip: padding-box;
    color: #f0f9ff;
    box-shadow: 
        0 8px 32px rgba(6, 182, 212, 0.4),
        0 4px 16px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-btn[href*="inventory"]:hover {
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.55) 0%, 
        rgba(59, 130, 246, 0.45) 50%, 
        rgba(147, 197, 253, 0.35) 100%
    );
    border-color: rgba(6, 182, 212, 0.7);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 16px 48px rgba(6, 182, 212, 0.5),
        0 8px 24px rgba(59, 130, 246, 0.4),
        0 0 32px rgba(6, 182, 212, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-shadow: 0 0 12px rgba(6, 182, 212, 0.9);
}

.nav-btn[href*="inventory"] i {
    color: #00eaff;
    text-shadow: 0 0 12px rgba(0, 234, 255, 0.7);
    filter: drop-shadow(0 0 8px rgba(0, 234, 255, 0.5));
}

.nav-btn[href*="inventory"]:hover i {
    color: #ffffff;
    text-shadow: 
        0 0 16px rgba(0, 234, 255, 1),
        0 0 8px rgba(6, 182, 212, 0.8);
    transform: rotate(360deg) scale(1.15);
    filter: drop-shadow(0 0 12px rgba(0, 234, 255, 0.8));
}

/* 收支记录按钮 - 绿色财富主题 增强版 */
.nav-btn[href*="transaction"] {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.35) 0%, 
        rgba(34, 197, 94, 0.25) 50%, 
        rgba(74, 222, 128, 0.15) 100%
    );
    border: 2px solid rgba(16, 185, 129, 0.4);
    background-clip: padding-box;
    color: #ecfdf5;
    box-shadow: 
        0 8px 32px rgba(16, 185, 129, 0.4),
        0 4px 16px rgba(34, 197, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-btn[href*="transaction"]:hover {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.55) 0%, 
        rgba(34, 197, 94, 0.45) 50%, 
        rgba(74, 222, 128, 0.35) 100%
    );
    border-color: rgba(16, 185, 129, 0.7);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 16px 48px rgba(16, 185, 129, 0.5),
        0 8px 24px rgba(34, 197, 94, 0.4),
        0 0 32px rgba(16, 185, 129, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.9);
}

.nav-btn[href*="transaction"] i {
    color: #00ff88;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.7);
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.5));
}

.nav-btn[href*="transaction"]:hover i {
    color: #ffffff;
    text-shadow: 
        0 0 16px rgba(0, 255, 136, 1),
        0 0 8px rgba(16, 185, 129, 0.8);
    transform: rotateY(360deg) scale(1.15);
    filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.8));
}

/* 固定资产按钮 - 紫色豪华主题 增强版 */
.nav-btn[href*="fixed-asset"] {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.35) 0%, 
        rgba(168, 85, 247, 0.25) 50%, 
        rgba(196, 181, 253, 0.15) 100%
    );
    border: 2px solid rgba(139, 92, 246, 0.4);
    background-clip: padding-box;
    color: #faf5ff;
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.4),
        0 4px 16px rgba(168, 85, 247, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-btn[href*="fixed-asset"]:hover {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.55) 0%, 
        rgba(168, 85, 247, 0.45) 50%, 
        rgba(196, 181, 253, 0.35) 100%
    );
    border-color: rgba(139, 92, 246, 0.7);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 16px 48px rgba(139, 92, 246, 0.5),
        0 8px 24px rgba(168, 85, 247, 0.4),
        0 0 32px rgba(139, 92, 246, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-shadow: 0 0 12px rgba(139, 92, 246, 0.9);
}

.nav-btn[href*="fixed-asset"] i {
    color: #dd88ff;
    text-shadow: 0 0 12px rgba(221, 136, 255, 0.7);
    filter: drop-shadow(0 0 8px rgba(221, 136, 255, 0.5));
}

.nav-btn[href*="fixed-asset"]:hover i {
    color: #ffffff;
    text-shadow: 
        0 0 16px rgba(221, 136, 255, 1),
        0 0 8px rgba(139, 92, 246, 0.8);
    transform: rotateX(360deg) scale(1.15);
    filter: drop-shadow(0 0 12px rgba(221, 136, 255, 0.8));
}

/* 按钮整体增强 - 更强的对比度 */
.nav-btn {
    font-weight: 700; /* 增加字体粗细 */
    letter-spacing: 0.5px; /* 增加字间距 */
}

.nav-btn:hover {
    letter-spacing: 1px; /* 悬停时更大的字间距 */
    font-size: 1.15rem; /* 稍微增大字体 */
}

/* 按钮状态点增强 */
.nav-btn[href*="inventory"] .nav-btn-status {
    background: #00eaff;
    box-shadow: 
        0 0 12px rgba(0, 234, 255, 0.9),
        0 0 24px rgba(6, 182, 212, 0.6);
}

.nav-btn[href*="transaction"] .nav-btn-status {
    background: #00ff88;
    box-shadow: 
        0 0 12px rgba(0, 255, 136, 0.9),
        0 0 24px rgba(16, 185, 129, 0.6);
}

.nav-btn[href*="fixed-asset"] .nav-btn-status {
    background: #dd88ff;
    box-shadow: 
        0 0 12px rgba(221, 136, 255, 0.9),
        0 0 24px rgba(139, 92, 246, 0.6);
}

/* 左侧指示条增强 */
.nav-btn[href*="inventory"]::after {
    background: linear-gradient(180deg, #00eaff, #06b6d4, #00eaff);
    box-shadow: 
        0 0 12px rgba(0, 234, 255, 0.8),
        0 0 24px rgba(6, 182, 212, 0.6);
    width: 5px;
}

.nav-btn[href*="transaction"]::after {
    background: linear-gradient(180deg, #00ff88, #10b981, #00ff88);
    box-shadow: 
        0 0 12px rgba(0, 255, 136, 0.8),
        0 0 24px rgba(16, 185, 129, 0.6);
    width: 5px;
}

.nav-btn[href*="fixed-asset"]::after {
    background: linear-gradient(180deg, #dd88ff, #8b5cf6, #dd88ff);
    box-shadow: 
        0 0 12px rgba(221, 136, 255, 0.8),
        0 0 24px rgba(139, 92, 246, 0.6);
    width: 5px;
}

/* 按钮点击涟漪效果 */
.nav-btn {
    overflow: hidden;
}

.nav-btn::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;
    z-index: 1;
}

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

/* 点击涟漪效果 */
.nav-btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
    z-index: 1;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 按钮文字渐变效果 */
.nav-btn span {
    background: linear-gradient(135deg, currentColor, currentColor);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    transition: all 0.3s ease;
}

.nav-btn[href*="inventory"]:hover span {
    background: linear-gradient(135deg, #00eaff, #06b6d4, #3b82f6);
    background-size: 200% 200%;
    animation: text-shimmer 2s infinite;
}

.nav-btn[href*="transaction"]:hover span {
    background: linear-gradient(135deg, #00ff88, #10b981, #22c55e);
    background-size: 200% 200%;
    animation: text-shimmer 2s infinite;
}

.nav-btn[href*="fixed-asset"]:hover span {
    background: linear-gradient(135deg, #dd88ff, #8b5cf6, #a855f7);
    background-size: 200% 200%;
    animation: text-shimmer 2s infinite;
}

@keyframes text-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 按钮边框动画 */
.nav-btn {
    border: 2px solid transparent;
    background-clip: padding-box;
}

.nav-btn[href*="inventory"]:hover {
    border-image: linear-gradient(135deg, #00eaff, #06b6d4, #3b82f6) 1;
    animation: border-glow 3s infinite alternate;
}

.nav-btn[href*="transaction"]:hover {
    border-image: linear-gradient(135deg, #00ff88, #10b981, #22c55e) 1;
    animation: border-glow 3s infinite alternate;
}

.nav-btn[href*="fixed-asset"]:hover {
    border-image: linear-gradient(135deg, #dd88ff, #8b5cf6, #a855f7) 1;
    animation: border-glow 3s infinite alternate;
}

@keyframes border-glow {
    0% { filter: brightness(1) blur(0px); }
    100% { filter: brightness(1.2) blur(1px); }
}

/* 按钮激活状态特效 */
.nav-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.nav-btn:active::before {
    left: 0;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.1s ease;
}

/* 按钮加载状态（可用于异步操作） */
.nav-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.nav-btn.loading i {
    animation: spin 1s linear infinite;
}

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

/* 按钮成功状态 */
.nav-btn.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(34, 197, 94, 0.2)) !important;
    transform: scale(1.05);
    animation: success-pulse 0.6s ease;
}

@keyframes success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1.02); }
}

/* 按钮聚焦状态 */
.nav-btn:focus {
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.3),
        0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 按钮组交互增强 */
.nav-buttons {
    transition: all 0.3s ease;
}

.nav-buttons:hover {
    transform: translateY(-2px);
}

/* 键盘导航支持 */
.nav-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
} 

/* ================================================
   投资资产管理页面样式 
   ================================================ */

/* 仪表板样式 */
.dashboard-section {
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.dashboard-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dashboard-card .card-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.dashboard-card .card-header .icon {
    font-size: 1.2rem;
}

/* 统计数据网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 收益率显示 */
.return-rate-display {
    text-align: center;
    padding: 1rem;
}

.return-rate {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.return-rate.positive {
    color: var(--success-color);
}

.return-rate.negative {
    color: var(--error-color);
}

.return-rate.neutral {
    color: var(--text-secondary);
}

.return-trend {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 标签页样式 */
.tab-container {
    margin-bottom: 2rem;
}

.tab-buttons {
    display: flex;
    background: var(--surface-color);
    border-radius: 8px;
    padding: 0.25rem;
    gap: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-button {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.tab-button:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 标签页内容 */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* 基础按钮系统 */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button.primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 234, 255, 0.3);
}

.button.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 234, 255, 0.4);
}

.button.secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.button.secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-cyan);
}

.button.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.button.danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* 头部样式 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.header h1 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.back-button {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--primary-cyan);
}

/* 区域头部样式 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

/* 投资资产网格 */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.asset-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

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

.asset-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.asset-card .card-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.asset-type {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 资产统计 */
.asset-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.asset-stats .stat {
    text-align: center;
}

.asset-stats .stat label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.asset-stats .stat value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 资产操作按钮 */
.asset-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.asset-actions .button {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.85rem;
}

/* 筛选区域 */
.filter-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.filter-section select,
.filter-section input {
    flex: 1;
    min-width: 150px;
}

.filter-section .button {
    padding: 0.5rem 1.5rem;
    white-space: nowrap;
}

/* 数据表格容器 */
.data-table-container {
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background: var(--accent-bg);
    color: var(--text-primary);
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.action-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.action-btn.secondary {
    background: var(--text-secondary);
}

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

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 2px rgba(0, 234, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select option {
    background: #1a1f3a;
    color: var(--text-primary);
}

/* 空状态 */
.empty-state {
    text-align: center !important;
    padding: 3rem 1rem !important;
    color: var(--text-secondary) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 200px !important;
}

.empty-icon {
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
    opacity: 0.7 !important;
    display: block !important;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0 !important;
    color: var(--text-primary) !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    display: block !important;
}

.empty-state p {
    margin: 0 0 1.5rem 0 !important;
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
    display: block !important;
}

.empty-state .button {
    display: inline-block !important;
    margin-top: 1rem !important;
}

/* 模态框样式增强 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-button:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .assets-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        flex-direction: column;
    }
    
    .filter-section select,
    .filter-section input {
        min-width: auto;
    }
    
    .data-table-container {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    .modal-content {
        width: 95vw;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .asset-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
} 