/* 考生网AI教育平台 - 样式文件 */
/* 主题色: #40B870 考生网绿色 */

/* 基础变量 */
:root {
    /* 品牌主色 */
    --primary: #40B870;
    --primary-dark: #35995C;
    --primary-light: #5FC98A;
    --primary-lighter: #E8F7EE;
    --primary-gradient: linear-gradient(135deg, #40B870 0%, #2E8B57 100%);
    
    /* 辅助色 */
    --secondary: #FF6B6B;
    --accent: #FFB347;
    --success: #40B870;
    --warning: #FFB347;
    --danger: #FF6B6B;
    --info: #4ECDC4;
    
    /* 灰度 */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* 其他 */
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    /* 动画 */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== 布局 ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 800px;
}

.container-lg {
    max-width: 1400px;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--gray-900);
}

.navbar-brand:hover {
    text-decoration: none;
    color: var(--primary);
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-brand .logo-text {
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.navbar-brand .logo-domain {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 400;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius);
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--primary-lighter);
    color: var(--primary);
    text-decoration: none;
}

.nav-link.active {
    background: var(--primary-gradient);
    color: white;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--primary-lighter);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.user-badge.vip {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B4513;
}

.user-badge.svip {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
}

/* ==================== 主内容区 ==================== */
main {
    padding-top: 70px;
    min-height: calc(100vh - 70px);
}

.main-content {
    padding: 2rem 0;
}

/* ==================== 卡片 ==================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-800);
    background: var(--gray-50);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* ==================== 表单 ==================== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: white;
    transition: var(--transition);
    color: var(--gray-800);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-lighter);
}

.form-control:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 44px;
    cursor: pointer;
}

.form-text {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 4px;
}

.form-error {
    color: var(--danger);
    font-size: 0.8125rem;
    margin-top: 4px;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(64, 184, 112, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(64, 184, 112, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-success {
    background: linear-gradient(135deg, #40B870, #2E8B57);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #FFB347, #FF8C00);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #FF6B6B, #EE5A5A);
    color: white;
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    background: var(--gray-100);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ==================== 徽章 ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.badge-primary {
    background: var(--primary-lighter);
    color: var(--primary-dark);
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-info {
    background: #E0F2FE;
    color: #075985;
}

/* ==================== 进度条 ==================== */
.progress {
    height: 8px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.4s ease;
}

.progress-bar.primary {
    background: var(--primary-gradient);
}

.progress-bar.success {
    background: linear-gradient(90deg, #40B870, #2E8B57);
}

.progress-bar.warning {
    background: linear-gradient(90deg, #FFB347, #FF8C00);
}

.progress-bar.danger {
    background: linear-gradient(90deg, #FF6B6B, #EE5A5A);
}

/* ==================== 表格 ==================== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-50);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* ==================== Hero 区域 ==================== */
.hero {
    background: var(--primary-gradient);
    padding: 80px 0 100px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero .btn {
    padding: 16px 40px;
    font-size: 1.125rem;
    background: white;
    color: var(--primary-dark);
    font-weight: 700;
}

.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ==================== 功能卡片 ==================== */
.feature-section {
    padding: 0 0 60px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

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

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
    cursor: pointer;
    text-decoration: none;
    display: block;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
    text-decoration: none;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.feature-icon.grading { background: linear-gradient(135deg, #40B870, #2E8B57); }
.feature-icon.analysis { background: linear-gradient(135deg, #4ECDC4, #26A69A); }
.feature-icon.tutor { background: linear-gradient(135deg, #667EEA, #764BA2); }
.feature-icon.volunteer { background: linear-gradient(135deg, #FF6B6B, #EE5A5A); }

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.feature-card .feature-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.feature-card .feature-meta span {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

.feature-card .feature-meta .price {
    color: var(--primary);
    font-weight: 600;
}

/* ==================== 页面标题 ==================== */
.page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.page-header .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
}

.page-header p {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

/* ==================== 网格布局 ==================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ==================== 聊天界面 ==================== */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 300px);
    min-height: 500px;
    max-height: 700px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--gray-50);
}

.welcome-message,
.ai-message,
.user-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease;
}

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

.user-message {
    flex-direction: row-reverse;
}

.ai-avatar,
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.ai-avatar {
    background: var(--primary-gradient);
    color: white;
}

.user-avatar {
    background: var(--gray-600);
    color: white;
}

.message-header {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.message-content {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: 18px;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.welcome-message .message-content,
.ai-message .message-content {
    background: white;
    border: 1px solid var(--gray-200);
    border-bottom-left-radius: 4px;
}

.user-message .message-content {
    background: var(--primary-gradient);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--gray-200);
    background: white;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.chat-input-area input {
    flex: 1;
}

/* ==================== 评分结果 ==================== */
.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(64, 184, 112, 0.3);
}

.score-circle .score {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.score-circle .total {
    font-size: 1rem;
    opacity: 0.8;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 8px;
}

/* ==================== 加载状态 ==================== */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    flex-direction: column;
    gap: 16px;
}

.loading-overlay .spinner {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

/* ==================== 提示框 ==================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.alert-info {
    background: #E0F2FE;
    color: #075985;
    border: 1px solid #BAE6FD;
}

/* ==================== Toast通知 ==================== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius);
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.success { background: var(--primary); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }
.toast.info { background: var(--info); }

/* ==================== 分隔线 ==================== */
.divider {
    height: 1px;
    background: var(--gray-200);
    margin: 24px 0;
}

/* ==================== 统计卡片 ==================== */
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-card .stat-label {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .feature-section {
        margin-top: -20px;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==================== 移动端底部导航 ==================== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        justify-content: space-around;
    }
    
    main {
        padding-bottom: 70px;
    }
}

.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 16px;
    color: var(--gray-500);
    font-size: 0.6875rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav a span {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.mobile-nav a.active {
    color: var(--primary);
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand img {
    height: 32px;
}

.footer h4 {
    color: white;
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 8px;
}

.footer a {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    font-size: 0.8125rem;
}

/* ==================== 工具类 ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }

.my-3 { margin-top: 16px; margin-bottom: 16px; }
.my-4 { margin-top: 24px; margin-bottom: 24px; }

.p-3 { padding: 16px; }
.p-4 { padding: 24px; }
.p-5 { padding: 32px; }

.hidden { display: none !important; }
.visible { display: block !important; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ==================== 动画效果 ==================== */
.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==================== 会员等级样式 ==================== */
.level-free { color: var(--gray-500); }
.level-normal { color: var(--primary); }
.level-vip { color: #FFB347; }
.level-svip { color: #FF6B6B; }

.bg-level-free { background: var(--gray-100); }
.bg-level-normal { background: var(--primary-lighter); }
.bg-level-vip { background: linear-gradient(135deg, #FFD700, #FFA500); }
.bg-level-svip { background: linear-gradient(135deg, #FF6B6B, #FF8E53); }

/* ==================== 价格标签 ==================== */
.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.price-tag .unit {
    font-size: 0.875rem;
    font-weight: 500;
}

.price-tag .original {
    text-decoration: line-through;
    color: var(--gray-400);
    font-size: 1rem;
    font-weight: 400;
    margin-left: 8px;
}

/* ==================== 标签输入 ==================== */
.tag-input {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    min-height: 48px;
    transition: var(--transition);
}

.tag-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-lighter);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--primary-lighter);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.tag .remove {
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.tag .remove:hover {
    opacity: 1;
    color: var(--danger);
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9375rem;
}
