/* 现代化专业风格 - 去除二次元元素 */

:root {
    /* 主色调 - 现代化蓝色/灰色系 */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    
    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    /* 文字颜色 */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* 边框和分隔线 */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* 状态颜色 */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 80px; /* 为固定导航栏留出空间 */
    position: relative;
    overflow-x: hidden;
}

/* 动态背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.2) 0%, transparent 40%);
    animation: backgroundPulse 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.03) 100px,
            rgba(255, 255, 255, 0.03) 200px
        );
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* 浮动几何图形 */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.4;
    filter: blur(1px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.shape-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    border-radius: 50%;
    top: 10%;
    left: 5%;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.7), rgba(245, 87, 108, 0.7));
    border-radius: 20px;
    top: 60%;
    right: 10%;
    animation: float 15s ease-in-out infinite reverse;
    transform: rotate(45deg);
}

.shape-3 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.6), rgba(0, 242, 254, 0.6));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    bottom: 15%;
    left: 15%;
    animation: float 25s ease-in-out infinite, morph 10s ease-in-out infinite;
}

.shape-4 {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.7), rgba(254, 225, 64, 0.7));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    top: 25%;
    right: 20%;
    animation: float 18s ease-in-out infinite, rotate 20s linear infinite;
}

.shape-5 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(48, 207, 208, 0.6), rgba(51, 8, 103, 0.6));
    border-radius: 50%;
    bottom: 8%;
    right: 8%;
    animation: float 22s ease-in-out infinite;
}

.shape-6 {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(250, 208, 196, 0.7), rgba(255, 209, 255, 0.7));
    border-radius: 50%;
    top: 50%;
    left: 50%;
    animation: float 17s ease-in-out infinite, pulse 4s ease-in-out infinite;
}

.shape-7 {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, rgba(165, 142, 251, 0.6), rgba(233, 191, 248, 0.6));
    border-radius: 30%;
    top: 75%;
    left: 40%;
    animation: float 19s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-30px) translateX(20px);
    }
    50% {
        transform: translateY(-50px) translateX(-20px);
    }
    75% {
        transform: translateY(-30px) translateX(10px);
    }
}

@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* 确保内容在动态背景之上 */
.container,
.navbar,
.panel,
main {
    position: relative;
    z-index: 10;
}

.navbar {
    z-index: 1000;
}

/* 添加粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4.5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1.5s; }
.particle:nth-child(10) { left: 95%; animation-delay: 3.5s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    /* 移动端减少动画以提高性能 */
    .shape {
        opacity: 0.2;
    }
    
    .shape-6,
    .shape-7 {
        display: none;
    }
    
    body::after {
        display: none;
    }
    
    .particles {
        display: none;
    }
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* 导航栏 - 现代化设计 */
/* ==================== 顶部导航栏 - 玻璃态炫酷效果 ==================== */
.navbar-acg {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.85) 0%, 
        rgba(250, 251, 255, 0.85) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 0.75rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.navbar-acg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary-color) 20%,
        var(--accent-color) 50%,
        var(--primary-color) 80%,
        transparent 100%
    );
    animation: navbarShine 3s ease-in-out infinite;
}

@keyframes navbarShine {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.navbar-acg:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2),
                0 4px 12px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

/* Logo样式 - 炫酷动画 */
.navbar-acg .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navbar-acg .navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-acg .navbar-brand:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-3px) scale(1.02);
}

.navbar-acg .navbar-brand:hover::after {
    width: 100%;
}

.navbar-acg .brand-logo {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.5));
    }
}

.navbar-acg .navbar-brand:hover .brand-logo {
    transform: rotate(360deg) scale(1.1) !important;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.6));
}

/* 导航链接样式 - 动感悬停效果 */
.navbar-acg .nav-link {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.navbar-acg .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(147, 51, 234, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.navbar-acg .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-acg .nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.navbar-acg .nav-link:hover::before {
    opacity: 1;
}

.navbar-acg .nav-link:hover::after,
.navbar-acg .nav-link.active::after {
    width: 80%;
}

.navbar-acg .nav-link.active {
    color: var(--primary-color);
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(147, 51, 234, 0.1) 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.navbar-acg .nav-link i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.navbar-acg .nav-link:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* 搜索框 - 炫酷动态效果 */
.search-input .input-group {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: white;
}

.search-input .input-group::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.search-input .input-group:focus-within {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25),
                0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-3px) scale(1.02);
}

.search-input .input-group:focus-within::before {
    opacity: 1;
}

.search-input .input-group-text {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.search-input .input-group:focus-within .input-group-text {
    color: var(--primary-color);
}

.search-input .input-group-text i {
    transition: transform 0.3s ease;
    display: inline-block;
}

.search-input .input-group:focus-within .input-group-text i {
    transform: rotate(90deg) scale(1.1);
}

.search-input .form-control {
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input .form-control:focus {
    box-shadow: none;
    outline: none;
}

.search-input .form-control::placeholder {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.search-input .form-control:focus::placeholder {
    color: transparent;
}

/* 用户信息区域 - 炫酷效果 */
.user-info-box .dropdown-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(250, 251, 255, 0.1) 100%);
}

.user-info-box .dropdown-toggle:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(147, 51, 234, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.user-info-box #user-avatar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--primary-color) !important;
    animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }
}

.user-info-box .dropdown-toggle:hover #user-avatar {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-color) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.user-info-box #username {
    transition: all 0.3s ease;
}

.user-info-box .dropdown-toggle:hover #username {
    color: var(--primary-color) !important;
}

.user-info-box #user-balance span {
    transition: all 0.3s ease;
    display: inline-block;
}

.user-info-box .dropdown-toggle:hover #user-balance span {
    transform: scale(1.1);
    color: var(--success-color) !important;
}

.user-info-box .dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    animation: dropdownSlideIn 0.3s ease-out;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-info-box .dropdown-item {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    margin: 0.125rem 0;
}

.user-info-box .dropdown-item:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(147, 51, 234, 0.08) 100%);
    transform: translateX(5px);
    color: var(--primary-color);
}

.user-info-box .dropdown-item i {
    transition: transform 0.2s ease;
    display: inline-block;
}

.user-info-box .dropdown-item:hover i {
    transform: scale(1.2);
}

.user-info-box .dropdown-divider {
    border-top: 1px solid var(--border-light);
    opacity: 0.5;
}

/* 登录注册按钮 - 炫酷效果 */
.user-login-box .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
}

.user-login-box .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.user-login-box .btn:hover::before {
    width: 300px;
    height: 300px;
}

.user-login-box .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.user-login-box .btn-outline-secondary {
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.user-login-box .btn-outline-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        rgba(147, 51, 234, 0.05) 100%);
}

.user-login-box .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.user-login-box .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.user-login-box .btn i {
    transition: transform 0.3s ease;
    display: inline-block;
}

.user-login-box .btn:hover i {
    transform: scale(1.2);
}

/* 移动端导航栏切换按钮 - 炫酷效果 */
.navbar-toggler {
    border: 2px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.navbar-toggler::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    transition: left 0.5s ease;
}

.navbar-toggler:hover::before {
    left: 100%;
}

.navbar-toggler:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(59, 130, 246, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon {
    transform: rotate(90deg);
}

/* 移动端导航栏菜单 */
.navbar-collapse {
    transition: all 0.3s ease;
}

.navbar-collapse.collapsing,
.navbar-collapse.show {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(250, 251, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

@media (max-width: 991.98px) {
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .navbar-acg .nav-link {
        border-radius: var(--radius-md);
        padding: 0.75rem 1rem;
    }
    
    .search-input {
        margin-top: 1rem;
    }
}

/* 面板/卡片 */
.panel {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 1.5rem;
    animation: slideInUp 0.6s ease-out;
    position: relative;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: shimmer 3s infinite;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.panel-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.panel-header .icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    animation: iconPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5), 0 0 30px rgba(37, 99, 235, 0.3);
    }
}

.panel-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.panel-body {
    padding: 1.5rem;
}

/* 分类芯片 - 现代化 */
.chip-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.chip:hover::before {
    width: 300px;
    height: 300px;
}

.chip:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.chip.is-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    animation: chipGlow 2s ease-in-out infinite;
}

@keyframes chipGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5), 0 0 30px rgba(37, 99, 235, 0.2);
    }
}

.chip.is-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: chipShine 3s infinite;
}

@keyframes chipShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.chip-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    object-fit: cover;
    animation: iconRotate 10s linear infinite;
}

@keyframes iconRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 商品卡片 - 现代化 */
.acg-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    animation: cardFadeIn 0.6s ease-out backwards;
}

/* 卡片依次出现效果 */
.acg-card:nth-child(1) { animation-delay: 0.1s; }
.acg-card:nth-child(2) { animation-delay: 0.2s; }
.acg-card:nth-child(3) { animation-delay: 0.3s; }
.acg-card:nth-child(4) { animation-delay: 0.4s; }
.acg-card:nth-child(5) { animation-delay: 0.5s; }
.acg-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.acg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.acg-card:hover::before {
    opacity: 1;
}

.acg-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2), 
                0 0 0 2px var(--primary-color);
    border-color: var(--primary-color);
}

/* 闪光效果 */
.acg-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%);
    transition: transform 0.6s ease;
}

.acg-card:hover::after {
    transform: translateX(100%) translateY(100%);
}

.acg-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.acg-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.acg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), 
                filter 0.3s ease;
}

.acg-card:hover .acg-thumb img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1);
}

.goods-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.acg-card:hover .goods-title {
    color: var(--primary-color);
}

.price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    animation: priceFloat 3s ease-in-out infinite;
}

@keyframes priceFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.price .unit {
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    animation: priceGlow 2s ease-in-out infinite;
}

@keyframes priceGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(37, 99, 235, 0.6), 0 0 25px rgba(37, 99, 235, 0.3);
    }
}

/* 徽章 */
.badge-soft {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.badge-soft:hover {
    transform: scale(1.1);
}

.badge-soft-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.2));
    color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.3);
    animation: badgeBounce 2s ease-in-out infinite, badgeGlowSuccess 2s ease-in-out infinite;
}

@keyframes badgeGlowSuccess {
    0%, 100% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    }
}

.badge-soft-primary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.2));
    color: var(--primary-color);
    border-color: rgba(37, 99, 235, 0.3);
    animation: badgeBounce 2s ease-in-out infinite 0.2s, badgeGlowPrimary 2s ease-in-out infinite;
}

@keyframes badgeGlowPrimary {
    0%, 100% {
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
    }
}

.badge-soft-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.2));
    color: var(--danger-color);
    border-color: rgba(239, 68, 68, 0.3);
}

.badge-soft-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.2));
    color: var(--warning-color);
    border-color: rgba(245, 158, 11, 0.3);
}

.badge-soft-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.2));
    color: var(--info-color);
    border-color: rgba(6, 182, 212, 0.3);
}

/* SKU 选择器 */
.sku-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sku {
    position: relative;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sku:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.sku.is-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.badge-money {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 0.125rem 0.375rem;
    background: var(--danger-color);
    color: white;
    border-radius: var(--radius-xl);
    font-size: 0.625rem;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: var(--shadow-md);
}

/* 表单样式 */
.vstack label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.vstack .form-control {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.vstack .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* 数量选择器 */
.qty-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.25rem;
}

.qty-group button {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-group button:hover {
    background: var(--primary-hover);
}

.qty-group input[type="number"] {
    width: 4rem;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

/* 支付方式选择 */
.pay-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pay-list .pay {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pay-list .pay:hover {
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.pay-list .pay.is-primary,
.pay-list .pay.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pay-list .pay img {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
}

/* 按钮 */
.btn-primary {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-secondary);
}

/* 用户下拉菜单 */
.dropdown-menu {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

/* 页脚 */
footer {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
}

/* 订单查询页面样式 */
.order-query-form .form-control {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    transition: all 0.2s ease;
}

.order-query-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.order-query-form .btn-primary {
    height: auto;
    padding: 0.875rem 1.5rem;
}

/* 订单项 */
.order-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.order-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-paid {
    background: var(--success-color);
    color: white;
}

.status-badge.status-pending {
    background: var(--warning-color);
    color: white;
}

.status-badge.status-completed {
    background: var(--primary-color);
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .panel-header {
        padding: 1rem;
    }
    
    .panel-body {
        padding: 1rem;
    }
    
    .chip-list {
        gap: 0.5rem;
    }
    
    .chip {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选择文本样式 */
::selection {
    background-color: rgba(37, 99, 235, 0.2);
    color: var(--primary-color);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: var(--radius-xl);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* 加载动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.icon-spin {
    animation: spin 1s linear infinite;
}

/* 美化容器背景 */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 商品详情页特殊样式 */
.item-detail {
    margin-top: 1.5rem;
}

.item-detail .panel-body {
    line-height: 1.8;
    color: var(--text-secondary);
}

.item-detail .panel-body img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

/* 自选卡密按钮 */
.optional-card {
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.optional-card:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.optional-card.is-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 表格样式优化 */
.table {
    --bs-table-bg: var(--bg-primary);
    --bs-table-border-color: var(--border-light);
}

.bootstrap-table .pagination .page-link {
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    margin: 0 0.25rem;
}

.bootstrap-table .pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.br-12 {
    border-radius: var(--radius-lg);
}

.flex-fill {
    flex: 1 1 auto;
}

/* 加载消息 */
.item-message {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    animation: loadingPulse 1.5s ease-in-out infinite;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.item-message::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinLoader 1s linear infinite;
}

@keyframes spinLoader {
    to {
        transform: rotate(360deg);
    }
}

/* 商品列表容器 */
.item-list {
    position: relative;
    min-height: 200px;
}

.item-list .col-12,
.item-list .col-sm-6,
.item-list .col-md-4,
.item-list .col-lg-3 {
    position: relative;
}

