/* 全局样式变量 */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: rgba(255, 255, 255, 0.95);
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* 全局链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--primary-dark);
}

/* 全局标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

/* 动态渐变背景 */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* 页面内容淡入动画 */
main {
    animation: fadeIn 0.5s ease-in-out;
}

/* 淡入动画关键帧 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    z-index: 100;
    padding: 30px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .sidebar {
        top: 6rem;
        width: 100%;
        height: auto;
        max-height: 400px;
    }
}

/* 侧边栏装饰效果 */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(99, 102, 241, 0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 60px);
    padding-top: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 10;
}

/* 侧边栏滚动条样式 */
.sidebar-sticky::-webkit-scrollbar {
    width: 6px;
}

.sidebar-sticky::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-sticky::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.sidebar-sticky::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* 侧边栏Logo样式 */
.sidebar-logo {
    padding: 0 30px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.sidebar-logo img {
    max-height: 90px;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-logo img:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.3);
}

/* 收藏按钮样式 */
.favorite-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(236, 72, 153, 0.3);
    color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.2);
}

.favorite-btn.collected {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.9), rgba(219, 39, 119, 0.9));
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

.favorite-btn.collected:hover {
    background: linear-gradient(135deg, rgba(219, 39, 119, 0.95), rgba(190, 24, 93, 0.95));
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.5);
    transform: scale(1.15);
}

/* 收藏图标动画 */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

.favorite-btn.collected .favorite-icon {
    animation: heartBeat 0.6s ease-in-out;
}

/* 为收藏状态的爱心图标添加填充效果 */
.favorite-btn.collected .favorite-icon svg {
    fill: currentColor;
    stroke: none;
}

/* 侧边栏导航样式 */
.sidebar .nav {
    margin: 0 20px;
    position: relative;
    z-index: 10;
}

.sidebar .nav-item {
    margin-bottom: 8px;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    font-size: 16px;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: var(--border-radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* 导航文本样式 */
.sidebar .nav-text {
    margin-left: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* 导航选中样式 */
.sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* 导航悬停样式 */
.sidebar .nav-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 1);
    color: var(--primary-color);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

/* 导航图标样式 */
.sidebar .nav-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

/* 导航选中时图标颜色 */
.sidebar .nav-link.active svg {
    color: white;
    transform: scale(1.1);
}

/* 导航悬停时图标颜色 */
.sidebar .nav-link:hover:not(.active) svg {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* 导航链接点击时效果 */
.sidebar .nav-link:active {
    transform: translateY(0);
}

/* 导航链接背景渐变效果 */
.sidebar .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.sidebar .nav-link:hover::before {
    left: 100%;
}

/* 登录页面样式 */
.login-form {
    background-image: url('../images/bg1.png');
    background-repeat: no-repeat;
    background-size: cover;
}

/* 卡片样式 */
.card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* 卡片悬停效果 */
.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #cbd5e1;
}

/* 图片样式 */
.card-img-top {
    object-fit: cover;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
    transition: transform 0.3s ease;
    height: 200px;
}

.card:hover .card-img-top {
    transform: scale(1.03);
}

/* 顶部导航栏样式 */
.navbar-white {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0.75rem 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 导航栏容器 */
.navbar-white .container-fluid {
    max-width: 1400px;
}

/* 导航栏品牌 */
.navbar-white .navbar-brand {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-white .navbar-brand:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* 导航栏切换按钮 */
.navbar-white .navbar-toggler {
    border: none;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar-white .navbar-toggler:hover {
    background-color: white;
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.navbar-white .navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* 导航栏导航项 */
.navbar-white .navbar-nav {
    align-items: center;
    gap: 1rem;
}

.navbar-white .nav-item {
    position: relative;
}

.navbar-white .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.navbar-white .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.navbar-white .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
    font-weight: 600;
}

/* 用户头像样式 */
.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.user-avatar:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-dark);
}

/* 下拉菜单样式 */
.navbar-white .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    margin-top: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-white .dropdown-item {
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.navbar-white .dropdown-item:last-child {
    margin-bottom: 0;
}

.navbar-white .dropdown-item:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    transform: translateX(4px);
}

.navbar-white .dropdown-item:active {
    background-color: rgba(99, 102, 241, 0.2);
    color: var(--primary-dark);
}

/* 用户头像样式 */
.user-avatar {
    border: 2px solid #1976d2;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(25, 118, 210, 0.3);
}

/* 自定义提示框样式 */
.custom-alert {
    position: fixed;
    top: 80px; /* 距离顶部80px，可根据需要调整 */
    left: 50%; /* 水平居中 */
    transform: translateX(-50%) translateY(-20px); /* 水平居中并添加初始动画 */
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 80%; /* 限制最大宽度，防止在小屏幕上显示不全 */
    text-align: center; /* 文字居中 */
}

.custom-alert.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* 显示时保持水平居中 */
}

.custom-alert.success {
    background-color: #52c41a;
}

.custom-alert.error {
    background-color: #ff4d4f;
}

.custom-alert.danger {
    background-color: #ff4d4f;
}

.custom-alert.info {
    background-color: #1890ff;
}

.custom-alert.warning {
    background-color: #faad14;
}

/* 按钮样式优化 */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.btn:active {
    transform: translateY(0);
}

/* 主要按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* 表单元素样式优化 */
.form-control {
    transition: all 0.3s ease;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    background-color: rgba(255, 255, 255, 0.95);
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: #475569;
}

/* 分类按钮组 */
.btn-group > .btn {
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 1px solid #d1d5db;
    background-color: white;
    color: #64748b;
}

.btn-group > .btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background-color: #eff6ff;
    transform: translateY(-2px);
}

.btn-group > .btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 响应式商品列表 */
@media (max-width: 768px) {
    .col-md-4 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (max-width: 576px) {
    .col-md-4 {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* 商品状态徽章 */
.badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 搜索框样式 */
.input-group-text {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: #d1d5db;
    color: #64748b;
    border-radius: 8px 0 0 8px;
}

.input-group .form-control {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

/* 页面标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: #1e293b;
    font-weight: 600;
}

/* 文本颜色优化 */
a {
    color: #3b82f6;
    transition: color 0.3s ease;
}

a:hover {
    color: #2563eb;
}

/* 统计卡片样式 */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
    background: linear-gradient(135deg, var(--bs-card-bg) 0%, rgba(0, 0, 0, 0.1) 100%) !important;
    color: white;
    border: none;
}

/* 模态框样式优化 */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
}

/* 商品列表容器 */
#goodsList {
    width: 100%;
    padding: 0 15px;
}

/* 页面标题动画 */
h1, h2, h3, h4, h5, h6 {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 充值模态框样式 */
#depositModal .modal-content {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#depositModal .modal-header {
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px 10px 0 0;
}

/* 充值模态框深色主题输入框占位符样式 */
#depositModal .form-control::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

#depositModal .form-control:-moz-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

#depositModal .form-control::-moz-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

#depositModal .form-control:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

#depositModal .form-control::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

#depositModal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 10px 10px;
}

#depositModal .modal-body {
    padding: 20px;
}

#depositModal .form-label {
    font-weight: 500;
}

/* 现代卡片样式 */
.card-modern {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-modern:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-modern:hover::before {
    opacity: 1;
}

/* 确保卡片按钮在同一水平线上 */
.card-modern .card-body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 400px;
}

/* 商品信息对齐样式 */
.card-info-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 固定高度容器，确保对齐 */
.price-container,
.seller-container,
.stats-container {
    min-height: 24px;
    display: flex;
    align-items: center;
}

.price-container {
    height: 32px;
    font-size: 1.25rem;
}

.card-modern .card-body > .d-flex.gap-2 {
    margin-top: auto !important;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

/* 统计卡片样式 */
.stats-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stats-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    border-radius: 0 0 0 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-card:hover::after {
    opacity: 1;
}

.stats-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.3);
}

/* 统计卡片图标 */
.stats-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.stats-icon i {
    font-size: 2rem;
    opacity: 0.8;
}

/* 统计卡片数值 */
.card-value {
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.stats-card:hover .card-value {
    transform: scale(1.05);
}

/* 统计卡片元数据 */
.card-meta {
    font-size: 0.875rem;
}

.card-meta .badge {
    transition: all 0.3s ease;
}

.stats-card:hover .card-meta .badge {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 渐变按钮样式 */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 12px 30px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-gradient:active {
    transform: translateY(-1px);
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-gradient:hover::before {
    left: 100%;
}

/* 空间间隔工具类 */
.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

/* 文本颜色工具类 */
.text-gray-500 {
    color: var(--text-muted);
}

.text-gray-600 {
    color: var(--text-secondary);
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.7);
}

/* 动画延迟 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stats-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stats-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stats-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* 订单筛选按钮样式 */
.btn-outline-primary.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-outline-primary.active:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card-modern .card-body {
        display: flex !important;
        flex-direction: column;
        text-align: center;
    }
    
    .stats-card {
        margin-bottom: 1.5rem;
    }
}