/* ===== CSS变量定义 ===== */
:root {
    /* 主色调 */
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #3385ff;
    --secondary: #00ff88;
    --accent: #ff3366;
    --warning: #ffcc00;
    
    /* 背景色 */
    --dark-bg: #0a0a14;
    --darker-bg: #050510;
    --card-bg: rgba(16, 18, 27, 0.95);
    --card-border: rgba(255, 255, 255, 0.1);
    --modal-bg: rgba(10, 12, 20, 0.98);
    
    /* 文本色 */
    --text-primary: #ffffff;
    --text-secondary: #b0b0d0;
    --text-muted: #8888aa;
    
    /* 功能色 */
    --success: #00ff88;
    --danger: #ff3366;
    --info: #00ccff;
    
    /* 设计变量 */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --glow: 0 0 20px rgba(0, 102, 255, 0.3);
    --cyber-glow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    
    /* 间距 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    
    /* 字体大小 */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-md: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.5rem;
    --font-xxl: 2rem;
}

/* ===== 基础样式重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== 网格背景 ===== */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 102, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

/* ===== 通用样式 ===== */
a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== 加载状态 ===== */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-state {
    text-align: center;
    padding: 3rem;
    color: var(--danger);
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* ===== 布局样式 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg);
    padding-top: calc(80px + var(--space-lg));
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: var(--space-xl);
}

.page-header h1 {
    font-size: var(--font-xxl);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-lg);
}

/* ===== 导航栏 ===== */
.navbar {
    background: rgba(10, 12, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.logo i {
    color: var(--primary);
    text-shadow: var(--cyber-glow);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(0, 102, 255, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    box-shadow: var(--cyber-glow);
}

.cart-area {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cart-btn {
    position: relative;
    padding: 8px 16px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: var(--font-xs);
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: var(--font-xl);
    cursor: pointer;
    padding: var(--space-sm);
}

/* ===== 按钮样式 ===== */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: var(--font-md);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--glow);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(0, 102, 255, 0.1);
}

.btn-free {
    background: var(--success);
    color: white;
    border: 2px solid var(--success);
}

.btn-free:hover {
    opacity: 0.9;
}

.close-btn {
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sm {
    padding: 4px 12px;
    font-size: var(--font-sm);
}

/* ===== 产品页面 ===== */
.category-filter {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: var(--font-sm);
}

.category-btn:hover,
.category-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 102, 255, 0.1);
    box-shadow: var(--glow);
}

.search-box {
    position: relative;
    margin-bottom: var(--space-xl);
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: var(--font-md);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

/* ===== 产品卡片 ===== */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.product-card.popular {
    border: 2px solid var(--primary);
}

.product-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 4px 12px;
    color: white;
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.product-badge.free {
    background: var(--success);
}

.product-badge.hot {
    background: var(--danger);
}

.product-badge.recommended {
    background: var(--primary);
}

.product-badge.enterprise {
    background: var(--warning);
}

.product-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 255, 136, 0.2));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.product-icon i {
    font-size: var(--font-xl);
    color: var(--primary);
}

.product-title {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.product-description {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    margin-bottom: var(--space-md);
    line-height: 1.5;
    flex: 1;
}

.product-features {
    margin: var(--space-md) 0;
    flex: 1;
}

.product-features ul {
    list-style: none;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

.product-features i {
    color: var(--success);
    font-size: var(--font-sm);
    flex-shrink: 0;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.current-price {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.original-price {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: var(--font-sm);
}

.product-stock {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-stock i {
    color: var(--primary);
}

.product-stock.out-of-stock {
    color: var(--danger);
}

.product-stock.out-of-stock i {
    color: var(--danger);
}

.product-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: auto;
}

.product-actions .btn {
    flex: 1;
}

/* ===== 购物车侧边栏 ===== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: var(--modal-bg);
    border-left: 1px solid var(--card-border);
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: var(--transition);
}

.cart-item:hover {
    border-color: var(--primary);
}

.cart-item-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 102, 255, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-lg);
    color: var(--primary);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.cart-item-price {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-sm);
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-dark);
}

.quantity-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.cart-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-secondary);
    display: none;
}

.cart-empty i {
    font-size: 48px;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.cart-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.cart-summary {
    margin-bottom: var(--space-lg);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

.summary-row.total {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--card-border);
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    font-size: var(--font-lg);
}

/* ===== 模态框 ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--modal-bg);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--modal-bg);
    z-index: 1;
}

.modal-body {
    padding: var(--space-lg);
}

.modal-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.3);
}

/* ===== 结算模态框特定样式 ===== */
.customer-info {
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: rgba(0, 102, 255, 0.05);
    border-radius: var(--radius);
}

.customer-info h4 {
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: var(--font-md);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.form-hint {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    margin-top: var(--space-xs);
}

.payment-methods {
    margin: var(--space-lg) 0;
}

.payment-methods h4 {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.payment-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: var(--font-sm);
}

.payment-status {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    margin: var(--space-md) 0;
}

.status-loading, .status-success, .status-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.status-success i {
    font-size: 3rem;
    color: var(--success);
}

.status-error i {
    font-size: 3rem;
    color: var(--danger);
}

.order-summary {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.order-summary h4 {
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

.detail-row.total {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--card-border);
}

.terms-agreement {
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

/* ===== 授权码显示模态框 ===== */
.success-icon {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.success-icon i {
    font-size: 64px;
    color: var(--success);
    text-shadow: 0 0 20px var(--success);
}

.success-message {
    text-align: center;
    font-size: var(--font-lg);
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
}

.license-display {
    text-align: center;
    margin: var(--space-xl) 0;
}

.license-code {
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed var(--primary);
    padding: var(--space-md);
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    font-size: var(--font-lg);
    letter-spacing: 2px;
    color: var(--success);
    text-align: center;
    margin: var(--space-md) 0;
    text-shadow: 0 0 10px var(--success);
    word-break: break-all;
    user-select: all;
}

.copy-btn {
    margin-top: var(--space-md);
}

.licenses-list {
    max-height: 200px;
    overflow-y: auto;
    margin: var(--space-md) 0;
    padding: var(--space-sm);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
}

.licenses-list .license-code {
    margin: var(--space-sm) 0;
    font-size: var(--font-md);
}

.license-info {
    background: rgba(0, 102, 255, 0.05);
    border-radius: var(--radius);
    padding: var(--space-md);
    margin-top: var(--space-lg);
    border-left: 3px solid var(--primary);
}

.license-info p {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

.license-info p:last-child {
    margin-bottom: 0;
}

.license-info i {
    color: var(--primary);
    margin-right: var(--space-sm);
}

/* ===== 购买记录和授权码页面 ===== */
.orders-container, .licenses-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.order-item, .license-item {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition);
}

.order-item:hover, .license-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.order-item:last-child, .license-item:last-child {
    border-bottom: none;
}

.order-header, .license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.order-title, .license-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.order-meta, .license-meta {
    display: flex;
    gap: var(--space-lg);
    color: var(--text-secondary);
    font-size: var(--font-sm);
    margin-bottom: var(--space-md);
}

.order-meta span, .license-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--font-xs);
    font-weight: 600;
}

.status-paid {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.status-pending {
    background: rgba(255, 204, 0, 0.2);
    color: var(--warning);
}

.status-failed {
    background: rgba(255, 51, 102, 0.2);
    color: var(--danger);
}

.order-licenses, .license-codes {
    margin-top: var(--space-md);
}

.no-data {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-secondary);
}

.no-data i {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: var(--space-md);
}

/* ===== 技术支持页面 ===== */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.support-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.support-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.support-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: var(--font-xl);
    color: white;
}

.support-card h3 {
    font-size: var(--font-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.support-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    flex: 1;
}

.support-card .btn {
    margin-top: auto;
}

/* ===== 遮罩层 ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(3px);
}

.overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== 页脚 ===== */
.footer {
    background: rgba(10, 12, 23, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-xl);
    padding: var(--space-xl) 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.footer-section h4 {
    font-size: var(--font-lg);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-size: var(--font-sm);
}

.footer-note {
    margin-top: var(--space-md);
    padding: var(--space-sm);
    background: rgba(0, 102, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-size: var(--font-sm);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-xl);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: var(--font-sm);
    margin-bottom: var(--space-xs);
}

.footer-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--font-xs);
    color: var(--text-secondary);
}

.footer-security i {
    color: var(--success);
}

/* ===== 动画 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ===== 后台管理系统样式 ===== */

/* 管理员登录 */
.admin-login {
    max-width: 400px;
    margin: 3rem auto;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
}

.login-card h2 {
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

/* 管理面板 */
.admin-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.admin-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--card-border);
    flex-wrap: wrap;
}

.admin-tab {
    padding: var(--space-md) var(--space-lg);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.admin-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.admin-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    background: rgba(0, 102, 255, 0.1);
}

.admin-tab-content {
    display: none;
    padding: var(--space-lg);
}

.admin-tab-content.active {
    display: block;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--card-border);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.admin-header h3 {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.admin-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* 管理表格 */
.admin-table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    margin-top: var(--space-md);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
    min-width: 800px;
}

.admin-table th {
    background: rgba(0, 0, 0, 0.4);
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--card-border);
    white-space: nowrap;
}

.admin-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--card-border);
    color: var(--text-secondary);
    vertical-align: middle;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--font-xs);
    font-weight: 600;
}

.status-paid, .status-active {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.status-pending {
    background: rgba(255, 204, 0, 0.2);
    color: var(--warning);
}

.status-failed, .status-revoked, .status-expired {
    background: rgba(255, 51, 102, 0.2);
    color: var(--danger);
}

.status-refunded {
    background: rgba(0, 204, 255, 0.2);
    color: var(--info);
}

.status-used {
    background: rgba(136, 136, 255, 0.2);
    color: #8888ff;
}

.status-inactive {
    background: rgba(136, 136, 136, 0.2);
    color: #888888;
}

/* 授权码小字体 */
.license-code-small {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--success);
    word-break: break-all;
}

/* 设置页面 */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.settings-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    padding: var(--space-lg);
    border: 1px solid var(--card-border);
}

.settings-card h4 {
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.settings-actions {
    text-align: right;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--card-border);
}

/* 表单行 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

/* 禁用状态 */
.disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 4px;
}

/* 退款状态 */
.status-refund-requested {
    background: rgba(255, 153, 0, 0.2);
    color: #ff9900;
}

.status-refund-processing {
    background: rgba(0, 153, 255, 0.2);
    color: #0099ff;
}

/* 标签样式 */
.product-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0, 102, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    color: var(--primary);
    margin: 2px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 1rem;
    display: block;
}

/* 表单控件 */
.form-controls {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    justify-content: flex-end;
}

/* 产品标签容器 */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0.5rem 0;
}

/* 产品管理表单 */
#productForm {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

#productForm textarea {
    min-height: 100px;
    resize: vertical;
}

/* 生成授权码表单 */
#licenseProduct {
    width: 100%;
}

/* 订单详情样式 */
.order-detail-view {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-top: var(--space-md);
    border-left: 3px solid var(--primary);
}

.order-detail-view h5 {
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.order-detail-item {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-md);
    border-radius: var(--radius);
}

.order-detail-label {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.order-detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* 统计数据卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: var(--space-sm) 0;
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.8;
}

/* 文件上传样式 */
.file-upload {
    border: 2px dashed var(--card-border);
    border-radius: var(--radius);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary);
    background: rgba(0, 102, 255, 0.05);
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--primary);
}

/* 颜色选择器样式 */
input[type="color"] {
    width: 100%;
    height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    cursor: pointer;
}

/* 搜索和过滤栏 */
.filter-bar {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.filter-input {
    flex: 1;
    min-width: 200px;
}

.filter-select {
    min-width: 150px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-xl);
}

.pagination-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}

.pagination-btn:hover {
    background: var(--primary);
    color: white;
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 通知徽章 */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background: var(--dark-bg);
    color: var(--text-primary);
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: var(--font-sm);
    border: 1px solid var(--card-border);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--card-bg);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 切换开关 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: var(--space-md) 0;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 标签组 */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: var(--space-sm) 0;
}

/* 徽章组 */
.badge-group {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

/* 信息卡片 */
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.info-card h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.info-card p {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-lg);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--dark-bg);
}

.timeline-date {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    margin-bottom: 4px;
}

.timeline-content {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    padding: var(--space-md);
}

/* ===== Airwallex支付样式调整 ===== */
#airwallex-container {
    min-height: 200px;
}

#airwallex-container iframe {
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
}

/* ===== 打印样式 ===== */
@media print {
    .navbar,
    .cart-sidebar,
    .modal,
    .overlay,
    .footer,
    .grid-bg,
    .product-actions .btn-outline {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        padding: 0;
        margin: 0;
    }
    
    .page {
        display: block !important;
    }
    
    .license-code {
        border: 2px dashed black !important;
        color: black !important;
        text-shadow: none !important;
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: var(--space-md);
        flex-wrap: wrap;
        height: auto;
        min-height: 80px;
    }
    
    .mobile-menu-btn {
        display: block;
        order: 1;
    }
    
    .logo {
        order: 0;
        flex: 1;
    }
    
    .cart-area {
        order: 2;
        flex: 1;
        justify-content: flex-end;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--modal-bg);
        padding: var(--space-lg);
        border-top: 1px solid var(--card-border);
        z-index: 1000;
        gap: 0;
    }
    
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    .nav-link {
        padding: var(--space-md);
        border-radius: var(--radius);
        margin-bottom: var(--space-sm);
        width: 100%;
        text-align: center;
    }
    
    .container {
        padding: var(--space-md);
        padding-top: 100px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .modal-content {
        margin: var(--space-md);
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .admin-tab {
        width: 100%;
        text-align: left;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 480px) {
    .category-filter {
        justify-content: center;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .logo span {
        font-size: var(--font-lg);
    }
    
    .page-header h1 {
        font-size: var(--font-xl);
    }
    
    .order-meta, .license-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .admin-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-actions {
        justify-content: center;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .filter-input,
    .filter-select {
        width: 100%;
    }
}

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== 表单验证样式 ===== */
input:invalid,
textarea:invalid,
select:invalid {
    border-color: var(--danger) !important;
}

input:valid,
textarea:valid,
select:valid {
    border-color: var(--success) !important;
}

.validation-error {
    color: var(--danger);
    font-size: var(--font-sm);
    margin-top: 4px;
    display: none;
}

input:invalid + .validation-error,
textarea:invalid + .validation-error,
select:invalid + .validation-error {
    display: block;
}

/* ===== 键盘快捷键提示 ===== */
.kbd {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: var(--font-sm);
    color: var(--text-primary);
}

/* ===== 加载占位符 ===== */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== 高亮文本 ===== */
.highlight {
    background: linear-gradient(120deg, rgba(0, 102, 255, 0.3), rgba(0, 255, 136, 0.3));
    padding: 0 4px;
    border-radius: 2px;
}

/* ===== 分隔线 ===== */
.divider {
    height: 1px;
    background: var(--card-border);
    margin: var(--space-lg) 0;
}

/* ===== 代码块 ===== */
.code-block {
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius);
    padding: var(--space-md);
    font-family: 'Courier New', monospace;
    font-size: var(--font-sm);
    overflow-x: auto;
    border: 1px solid var(--card-border);
}

/* ===== 引用样式 ===== */
blockquote {
    border-left: 3px solid var(--primary);
    padding-left: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* ===== 警告框 ===== */
.alert {
    padding: var(--space-md);
    border-radius: var(--radius);
    margin: var(--space-md) 0;
    border: 1px solid transparent;
}

.alert-info {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-warning {
    background: rgba(255, 204, 0, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-danger {
    background: rgba(255, 51, 102, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

/* ===== 图片容器 ===== */
.img-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.img-container img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.img-container:hover img {
    transform: scale(1.05);
}

/* ===== 浮动操作按钮 ===== */
.fab {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    z-index: 100;
    transition: var(--transition);
}

.fab:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* ===== 步骤指示器 ===== */
.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--space-xl) 0;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--card-border);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    background: var(--dark-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-border);
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
}

.step.active {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--glow);
}

.step.completed {
    border-color: var(--success);
    color: var(--success);
    background: var(--success);
}

.step.completed::after {
    content: '✓';
    color: white;
}

/* ===== 聊天泡泡 ===== */
.chat-bubble {
    max-width: 70%;
    padding: var(--space-md);
    border-radius: var(--radius);
    margin: var(--space-sm) 0;
    position: relative;
}

.chat-bubble.user {
    background: var(--primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

.chat-bubble.bot {
    background: rgba(255, 255, 255, 0.1);
    margin-right: auto;
    border-bottom-left-radius: 0;
}

/* ===== 评分星星 ===== */
.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--warning);
    font-size: 1.2rem;
}

.star.empty {
    color: var(--text-secondary);
}

/* ===== 价格比较 ===== */
.price-comparison {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.old-price {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: var(--font-sm);
}

.discount-badge {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    font-weight: 600;
}

/* ===== 倒计时 ===== */
.countdown {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: var(--space-md);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 60px;
}

.countdown-label {
    font-size: var(--font-xs);
    color: var(--text-secondary);
    margin-top: 4px;
}
/* 在CSS文件末尾添加以下样式 */

/* ===== 导出功能样式 ===== */
.export-actions {
    display: flex;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: rgba(0, 102, 255, 0.05);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.export-note {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    margin-top: var(--space-sm);
    padding: var(--space-md);
    background: rgba(255, 204, 0, 0.1);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.export-note i {
    color: var(--warning);
    margin-right: var(--space-sm);
}

.export-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.export-btn.json {
    background: var(--primary);
    color: white;
}

.export-btn.csv {
    background: var(--success);
    color: white;
}

.export-btn.print {
    background: var(--warning);
    color: white;
}

/* 导出模态框 */
.export-modal .modal-content {
    max-width: 600px;
}

.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.export-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.export-option:hover {
    border-color: var(--primary);
    background: rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

.export-option i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.export-option h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.export-option p {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

/* 导出进度 */
.export-progress {
    margin: var(--space-lg) 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

.export-success {
    text-align: center;
    padding: var(--space-xl);
}

.export-success i {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: var(--space-lg);
}
/* ===== 移动端特定样式 ===== */
.mobile-device .product-card {
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
}

.mobile-device .btn {
    border-radius: var(--radius);
}

.mobile-device .modal-content {
    animation: slideUp 0.3s ease;
}

.touch-device .nav-link:active,
.touch-device .btn:active {
    opacity: 0.8;
    transform: scale(0.98);
}

.touch-device .product-card:active {
    transform: scale(0.99);
}

/* ===== 导出统计样式 ===== */
.export-stats {
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: rgba(0, 102, 255, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
}

.stat-label {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.stat-value {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--primary);
}

/* ===== 订单状态增强 ===== */
.order-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--font-xs);
    font-weight: 600;
    margin-left: var(--space-sm);
}

.order-badge.pending {
    background: rgba(255, 204, 0, 0.2);
    color: var(--warning);
}

.order-badge.processing {
    background: rgba(0, 204, 255, 0.2);
    color: var(--info);
}

.order-badge.completed {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.order-badge.cancelled {
    background: rgba(255, 51, 102, 0.2);
    color: var(--danger);
}

/* ===== 时间线样式增强 ===== */
.timeline-item {
    position: relative;
    margin-bottom: var(--space-lg);
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--dark-bg);
}

.timeline-item.completed::before {
    background: var(--success);
}

.timeline-item.pending::before {
    background: var(--warning);
}

.timeline-item.failed::before {
    background: var(--danger);
}

/* ===== 键盘导航支持 ===== */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

:focus:not(.focus-visible) {
    outline: none;
}

/* ===== 性能优化 ===== */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* ===== 打印优化 ===== */
@media print {
    @page {
        margin: 1cm;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .no-print {
        display: none !important;
    }
    
    .break-before {
        page-break-before: always;
    }
    
    .break-after {
        page-break-after: always;
    }
    
    .avoid-break {
        page-break-inside: avoid;
    }
}