:root {
  --primary: #6C63FF;
  --primary-dark: #5A52E0;
  --primary-light: #8B85FF;
  --accent: #FFD54F;
  --bg: #F8F9FE;
  --card-bg: #fff;
  --text: #2D2D3A;
  --text-light: #7A7A8A;
  --border: #E8E8F0;
  --shadow: 0 2px 16px rgba(108,99,255,0.08);
  --shadow-hover: 0 8px 30px rgba(108,99,255,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'PingFang SC','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
}

body { background: var(--bg); font-family: var(--font); color: var(--text); }

.k-header { background: linear-gradient(135deg,#2D2D3A 0%,#1E1E2E 100%); position: sticky; top: 0; z-index: 1000; }
.k-header .main-bar { display: flex; align-items: center; height: 64px; }
.k-header .main-bar .logo { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 1px; flex-shrink:0; }
.k-header .main-bar .logo span { color: var(--primary-light); }
.k-header .main-bar .logo img { height: 32px; vertical-align: middle; }
.k-header .main-bar .nav { display: flex; margin-left: 20px; gap: 2px; flex:1; }
.k-header .main-bar .nav .item { padding:0; border-radius:6px; font-size:14px; color:rgba(255,255,255,0.75); cursor:pointer; }
.k-header .main-bar .nav .item a { display:block; padding:8px 16px; border-radius:6px; color:inherit; }
.k-header .main-bar .nav .item a:hover { background:rgba(108,99,255,0.25); color:#fff; }
.k-header .main-bar .header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; flex-shrink:0; }
.k-header .main-bar .header-right .top-link { color: rgba(255,255,255,0.85); transition: color 0.2s; white-space:nowrap; }
.k-header .main-bar .header-right .top-link:hover { color: #fff; }
.k-header .main-bar .header-right .vip-link { color: #f5576c; font-weight: 600; }
.k-header .main-bar .header-right .vip-link:hover { color: #ff7a8a; }
.k-header .main-bar .header-right .welcome { display:inline-flex; align-items:center; gap:4px; background:linear-gradient(135deg,rgba(108,99,255,0.2),rgba(118,75,162,0.15)); border:1px solid rgba(108,99,255,0.2); border-radius:14px; padding:3px 12px 3px 14px; margin-right:4px; }
.k-header .main-bar .header-right .welcome .welcome-name { color:#FFD700; font-weight:700; font-size:13px; max-width:80px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-shadow:0 0 6px rgba(255,215,0,0.3); }
.k-header .main-bar .header-right .welcome .welcome-back { color:#6C63FF; font-size:12px; font-weight:500; }
.k-header .main-bar .header-right .cart { color: rgba(255,255,255,0.85); }
.k-header .main-bar .header-right .cart:hover { color: #fff; }
.k-header .main-bar .header-right .top-user { display: flex; align-items: center; gap: 6px; }

.k-hero { background: linear-gradient(135deg,#2D2D3A 0%,#3A3A5C 50%,#2D2D3A 100%); padding: 50px 0 60px; overflow: hidden; position: relative; }
.k-hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle,rgba(108,99,255,0.12) 0%,transparent 70%); }
.k-hero .hero-inner { display: flex; align-items: center; gap: 40px; position: relative; z-index: 1; }
.k-hero .hero-left { flex: 1; }
.k-hero .hero-left h1 { font-size: 36px; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 16px; }
.k-hero .hero-left h1 span { color: var(--primary-light); }
.k-hero .hero-left p { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.6; max-width: 480px; }
.k-hero .hero-right { flex: 0 0 500px; }
.k-hero .hero-right .hero-search { display: flex; max-width: 100%; margin-bottom: 12px; }
.k-hero .hero-right .hero-search input { flex: 1; height: 44px; border-radius: 22px 0 0 22px; border: none; padding: 0 18px; font-size: 14px; background: rgba(255,255,255,0.15); color: #fff; outline: none; }
.k-hero .hero-right .hero-search input::placeholder { color: rgba(255,255,255,0.4); }
.k-hero .hero-right .hero-search input:focus { background: rgba(255,255,255,0.22); }
.k-hero .hero-right .hero-search button { width: 50px; border-radius: 0 22px 22px 0; border: none; background: var(--primary); color: #fff; font-size: 18px; cursor: pointer; transition: background 0.2s; }
.k-hero .hero-right .hero-search button:hover { background: var(--primary-dark); }
.k-hero .hero-right .hot-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.k-hero .hero-right .hot-tags a { color: rgba(255,255,255,0.5); padding: 3px 10px; border-radius: 10px; background: rgba(255,255,255,0.06); transition: all 0.2s; text-decoration:none; }
.k-hero .hero-right .hot-tags a:hover { background: var(--primary); color: #fff; }
.k-hero .hero-right .hero-carousel { border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.k-hero .hero-right .hero-carousel img { width: 100%; display: block; border-radius: 12px; }
.k-hero .hero-right .hero-carousel .swiper-pagination-bullet { background: rgba(255,255,255,0.5); }
.k-hero .hero-right .hero-carousel .swiper-pagination-bullet-active { background: #fff; }

.k-section { padding: 50px 0; }
.k-section .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.k-section .section-header .left h2 { font-size: 22px; font-weight: 700; }
.k-section .section-header .left p { font-size: 13px; color: var(--text-light); margin-top: 6px; }
.k-section .section-header .more { font-size: 13px; color: var(--primary); font-weight: 500; display: flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.k-section .section-header .more:hover { gap: 8px; }

.k-category-bar { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.k-category-bar .cat-item { padding: 6px 20px; border-radius: 20px; font-size: 13px; background: var(--card-bg); color: var(--text); border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; }
.k-category-bar .cat-item:hover,
.k-category-bar .cat-item.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.course-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.course-card { display: flex; background: #fff; border: 1px solid #e1e4e8; border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s; cursor: pointer; }
.course-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.course-card > a { display: flex; flex: 1; min-width: 0; }
.course-card .thumb { position: relative; flex: 0 0 200px; min-height: 120px; background: #f0f0f5; }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.course-card:hover .thumb img { transform: scale(1.05); }
.course-card .thumb .badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.course-card .thumb .badge.free { background: #4CAF50; color: #fff; }
.course-card .thumb .badge.hot { background: #FF5722; color: #fff; }
.course-card .thumb .badge.new { background: var(--primary); color: #fff; }
.course-card .body { flex: 1; min-width: 0; padding: 18px 20px; display: flex; flex-direction: column; }
.course-card .body .post-meta { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: #999; margin-bottom: 8px; }
.course-card .body .post-meta .tag { display: inline-block; background: #e8f0fe; color: #0366d6; padding: 2px 8px; border-radius: 3px; font-size: 0.75rem; }
.course-card .body .title { font-size: 1.1rem; font-weight: 600; color: #24292e; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.course-card .body .desc { color: #586069; font-size: 0.9rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.course-card .body .card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.course-card .body .card-footer .readmore { font-size: 0.9rem; font-weight: 500; color: #0366d6; }
.course-card .body .card-footer .readmore:hover { text-decoration: underline; }

.k-banner-section { border-radius: var(--radius); overflow: hidden; margin: 40px 0; position: relative; }
.k-banner-section img { width: 100%; display: block; }

.k-footer { background: #1E1E2E; padding: 50px 0 0; color: rgba(255,255,255,0.6); font-size: 13px; }
.k-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.k-footer .footer-grid .col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.k-footer .footer-grid .col p { line-height: 2; }
.k-footer .footer-grid .col a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.k-footer .footer-grid .col a:hover { color: var(--primary-light); }
.k-footer .footer-grid .col-brand .logo { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.k-footer .footer-grid .col-brand .logo span { color: var(--primary-light); }
.k-footer .footer-grid .col-brand p { font-size: 12px; line-height: 1.6; }
.k-footer .footer-grid .col-brand .social { display: flex; gap: 12px; margin-top: 16px; }
.k-footer .footer-grid .col-brand .social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background 0.2s; }
.k-footer .footer-grid .col-brand .social a:hover { background: var(--primary); }
.k-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); margin-top: 40px; padding: 20px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,0.35); }
.k-footer .footer-bottom a { color: rgba(255,255,255,0.35); }

.k-right-nav { position: fixed; right: 20px; bottom: 100px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.k-right-nav .item { width: 44px; height: 44px; border-radius: 50%; background: var(--card-bg); box-shadow: 0 2px 12px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; color: var(--text-light); font-size: 18px; }
.k-right-nav .item:hover { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(108,99,255,0.3); }
.k-back-top { position: fixed; right: 20px; bottom: 46px; width: 44px; height: 44px; border-radius: 50%; background: var(--card-bg); box-shadow: 0 2px 12px rgba(0,0,0,0.1); display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 999; transition: all 0.2s; font-size: 18px; color: var(--text-light); text-align: center; line-height: 44px; }
.k-back-top:hover { background: var(--primary); color: #fff; }

@media (max-width: 768px) {
  .course-grid { grid-template-columns: 1fr; gap: 12px; }
  .course-card { flex-direction: column; }
  .course-card > a { flex-direction: column; }
  .course-card .thumb { flex: none; aspect-ratio: 16/9; }
  .k-hero .hero-inner { flex-direction: column; }
  .k-hero .hero-right { flex: none; width: 100%; }
  .k-header .main-bar .nav { display: none; }
  .k-header .main-bar .header-right .search-box input { width: 160px; }
  .k-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .k-section .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

.k-breadcrumb { padding: 16px 0; font-size: 13px; color: var(--text-light); }
.k-breadcrumb a { color: var(--text-light); }
.k-breadcrumb a:hover { color: var(--primary); }

/* 列表页（分类 / 搜索）顶部的间距收口。
   面包屑只是路径指示，不该再自带上下留白：容器已给上边距，
   其后紧跟的 .k-section 又各有 50px，三层叠加会让首个列表被推得
   过高 —— 深层级分类的面包屑（首页 > 一级 > 二级 > 三级）尤其明显。
   只作用于列表页，商品详情页沿用 .k-breadcrumb 原样。 */
.k-list-top .k-breadcrumb { padding: 0 0 4px; }
.k-list-top > .k-section { padding-top: 16px; }

.course-detail-layout { display: flex; gap: 30px; }
.course-detail-layout .main { flex: 1; }
.course-detail-layout .sidebar { width: 360px; flex-shrink: 0; }

.k-course-video { border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; position: relative; }
.k-course-video img { width: 100%; height: 100%; object-fit: cover; }
.k-course-video .play-btn { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: rgba(108,99,255,0.9); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.3s; }
.k-course-video .play-btn:hover { transform: scale(1.1); }
.k-course-video .play-btn i { font-size: 28px; color: #fff; margin-left: 4px; }

.k-course-info { margin-top: 20px; }
.k-course-info h1 { font-size: 24px; font-weight: 700; line-height: 1.4; }
.k-course-info .course-meta { display: flex; gap: 20px; margin-top: 12px; font-size: 13px; color: var(--text-light); }
.k-course-info .course-meta span { display: flex; align-items: center; gap: 4px; }
.k-course-info .course-desc { margin-top: 16px; line-height: 1.8; color: var(--text-light); font-size: 14px; }

.k-sidebar-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; position: sticky; top: 88px; }
.k-sidebar-card .price-big { font-size: 32px; font-weight: 700; color: var(--primary); }
.k-sidebar-card .price-big .original { font-size: 16px; color: var(--text-light); text-decoration: line-through; font-weight: 400; margin-left: 8px; }
.k-sidebar-card .btn-buy { width: 100%; height: 48px; border-radius: 24px; border: none; background: var(--primary); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 20px; transition: background 0.2s; }
.k-sidebar-card .btn-buy:hover { background: var(--primary-dark); }
.k-sidebar-card .btn-learn { width: 100%; height: 48px; border-radius: 24px; border: 2px solid var(--primary); background: transparent; color: var(--primary); font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 12px; transition: all 0.2s; }
.k-sidebar-card .btn-learn:hover { background: rgba(108,99,255,0.06); }
.k-sidebar-card .btn-cart { width: 100%; height: 48px; border-radius: 24px; border: none; background: #FF6B35; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 12px; transition: background 0.2s; }
.k-sidebar-card .btn-cart:hover { background: #E55A2B; }
.k-sidebar-card .btn-learn[data-collected="1"] { background: rgba(108,99,255,0.08); border-color: #4CAF50; color: #4CAF50; }
.k-sidebar-card .stat-row { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.k-sidebar-card .stat-row .stat { text-align: center; }
.k-sidebar-card .stat-row .stat .num { font-size: 18px; font-weight: 700; }
.k-sidebar-card .stat-row .stat .label { font-size: 11px; color: var(--text-light); margin-top: 2px; }

.k-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; margin-top: 30px; }
.k-tabs .tab-item { padding: 12px 24px; font-size: 14px; color: var(--text-light); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.k-tabs .tab-item:hover { color: var(--text); }
.k-tabs .tab-item.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.chapter-list { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.chapter-list .chapter { border-bottom: 1px solid var(--border); }
.chapter-list .chapter:last-child { border-bottom: none; }
.chapter-list .chapter-header { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: background 0.2s; }
.chapter-list .chapter-header:hover { background: rgba(108,99,255,0.03); }
.chapter-list .chapter-header .chapter-title { font-weight: 600; font-size: 14px; }
.chapter-list .chapter-header .chapter-meta { font-size: 12px; color: var(--text-light); }
.chapter-list .chapter-lessons { padding: 0 20px 12px; }
.chapter-list .lesson { display: flex; align-items: center; padding: 10px 0; font-size: 13px; color: var(--text); border-bottom: 1px solid #f5f5f8; }
.chapter-list .lesson:last-child { border-bottom: none; }
.chapter-list .lesson .lesson-icon { width: 24px; color: var(--primary); font-size: 14px; margin-right: 10px; }
.chapter-list .lesson .lesson-title { flex: 1; }
.chapter-list .lesson .lesson-duration { color: var(--text-light); font-size: 12px; }

.k-teacher-card { display: flex; align-items: center; gap: 16px; background: var(--card-bg); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-top: 24px; }
.k-teacher-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.k-teacher-card .info h4 { font-size: 15px; font-weight: 600; }
.k-teacher-card .info p { font-size: 12px; color: var(--text-light); margin-top: 4px; line-height: 1.5; }

/* 学生中心仪表盘 */
.k-uc-header { background: linear-gradient(135deg,#2D2D3A 0%,#3A3A5C 100%); padding: 30px 0; color: #fff; }
.k-uc-header .wrap { display: flex; align-items: center; gap: 24px; }
.k-uc-header .avatar { width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.2); object-fit: cover; flex-shrink: 0; }
.k-uc-header .info h3 { font-size: 18px; font-weight: 600; }
.k-uc-header .info p { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.k-uc-header .info .meta { display: flex; gap: 20px; margin-top: 10px; font-size: 13px; color: rgba(255,255,255,0.4); }
.k-uc-header .info .meta a { color: rgba(255,255,255,0.4); }
.k-uc-header .info .meta a:hover { color: #fff; }

.k-uc-body { display: flex; gap: 24px; margin-top: 30px; align-items: flex-start; }
.k-uc-sidebar { width: 220px; flex-shrink: 0; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 88px; }
.k-uc-sidebar .menu-group { border-bottom: 1px solid var(--border); padding: 16px 0; }
.k-uc-sidebar .menu-group:last-child { border-bottom: none; }
.k-uc-sidebar .menu-group .group-title { font-size: 12px; color: var(--text-light); padding: 0 20px 8px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.k-uc-sidebar .menu-group a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 13px; color: var(--text); transition: all 0.15s; border-left: 3px solid transparent; }
.k-uc-sidebar .menu-group a i { width: 18px; text-align: center; font-size: 15px; color: var(--text-light); }
.k-uc-sidebar .menu-group a:hover { background: rgba(108,99,255,0.04); color: var(--primary); }
.k-uc-sidebar .menu-group a:hover i { color: var(--primary); }
.k-uc-sidebar .menu-group a.active { background: rgba(108,99,255,0.08); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.k-uc-sidebar .menu-group a.active i { color: var(--primary); }

.k-uc-main { flex: 1; min-width: 0; }
.k-uc-main .uc-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }

.k-uc-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.k-uc-stats .stat-item { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; align-items: center; gap: 16px; transition: all 0.2s; }
.k-uc-stats .stat-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.k-uc-stats .stat-item .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; flex-shrink: 0; }
.k-uc-stats .stat-item .stat-icon.c1 { background: linear-gradient(135deg,#6C63FF,#8B85FF); }
.k-uc-stats .stat-item .stat-icon.c2 { background: linear-gradient(135deg,#4CAF50,#81C784); }
.k-uc-stats .stat-item .stat-icon.c3 { background: linear-gradient(135deg,#FF9800,#FFB74D); }
.k-uc-stats .stat-item .stat-icon.c4 { background: linear-gradient(135deg,#2196F3,#64B5F6); }
.k-uc-stats .stat-item .stat-text .num { font-size: 24px; font-weight: 700; line-height: 1.2; }
.k-uc-stats .stat-item .stat-text .label { font-size: 12px; color: var(--text-light); margin-top: 2px; }

.k-uc-activities .activity-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.k-uc-activities .activity-item:last-child { border-bottom: none; }
.k-uc-activities .activity-item .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.k-uc-activities .activity-item .dot.green { background: #4CAF50; }
.k-uc-activities .activity-item .dot.blue { background: #2196F3; }
.k-uc-activities .activity-item .dot.orange { background: #FF9800; }
.k-uc-activities .activity-item .act-text { flex: 1; font-size: 13px; }
.k-uc-activities .activity-item .act-time { font-size: 12px; color: var(--text-light); }

.k-uc-courses { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.k-uc-courses .uc-course-card { display: flex; gap: 14px; padding: 16px; background: var(--bg); border-radius: var(--radius-sm); transition: all 0.2s; cursor: pointer; }
.k-uc-courses .uc-course-card:hover { background: rgba(108,99,255,0.04); }
.k-uc-courses .uc-course-card .thumb { width: 80px; height: 56px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #eee; }
.k-uc-courses .uc-course-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.k-uc-courses .uc-course-card .info .title { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.k-uc-courses .uc-course-card .info .progress { margin-top: 10px; }
.k-uc-courses .uc-course-card .info .progress .bar { height: 4px; border-radius: 2px; background: #e0e0e8; overflow: hidden; }
.k-uc-courses .uc-course-card .info .progress .bar .fill { height: 100%; border-radius: 2px; background: var(--primary); }
.k-uc-courses .uc-course-card .info .progress .pct { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* 兼容旧用户子页面布局 */
.k-uc-sub { background: var(--bg); padding: 24px 0; min-height: 60vh; }
.k-uc-sub .user_box { margin-top: 0; }
.k-uc-sub .user_box_right { background: transparent; margin-left: 0; flex: 1; }
.k-uc-sub .user_box_right .current_title { display: none; }
.k-uc-sub .user_position { display: none; }
.k-uc-sub .user_content_box { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.k-uc-sub .myorder_title { font-size: 16px; font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.k-uc-sub .myorder_nav { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.k-uc-sub .myorder_nav .item { margin-right: 24px; }
.k-uc-sub .myorder_nav .item a { font-size: 13px; padding: 10px 0; display: block; color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.k-uc-sub .myorder_nav .item a.current,
.k-uc-sub .myorder_nav .item a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.k-uc-sub .myorder_nav .line { display: none; }

/* 全局兼容：当没有 .k-uc-sub 包裹时，旧的 user 页面也能正常显示 */
.wrapbg { background: var(--bg) !important; }
.user_box { display: flex; margin-top: 20px; padding-bottom: 20px; }
.user_box_left { width: 220px; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 0; flex-shrink: 0; }
.user_box_left .title { display: none; }
.user_box_left li { margin: 0; line-height: 40px; list-style: none; padding: 0 20px; }
.user_box_left li a { color: var(--text); font-size: 13px; }
.user_box_left li.current { background: rgba(108,99,255,0.08); border-left: 3px solid var(--primary); }
.user_box_left li.current a { color: var(--primary); font-weight: 600; }
.user_box_right { flex: 1; margin-left: 20px; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.user_position { color: var(--text-light); display: inline-flex; margin-top: 20px; padding: 0; font-size: 13px; }
.user_position a { color: var(--text-light); }
.user_position a:hover { color: var(--primary); }
.user_content_box .myorder_title { font-size: 16px; font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.user_content_box .myorder_nav { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.user_content_box .myorder_nav .myorder_nav_left { display: flex; }
.user_content_box .myorder_nav .item { margin-right: 24px; }
.user_content_box .myorder_nav .item a { font-size: 13px; padding: 10px 0; display: block; color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.user_content_box .myorder_nav .item a.current,
.user_content_box .myorder_nav .item a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.user_content_box .myorder_nav .line { display: none; }

@media (max-width: 768px) {
  .k-uc-stats { grid-template-columns: repeat(2,1fr); }
  .k-uc-body { flex-direction: column; }
  .k-uc-sidebar { width: 100%; position: static; }
  .k-uc-courses { grid-template-columns: 1fr; }
  .k-uc-header .wrap { flex-direction: column; text-align: center; }
  .k-uc-header .info .meta { justify-content: center; }
}

