/* 高级美化版样式 */
:root {
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #6366f1;
    --secondary: #6b7280;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --accent: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础响应式字体设置 */
html {
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

/* 侧边导航栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(0);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
}

.logo-icon {
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

.logo-text {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 侧边栏关闭按钮 */
.sidebar-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
    min-width: 44px;
    min-height: 44px;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.1);
}

.sidebar-close svg {
    transition: transform 0.3s ease;
}

.sidebar-close:hover svg {
    transform: rotate(90deg);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    display: none;
    min-width: 44px;
    min-height: 44px;
}

.sidebar-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    margin: 4px 0;
    transition: 0.3s;
}

.sidebar-content {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.user-profile {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.user-points {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0 0 0.5rem 0;
}

.user-badge {
    background: linear-gradient(135deg, var(--success), #34d399);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sidebar-nav {
    padding: 0 1rem;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
    min-height: 44px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.nav-icon {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-weight: 500;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* 主内容区域 */
.main-content {
    margin-left: 280px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    background: #f8fafc;
    width: calc(100% - 280px);
}

.main-content.expanded {
    margin-left: 0;
    width: 100%;
}

/* 顶部栏 */
.topbar {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    transition: background-color 0.3s;
    min-width: 44px;
    min-height: 44px;
}

.menu-toggle:hover {
    background: rgba(79, 70, 229, 0.1);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-secondary);
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.topbar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-greeting {
    color: var(--text-secondary);
    font-weight: 500;
}

.logout-btn {
    color: var(--danger);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.logout-btn:hover {
    background: rgba(220, 38, 38, 0.1);
}

.auth-links {
    display: flex;
    gap: 0.5rem;
}

/* 内容包装器 */
.content-wrapper {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 移动端遮罩 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 玻璃态卡片 */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: rgba(107, 114, 128, 0.9);
    color: white;
    border: 1px solid var(--gray-light);
}

.btn-secondary:hover {
    background: rgba(107, 114, 128, 1);
    box-shadow: var(--shadow);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #34d399);
    color: white;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #f87171);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-height: 36px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* 警告消息 */
.alert {
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: var(--radius);
    font-weight: 500;
    box-shadow: var(--shadow);
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.alert-success {
    background: rgba(5, 150, 105, 0.1);
    color: #065f46;
    border-left-color: var(--success);
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    color: #7f1d1d;
    border-left-color: var(--danger);
}

.alert-info {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-dark);
    border-left-color: var(--primary);
}

/* 英雄区域 */
.hero {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: var(--radius);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"><polygon fill="%234f46e5" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
}

/* 特性网格 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 认证页面 */
.auth-container {
    max-width: 450px;
    margin: 3rem auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    min-height: 44px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.error {
    color: var(--danger);
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* 仪表板 */
.dashboard {
    padding: 2rem 0;
}

.dashboard h2 {
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    color: var(--text-primary);
}

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

.points {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0;
}

.warning {
    border-left: 4px solid var(--danger) !important;
}

.warning-count {
    color: var(--danger);
    font-size: 1.5rem;
    font-weight: bold;
}

/* 商城 */
.shop {
    padding: 2rem 0;
}

.shop h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.points-balance {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.product-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-info {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    font-weight: 600;
}

.price {
    color: var(--primary);
}

.stock {
    color: var(--success);
}

.buy-form {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.buy-form input {
    width: 70px;
    padding: 10px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    text-align: center;
    min-height: 44px;
}

/* 反馈系统 */
.feedback {
    padding: 2rem 0;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.feedback-header h2 {
    color: var(--text-primary);
    font-weight: 700;
}

.feedback-item {
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feedback-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feedback-item h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feedback-item p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feedback-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.vote-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-vote {
    background: none;
    border: 1px solid var(--gray-light);
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.btn-vote.up {
    color: var(--success);
    border-color: var(--success);
}

.btn-vote.down {
    color: var(--danger);
    border-color: var(--danger);
}

.btn-vote.up:hover {
    background-color: var(--success);
    color: white;
}

.btn-vote.down:hover {
    background-color: var(--danger);
    color: white;
}

.no-feedback {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
}

.no-feedback p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* 订单兑换码样式 */
.redemption-code {
    background: var(--primary-light);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    margin: 0.5rem 0;
    font-family: monospace;
    display: inline-block;
}

/* 兑换码管理样式 */
.redemption-management {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    border: 1px dashed var(--gray-light);
}

.redemption-management h5 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.redemption-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.redemption-stats span {
    padding: 0.25rem 0.5rem;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 4px;
    color: var(--primary);
}

.add-codes-form {
    margin-top: 0.5rem;
}

.add-codes-form .form-control {
    font-size: 0.8rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    min-height: auto;
}

/* 管理员后台专用样式 */
.admin {
    padding: 2rem 0;
}

.admin-header {
    text-align: center;
    margin-bottom: 3rem;
}

.admin-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.admin-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* 统计概览 */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stats-overview .stat-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stats-overview .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* 分区样式 */
.admin-sections {
    display: grid;
    gap: 3rem;
}

.admin-section {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    color: var(--text-primary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-light);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 用户管理样式 */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.user-card {
    display: flex;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.user-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    margin-right: 1rem;
}

.user-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.user-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.user-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.user-points {
    color: var(--primary);
    font-weight: 600;
}

.user-warnings {
    color: var(--danger);
    font-weight: 600;
}

.user-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-admin {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
}

.status-banned {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.status-user {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.user-actions {
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-form, .add-points-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-form .form-row {
    display: flex;
    gap: 0.5rem;
}

.role-select, .points-input, .warning-input {
    padding: 0.5rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: white;
    min-height: 44px;
}

.role-select {
    flex: 2;
}

.points-input, .warning-input {
    flex: 1;
}

.add-points-form .form-group {
    margin-bottom: 0.5rem;
}

.add-points-form .form-control {
    padding: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    background: white;
    min-height: 44px;
}

.add-points-form textarea {
    resize: vertical;
    min-height: 60px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    width: 100%;
    min-height: 36px;
}

/* 商品管理样式 */
.add-product-form {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border: 1px dashed var(--gray-light);
}

.add-product-form h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.admin-section .product-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.admin-section .product-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

/* 商品头部布局 */
.product-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-title {
    flex: 1;
}

.product-title h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.product-id {
    color: var(--text-secondary);
    font-size: 0.8rem;
    background: var(--gray-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.product-info {
    flex: 1;
}

.product-info h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* 商品统计信息 */
.product-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
}

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

.product-price, .product-stock {
    font-weight: 600;
    font-size: 0.9rem;
}

.product-price {
    color: var(--primary);
}

.product-stock {
    color: var(--success);
}

/* 兑换码管理样式 */
.redemption-management {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    border: 1px dashed var(--gray-light);
}

.redemption-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.redemption-header h5 {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.redemption-stats {
    display: flex;
    gap: 0.75rem;
}

.stat-available, .stat-used {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.stat-available {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
}

.stat-used {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.add-codes-form {
    margin-top: 0.5rem;
}

.add-codes-form .form-control {
    font-size: 0.8rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    min-height: auto;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.product-actions .btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.85rem;
    min-height: 36px;
}

/* 反馈管理样式 */
.feedbacks-list {
    display: grid;
    gap: 1.5rem;
}

.feedback-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.feedback-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.feedback-header h4 {
    color: var(--text-primary);
    margin-right: 1rem;
}

.feedback-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.feedback-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feedback-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feedback-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* 页面标题样式 */
.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* 快速按钮样式 */
.quick-buttons {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-height: 28px;
}

/* 涟漪动画 */
@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 粒子动画 */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

/* ==================== 响应式设计 ==================== */

/* 1200px 以上 - 大桌面 */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    html {
        font-size: 15px;
    }
}

/* 1400px 以上 - 超大桌面 */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    html {
        font-size: 16px;
    }
}

/* 992px - 1199px - 小桌面 */
@media (max-width: 1199px) {
    html {
        font-size: 14px;
    }
    
    .sidebar {
        width: 260px;
    }
    
    .main-content {
        margin-left: 260px;
        width: calc(100% - 260px);
    }
    
    .container {
        max-width: 960px;
    }
}

/* 768px - 991px - 平板 */
@media (max-width: 991px) {
    html {
        font-size: 13px;
    }
    
    .sidebar {
        width: 100%;
        max-width: 320px;
        transform: translateX(-100%);
    }
    
    .sidebar:not(.collapsed) {
        transform: translateX(0);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
    
    /* 平板端顶部栏优化 */
    .topbar {
        padding: 0.75rem 1rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
    }
    
    .content-wrapper {
        margin-top: 70px; /* 为固定顶部栏留出空间 */
    }
    
    /* 平板端字体大小调整 */
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    /* 平板端按钮优化 */
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    /* 平板端卡片布局优化 */
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .users-grid {
        grid-template-columns: 1fr;
    }
    
    /* 平板端管理后台优化 */
    .admin-section {
        padding: 1.5rem;
    }
    
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* 576px - 767px - 大手机 */
@media (max-width: 767px) {
    html {
        font-size: 12px;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .user-greeting {
        display: none;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* 移动端顶部栏优化 */
    .topbar {
        padding: 0.5rem 1rem;
    }
    
    .topbar-title {
        font-size: 1.2rem;
    }
    
    .content-wrapper {
        margin-top: 60px;
        padding: 0.75rem;
    }
    
    /* 移动端英雄区域优化 */
    .hero {
        padding: 40px 0;
        margin: 20px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* 移动端表单优化 */
    .form-control {
        font-size: 16px; /* 防止iOS缩放 */
        padding: 12px;
        min-height: 44px;
    }
    
    .auth-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    /* 移动端卡片布局优化 */
    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    /* 移动端表格和列表优化 */
    .user-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .feedback-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .vote-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .vote-buttons form {
        width: 100%;
    }
    
    .btn-vote {
        width: 100%;
        justify-content: center;
    }
    
    /* 移动端管理后台优化 */
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .user-card {
        flex-direction: column;
        text-align: center;
    }
    
    .user-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .user-info {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .user-stats {
        justify-content: center;
    }
    
    .user-actions {
        min-width: auto;
        width: 100%;
    }
    
    .user-form .form-row {
        flex-direction: column;
    }
    
    .product-actions {
        grid-template-columns: 1fr;
    }
    
    .feedback-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .feedback-date {
        align-self: flex-start;
    }
    
    .feedback-actions {
        flex-direction: column;
    }
    
    /* Token 管理响应式 */
    .token-admin-section {
        grid-template-columns: 1fr;
    }
    
    .token-display {
        flex-direction: column;
        align-items: stretch;
    }
    
    .token-actions {
        flex-direction: column;
    }
    
    /* 商品管理响应式 */
    .product-header {
        flex-direction: column;
        text-align: center;
    }
    
    .product-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 1;
        min-width: 120px;
    }
    
    .redemption-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .redemption-stats {
        justify-content: center;
    }
    
    /* 游戏兑换码管理响应式 */
    .feature-badge {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
    }
}

/* 480px - 575px - 中等手机 */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    .content-wrapper {
        padding: 0.5rem;
    }
    
    .auth-container {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .admin-section {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .product-stats {
        flex-direction: column;
    }
    
    .stat-item {
        min-width: auto;
    }
}

/* 480px 以下 - 小手机 */
@media (max-width: 480px) {
    html {
        font-size: 11px;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .content-wrapper {
        padding: 0.25rem;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .auth-container {
        padding: 1rem;
        margin: 0.25rem;
    }
    
    .admin-section {
        padding: 0.75rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .sidebar {
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .content-wrapper {
        padding: 0.75rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .glass-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .feature:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .product-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .stat-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .feedback-item:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    /* 增加触摸目标大小 */
    .nav-link {
        min-height: 44px;
    }
    
    .sidebar-close {
        min-width: 44px;
        min-height: 44px;
    }
    
    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }
    
    .btn-sm {
        min-height: 36px;
    }
    
    .btn-xs {
        min-height: 28px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #1e293b;
        --dark: #f8fafc;
        --gray-light: #334155;
    }
}

/* 减少动画（对偏好减少动画的用户） */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 防止文本溢出 */
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 移动端特定样式 */
.mobile-device .glass-card {
    border-radius: 8px;
}

.mobile-device .btn {
    border-radius: 8px;
}

.mobile-device .form-control {
    border-radius: 8px;
}

/* 桌面端关闭按钮调整 */
@media (min-width: 769px) {
    .sidebar-close {
        display: none;
    }
    
    /* 当鼠标悬停在侧边栏时显示关闭按钮 */
    .sidebar:hover .sidebar-close {
        display: flex;
        animation: fadeIn 0.3s ease;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.7; }
}

/* 编辑商品页面样式 */
.edit-product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.edit-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gray-light);
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.edit-product-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

/* 表单样式优化 */
.form-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
}

.form-card {
    padding: 2.5rem;
}

.form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.label-text {
    font-size: 0.95rem;
}

.required {
    color: var(--danger);
    font-size: 0.8rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-primary);
    min-height: 44px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.form-actions {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-height: 52px;
}

.form-tips {
    margin-left: auto;
}

.tip {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 预览区域样式 */
.preview-section {
    position: sticky;
    top: 2rem;
}

.preview-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.preview-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.preview-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.preview-content {
    padding: 1.5rem;
}

/* 商品预览卡片 */
.preview-product-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.preview-product-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.preview-product-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.preview-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

.preview-product-details {
    margin-top: 1rem;
}

.preview-price-stock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.preview-stock {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.preview-buy-form {
    display: flex;
    gap: 0.5rem;
}

.preview-quantity {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    text-align: center;
    min-height: 44px;
}

.preview-buy-btn {
    flex: 1;
}

/* 预览统计 */
.preview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.preview-stats .stat-card {
    background: var(--gray-light);
    padding: 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preview-stats .stat-icon {
    font-size: 1.5rem;
    margin: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

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

/* 商品操作按钮组 */
.product-actions {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-actions .btn {
    width: 100%;
    text-align: center;
}

/* 实时预览高亮效果 */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    transition: all 0.3s ease;
}

/* 编辑页面响应式设计 */
@media (max-width: 1024px) {
    .edit-product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .preview-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .edit-product-container {
        padding: 1rem;
    }
    
    .edit-product-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-tips {
        margin-left: 0;
        text-align: center;
    }
    
    .product-actions {
        flex-direction: row;
    }
    
    .product-actions .btn {
        flex: 1;
    }
    
    .preview-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
}