/**
 * 前台公共样式（性能优化版）
 * 文件路径: /assets/css/style.css
 * 注意：关键渲染CSS已内联到header.php，此处为完整增强样式
 */

/* ===== 变量定义 ===== */
:root {
    --primary-color: #4a90d9;
    --primary-hover: #3a7bc8;
    --success-color: #28a745;
    --warning-color: #fd7e14;
    --danger-color: #dc3545;
    --text-color: #333;
    --text-muted: #888;
    --border-color: #e0e0e0;
    --bg-light: #f5f5f5;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 8px;
}

/* ===== 公告滚动动画 ===== */
@keyframes annScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 公告栏（紧贴轮播图下方） */
.ann-bar { margin-top: -1px; padding: 0; }
.ann-inner { display: flex; align-items: center; height: 40px; }
.ann-icon { position: absolute; left: calc(50% - 190px); font-size: 18px; z-index: 2; pointer-events: none; }
.ann-scroll { position: absolute; left: calc(50% - 150px); width: 300px; overflow: hidden; white-space: nowrap; z-index: 1; }
.ann-track { display: inline-block; white-space: nowrap; animation: annScroll 30s linear infinite; }
.ann-track:hover { animation-play-state: paused; }
.ann-item { display: inline; cursor: default; }

/* ===== 轮播图 ===== */
.hero-banner { position: relative; height: 400px; overflow: hidden; margin-bottom: 0; background: #2c3e50; }
.banner-slider { height: 100%; }
.banner-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.5s ease; }
.banner-item.active { opacity: 1; }
.banner-content { position: absolute; bottom: 50px; left: 10%; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.banner-content h2 { font-size: 36px; margin-bottom: 15px; }
.banner-link { display: inline-block; padding: 10px 30px; background: var(--primary-color); color: #fff; border-radius: 25px; transition: background .2s; }
.banner-link:hover { background: var(--primary-hover); color: #fff; }
.banner-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background .2s; }
.dot.active { background: #fff; }

/* ===== 分类卡片 ===== */
.section { padding: 40px 0; }
.section-title { font-size: 24px; margin-bottom: 30px; text-align: center; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card { display: flex; flex-direction: column; align-items: center; padding: 30px; background: #fff; border-radius: var(--radius); transition: transform .3s, box-shadow .3s; }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.category-icon { font-size: 40px; margin-bottom: 15px; }
.category-name { font-size: 16px; color: #555; }

/* ===== 课程卡片 ===== */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course-card { background: #fff; border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.course-cover { position: relative; height: 180px; overflow: hidden; background: #eee; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.course-card:hover .course-cover img { transform: scale(1.05); }
.tag-free { position: absolute; top: 10px; left: 10px; background: var(--success-color); color: #fff; padding: 3px 10px; border-radius: 3px; font-size: 12px; }
.tag-recommend { position: absolute; top: 10px; right: 10px; background: var(--warning-color); color: #fff; padding: 3px 10px; border-radius: 3px; font-size: 12px; }
.course-info { padding: 15px; }
.course-title { font-size: 16px; margin-bottom: 10px; height: 44px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.course-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; display: flex; justify-content: space-between; }
.course-price { display: flex; align-items: center; gap: 10px; }
.price { color: var(--danger-color); font-size: 18px; font-weight: bold; }
.price-free { color: var(--success-color); font-size: 18px; font-weight: bold; }
.vip-price { font-size: 13px; color: var(--warning-color); }

/* ===== 区域头部 ===== */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.more-link { color: var(--text-muted); font-size: 14px; }

/* ===== 课程列表页 ===== */
.page-container { padding: 30px 0; }
.page-header { margin-bottom: 30px; }
.page-header h1 { font-size: 28px; margin-bottom: 10px; }
.breadcrumb { color: var(--text-muted); font-size: 14px; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 15px 20px; border-radius: var(--radius); margin-bottom: 20px; }
.filter-group { display: flex; align-items: center; gap: 10px; }
.filter-group label { color: #555; font-size: 14px; }
.filter-group select { padding: 8px 15px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 14px; }
.sort-tabs { display: flex; gap: 20px; }
.sort-tabs a { color: #666; font-size: 14px; padding: 6px 0; border-bottom: 2px solid transparent; }
.sort-tabs a.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.search-result { background: #fff; padding: 15px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }

/* ===== 课程详情 ===== */
.course-detail-header { display: flex; gap: 30px; background: #fff; padding: 30px; border-radius: var(--radius); margin-bottom: 30px; }
.course-detail-header .course-cover { width: 400px; height: 250px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; }
.course-detail-header .course-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-basic { flex: 1; }
.course-basic h1 { font-size: 26px; margin-bottom: 15px; line-height: 1.4; }
.course-basic .course-meta { margin-bottom: 20px; }
.course-basic .course-meta .meta-item { margin-right: 20px; font-size: 14px; }
.course-desc { color: #666; margin-bottom: 20px; font-size: 14px; line-height: 1.8; }
.course-price-row { margin-bottom: 20px; font-size: 24px; }
.course-actions { display: flex; gap: 15px; }
.content-tabs { display: flex; background: #fff; border-radius: var(--radius); margin-bottom: 20px; border-bottom: 2px solid #eee; }
.tab-item { padding: 15px 30px; cursor: pointer; color: #666; border-bottom: 2px solid transparent; margin-bottom: -2px; font-size: 15px; transition: all .2s; }
.tab-item:hover { color: var(--primary-color); }
.tab-item.active { border-bottom-color: var(--primary-color); color: var(--primary-color); }
.tab-content { background: #fff; padding: 30px; border-radius: var(--radius); }
.lesson-list { display: flex; flex-direction: column; }
.lesson-item { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid #f0f0f0; transition: background .2s; }
.lesson-item:hover { background: #fafafa; }
.lesson-index { width: 36px; height: 36px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px; font-weight: bold; font-size: 14px; flex-shrink: 0; }
.lesson-info { flex: 1; }
.lesson-info h4 { margin: 0 0 5px; font-size: 15px; }
.tag-free, .tag-progress { font-size: 12px; margin-left: 10px; padding: 2px 8px; border-radius: 3px; }
.tag-free { background: #e8f5e9; color: var(--success-color); }
.tag-progress { background: #e3f2fd; color: var(--primary-color); }
.lesson-action .btn-play { padding: 5px 15px; background: var(--primary-color); color: #fff; border-radius: 4px; font-size: 13px; border: none; cursor: pointer; }
.lesson-action .btn-locked { color: #999; font-size: 13px; }

/* ===== 评论 ===== */
.comment-form { margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.comment-form h3 { margin-bottom: 15px; }
.comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 4px; margin-bottom: 15px; font-size: 14px; resize: vertical; }
.comment-form textarea:focus { outline: none; border-color: var(--primary-color); }
.comment-list { display: flex; flex-direction: column; gap: 20px; }
.comment-item { display: flex; gap: 15px; }
.comment-avatar img { width: 50px; height: 50px; border-radius: 50%; }
.comment-content { flex: 1; }
.comment-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.comment-author { font-weight: bold; font-size: 14px; }
.comment-rating { color: var(--warning-color); font-size: 14px; }
.comment-body { color: #666; margin-bottom: 10px; font-size: 14px; line-height: 1.8; }
.comment-time { font-size: 13px; color: var(--text-muted); }

/* ===== 按钮系统 ===== */
.btn { display: inline-block; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; text-align: center; transition: all .2s; line-height: 1.5; }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-outline { background: #fff; border: 1px solid var(--border-color); color: #555; }
.btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); }
.btn-warning { background: var(--warning-color); color: #fff; }
.btn-danger { background: var(--danger-color); color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 5px 12px; font-size: 13px; }

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

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 4px; font-size: 14px; }
.pagination a { background: #fff; border: 1px solid var(--border-color); color: #555; }
.pagination a:hover { border-color: var(--primary-color); color: var(--primary-color); }
.pagination span.current { background: var(--primary-color); color: #fff; }

/* ===== 弹窗 ===== */
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-content { background: #fff; border-radius: var(--radius); max-width: 500px; width: 90%; max-height: 80vh; overflow: auto; }
.modal-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.modal-close { font-size: 24px; cursor: pointer; color: #999; }
.modal-close:hover { color: #333; }
.modal-body { padding: 20px; }

/* ===== Toast ===== */
#toast-container { position: fixed; top: 80px; right: 20px; z-index: 2000; }
.toast { padding: 12px 20px; background: #333; color: #fff; border-radius: 4px; margin-bottom: 10px; font-size: 14px; animation: toast-in .3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.toast.success { background: var(--success-color); }
.toast.error { background: var(--danger-color); }
@keyframes toast-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== 确认框 ===== */
.confirm-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1500; display: flex; align-items: center; justify-content: center; }
.confirm-box { background: #fff; padding: 30px; border-radius: var(--radius); max-width: 400px; width: 90%; text-align: center; }
.confirm-title { font-size: 18px; margin-bottom: 15px; }
.confirm-message { margin-bottom: 20px; color: #666; font-size: 14px; }
.confirm-buttons { display: flex; gap: 15px; justify-content: center; }
.confirm-buttons button { padding: 8px 24px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; }
.btn-cancel { background: #f0f0f0; color: #666; }
.btn-confirm { background: var(--primary-color); color: #fff; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 14px; transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-color); }

/* ===== 底部 ===== */
.site-footer { background: #1a1a2e; color: #fff; padding: 50px 0 20px; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-section h4 { margin-bottom: 20px; font-size: 16px; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 10px; }
.footer-section a { color: #aaa; font-size: 14px; }
.footer-section a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #444; }
.footer-bottom p { color: #aaa; font-size: 13px; margin-bottom: 5px; }
.social-links { display: flex; gap: 15px; }

/* ===== 视频播放页 ===== */
.video-player-wrap { background: #000; position: relative; }
.video-container { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; }
.video-js { width: 100%; }
.course-play-page { display: flex; min-height: calc(100vh - 200px); }
.video-main { flex: 1; padding: 20px; }
.video-sidebar { width: 300px; background: #f5f5f5; border-left: 1px solid #ddd; }
.video-title { font-size: 18px; margin-bottom: 15px; color: #333; }
.lesson-list-sidebar { max-height: 500px; overflow-y: auto; }
.lesson-item-sidebar { padding: 12px 15px; border-bottom: 1px solid #eee; cursor: pointer; font-size: 14px; transition: background .2s; }
.lesson-item-sidebar:hover { background: #e8f4fc; }
.lesson-item-sidebar.active { background: var(--primary-color); color: #fff; }
.lesson-item-sidebar .lesson-status { font-size: 12px; color: #888; }
.lesson-item-sidebar.active .lesson-status { color: #ddd; }
.progress-bar { height: 4px; background: #ddd; margin-top: 8px; border-radius: 2px; overflow: hidden; }
.progress-bar .progress-fill { height: 100%; background: var(--primary-color); border-radius: 2px; transition: width .3s; }
.learn-progress { margin: 20px 0; padding: 15px; background: #fff; border-radius: var(--radius); }
.learn-progress span { font-size: 14px; color: #666; }
.video-extra { margin-top: 30px; }
.extra-tabs { display: flex; gap: 20px; border-bottom: 1px solid #eee; margin-bottom: 15px; }
.extra-tabs div { padding: 10px 0; cursor: pointer; color: #666; border-bottom: 2px solid transparent; font-size: 14px; }
.extra-tabs div:first-child { color: var(--primary-color); border-bottom-color: var(--primary-color); }

/* ===== 认证页面 ===== */
.auth-page { padding: 60px 0; background: #f5f5f5; min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; }
.auth-card { max-width: 400px; width: 100%; background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-card h2 { text-align: center; margin-bottom: 30px; font-size: 22px; }
.alert { padding: 12px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; }
.alert-error { background: #fee; color: #c33; }
.alert-success { background: #efe; color: #3c3; }
.checkbox-label { display: flex; align-items: center; font-weight: normal; font-size: 14px; }
.checkbox-label input { margin-right: 8px; }
.btn-block { display: block; width: 100%; text-align: center; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; }
.auth-footer a { color: var(--primary-color); }

/* ===== 个人中心 ===== */
.user-page { padding: 30px 0; min-height: calc(100vh - 200px); background: #f5f5f5; }
.user-layout { display: flex; gap: 20px; }
.user-sidebar { width: 240px; flex-shrink: 0; }
.user-content { flex: 1; min-width: 0; }
.user-info-card { background: #fff; padding: 20px; border-radius: var(--radius); text-align: center; margin-bottom: 20px; }
.avatar-lg { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.user-info-card h3 { margin: 10px 0 5px; font-size: 16px; }
.user-info-card p { color: #888; font-size: 14px; margin: 0; }
.vip-badge { display: inline-block; background: linear-gradient(135deg, #FFD700, #FFA500); color: #fff; padding: 4px 12px; border-radius: 12px; font-size: 12px; margin-top: 10px; }
.user-menu { background: #fff; border-radius: var(--radius); overflow: hidden; }
.user-menu a { display: block; padding: 14px 20px; border-bottom: 1px solid #f0f0f0; color: #555; font-size: 14px; transition: all .2s; }
.user-menu a:hover, .user-menu a.active { background: var(--primary-color); color: #fff; border-bottom-color: var(--primary-color); }
.user-menu a:last-child { border-bottom: none; }
.content-box { background: #fff; padding: 20px; border-radius: var(--radius); }
.content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.content-header h2 { margin: 0; font-size: 18px; }

/* ===== 购物车 ===== */
.cart-layout { display: flex; gap: 20px; }
.cart-list { flex: 1; }
.cart-item { display: flex; gap: 15px; padding: 15px; background: #fff; border-radius: var(--radius); margin-bottom: 15px; align-items: center; }
.item-checkbox { padding: 10px; }
.item-checkbox input { width: 18px; height: 18px; }
.item-cover { width: 120px; flex-shrink: 0; }
.item-cover img { width: 100%; height: 70px; object-fit: cover; border-radius: 4px; }
.item-info { flex: 1; min-width: 0; }
.item-info h3 { margin: 0 0 8px; font-size: 15px; }
.item-meta { font-size: 13px; color: #888; }
.item-meta .price { color: var(--danger-color); margin-left: 10px; }
.item-meta .price-free { color: var(--success-color); margin-left: 10px; }
.item-action { flex-shrink: 0; }
.btn-remove { background: none; border: none; color: #999; cursor: pointer; font-size: 13px; padding: 6px 12px; }
.btn-remove:hover { color: var(--danger-color); }
.cart-summary { width: 300px; background: #fff; padding: 20px; border-radius: var(--radius); height: fit-content; position: sticky; top: 80px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.summary-row.total { font-size: 18px; font-weight: bold; border-bottom: none; padding-top: 15px; }
.total-price { color: var(--danger-color); }

/* ===== 支付页 ===== */
.pay-layout { max-width: 600px; margin: 0 auto; }
.order-summary { background: #fff; padding: 20px; border-radius: var(--radius); margin-bottom: 20px; }
.order-no { font-size: 14px; color: #888; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.order-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.order-item img { width: 60px; height: 35px; object-fit: cover; border-radius: 3px; }
.order-item span:first-of-type { flex: 1; }
.order-item .price { color: var(--danger-color); }
.order-total { display: flex; justify-content: space-between; padding: 15px 0 0; font-size: 18px; font-weight: bold; }
.total-price { color: var(--danger-color); }
.pay-methods { background: #fff; padding: 20px; border-radius: var(--radius); }
.method-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.method-item { display: flex; align-items: center; gap: 10px; padding: 15px; border: 2px solid #ddd; border-radius: var(--radius); cursor: pointer; transition: all .2s; }
.method-item:hover { border-color: var(--primary-color); }
.method-item.selected { border-color: var(--primary-color); background: #f0f7ff; }
.method-item input { display: none; }
.method-name { font-size: 15px; }
.pay-tips { margin-top: 20px; padding: 15px; background: #f5f5f5; border-radius: 4px; font-size: 13px; color: #666; }
.pay-tips p { margin: 5px 0; }

/* ===== 结算页 ===== */
.checkout-layout { display: flex; gap: 20px; }
.checkout-items { flex: 1; }
.checkout-item { display: flex; gap: 15px; padding: 15px; background: #fff; border-radius: var(--radius); margin-bottom: 10px; align-items: center; }
.checkout-item img { width: 120px; height: 70px; object-fit: cover; border-radius: 4px; }
.checkout-item .item-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.checkout-item h4 { margin: 0 0 10px; font-size: 15px; }
.checkout-summary { width: 350px; background: #fff; padding: 20px; border-radius: var(--radius); height: fit-content; position: sticky; top: 80px; }
.coupon-input { display: flex; gap: 10px; }
.coupon-input input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }

/* ===== 订单 ===== */
.order-item { display: flex; gap: 15px; padding: 15px; background: #fafafa; border-radius: var(--radius); margin-bottom: 15px; }
.order-cover { width: 100px; flex-shrink: 0; }
.order-cover img { width: 100%; height: 60px; object-fit: cover; border-radius: 4px; }
.order-info { flex: 1; min-width: 0; }
.order-info h3 { margin: 0 0 8px; font-size: 15px; }
.order-meta { font-size: 13px; color: #888; margin-bottom: 5px; }
.order-meta span { margin-right: 15px; }
.status-pending { color: #f60; }
.status-paid { color: #090; }
.status-cancelled { color: #999; }
.order-actions { display: flex; flex-direction: column; gap: 8px; justify-content: center; }

/* ===== 我的课程 ===== */
.my-course-list { display: flex; flex-direction: column; gap: 15px; }
.my-course-item { display: flex; gap: 15px; padding: 15px; background: #fafafa; border-radius: var(--radius); }
.my-course-item .course-cover { width: 160px; flex-shrink: 0; }
.my-course-item .course-cover img { width: 100%; height: 90px; object-fit: cover; border-radius: 4px; }
.my-course-item .course-info { flex: 1; min-width: 0; }
.my-course-item .course-info h3 { margin: 0 0 8px; font-size: 16px; }
.my-course-item .course-info h3 a { color: #333; text-decoration: none; }
.my-course-item .course-info h3 a:hover { color: var(--primary-color); }
.course-meta-list { font-size: 13px; color: #888; margin-bottom: 10px; }
.course-meta-list span { margin-right: 15px; }
.progress-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.progress-wrap .progress-bar { flex: 1; height: 6px; background: #e0e0e0; border-radius: 3px; overflow: hidden; }
.progress-wrap .progress-fill { height: 100%; background: var(--primary-color); border-radius: 3px; }
.progress-wrap .progress-text { font-size: 13px; color: var(--primary-color); }
.last-learn { font-size: 13px; color: #888; margin: 0; }

/* ===== 收藏 ===== */
.fav-list { display: flex; flex-direction: column; gap: 15px; }
.fav-item { display: flex; gap: 15px; padding: 15px; background: #fafafa; border-radius: var(--radius); }
.fav-cover { width: 120px; flex-shrink: 0; }
.fav-cover img { width: 100%; height: 70px; object-fit: cover; border-radius: 4px; }
.fav-info { flex: 1; min-width: 0; }
.fav-info h3 { margin: 0 0 8px; font-size: 15px; }
.fav-info h3 a { color: #333; text-decoration: none; }
.fav-meta { font-size: 13px; color: #888; margin-bottom: 5px; }
.fav-meta .price { color: var(--danger-color); margin-left: 10px; }
.fav-time { font-size: 12px; color: #aaa; }
.fav-action { display: flex; flex-direction: column; gap: 8px; justify-content: center; }

/* ===== 评论(用户) ===== */
.comment-user-list { display: flex; flex-direction: column; gap: 15px; }
.comment-user-item { display: flex; gap: 15px; padding: 15px; background: #fafafa; border-radius: var(--radius); }
.comment-user-cover { width: 80px; flex-shrink: 0; }
.comment-user-cover img { width: 100%; height: 50px; object-fit: cover; border-radius: 4px; }
.comment-user-info { flex: 1; }
.comment-user-info h3 { margin: 0 0 5px; font-size: 14px; }
.comment-user-rating { color: var(--warning-color); font-size: 13px; margin-bottom: 5px; }
.comment-user-text { font-size: 14px; color: #666; margin: 5px 0; }
.comment-user-time { font-size: 12px; color: #aaa; }

/* ===== 个人资料 ===== */
.profile-form { max-width: 500px; }
.avatar-group .avatar-upload { display: flex; gap: 20px; align-items: flex-start; }
.avatar-preview { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.avatar-actions input[type="file"] { display: none; }
.help-text { font-size: 12px; color: #888; margin-top: 5px; }
.form-actions { margin-top: 30px; }
.form-group input:disabled { background: #f5f5f5; color: #888; }