/* ========= 前台样式 - 响应式支持PC+手机 ========= */
/* 维吾尔语字体支持 */
@font-face { 
    font-family: 'UKIJ Ekran'; 
    src: url('ug/UKIJEkran.eot'); 
    src: url('ug/UKIJEkran.eot?#iefix') format('embedded-opentype'), 
        url('ug/UKIJEkran.woff2') format('woff2'), 
        url('ug/UKIJEkran.woff') format('woff'); 
    font-weight: normal; 
    font-style: normal; 
    font-display: swap; 
} 

@font-face { 
    font-family: 'UKIJ Ekran'; 
    src: url('ug/UKIJEkran-Bold.eot'); 
    src: url('ug/UKIJEkran-Bold.eot?#iefix') format('embedded-opentype'), 
        url('ug/UKIJEkran-Bold.woff2') format('woff2'), 
        url('ug/UKIJEkran-Bold.woff') format('woff'); 
    font-weight: bold; 
    font-style: normal; 
    font-display: swap; 
} 

* { margin:0; padding:0; box-sizing:border-box;   font-family: -apple-system, BlinkMacSystemFont, 'UKIJ Ekran','Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
body {   font-family: -apple-system, BlinkMacSystemFont, 'UKIJ Ekran','Segoe UI', Roboto, Helvetica, Arial, sans-serif;
 background:#f7f8fa; color:#333; font-size:14px; line-height:1.6; -webkit-font-smoothing:antialiased; }
a { text-decoration:none; color:inherit; transition:color .2s; }
a:hover { color:#667eea; }
ul { list-style:none; }
img { max-width:100%; vertical-align:middle; }
input, button, textarea, select { font-family: -apple-system, BlinkMacSystemFont, 'UKIJ Ekran','Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ========= 按钮：去除浏览器默认黑色/灰色描边 ========= */
button {
    border: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}
button:focus { outline: none !important; box-shadow: 0 0 0 3px rgba(99,102,241,.25) !important; }
a, button, .cursor-pointer, [onclick] { -webkit-tap-highlight-color: transparent; }

/* ========= 顶部导航 ========= */
.site-header { background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.06); position:sticky; top:0; z-index:100; }
.nav-container { max-width:1400px; margin:0 auto; padding:0 20px; display:flex; align-items:center; justify-content:space-between; height:64px; }
.nav-logo { display:flex; align-items:center; gap:10px; font-size:20px; font-weight:bold; color:#333; }
.nav-logo-icon { width:36px; height:36px; background:linear-gradient(135deg, #667eea, #764ba2); border-radius:10px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:20px; }
.nav-menu { display:flex; align-items:center; gap:4px; }
.nav-menu a { padding:8px 16px; color:#555; font-size:15px; border-radius:6px; transition:all .2s; }
.nav-menu a:hover, .nav-menu a.active { background:#f0f3ff; color:#667eea; }
.nav-user { display:flex; align-items:center; gap:12px; }
.nav-user .btn-login { padding:6px 18px; border:1px solid #667eea; color:#667eea; border-radius:20px; font-size:14px; transition:all .2s; }
.nav-user .btn-login:hover { background:#667eea; color:#fff; }
.nav-user .btn-register { padding:6px 18px; background:linear-gradient(135deg, #667eea, #764ba2); color:#fff; border-radius:20px; font-size:14px; }
.nav-user .user-info { display:flex; align-items:center; gap:8px; cursor:pointer; position:relative; }
.nav-user .user-avatar { width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg, #667eea, #764ba2); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:bold; }
.mobile-toggle { display:none; background:none; border:none; font-size:24px; cursor:pointer; color:#555; }

@media (max-width: 768px) {
    .nav-menu { display:none; position:absolute; top:64px; left:0; right:0; background:#fff; flex-direction:column; padding:12px; box-shadow:0 4px 12px rgba(0,0,0,.1); z-index:99; }
    .nav-menu.mobile-show { display:flex; }
    .nav-menu a { padding:12px 16px; border-bottom:1px solid #f5f5f5; border-radius:0; }
    .mobile-toggle { display:block; }
    .nav-user .btn-login, .nav-user .btn-register { padding:5px 12px; font-size:13px; }
    .nav-container { padding:0 15px; height:56px; }
}

/* ========= 通用按钮 ========= */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:8px 20px; border-radius:6px; border:1px solid transparent; font-size:14px; cursor:pointer; transition:all .2s; background:#fff; color:#333; }
.btn-primary { background:linear-gradient(135deg, #667eea, #764ba2); color:#fff; border:none; }
.btn-primary:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(102,126,234,.4); color:#fff; }
.btn-outline { border:1px solid #667eea; color:#667eea; background:#fff; }
.btn-outline:hover { background:#667eea; color:#fff; }
.btn-lg { padding:12px 28px; font-size:15px; }
.btn-block { display:flex; width:100%; }
.btn-danger { background:#ff4d4f; color:#fff; border:none; }

/* ========= 主容器 ========= */
.container { max-width:1400px; margin:0 auto; padding:0 20px; }
@media (max-width: 1440px) { .container, .nav-container { max-width:1200px; } }
@media (max-width: 1200px) { .container, .nav-container { max-width:100%; } }
@media (max-width: 768px) { .container { padding:0 15px; } }

/* ========= 轮播图 ========= */
.banner-section { margin-top:20px; border-radius:12px; overflow:hidden; box-shadow:0 4px 20px rgba(0,0,0,.08); }
.banner-slider { position:relative; }
.banner-slide { position:relative; height:380px; background-size:cover; background-position:center; display:flex; align-items:center; }
.banner-slide::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.1)); }
.banner-content { position:relative; z-index:2; padding:0 50px; color:#fff; max-width:600px; }
.banner-content h2 { font-size:36px; margin-bottom:16px; font-weight:bold; }
.banner-content p { font-size:16px; opacity:.9; margin-bottom:24px; line-height:1.8; }
@media (max-width: 768px) {
    .banner-slide { height:200px; }
    .banner-content { padding:0 20px; }
    .banner-content h2 { font-size:20px; margin-bottom:8px; }
    .banner-content p { font-size:13px; margin-bottom:12px; }
}

/* ========= 板块标题 ========= */
.section-title { display:flex; align-items:center; justify-content:space-between; margin:30px 0 18px; }
.section-title h2 { font-size:22px; font-weight:600; color:#333; position:relative; padding-left:12px; }
.section-title h2::before { content:''; position:absolute; left:0; top:50%; transform:translateY(-50%); width:4px; height:22px; background:linear-gradient(180deg, #667eea, #764ba2); border-radius:2px; }
.section-title .more-link { color:#999; font-size:14px; }
.section-title .more-link:hover { color:#667eea; }

/* ========= 课程卡片网格 ========= */
.course-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:20px; }
@media (max-width: 992px) { .course-grid { grid-template-columns:repeat(3, 1fr); gap:16px; } }
@media (max-width: 768px) { .course-grid { grid-template-columns:repeat(2, 1fr); gap:12px; } }
@media (max-width: 420px) { .course-grid { grid-template-columns:1fr; } }

.course-card { background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 2px 10px rgba(0,0,0,.05); transition:all .3s; cursor:pointer; }
.course-card:hover { transform:translateY(-4px); box-shadow:0 10px 30px rgba(0,0,0,.12); }
.course-cover { position:relative; aspect-ratio:16/9; background:#f0f0f0; overflow:hidden; }
.course-cover img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.course-card:hover .course-cover img { transform:scale(1.05); }
.course-badge { position:absolute; top:10px; left:10px; padding:3px 10px; border-radius:12px; font-size:12px; font-weight:500; }
.badge-hot { background:#ff4d4f; color:#fff; }
.badge-recommend { background:#52c41a; color:#fff; }
.badge-vip { background:linear-gradient(135deg, #faad14, #d48806); color:#fff; }
.badge-free { background:#1890ff; color:#fff; }
.course-price-tag { position:absolute; bottom:10px; right:10px; background:rgba(0,0,0,.7); color:#fff; padding:3px 10px; border-radius:4px; font-size:13px; font-weight:600; }
.course-info { padding:14px; }
.course-title { font-size:15px; font-weight:500; color:#222; line-height:1.4; margin-bottom:10px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:42px; }
.course-meta { display:flex; align-items:center; justify-content:space-between; font-size:12px; color:#999; }
.course-meta .meta-left { display:flex; align-items:center; gap:10px; }
.course-teacher { display:flex; align-items:center; gap:6px; }
.course-footer { display:flex; align-items:center; justify-content:space-between; padding-top:12px; margin-top:12px; border-top:1px dashed #f0f0f0; }
.course-price { color:#ff4d4f; font-weight:bold; font-size:18px; }
.course-price.free { color:#52c41a; font-size:16px; }
.course-student { color:#999; font-size:12px; }

/* ========= 分类导航 ========= */
.category-bar { background:#fff; border-radius:10px; padding:20px; margin:20px 0; box-shadow:0 2px 10px rgba(0,0,0,.04); display:flex; flex-wrap:wrap; gap:10px; }
.category-item { padding:8px 18px; border-radius:20px; font-size:14px; color:#666; background:#f5f7fa; transition:all .2s; }
.category-item:hover { background:#e8eaff; color:#667eea; }
.category-item.active { background:linear-gradient(135deg, #667eea, #764ba2); color:#fff; }

/* ========= 课程详情页 ========= */
.course-detail-header { background:linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color:#fff; padding:40px 0; }
.course-detail-wrap { display:grid; grid-template-columns:1fr 420px; gap:30px; align-items:flex-start; }
@media (max-width: 1200px) { .course-detail-wrap { grid-template-columns:1fr 360px; } }
@media (max-width: 992px) { .course-detail-wrap { grid-template-columns:1fr; } }
.course-detail-main h1 { font-size:28px; margin-bottom:16px; line-height:1.3; }
.course-detail-desc { font-size:15px; opacity:.85; line-height:1.8; margin-bottom:24px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.course-detail-meta { display:flex; gap:24px; flex-wrap:wrap; }
.meta-item { display:flex; align-items:center; gap:8px; opacity:.85; font-size:14px; }
.course-detail-side { position:sticky; top:80px; }
.course-detail-card { background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 4px 20px rgba(0,0,0,.1); }
.course-detail-card img { width:100%; aspect-ratio:16/9; object-fit:cover; }
.detail-card-body { padding:20px; }
.price-current { color:#ff4d4f; font-size:32px; font-weight:bold; }
.price-original { color:#999; text-decoration:line-through; margin-left:10px; font-size:14px; }
.action-buttons { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:20px 0; }
@media (max-width: 480px) { .action-buttons { grid-template-columns:1fr; } }
.course-tabs { margin-top:30px; background:#fff; border-radius:12px; padding:30px; box-shadow:0 2px 10px rgba(0,0,0,.04); }
.tab-nav { display:flex; gap:30px; border-bottom:2px solid #f0f0f0; margin-bottom:24px; }
.tab-nav-item { padding:10px 0; font-size:16px; color:#666; cursor:pointer; position:relative; font-weight:500; }
.tab-nav-item.active { color:#667eea; }
.tab-nav-item.active::after { content:''; position:absolute; bottom:-2px; left:0; right:0; height:2px; background:linear-gradient(90deg, #667eea, #764ba2); border-radius:2px; }

/* ========= 视频列表 ========= */
.video-list { background:#fff; border-radius:12px; padding:20px; box-shadow:0 2px 10px rgba(0,0,0,.04); }
.video-list-header { padding:16px 20px; background:#fafafa; border-radius:8px; margin-bottom:16px; display:flex; align-items:center; justify-content:space-between; font-weight:500; }
.video-item { display:flex; align-items:center; padding:14px 16px; border-radius:8px; transition:background .2s; gap:16px; border-bottom:1px solid #f5f5f5; }
.video-item:last-child { border-bottom:none; }
.video-item:hover { background:#f9faff; }
.video-index { width:28px; height:28px; border-radius:6px; background:#f0f0f0; display:flex; align-items:center; justify-content:center; font-weight:500; color:#666; font-size:13px; flex-shrink:0; }
.video-item.playing .video-index { background:#667eea; color:#fff; }
.video-main { flex:1; min-width:0; }
.video-title { font-size:14px; color:#333; margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.video-meta { font-size:12px; color:#999; display:flex; gap:14px; flex-wrap:wrap; }
.video-perm { padding:2px 8px; border-radius:4px; font-size:11px; font-weight:500; }
.perm-free { background:#e6ffed; color:#52c41a; }
.perm-trial { background:#fffbe6; color:#faad14; }
.perm-paid { background:#fff1f0; color:#ff4d4f; }
.perm-vip { background:#fff7e6; color:#fa8c16; }
.perm-svip { background:#f9f0ff; color:#722ed1; }
.perm-purchased { background:#e6ffed; color:#52c41a; }
.perm-vip-active { background:#e6f7ff; color:#1890ff; }
.perm-login { background:#f5f5f5; color:#999; }
.perm-trial-available { background:#fffbe6; color:#faad14; }
.video-play-btn { display:inline-block; padding:6px 14px; border-radius:6px; font-size:13px; background:#f5f7fa; color:#666; transition:all .2s; cursor:pointer; text-decoration:none; }
.video-play-btn:hover { background:#667eea; color:#fff; }
.video-buy-btn { background:linear-gradient(135deg,#ff4d4f,#f5222d); color:#fff; font-weight:600; box-shadow:0 2px 8px rgba(245,34,45,.25); }
.video-buy-btn:hover { background:linear-gradient(135deg,#ff7875,#ff4d4f); color:#fff; box-shadow:0 4px 12px rgba(245,34,45,.35); }
.dark .video-buy-btn { background:linear-gradient(135deg,#ff4d4f,#f5222d); color:#fff; }
.dark .video-buy-btn:hover { background:linear-gradient(135deg,#ff7875,#ff4d4f); }
@media (max-width: 768px) {
    .video-item { padding:12px; gap:10px; }
    .video-index { width:24px; height:24px; font-size:12px; }
}

/* ========= 视频播放页 ========= */
.player-wrapper { background:#000; border-radius:12px; overflow:hidden; margin-bottom:20px; }
#kp-player-mount { width:100%; min-height:300px; aspect-ratio:16/9; background:#000; }
.player-video { width:100%; aspect-ratio:16/9; background:#000; }
.video-info-bar { background:#fff; border-radius:12px; padding:20px 24px; margin-bottom:20px; box-shadow:0 2px 10px rgba(0,0,0,.04); }
.video-info-bar h1 { font-size:22px; margin-bottom:12px; color:#222; }
.video-stats { display:flex; gap:20px; flex-wrap:wrap; color:#999; font-size:13px; }
.trial-mask { position:relative; }
.trial-overlay { position:absolute; inset:0; background:rgba(0,0,0,.75); display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; z-index:10; padding:20px; text-align:center; }
.trial-overlay h3 { font-size:24px; margin-bottom:12px; }
.trial-overlay p { opacity:.85; margin-bottom:20px; max-width:450px; }
.trial-overlay .action-buttons { max-width:320px; }
@media (max-width: 768px) {
    .trial-overlay h3 { font-size:18px; }
    .trial-overlay p { font-size:13px; }
}

/* ========= 用户登录/注册 ========= */
.auth-page { min-height:calc(100vh - 64px); background:linear-gradient(135deg, #667eea 0%, #764ba2 100%); display:flex; align-items:center; justify-content:center; padding:40px 20px; }
.auth-box { background:#fff; border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,.25); width:100%; max-width:420px; padding:40px 35px; }
.auth-tabs { display:flex; margin-bottom:30px; border-bottom:2px solid #f0f0f0; }
.auth-tab { flex:1; padding:12px; text-align:center; font-size:16px; color:#999; cursor:pointer; position:relative; font-weight:500; }
.auth-tab.active { color:#667eea; }
.auth-tab.active::after { content:''; position:absolute; bottom:-2px; left:20%; right:20%; height:2px; background:linear-gradient(90deg, #667eea, #764ba2); border-radius:2px; }
.form-group { margin-bottom:18px; }
.form-control { width:100%; padding:11px 14px; border:1px solid #e0e0e0; border-radius:8px; font-size:14px; transition:all .2s; background:#fff; }
.form-control:focus { border-color:#667eea; box-shadow:0 0 0 3px rgba(102,126,234,.1); }

/* ========= 会员中心 ========= */
.uc-layout { display:grid; grid-template-columns:220px 1fr; gap:24px; padding:24px 0; }
@media (max-width: 992px) { .uc-layout { grid-template-columns:1fr; } }
.uc-sidebar { background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 2px 10px rgba(0,0,0,.04); height:fit-content; position:sticky; top:80px; }
.uc-user-card { padding:24px 20px; text-align:center; background:linear-gradient(135deg, #667eea, #764ba2); color:#fff; }
.uc-avatar { width:64px; height:64px; border-radius:50%; background:rgba(255,255,255,.25); margin:0 auto 10px; display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:bold; border:2px solid rgba(255,255,255,.4); }
.uc-nickname { font-size:16px; font-weight:500; margin-bottom:4px; }
.uc-level { font-size:12px; opacity:.9; }
.uc-menu { padding:10px 0; }
.uc-menu a { display:flex; align-items:center; gap:10px; padding:12px 20px; color:#555; font-size:14px; transition:all .2s; border-left:3px solid transparent; }
.uc-menu a:hover { background:#f7f8ff; color:#667eea; }
.uc-menu a.active { background:#f0f3ff; color:#667eea; border-left-color:#667eea; font-weight:500; }
.uc-menu i { width:16px; text-align:center; }
.uc-main { min-width:0; }
.uc-content { background:#fff; border-radius:12px; padding:24px; box-shadow:0 2px 10px rgba(0,0,0,.04); min-height:400px; }
.uc-content-title { font-size:18px; font-weight:600; margin-bottom:20px; padding-bottom:14px; border-bottom:2px solid #f5f5f5; }

/* ========= 订单列表 ========= */
.order-item { display:grid; grid-template-columns:80px 1fr auto; gap:16px; padding:16px; background:#fafafa; border-radius:10px; margin-bottom:12px; align-items:center; transition:background .2s; }
.order-item:hover { background:#f0f3ff; }
.order-cover { width:80px; height:60px; border-radius:6px; background:#eee; object-fit:cover; }
.order-info h4 { font-size:14px; color:#333; margin-bottom:6px; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.order-info p { font-size:12px; color:#999; margin-bottom:2px; }
.order-price { color:#ff4d4f; font-weight:bold; }

/* ========= 播放记录 ========= */
.record-item { display:grid; grid-template-columns:120px 1fr auto; gap:16px; padding:16px; background:#fafafa; border-radius:10px; margin-bottom:12px; align-items:center; }
@media (max-width: 520px) {
    .record-item, .order-item { grid-template-columns:1fr; }
    .record-cover, .order-cover { width:100%; height:160px; }
}
.record-cover { width:120px; height:80px; border-radius:6px; background:#eee; object-fit:cover; }
.progress-bar { height:6px; background:#eee; border-radius:3px; margin-top:6px; overflow:hidden; }
.progress-fill { height:100%; background:linear-gradient(90deg, #667eea, #764ba2); border-radius:3px; }

/* ========= 会员等级卡片 ========= */
.member-plans { display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; margin:30px 0; }
@media (max-width: 768px) { .member-plans { grid-template-columns:1fr; } }
.plan-card { border:2px solid #e8e8e8; border-radius:14px; padding:30px 24px; text-align:center; transition:all .3s; background:#fff; position:relative; }
.plan-card:hover { transform:translateY(-4px); box-shadow:0 10px 30px rgba(0,0,0,.1); }
.plan-card.featured { border-color:transparent; background:linear-gradient(180deg, #fff7e6 0%, #fff 100%); box-shadow:0 10px 30px rgba(250,173,20,.2); }
.plan-card.featured::before { content:'推荐'; position:absolute; top:0; right:20px; background:linear-gradient(135deg, #faad14, #d48806); color:#fff; padding:4px 14px; border-radius:0 0 8px 8px; font-size:12px; font-weight:500; }
.plan-level { font-size:22px; font-weight:bold; margin-bottom:8px; }
.plan-tag { display:inline-block; padding:3px 12px; border-radius:12px; font-size:12px; margin-bottom:20px; }
.plan-price { margin-bottom:24px; }
.plan-price .amount { font-size:40px; font-weight:bold; color:#ff4d4f; }
.plan-price .period { color:#999; font-size:14px; }
.plan-features { text-align:left; margin-bottom:24px; }
.plan-features li { padding:6px 0; color:#555; font-size:14px; display:flex; align-items:center; gap:8px; }
.plan-features li::before { content:'✓'; color:#52c41a; font-weight:bold; }

/* ========= 通用表单弹窗 ========= */
.modal-mask { position:fixed; inset:0; background:rgba(0,0,0,.5); display:none; align-items:center; justify-content:center; z-index:1000; padding:20px; }
.modal-mask.show { display:flex; }
.modal { background:#fff; border-radius:12px; width:100%; max-width:500px; overflow:hidden; box-shadow:0 10px 40px rgba(0,0,0,.2); }
.modal-header { padding:18px 24px; border-bottom:1px solid #f0f0f0; display:flex; align-items:center; justify-content:space-between; }
.modal-title { font-size:17px; font-weight:600; }
.modal-close { background:none; border:none; font-size:22px; cursor:pointer; color:#999; line-height:1; }
.modal-body { padding:24px; }
.modal-footer { padding:16px 24px; border-top:1px solid #f0f0f0; display:flex; justify-content:flex-end; gap:10px; }

/* ========= 分页 ========= */
.pagination { display:flex; align-items:center; justify-content:center; gap:8px; margin:40px 0 20px; flex-wrap:wrap; }
.pagination a, .pagination span { display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; padding:0 12px; border-radius:6px; font-size:14px; transition:all .2s; }
.pagination a { border:1px solid #e0e0e0; color:#666; background:#fff; }
.pagination a:hover { border-color:#667eea; color:#667eea; }
.pagination .current { background:linear-gradient(135deg, #667eea, #764ba2); color:#fff; border-color:transparent; }

/* ========= Footer ========= */
.site-footer { background:#1f2029; color:rgba(255,255,255,.6); padding:40px 0 20px; margin-top:50px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:30px; margin-bottom:30px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns:1fr 1fr; gap:20px; } }
.footer-grid h4 { color:#fff; font-size:15px; margin-bottom:16px; }
.footer-grid p, .footer-grid li { font-size:13px; line-height:2; }
.footer-grid a:hover { color:#fff; }
.footer-bottom { text-align:center; padding-top:20px; border-top:1px solid rgba(255,255,255,.1); font-size:13px; }

/* ========= Alert/Tips ========= */
.alert { padding:12px 16px; border-radius:8px; margin-bottom:16px; font-size:14px; border:1px solid transparent; }
.alert-success { background:#f6ffed; color:#52c41a; border-color:#b7eb8f; }
.alert-error { background:#fff2f0; color:#ff4d4f; border-color:#ffccc7; }
.alert-warning { background:#fffbe6; color:#faad14; border-color:#ffe58f; }
.alert-info { background:#e6f7ff; color:#1890ff; border-color:#91d5ff; }

/* ========= 空状态 ========= */
.empty-state { padding:60px 20px; text-align:center; }
.empty-icon { font-size:72px; opacity:.2; margin-bottom:16px; }
.empty-text { color:#999; font-size:15px; margin-bottom:20px; }

/* ==========================================================
   RTL 维吾尔语 / 阿拉伯语 适配
   ========================================================== */
[dir="rtl"] body {
      font-family: -apple-system, BlinkMacSystemFont, 'UKIJ Ekran','Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    font-size: 15px;
    line-height: 1.9;
}
[dir="rtl"] * { direction: rtl; }
[dir="rtl"] .nav-container,
[dir="rtl"] .container { text-align: right; }
[dir="rtl"] .nav-menu a,
[dir="rtl"] .uc-menu a { justify-content: flex-start; }
[dir="rtl"] .section-title h2 { padding-left: 0; padding-right: 12px; }
[dir="rtl"] .section-title h2::before {
    left: auto; right: 0;
    background: linear-gradient(180deg, #764ba2, #667eea);
}
[dir="rtl"] .course-badge { left: auto; right: 10px; }
[dir="rtl"] .course-price-tag { right: auto; left: 10px; }
[dir="rtl"] .tab-nav-item.active::after { left: auto; right: 0; }
[dir="rtl"] .uc-menu a {
    border-left: none; border-right: 3px solid transparent;
    padding: 12px 20px 12px 12px;
}
[dir="rtl"] .uc-menu a.active {
    border-right-color: #667eea; border-left: 0;
}
[dir="rtl"] .course-meta .meta-left { flex-direction: row-reverse; }
[dir="rtl"] .plan-card.featured::before { left: 20px; right: auto; border-radius: 0 0 8px 8px; }
[dir="rtl"] .plan-features li { flex-direction: row-reverse; }
[dir="rtl"] .plan-features li::before { content: '✓'; }
[dir="rtl"] .video-list-header,
[dir="rtl"] .video-item { flex-direction: row-reverse; }
[dir="rtl"] .pagination { flex-direction: row-reverse; }
[dir="rtl"] .auth-tab.active::after { left: auto; right: 20%; }
[dir="rtl"] .banner-slide::after {
    background: linear-gradient(270deg, rgba(0,0,0,.6), rgba(0,0,0,.1));
}
[dir="rtl"] .banner-content { padding: 0 50px; }
[dir="rtl"] .form-control, [dir="rtl"] input, [dir="rtl"] textarea {
    text-align: right;
}
[dir="rtl"] .record-item, [dir="rtl"] .order-item { direction: rtl; }
/* ================== 语言切换器 ================== */
.lang-switcher {
    display: inline-flex; align-items: center; gap: 4px;
    background: #f5f7fa; border-radius: 18px; padding: 2px;
    margin-right: 8px;
}
[dir="rtl"] .lang-switcher { margin-right: 0; margin-left: 8px; }
.lang-switcher a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; height: 26px; padding: 0 10px; font-size: 12px;
    color: #666; border-radius: 16px; transition: all .2s;
    font-weight: 500;
}
.lang-switcher a.active { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }

/* 播放器容器：禁用右键下载提示 */
.player-wrapper video::-webkit-media-controls-enclosure {
    overflow: hidden;
}
.player-wrapper video::-webkit-media-controls-panel {
    transform: translateY(30px);
}
.kp-player-mask {
    position: absolute; inset: 0; z-index: 2;
    /* 允许事件穿透给 DPlayer 控件 */
    pointer-events: none;
    background: transparent;
}

/* ============================================================
   手机版 / Mobile 专用样式
   ============================================================ */

/* --- 全局手机容器优化 --- */


/* 维吾尔语字体支持 */
@font-face { 
    font-family: 'UKIJ Ekran'; 
    src: url('ug/UKIJEkran.eot'); 
    src: url('ug/UKIJEkran.eot?#iefix') format('embedded-opentype'), 
        url('ug/UKIJEkran.woff2') format('woff2'), 
        url('ug/UKIJEkran.woff') format('woff'); 
    font-weight: normal; 
    font-style: normal; 
    font-display: swap; 
} 

@font-face { 
    font-family: 'UKIJ Ekran'; 
    src: url('ug/UKIJEkran-Bold.eot'); 
    src: url('ug/UKIJEkran-Bold.eot?#iefix') format('embedded-opentype'), 
        url('ug/UKIJEkran-Bold.woff2') format('woff2'), 
        url('ug/UKIJEkran-Bold.woff') format('woff'); 
    font-weight: bold; 
    font-style: normal; 
    font-display: swap; 
} 


@media (max-width: 640px) {
    html { -webkit-text-size-adjust: 100%; }
    body {
        font-size: 14px;
        background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 30%, #eef2ff 100%);
        color: #0f172a;
        -webkit-font-smoothing: antialiased;
          font-family: -apple-system, BlinkMacSystemFont, 'UKIJ Ekran','Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    }

    /* 主内容 padding 安全区（底部避开 Tab 栏） */
    main.pb-20 { padding-bottom: 88px !important; }

    /* iPhone 安全区适配 */
    .safe-top    { padding-top:    env(safe-area-inset-top); }
    .safe-bottom { padding-bottom: env(safe-area-inset-bottom); }

    /* 全局文字颜色统一 */
    .text-gray-800, .text-gray-900 { color: #0f172a !important; }
    .text-gray-600 { color: #475569 !important; }
    .text-gray-500 { color: #64748b !important; }
    .text-gray-400 { color: #94a3b8 !important; }

    /* 紫色主题强调：indigo->purple */
    .text-purple-600 { color: #6d28d9 !important; }
}

/* --- 手机版顶部导航条优化 --- */
@media (max-width: 640px) {
    header.sticky.top-0.z-50 {
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        background: rgba(255, 255, 255, 0.88) !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    }
    header .h-14 { height: 52px; }
    header .px-4  { padding-left: 12px; padding-right: 12px; }
    header .max-w-\[120px\] { max-width: 100px; }
    header a.text-sm.font-bold.px-3.py-1\.5.rounded-full {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%) !important;
        color: #fff !important;
        padding: 6px 14px !important;
        border-radius: 999px !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
    }
}

/* --- 手机版底部 Tab 栏优化 --- */
@media (max-width: 640px) {
    nav.fixed.bottom-0 {
        padding-bottom: env(safe-area-inset-bottom);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        background: rgba(255, 255, 255, 0.92) !important;
        box-shadow:
            0 -1px 0 rgba(15,23,42,.06),
            0 -8px 30px rgba(15,23,42,.08);
        border-top: 1px solid rgba(15, 23, 42, 0.06);
    }
    nav.fixed.bottom-0 a.py-2\.5 {
        transition: all .2s cubic-bezier(.4,0,.2,1);
    }
    nav.fixed.bottom-0 a.py-2\.5.text-indigo-600 i {
        transform: scale(1.08);
    }
    nav.fixed.bottom-0 a.py-2\.5.text-indigo-600::before {
        content: "";
        display: block;
        position: absolute;
        top: -1px;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 3px;
        border-radius: 0 0 3px 3px;
        background: linear-gradient(90deg, #6366f1, #a855f7);
        box-shadow: 0 2px 6px rgba(139, 92, 246, .4);
    }
    nav.fixed.bottom-0 a.py-2\.5 { position: relative; }
    nav.fixed.bottom-0 a.py-2\.5:active { transform: scale(.95); }
    nav.fixed.bottom-0 .fas.house,
    nav.fixed.bottom-0 .fas.book-open,
    nav.fixed.bottom-0 .fas.user {
        background: linear-gradient(135deg, currentColor, currentColor);
    }
    nav.fixed.bottom-0 .text-indigo-600 {
        color: #7c3aed !important;
    }
}

/* --- 手机版轮播图 + 父子分类卡（新版首页） --- */
@media (max-width: 640px) {
    /* 轮播图容器 */
    #mCarouselWrap {
        border-radius: 20px !important;
        overflow: hidden;
    }
    /* 指示器（胶囊形） */
    .m-carousel-dot { transition: all .3s cubic-bezier(.4,0,.2,1) !important; }

    /* 父子分类Tab容器 */
    .m-parent-tab {
        transition: all .25s cubic-bezier(.4,0,.2,1);
        border-radius: 12px !important;
    }
    .m-parent-tab:active { transform: scale(.96); }
    #mSubCategory { padding-left: 16px !important; padding-right: 16px !important; }
    #mSubCategory a {
        transition: all .2s cubic-bezier(.4,0,.2,1);
        border-radius: 10px !important;
    }
    #mSubCategory a:active { transform: scale(.96); }
}

/* --- 手机版分类导航横向滚动 --- */
@media (max-width: 640px) {
    section .overflow-x-auto.flex.gap-2 { gap: 8px !important; padding-bottom: 6px; }
    section .overflow-x-auto a {
        padding: 7px 14px !important;
        border-radius: 999px !important;
        font-size: 13px !important;
        white-space: nowrap;
    }
    /* 滚动条隐藏 */
    section .overflow-x-auto,
    .overflow-x-auto {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    section .overflow-x-auto::-webkit-scrollbar,
    .overflow-x-auto::-webkit-scrollbar { display: none; }
}

/* --- 手机版板块标题（section header）通用风格 --- */
@media (max-width: 640px) {
    section > .flex.items-center.justify-between,
    section .flex.items-end.justify-between {
        margin-bottom: 12px !important;
    }
    section h2.text-base,
    section h2.text-lg {
        font-size: 16px !important;
        letter-spacing: 0.2px;
        font-weight: 700;
        color: #0f172a;
    }
    section > .flex.items-center.justify-between a,
    section .flex.items-end.justify-between a {
        font-size: 12px !important;
        color: #7c3aed !important;
    }
}

/* --- 手机版课程卡片（新版：渐变/圆角/阴影/悬停） --- */
@media (max-width: 640px) {
    .grid.grid-cols-2 { gap: 12px !important; }
    /* 新版卡片：group + rounded-2xl + shadow */
    .group.bg-white.rounded-2xl {
        border-radius: 18px !important;
        overflow: hidden;
        transition: all .3s cubic-bezier(.4,0,.2,1);
        border: 1px solid #f1f5f9 !important;
    }
    .group.bg-white.rounded-2xl:active {
        transform: translateY(-2px) scale(.99);
        box-shadow: 0 14px 32px rgba(99, 102, 241, .18) !important;
    }
    .group.bg-white.rounded-2xl .aspect-video {
        overflow: hidden;
    }
    .group.bg-white.rounded-2xl .aspect-video img,
    .group.bg-white.rounded-2xl .aspect-video > div:first-child {
        border-radius: 0;
    }
    .group.bg-white.rounded-2xl .p-3 { padding: 12px !important; }
    .group.bg-white.rounded-2xl h3 {
        font-size: 13px !important;
        line-height: 1.4;
        height: 38px;
        font-weight: 600;
    }
    .group.bg-white.rounded-2xl .mt-2 { margin-top: 8px !important; }
    .group.bg-white.rounded-2xl .mt-3 { margin-top: 10px !important; }
    .group.bg-white.rounded-2xl .pt-2\.5 { padding-top: 9px !important; }

    /* 角标：HOT / 推荐 */
    .group.bg-white.rounded-2xl span.absolute.top-2\.5 {
        top: 8px !important;
        border-radius: 999px !important;
        padding: 3px 8px !important;
        font-size: 10px !important;
        font-weight: 700 !important;
    }
    .group.bg-white.rounded-2xl span.absolute.top-2\.5.left-2\.5  { left:  8px !important; }
    .group.bg-white.rounded-2xl span.absolute.top-2\.5.right-2\.5 { right: 8px !important; }
    /* 价格徽章：bottom right */
    .group.bg-white.rounded-2xl span.absolute.bottom-2\.5 {
        bottom: 8px !important;
        right: 8px !important;
        padding: 4px 9px !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        border-radius: 8px !important;
        letter-spacing: 0.3px;
    }
}

/* --- 手机版视频播放页通用信息卡 --- */
@media (max-width: 640px) {
    section.px-4 { padding-left: 16px !important; padding-right: 16px !important; }
    section.px-4.mt-3,
    section.px-4.mt-4,
    section.px-4.mt-5 { margin-top: 16px !important; }
    section.px-4.pt-4 { padding-top: 16px !important; }

    /* 视频信息卡片 */
    section .bg-white.rounded-xl.p-4,
    section .bg-white.rounded-2xl.p-4 {
        border-radius: 18px !important;
        padding: 16px !important;
        box-shadow: 0 4px 14px rgba(15,23,42,.06);
        border: 1px solid #f1f5f9;
    }
    section .bg-white.rounded-xl.p-4 h1,
    section .bg-white.rounded-2xl.p-4 h1 {
        font-size: 17px !important;
        line-height: 1.45;
        font-weight: 700;
    }
}

/* --- 手机版视频目录列表（detail + play） --- */
@media (max-width: 640px) {
    .grid.grid-cols-1.gap-2,
    .space-y-2 { gap: 10px !important; }
    /* 条目卡片 */
    .grid.grid-cols-1 .flex.items-center.gap-3.p-3,
    .space-y-2 .flex.items-center.gap-3.p-3,
    section .rounded-2xl.cursor-pointer {
        padding: 12px !important;
        border-radius: 16px !important;
        transition: all .2s cubic-bezier(.4,0,.2,1);
    }
    section .rounded-2xl.cursor-pointer:active { transform: scale(.985); }
    /* 序号方块 */
    .grid.grid-cols-1 .w-8.h-8,
    .grid.grid-cols-1 .w-9.h-9,
    .space-y-2 .w-8.h-8,
    .space-y-2 .w-9.h-9 {
        width: 34px !important;
        height: 34px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
    }
    .grid.grid-cols-1 .text-sm.font-medium,
    .space-y-2 .text-sm.font-medium,
    .space-y-2 .text-sm.font-semibold {
        font-size: 13px !important;
        font-weight: 600 !important;
    }
    /* 权限标签 */
    .space-y-2 span.rounded,
    .space-y-2 span.rounded-lg,
    .grid.grid-cols-1 span.rounded,
    .grid.grid-cols-1 span.rounded-lg {
        border-radius: 8px !important;
        padding: 2px 7px !important;
        font-size: 10px !important;
        font-weight: 600;
    }
}

/* --- 手机版互动操作栏（点赞/收藏/分享/海报/投诉） --- */
@media (max-width: 640px) {
    section .bg-white.rounded-xl.p-3,
    section .bg-white.rounded-2xl.p-3 {
        padding: 12px 8px !important;
        border-radius: 18px !important;
        box-shadow: 0 4px 14px rgba(15,23,42,.06);
        border: 1px solid #f1f5f9;
    }
    section button.flex.flex-col.items-center,
    section a.flex.flex-col.items-center {
        padding: 8px 10px !important;
        gap: 3px !important;
        border-radius: 14px !important;
        transition: all .2s cubic-bezier(.4,0,.2,1);
    }
    section button.flex.flex-col.items-center:active,
    section a.flex.flex-col.items-center:active {
        transform: scale(.94);
        background: #eef2ff;
    }
    section button.flex.flex-col.items-center i,
    section a.flex.flex-col.items-center i { font-size: 20px !important; }
    section button.flex.flex-col.items-center span,
    section a.flex.flex-col.items-center span { font-size: 11px !important; font-weight: 500; }
    section button.flex.flex-col.items-center span[style*="background:#f1f5f9"],
    section a.flex.flex-col.items-center span[style*="background:#f1f5f9"] {
        padding: 2px 8px !important;
        font-size: 10px !important;
        border-radius: 999px !important;
    }
    /* 分享子菜单 */
    #shareMenu {
        padding-top: 12px !important;
        margin-top: 10px !important;
    }
    #shareMenu .w-10.h-10 {
        width: 44px !important;
        height: 44px !important;
        border-radius: 14px !important;
    }
    #shareMenu i { font-size: 20px !important; }
    #shareMenu .flex.flex-col.items-center.gap-1 { gap: 4px !important; }
}

/* --- 手机版评论区 --- */
@media (max-width: 640px) {
    section textarea.w-full.border.border-gray-200 {
        font-size: 14px !important;
        border-radius: 14px !important;
        padding: 12px 14px !important;
        line-height: 1.7;
        background: #f8fafc;
        border: 1px solid #e2e8f0 !important;
        transition: all .2s;
    }
    section textarea.w-full.border.border-gray-200:focus {
        background: #fff;
        border-color: #8b5cf6 !important;
        box-shadow: 0 0 0 4px rgba(139, 92, 246,.12);
        outline: none;
    }
    section button.bg-indigo-600.text-white {
        padding: 9px 18px !important;
        font-size: 13px !important;
        border-radius: 12px !important;
        font-weight: 700;
        background: linear-gradient(135deg, #6366f1, #a855f7) !important;
        box-shadow: 0 6px 18px rgba(139, 92, 246, .3);
    }
    section button.bg-indigo-600.text-white:active {
        transform: scale(.97);
    }
    #commentList .flex.gap-2.py-3 {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
        gap: 12px !important;
    }
    #commentList .w-8.h-8 {
        width: 38px !important;
        height: 38px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
    }
    #commentList .pl-2.border-l-2 {
        padding-left: 12px !important;
        border-left: 2px solid #eef2ff !important;
    }
    #commentList .text-xs.text-gray-800 { font-size: 12px !important; font-weight: 600; }
    #commentList .text-sm.text-gray-600 { font-size: 14px !important; line-height: 1.75; }
    #commentLoadMore button,
    #commentEmpty i,
    #commentEmpty .text-sm { opacity: .92; }
    #commentLoadMore button {
        border-radius: 12px !important;
        padding: 10px 24px !important;
        font-size: 12px !important;
        font-weight: 600;
        border: 1px solid #e2e8f0 !important;
    }
}

/* --- 手机版弹窗（投诉 / 分享二维码） --- */
@media (max-width: 640px) {
    div.fixed.inset-0.z-50 .bg-white.rounded-xl,
    div.fixed.inset-0.z-50 .bg-white.rounded-2xl {
        border-radius: 20px !important;
        margin-left: 16px !important;
        margin-right: 16px !important;
        box-shadow: 0 20px 60px rgba(15,23,42,.25);
        overflow: hidden;
    }
    div.fixed.inset-0.z-50 .max-w-sm,
    div.fixed.inset-0.z-50 .max-w-xs { max-width: calc(100vw - 32px) !important; }
    div.fixed.inset-0.z-50 input.form-control,
    div.fixed.inset-0.z-50 select,
    div.fixed.inset-0.z-50 textarea {
        padding: 11px 14px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
        background: #f8fafc;
    }
    div.fixed.inset-0.z-50 input.form-control:focus,
    div.fixed.inset-0.z-50 select:focus,
    div.fixed.inset-0.z-50 textarea:focus {
        background: #fff;
        border-color: #8b5cf6 !important;
        box-shadow: 0 0 0 4px rgba(139,92,246,.12);
        outline: none;
    }
    div.fixed.inset-0.z-50 button.py-2 {
        padding: 11px 14px !important;
        border-radius: 12px !important;
        font-size: 14px !important;
        font-weight: 700;
    }
    div.fixed.inset-0.z-50 button.bg-indigo-600 {
        background: linear-gradient(135deg, #6366f1, #a855f7) !important;
        box-shadow: 0 6px 18px rgba(139,92,246,.3);
    }
}

/* --- 手机版：点击态反馈（列表项/按钮按下时的缩放） --- */
@media (max-width: 640px) {
    a, button, .cursor-pointer, [onclick] {
        -webkit-tap-highlight-color: transparent;
    }
    .cursor-pointer:active,
    [onclick]:active {
        transition: transform .08s cubic-bezier(.4,0,.2,1);
        transform: scale(.985);
    }
    /* 全局滚动条隐藏 */
    ::-webkit-scrollbar { width: 0; height: 0; }

    /* 详情页：封面大卡片阴影 + 播放按钮动效 */
    section > .bg-white.rounded-2xl {
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
        border-radius: 22px !important;
    }
    /* 封面 + 渐变遮罩 + 毛玻璃播放按钮：detail.php 中 group + w-16.h-16 */
    .group .w-16.h-16.rounded-full {
        transition: all .3s cubic-bezier(.4,0,.2,1);
        animation: mPlayPulse 2.4s ease-in-out infinite;
    }
    @keyframes mPlayPulse {
        0%, 100% {
            box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 0 0 0 rgba(255,255,255,0.35);
        }
        50% {
            box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 0 0 14px rgba(255,255,255,0);
        }
    }

    /* 会员推广卡片 */
    section .rounded-3xl.bg-gradient-to-br {
        border-radius: 24px !important;
    }
    section .rounded-3xl.bg-gradient-to-br .w-16.h-16.rounded-2xl {
        border-radius: 18px !important;
        width: 60px;
        height: 60px;
    }
    section .rounded-3xl.bg-gradient-to-br h3 {
        font-size: 15px !important;
        font-weight: 800;
    }
    section .rounded-3xl.bg-gradient-to-br a.bg-white {
        padding: 8px 16px !important;
        border-radius: 999px !important;
        font-size: 12px !important;
        font-weight: 800;
    }

    /* 课程列表：搜索框圆角 + 概览条 */
    section > .bg-white.rounded-2xl.overflow-hidden {
        border-radius: 20px !important;
    }
    section > .bg-white.rounded-2xl.overflow-hidden .w-8.h-8.rounded-full {
        width: 34px;
        height: 34px;
        border-radius: 10px !important;
    }

    /* 排序选项分段控制 */
    section .bg-white.rounded-xl.p-1 {
        padding: 4px !important;
        border-radius: 14px !important;
        box-shadow: 0 2px 8px rgba(15,23,42,.05) !important;
    }
    section .bg-white.rounded-xl.p-1 a {
        padding: 9px 10px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
        font-weight: 600;
    }

    /* 分页控制条 */
    section > .bg-white.rounded-2xl.p-2 {
        padding: 6px !important;
        border-radius: 18px !important;
    }
    section > .bg-white.rounded-2xl.p-2 a,
    section > .bg-white.rounded-2xl.p-2 span {
        padding: 10px 12px !important;
        border-radius: 14px !important;
        font-size: 12px !important;
        font-weight: 700;
    }
    section > .bg-white.rounded-2xl.p-2 span.rounded-lg {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

/* --- RTL (维吾尔语等) 手机版微调 --- */
@media (max-width: 640px) {
    [dir="rtl"] section .overflow-x-auto.flex.gap-2 {
        /* RTL 下横滑从右向左起步，不需要特殊处理，保留默认即可 */
    }
    [dir="rtl"] #commentList .pl-2.border-l-2 {
        padding-left: 0 !important;
        padding-right: 12px !important;
        border-left: 0 !important;
        border-right: 2px solid #eef2ff !important;
    }
    [dir="rtl"] nav.fixed.bottom-0 a {
        flex-direction: column; /* 底部导航图标+文字依然上下 */
    }
    [dir="rtl"] header .flex.items-center.gap-2 {
        flex-direction: row; /* 头部按钮组保持水平，避免 RTL 镜像错乱 */
    }
}

/* ========= 深色模式全局覆盖 ========= */
.dark body { background-color: #0f172a !important; color: #e2e8f0 !important; }
.dark .bg-white { background-color: #1e293b !important; }
.dark .bg-slate-50 { background-color: #0f172a !important; }
.dark .bg-slate-100 { background-color: #1e293b !important; }
.dark .bg-slate-200 { background-color: #334155 !important; }
.dark .text-slate-800 { color: #f1f5f9 !important; }
.dark .text-slate-700 { color: #e2e8f0 !important; }
.dark .text-slate-600 { color: #cbd5e1 !important; }
.dark .text-slate-500 { color: #94a3b8 !important; }
.dark .border-slate-200 { border-color: #334155 !important; }
.dark .border-slate-100 { border-color: #1e293b !important; }
.dark header,
.dark .site-header { background-color: rgba(30, 41, 59, 0.95) !important; border-color: #334155 !important; }
.dark input,
.dark textarea,
.dark select { background-color: #1e293b; color: #e2e8f0; border-color: #334155; }
.dark .shadow-sm,
.dark .shadow-soft { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important; }
.dark a:not(.btn):not(.btn-primary):not(.btn-outline) { color: inherit; }
.dark a:not(.btn):not(.btn-primary):not(.btn-outline):hover { color: #818cf8; }
.dark [class*="bg-gradient-to"]:not(.btn-primary):not(.btn-register) { filter: brightness(0.92); }
.dark img { opacity: 0.95; }
@media (max-width: 640px) {
    .dark nav.fixed.bottom-0 { background-color: rgba(15, 23, 42, 0.98) !important; border-color: #334155 !important; }
}
