/* ============================================
   账清清SaaS商户管理系统 - 专业UI设计规范
   Version: 2.0
   ============================================ */

/* Lucide Icons 样式 */
[data-lucide] {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    vertical-align: middle;
}
.lucide-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
}
.stat-icon [data-lucide] {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}
.alert-icon [data-lucide],
.product-badge [data-lucide] {
    width: 20px;
    height: 20px;
}
h1 [data-lucide], h2 [data-lucide], h3 [data-lucide] {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

/* CSS变量 - 设计系统 */
:root {
    /* 主色调 */
    --primary-color: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* 功能色 */
    --success-color: #10b981;
    --success-light: #d1fae5;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --danger-color: #ef4444;
    --danger-light: #fee2e2;
    --info-color: #3b82f6;
    --info-light: #dbeafe;
    
    /* 中性色 */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    
    /* 侧边栏 */
    --sidebar-bg: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
    --sidebar-item-hover: rgba(255, 255, 255, 0.1);
    --sidebar-item-active: rgba(99, 102, 241, 0.3);
    
    /* 阴影 */
    --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);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 10px 40px rgba(0, 0, 0, 0.12);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html, body, #app {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ============================================
   登录页面
   ============================================ */
.login-container {
    min-height: 100vh;
    display: flex;
    background: var(--bg-page);
}

.login-left {
    flex: 1;
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(1deg); }
    50% { transform: translate(0, 4%) rotate(0deg); }
    75% { transform: translate(-2%, 2%) rotate(-1deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.login-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 480px;
}

.login-left-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    letter-spacing: -1px;
}

.login-left-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 48px;
    font-weight: 300;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.login-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition-normal);
}

.login-feature-item:hover {
    background: rgba(255,255,255,0.18);
    transform: translateX(8px);
}

.login-feature-item .el-icon {
    font-size: 28px;
    opacity: 0.9;
}

.login-feature-item span {
    font-size: 16px;
    font-weight: 500;
}

.login-right {
    width: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    background: #fff;
}

.login-card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.login-logo {
    text-align: center;
    margin-bottom: 48px;
}

.login-logo h1 {
    font-size: 36px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.login-logo p {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 400;
}

.login-tabs {
    margin-bottom: 32px;
}

.login-tabs .el-tabs__item {
    font-size: 16px;
    font-weight: 500;
}

.login-footer {
    margin-top: 48px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* 响应式登录页 */
@media (max-width: 1024px) {
    .login-left {
        display: none;
    }
    .login-right {
        width: 100%;
        padding: 40px;
    }
}

/* ============================================
   主布局
   ============================================ */
.layout-container {
    height: 100vh;
    display: flex;
    background: var(--bg-page);
}

.layout-aside {
    width: 260px;
    background: var(--sidebar-bg);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 100;
}

.layout-logo {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0,0,0,0.15);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.layout-logo::before {
    content: '📊';
    font-size: 28px;
}

.layout-menu {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.layout-menu::-webkit-scrollbar {
    width: 4px;
}

.layout-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* 侧边栏菜单样式覆盖 */
.layout-menu .el-menu {
    border-right: none;
    background: transparent !important;
}

.layout-menu .el-menu-item,
.layout-menu .el-sub-menu__title {
    height: 48px;
    line-height: 48px;
    margin: 4px 0;
    border-radius: var(--radius-md);
    color: rgba(255,255,255,0.75) !important;
    transition: var(--transition-fast);
}

.layout-menu .el-menu-item:hover,
.layout-menu .el-sub-menu__title:hover {
    background: var(--sidebar-item-hover) !important;
    color: #fff !important;
}

.layout-menu .el-menu-item.is-active {
    background: var(--sidebar-item-active) !important;
    color: #fff !important;
    font-weight: 600;
}

.layout-menu .el-menu-item.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary-light);
    border-radius: 0 4px 4px 0;
}

.layout-menu .el-sub-menu .el-menu-item {
    padding-left: 52px !important;
    height: 44px;
    line-height: 44px;
    font-size: 13px;
}

.layout-menu .el-menu-item .el-icon,
.layout-menu .el-sub-menu__title .el-icon {
    font-size: 18px;
    margin-right: 12px;
}

.layout-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.layout-header {
    height: 72px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-light);
}

.layout-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.layout-header-left .menu-toggle {
    display: none;
}

.layout-header-left h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.layout-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.layout-header-right .el-avatar {
    background: var(--primary-gradient);
    font-weight: 600;
}

.layout-content {
    flex: 1;
    padding: 28px 32px;
    background: var(--bg-page);
    overflow-y: auto;
}

/* ============================================
   页面通用样式
   ============================================ */
.page-header {
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.page-header .el-button--primary {
    background: var(--primary-gradient);
    border: none;
    font-weight: 500;
    padding: 12px 24px;
    height: auto;
}

.page-header .el-button--primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.page-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.page-card:hover {
    box-shadow: var(--shadow-md);
}

.page-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.search-bar {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.search-bar .el-input {
    max-width: 280px;
}

.search-bar .el-input__wrapper {
    border-radius: var(--radius-md);
    box-shadow: none;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.search-bar .el-input__wrapper:hover {
    border-color: var(--primary-light);
}

.search-bar .el-input__wrapper.is-focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ============================================
   统计卡片 - 现代化设计
   ============================================ */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    transform: translate(30%, -30%);
    opacity: 0.1;
}

.stat-card.primary::before { background: var(--primary-color); }
.stat-card.success::before { background: var(--success-color); }
.stat-card.warning::before { background: var(--warning-color); }
.stat-card.danger::before { background: var(--danger-color); }

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-card.primary .stat-icon { background: rgba(79, 70, 229, 0.1); color: var(--primary-color); }
.stat-card.success .stat-icon { background: var(--success-light); color: var(--success-color); }
.stat-card.warning .stat-icon { background: var(--warning-light); color: var(--warning-color); }
.stat-card.danger .stat-icon { background: var(--danger-light); color: var(--danger-color); }

.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.stat-card .value.success { color: var(--success-color); }
.stat-card .value.warning { color: var(--warning-color); }
.stat-card .value.danger { color: var(--danger-color); }

.stat-card .label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-card .trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
    padding: 4px 10px;
    border-radius: 20px;
}

.stat-card .trend.up {
    color: var(--success-color);
    background: var(--success-light);
}

.stat-card .trend.down {
    color: var(--danger-color);
    background: var(--danger-light);
}

/* ============================================
   表格样式
   ============================================ */
.el-table {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.el-table th.el-table__cell {
    background: #f8fafc !important;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.el-table td.el-table__cell {
    padding: 16px 12px;
}

.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
    background: #fafbfc;
}

.el-table__row:hover > td.el-table__cell {
    background: rgba(79, 70, 229, 0.04) !important;
}

.table-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

/* ============================================
   销售开单页面
   ============================================ */
.sales-container {
    display: flex;
    gap: 24px;
    height: calc(100vh - 160px);
}

.sales-products {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.sales-products h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.sales-products .el-table {
    flex: 1;
}

.sales-cart {
    width: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.sales-cart h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 商品列表头部 */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.products-header .header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.products-header .header-title .icon {
    font-size: 24px;
}

.products-header .header-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.products-header .search-box {
    width: 320px;
}

.products-table-wrapper {
    flex: 1;
    overflow: hidden;
}

.product-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-cell .product-name {
    font-weight: 600;
    color: var(--text-primary);
}

.product-cell .product-barcode {
    font-size: 12px;
    color: var(--text-muted);
}

.price-tag {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 15px;
}

/* 购物车头部 */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.cart-header .header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-header .header-title .icon {
    font-size: 22px;
}

.cart-header .header-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.customer-select {
    margin-bottom: 16px;
}

.customer-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.customer-option .name {
    font-weight: 500;
}

.customer-option .phone {
    font-size: 12px;
    color: var(--text-muted);
}

/* 购物车商品列表 */
.cart-items {
    flex: 1;
    overflow-y: auto;
    margin: 0 -20px;
    padding: 0 20px;
    min-height: 200px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.cart-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

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

.cart-item .item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item .item-price {
    font-size: 12px;
    color: var(--text-secondary);
}

.cart-item .item-controls {
    flex-shrink: 0;
}

.cart-item .item-subtotal {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 70px;
    text-align: right;
}

/* 购物车空状态 */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.cart-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.cart-empty .empty-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.cart-empty .empty-hint {
    font-size: 13px;
}

/* 购物车动画 */
.cart-item-enter-active,
.cart-item-leave-active {
    transition: all 0.3s ease;
}

.cart-item-enter-from {
    opacity: 0;
    transform: translateX(20px);
}

.cart-item-leave-to {
    opacity: 0;
    transform: translateX(-20px);
}

/* 结算区域 */
.cart-summary {
    padding-top: 20px;
    border-top: 2px solid var(--border-light);
    margin-top: auto;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.summary-row .label {
    color: var(--text-secondary);
    font-size: 14px;
}

.summary-row .value {
    font-weight: 500;
    color: var(--text-primary);
}

.summary-row.total {
    padding: 16px;
    margin: 12px 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-md);
}

.summary-row.total .label {
    font-size: 16px;
    color: #92400e;
    font-weight: 500;
}

.summary-row.total .amount {
    font-size: 28px;
    font-weight: 800;
    color: #b45309;
    letter-spacing: -1px;
}

/* 支付方式 */
.pay-mode-section {
    margin-bottom: 16px;
}

.pay-mode-section .section-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.pay-mode-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.pay-mode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: #f8fafc;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.pay-mode-item:hover {
    border-color: var(--primary-light);
    background: #f1f5f9;
}

.pay-mode-item.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.pay-mode-item .icon {
    font-size: 20px;
}

.pay-mode-item .text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.pay-mode-item.active .text {
    color: var(--primary-color);
}

/* 备注输入 */
.remark-input {
    margin-bottom: 16px;
}

/* 结算按钮 */
.submit-btn {
    width: 100%;
    height: 56px;
    font-size: 16px;
    font-weight: 600;
    background: var(--primary-gradient) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.submit-btn:hover {
    opacity: 0.9;
}

.submit-btn .btn-text {
    font-size: 16px;
}

.submit-btn .btn-amount {
    font-size: 18px;
    font-weight: 700;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.3);
}

/* ============================================
   对话框样式
   ============================================ */
.el-dialog {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
}

.el-dialog__header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    margin-right: 0;
}

.el-dialog__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.el-dialog__body {
    padding: 24px;
}

.el-dialog__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
}

/* ============================================
   表单样式
   ============================================ */
.el-form-item__label {
    font-weight: 500;
    color: var(--text-secondary);
}

.el-input__wrapper,
.el-select__wrapper,
.el-textarea__inner {
    border-radius: var(--radius-sm) !important;
}

.el-button {
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition-fast);
}

.el-button--primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.el-button--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ============================================
   标签样式
   ============================================ */
.el-tag {
    border-radius: 20px;
    font-weight: 500;
    padding: 0 12px;
}

/* ============================================
   空状态
   ============================================ */
.el-empty__description {
    color: var(--text-muted);
}

/* ============================================
   权限配置页面
   ============================================ */
.permissions-page .page-header {
    margin-bottom: 24px;
}

.permissions-page .page-header h2 {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
}

.permissions-page .page-desc {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.permissions-page .permission-groups {
    margin-top: 24px;
}

.permissions-page .permission-group {
    margin-bottom: 28px;
    padding: 20px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.permissions-page .permission-group:last-child {
    margin-bottom: 0;
}

.permissions-page .group-header {
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.permissions-page .group-items {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-left: 0;
}

.permissions-page .group-items .el-checkbox {
    margin-right: 0;
    min-width: 140px;
}

.permissions-page .actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

/* ============================================
   公告样式
   ============================================ */
.announcement-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: none;
    border-radius: var(--radius-lg);
}

.announcement-card h3 {
    color: #92400e;
    border-bottom-color: rgba(146, 64, 14, 0.2);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1200px) {
    .layout-aside {
        width: 240px;
    }
    
    .layout-content {
        padding: 20px 24px;
    }
}

@media (max-width: 992px) {
    .layout-aside {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: left var(--transition-normal);
    }
    
    .layout-aside.show {
        left: 0;
    }
    
    .layout-header-left .menu-toggle {
        display: flex;
    }
    
    .sales-container {
        flex-direction: column;
        height: auto;
    }
    
    .sales-cart {
        width: 100%;
    }
    
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .layout-content {
        padding: 16px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .page-header h2 {
        font-size: 22px;
    }
    
    .stat-cards {
        grid-template-columns: 1fr;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar .el-input {
        max-width: 100%;
        width: 100%;
    }
}

/* ============================================
   动画效果
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-card {
    animation: fadeIn 0.3s ease;
}

/* ============================================
   Dashboard 页面专属样式
   ============================================ */
.dashboard-page {
    max-width: 1600px;
    margin: 0 auto;
}

.welcome-banner {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 32px 40px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: 20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.welcome-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.welcome-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
}

.welcome-actions .el-button {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    backdrop-filter: blur(10px);
}

.welcome-actions .el-button:hover {
    background: rgba(255,255,255,0.3);
}

.announcements-section {
    margin-bottom: 24px;
}

.announcement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-md);
    height: 60px;
}

.announcement-item.important {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.announcement-item .el-icon {
    font-size: 20px;
    color: #b45309;
}

.announcement-item.important .el-icon {
    color: #dc2626;
}

.announcement-item .ann-title {
    font-weight: 600;
    color: #92400e;
    margin-right: 12px;
}

.announcement-item.important .ann-title {
    color: #dc2626;
}

.announcement-item .ann-content {
    color: #a16207;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 统计卡片增强 */
.dashboard-page .stat-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.dashboard-page .stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.dashboard-page .stat-card.success .stat-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.dashboard-page .stat-card.primary .stat-icon {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.dashboard-page .stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.dashboard-page .stat-card.danger .stat-icon {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.dashboard-page .stat-card .stat-info {
    flex: 1;
}

.dashboard-page .stat-card .stat-trend {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
}

.dashboard-page .stat-card .stat-trend.up {
    background: var(--success-light);
    color: var(--success-color);
}

/* 图表卡片 */
.chart-card {
    min-height: 360px;
}

.chart-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.chart-card .card-header h3 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 16px;
}

/* 销售趋势列表 */
.sales-trend-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trend-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trend-date {
    width: 50px;
    text-align: center;
}

.trend-date .day {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.trend-date .month {
    font-size: 11px;
    color: var(--text-muted);
}

.trend-bar {
    flex: 1;
    height: 24px;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
}

.trend-bar .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color) 0%, #34d399 100%);
    border-radius: 12px;
    transition: width 0.5s ease;
    min-width: 4px;
}

.trend-amount {
    width: 100px;
    text-align: right;
    font-weight: 600;
    color: var(--success-color);
}

/* 热销商品列表 */
.top-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.product-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.product-item .rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    background: #e5e7eb;
    color: var(--text-secondary);
}

.product-item .rank.rank-1 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
}

.product-item .rank.rank-2 {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: #fff;
}

.product-item .rank.rank-3 {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #fff;
}

.product-item .product-info {
    flex: 1;
}

.product-item .product-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.product-item .product-sales {
    font-size: 12px;
    color: var(--text-muted);
}

.product-item .product-badge {
    font-size: 20px;
}

/* 待办卡片 */
.todo-card {
    min-height: 300px;
}

.todo-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.todo-card .card-header h3 {
    margin: 0;
    padding: 0;
    border: none;
}

/* 欠款客户列表 */
.debt-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.debt-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.debt-item:hover {
    background: #f1f5f9;
}

.debt-item .customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.debt-item .customer-info {
    flex: 1;
}

.debt-item .customer-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.debt-item .customer-phone {
    font-size: 12px;
    color: var(--text-muted);
}

.debt-item .debt-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--danger-color);
}

/* 库存预警列表 */
.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fef2f2;
    border-radius: var(--radius-md);
    border: 1px solid #fecaca;
    transition: var(--transition-fast);
}

.alert-item:hover {
    background: #fee2e2;
}

.alert-item .alert-icon {
    font-size: 24px;
}

.alert-item .product-info {
    flex: 1;
}

.alert-item .product-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.alert-item .stock-info {
    display: flex;
    gap: 16px;
    font-size: 12px;
}

.alert-item .current-stock {
    color: var(--danger-color);
    font-weight: 500;
}

.alert-item .min-stock {
    color: var(--text-muted);
}

/* ============================================
   通用页面组件样式
   ============================================ */

/* 页面头部增强 */
.page-header .header-left {
    flex: 1;
}

.page-header .header-left h2 {
    margin-bottom: 4px;
}

.page-header .page-desc {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.page-header .header-actions {
    display: flex;
    gap: 12px;
}

/* 迷你统计卡片 */
.stat-cards.mini {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-cards.mini .stat-card {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-cards.mini .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.stat-cards.mini .stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.stat-cards.mini .stat-card.danger .stat-icon {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.stat-cards.mini .stat-card.success .stat-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.stat-cards.mini .stat-info .value {
    font-size: 20px;
    font-weight: 700;
}

.stat-cards.mini .stat-info .label {
    font-size: 12px;
}

/* 卡片工具栏 */
.card-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.card-toolbar .search-box {
    width: 320px;
}

.card-toolbar .toolbar-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 客户单元格样式 */
.customer-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-cell .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.customer-cell .info {
    flex: 1;
    min-width: 0;
}

.customer-cell .info .name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.customer-cell .info .phone {
    font-size: 12px;
    color: var(--text-muted);
}

/* 信用额度样式 */
.credit-limit {
    font-weight: 500;
    color: var(--text-secondary);
}

/* 商品管理页面 */
.products-page .page-header,
.customers-page .page-header {
    flex-wrap: wrap;
    gap: 16px;
}

.products-page .product-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.products-page .product-cell .product-name {
    font-weight: 600;
    color: var(--text-primary);
}

.products-page .product-cell .product-barcode {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.products-page .price-tag {
    font-weight: 700;
    color: var(--primary-color);
}

.products-page .price-wholesale {
    font-weight: 500;
    color: var(--success-color);
}

.products-page .price-muted {
    color: var(--text-muted);
}

/* 销售单列表页面 */
.orders-page .order-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.orders-page .order-cell .order-id {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 15px;
}

.orders-page .order-cell .order-time {
    font-size: 12px;
    color: var(--text-muted);
}

.orders-page .order-amount {
    font-weight: 700;
    color: var(--success-color);
    font-size: 16px;
}

.orders-page .customer-cell.mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.orders-page .customer-cell.mini .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.orders-page .customer-cell.mini .name {
    font-weight: 500;
    color: var(--text-primary);
}

/* 筛选组 */
.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 库存管理页面 */
.inventory-page .product-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inventory-page .product-cell .product-name {
    font-weight: 600;
    color: var(--text-primary);
}

.inventory-page .product-cell .product-unit {
    font-size: 12px;
    color: var(--text-muted);
}

.inventory-page .stock-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.inventory-page .stock-display.normal-stock {
    background: #d1fae5;
    color: #059669;
}

.inventory-page .stock-display.low-stock {
    background: #fef3c7;
    color: #d97706;
}

.inventory-page .stock-display.out-of-stock {
    background: #fee2e2;
    color: #dc2626;
}

.inventory-page .stock-display .stock-value {
    font-size: 18px;
}

.inventory-page .stock-display .stock-unit {
    font-size: 12px;
    font-weight: 400;
}

.inventory-page .alert-line {
    color: var(--text-muted);
    font-size: 13px;
}

/* 设置页面 */
.settings-page .settings-card {
    height: 100%;
}

.settings-page .settings-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.settings-page .settings-card .card-header .card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.settings-page .settings-card .card-header h3 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.settings-page .settings-form .el-form-item {
    margin-bottom: 20px;
}

.settings-page .settings-form .el-form-item:last-child {
    margin-bottom: 0;
    margin-top: 24px;
}

/* 关于卡片 */
.settings-page .about-card .about-content {
    text-align: center;
    padding: 20px 0;
}

.settings-page .about-card .app-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.settings-page .about-card .app-logo .logo-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.settings-page .about-card .app-logo .app-info {
    text-align: left;
}

.settings-page .about-card .app-logo .app-info h4 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.settings-page .about-card .app-logo .app-info .version {
    font-size: 13px;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

.settings-page .about-card .app-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.settings-page .about-card .feature-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.settings-page .about-card .feature-tag {
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.settings-page .about-card .copyright {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

/* 收付款记录页面 */
.payment-records-page .record-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-records-page .record-cell .record-no {
    font-weight: 600;
    color: var(--text-primary);
    font-family: monospace;
}

.payment-records-page .record-cell .record-time {
    font-size: 12px;
    color: var(--text-muted);
}

.payment-records-page .target-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-records-page .target-cell .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.payment-records-page .target-cell .name {
    font-weight: 500;
    color: var(--text-primary);
}

.payment-records-page .amount {
    font-weight: 700;
    font-size: 15px;
}

.payment-records-page .amount.receive {
    color: var(--success-color);
}

.payment-records-page .amount.pay {
    color: var(--warning-color);
}

.payment-records-page .toolbar-actions {
    display: flex;
    gap: 8px;
}

/* 供应商管理页面 */
.suppliers-page .supplier-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.suppliers-page .supplier-cell .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.suppliers-page .supplier-cell .info {
    flex: 1;
    min-width: 0;
}

.suppliers-page .supplier-cell .info .name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.suppliers-page .supplier-cell .info .contact {
    font-size: 12px;
    color: var(--text-muted);
}

/* 采购管理页面 */
.purchases-page .order-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.purchases-page .order-cell .order-id {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 15px;
}

.purchases-page .order-cell .order-time {
    font-size: 12px;
    color: var(--text-muted);
}

.purchases-page .supplier-cell.mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.purchases-page .supplier-cell.mini .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.purchases-page .supplier-cell.mini .name {
    font-weight: 500;
    color: var(--text-primary);
}

.purchases-page .purchase-amount {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .page-header .header-actions {
        width: 100%;
    }
    
    .page-header .header-actions .el-button {
        flex: 1;
    }
    
    .stat-cards.mini {
        grid-template-columns: 1fr;
    }
    
    .card-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .card-toolbar .search-box {
        width: 100%;
    }
    
    .customer-cell .avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ============================================
   数据备份页面样式
   ============================================ */
.data-backup-page .page-desc {
    color: #909399;
    font-size: 14px;
    margin-top: 4px;
}

.backup-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.backup-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.backup-card .card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.backup-card .card-icon.export {
    background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
}

.backup-card .card-icon.import {
    background: linear-gradient(135deg, #67c23a 0%, #85ce61 100%);
}

.backup-card .card-icon.history {
    background: linear-gradient(135deg, #909399 0%, #b4b4b4 100%);
}

.backup-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 12px;
}

.backup-card p {
    color: #909399;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 44px;
}

.data-stat {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.data-stat .value {
    font-size: 28px;
    font-weight: 700;
    color: #409eff;
    margin-bottom: 8px;
}

.data-stat .label {
    font-size: 14px;
    color: #909399;
}

/* ============================================
   仓库管理页面样式
   ============================================ */
.warehouses-page .page-desc {
    color: #909399;
    font-size: 14px;
    margin-top: 4px;
}

/* ============================================
   订阅管理页面样式
   ============================================ */
.subscription-page .page-desc {
    color: #909399;
    font-size: 14px;
    margin-top: 4px;
}

.subscription-status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 32px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.subscription-status-card.free {
    background: linear-gradient(135deg, #a8a8a8 0%, #6b6b6b 100%);
    box-shadow: 0 8px 32px rgba(107, 107, 107, 0.3);
}

.subscription-status-card.basic {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 8px 32px rgba(17, 153, 142, 0.3);
}

.subscription-status-card.pro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.subscription-status-card.enterprise {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 32px rgba(245, 87, 108, 0.3);
}

.subscription-status-card .status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.subscription-status-card .plan-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.subscription-status-card .badge-icon {
    font-size: 32px;
}

.subscription-status-card .badge-text {
    font-size: 28px;
    font-weight: 700;
}

.subscription-status-card .status-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.subscription-status-card .info-item {
    text-align: center;
}

.subscription-status-card .info-item .label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.subscription-status-card .info-item .value {
    font-size: 20px;
    font-weight: 600;
}

.subscription-status-card .info-item .value.warning {
    color: #ffd700;
}

.subscription-status-card .info-item .value.expired {
    color: #ff6b6b;
}

.subscription-status-card .status-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.plan-card {
    background: #fff;
    border: 2px solid #e4e7ed;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    border-color: #409eff;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(64, 158, 255, 0.15);
}

.plan-card.current {
    border-color: #67c23a;
    background: #f0f9eb;
}

.plan-card.recommended {
    border-color: #e6a23c;
}

.plan-card.recommended::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 4px;
    background: linear-gradient(90deg, #e6a23c, #f5c942);
    border-radius: 12px 12px 0 0;
}

.plan-card .plan-header {
    margin-bottom: 20px;
}

.plan-card .plan-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.plan-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 12px;
}

.plan-card .plan-price {
    margin-bottom: 8px;
}

.plan-card .plan-price .amount {
    font-size: 32px;
    font-weight: 700;
    color: #409eff;
}

.plan-card .plan-price .period {
    font-size: 14px;
    color: #909399;
}

.plan-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.plan-card .plan-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #606266;
    border-bottom: 1px dashed #eee;
}

.plan-card .plan-features li:last-child {
    border-bottom: none;
}

.upgrade-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 20px;
    background: #f5f7fa;
    border-radius: 8px;
}

.upgrade-preview .preview-item {
    text-align: center;
}

.upgrade-preview .preview-item .label {
    font-size: 12px;
    color: #909399;
    margin-bottom: 4px;
}

.upgrade-preview .preview-item .value {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
}

.upgrade-preview .preview-item.highlight .value {
    color: #409eff;
}

.upgrade-preview .preview-arrow {
    font-size: 24px;
    color: #67c23a;
}

@media (max-width: 1200px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .subscription-status-card .status-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
    .subscription-status-card .status-info {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   审批管理页面样式
   ============================================ */
.approvals-page .page-desc {
    color: #909399;
    font-size: 14px;
    margin-top: 4px;
}

.approval-detail .detail-header {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.approval-detail .approval-actions {
    margin-top: 20px;
}

.config-desc {
    color: #909399;
    font-size: 13px;
}

/* ============================================
   打印样式
   ============================================ */
@media print {
    .layout-aside,
    .layout-header,
    .search-bar,
    .el-button {
        display: none !important;
    }
    
    .layout-content {
        padding: 0;
    }
    
    .page-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
