:root {
  --xj-red: #c0392b;
  --xj-red-dark: #962d22;
  --xj-gold: #e67e22;
  --xj-green: #27ae60;
  --xj-purple: #8e44ad;
  --warm-white: #fff8f0;
  --warm-cream: #ffe8d6;
  --warm-sand: #f5e6d3;
  --dark-brown: #3e2723;
  --text: #2c3e50;
  --text-muted: #7f8c8d;
  --card-bg: #ffffff;
  --shadow: 0 4px 20px rgba(192, 57, 43, 0.08);
  --shadow-hover: 0 8px 30px rgba(192, 57, 43, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1100px;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  background-color: var(--warm-white);
  color: var(--text);
  line-height: 1.7;
  padding-top: 64px;
}

a { color: var(--xj-red); text-decoration: none; }

/* ===== 导航栏 ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(192, 57, 43, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 28px;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
nav .logo {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  margin-right: auto;
  letter-spacing: 1px;
}
nav .logo span { opacity: 0.7; font-size: 14px; font-weight: normal; }
nav a:not(.logo) {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  transition: color 0.2s;
}
nav a:not(.logo):hover { color: #fff; }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 90px 40px 80px;
  background: linear-gradient(160deg, var(--warm-white) 0%, var(--warm-cream) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(230, 126, 34, 0.12), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.08), transparent 70%);
  border-radius: 50%;
}
.hero-tag {
  display: inline-block;
  background: rgba(192, 57, 43, 0.1);
  color: var(--xj-red);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 24px;
  position: relative;
}
.hero h1 {
  font-size: 52px;
  color: var(--xj-red);
  margin-bottom: 18px;
  position: relative;
  letter-spacing: 2px;
}
.hero h1 small { font-size: 28px; color: var(--xj-gold); }
.hero .subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  position: relative;
}
.hero .btn {
  display: inline-block;
  background: var(--xj-red);
  color: #fff;
  padding: 16px 42px;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s;
  position: relative;
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.3);
}
.hero .btn:hover {
  background: var(--xj-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(192, 57, 43, 0.4);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  position: relative;
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat-num { font-size: 32px; font-weight: bold; color: var(--xj-red); }
.hero-stats .stat-label { font-size: 14px; color: var(--text-muted); }

/* ===== 通用板块 ===== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 40px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: 34px;
  color: var(--text);
  margin-bottom: 12px;
}
.section-header h2 span { color: var(--xj-red); }
.section-header p { font-size: 16px; color: var(--text-muted); }

/* ===== 课程卡片 ===== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.course-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border-top: 4px solid var(--xj-red);
  position: relative;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.course-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.course-card:nth-child(1) .icon { background: rgba(192, 57, 43, 0.1); }
.course-card:nth-child(2) .icon { background: rgba(230, 126, 34, 0.1); }
.course-card:nth-child(3) .icon { background: rgba(142, 68, 173, 0.1); }
.course-card:nth-child(4) .icon { background: rgba(39, 174, 96, 0.1); }
.course-card:nth-child(1) { border-top-color: var(--xj-red); }
.course-card:nth-child(2) { border-top-color: var(--xj-gold); }
.course-card:nth-child(3) { border-top-color: var(--xj-purple); }
.course-card:nth-child(4) { border-top-color: var(--xj-green); }
.course-card h3 { font-size: 20px; margin-bottom: 10px; color: var(--text); }
.course-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.course-card .level {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--warm-sand);
  color: var(--dark-brown);
}

/* ===== 学习路线 ===== */
.roadmap {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  box-shadow: var(--shadow);
}
.roadmap-step {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--warm-sand);
  align-items: flex-start;
}
.roadmap-step:last-child { border-bottom: none; }
.roadmap-step .step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--xj-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}
.roadmap-step:last-child .step-num { background: var(--xj-green); }
.roadmap-step .step-content h4 { font-size: 17px; margin-bottom: 4px; }
.roadmap-step .step-content p { font-size: 14px; color: var(--text-muted); }

/* ===== 导师区 ===== */
.mentor-box {
  display: flex;
  gap: 40px;
  align-items: center;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.mentor-avatar {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xj-red), var(--xj-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #fff;
}
.mentor-text h3 { font-size: 22px; margin-bottom: 8px; }
.mentor-text .mentor-tag { color: var(--xj-gold); font-size: 14px; margin-bottom: 12px; }
.mentor-text p { font-size: 15px; color: var(--text-muted); }

/* ===== 社群CTA ===== */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--xj-red), var(--xj-red-dark));
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  margin: 0 40px 60px;
  color: #fff;
}
.cta-section h2 { font-size: 30px; margin-bottom: 12px; }
.cta-section p { font-size: 16px; opacity: 0.9; margin-bottom: 28px; }
.cta-section .btn-white {
  display: inline-block;
  background: #fff;
  color: var(--xj-red);
  padding: 14px 38px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: bold;
  transition: all 0.3s;
}
.cta-section .btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* ===== 通用页面 ===== */
.page {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 40px 60px;
}
.page-header { margin-bottom: 40px; }
.page-header h1 { font-size: 32px; color: var(--text); margin-bottom: 8px; }
.page-header p { font-size: 16px; color: var(--text-muted); }

/* ===== 课程详情 ===== */
.course-block {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--xj-red);
}
.course-block:nth-of-type(2) { border-left-color: var(--xj-gold); }
.course-block:nth-of-type(3) { border-left-color: var(--xj-purple); }
.course-block:nth-of-type(4) { border-left-color: var(--xj-green); }
.course-block .cb-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.course-block .cb-icon { font-size: 32px; }
.course-block h2 { font-size: 22px; }
.course-block .cb-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.lesson {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--warm-sand);
}
.lesson:last-child { border-bottom: none; }
.lesson-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--warm-sand);
  color: var(--dark-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}
.lesson-info h4 { font-size: 15px; margin-bottom: 2px; }
.lesson-info p { font-size: 13px; color: var(--text-muted); }
.lesson-detail {
  margin-top: 14px;
  padding: 18px 22px;
  background: var(--warm-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--warm-sand);
}
.lesson-detail h5 { font-size: 14px; color: var(--xj-red); margin: 14px 0 6px; font-weight: bold; }
.lesson-detail h5:first-child { margin-top: 0; }
.lesson-detail p { font-size: 14px; color: var(--text); margin-bottom: 10px; line-height: 1.8; }
.lesson-detail ul { padding-left: 20px; margin-bottom: 10px; }
.lesson-detail li { font-size: 14px; color: var(--text); margin-bottom: 6px; line-height: 1.7; }
.lesson-detail .example {
  background: var(--warm-cream);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 10px 0;
  font-size: 13px;
  color: var(--dark-brown);
  line-height: 1.7;
  border-left: 3px solid var(--xj-gold);
}
.lesson-detail .tip {
  background: rgba(39, 174, 96, 0.08);
  border-radius: 8px;
  padding: 10px 16px;
  margin: 10px 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}
.lesson-detail strong { color: var(--xj-red); }

/* ===== 课程大纲卡片 ===== */
.course-syllabus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--warm-white);
  border-radius: var(--radius);
  border: 1px solid var(--warm-sand);
}
.sy-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sy-label {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sy-value {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.sy-objectives {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px dashed var(--warm-sand);
}
.sy-objectives .sy-label { margin-bottom: 8px; }
.sy-objectives ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sy-objectives li {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--warm-cream);
  color: var(--dark-brown);
}

/* ===== 讲师介绍区 ===== */
.instructor-section {
  background: linear-gradient(135deg, #2c1810 0%, #3e2723 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.instructor-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 5L36 18L50 18L39 27L43 41L30 33L17 41L21 27L10 18L24 18Z' fill='%23e67e22'/%3E%3C/svg%3E");
}
.instructor-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  position: relative;
  flex-wrap: wrap;
}
.instructor-avatar {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xj-red), var(--xj-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  border: 4px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.instructor-info {
  flex: 1;
  min-width: 250px;
}
.instructor-info h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 4px;
}
.instructor-info .ins-title {
  color: var(--xj-gold);
  font-size: 14px;
  margin-bottom: 16px;
}
.instructor-info .ins-desc {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.instructor-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}
.ins-stat {
  display: flex;
  flex-direction: column;
}
.ins-stat-num {
  color: var(--xj-gold);
  font-size: 22px;
  font-weight: bold;
}
.ins-stat-label {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}
.instructor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ins-tag {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(230,126,34,0.15);
  color: var(--xj-gold);
  border: 1px solid rgba(230,126,34,0.3);
}

/* ===== 课程总览表 ===== */
.course-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.overview-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--xj-red);
  transition: all 0.3s;
}
.overview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.overview-card:nth-child(2) { border-top-color: var(--xj-gold); }
.overview-card:nth-child(3) { border-top-color: var(--xj-purple); }
.overview-card:nth-child(4) { border-top-color: var(--xj-green); }
.overview-card .ov-icon { font-size: 28px; margin-bottom: 10px; }
.overview-card h3 { font-size: 16px; margin-bottom: 6px; }
.overview-card .ov-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}
.overview-card .ov-lessons {
  font-size: 13px;
  color: var(--text);
  line-height: 1.8;
}
.overview-card .ov-lessons li {
  list-style: none;
  padding-left: 16px;
  position: relative;
}
.overview-card .ov-lessons li::before {
  content: "▪";
  color: var(--xj-gold);
  position: absolute;
  left: 0;
}

/* ===== 课时元数据条 ===== */
.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}
.lesson-meta .lm-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}
.lm-time { background: rgba(230,126,34,0.1); color: var(--xj-gold); }
.lm-level { background: rgba(39,174,96,0.1); color: var(--xj-green); }
.lm-tool { background: rgba(142,68,173,0.1); color: var(--xj-purple); }

/* ===== 课后练习 ===== */
.lesson-exercise {
  margin-top: 14px;
  padding: 16px 20px;
  background: rgba(39,174,96,0.06);
  border-radius: var(--radius);
  border-left: 3px solid var(--xj-green);
}
.lesson-exercise .ex-header {
  font-size: 14px;
  font-weight: bold;
  color: var(--xj-green);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lesson-exercise ol {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
}
.lesson-exercise ol li { margin-bottom: 4px; }
.lesson-exercise .ex-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== 导师寄语 ===== */
.instructor-message {
  margin: 20px 0 24px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(192,57,43,0.04), rgba(230,126,34,0.04));
  border-radius: var(--radius);
  border: 1px dashed var(--xj-gold);
  position: relative;
}
.instructor-message .im-label {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--warm-white);
  padding: 0 8px;
  font-size: 12px;
  color: var(--xj-gold);
  font-weight: bold;
}
.instructor-message p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}
.instructor-message .im-sign {
  text-align: right;
  font-size: 13px;
  color: var(--xj-red);
  margin-top: 8px;
  font-weight: 600;
}

/* ===== 学员成果展示 ===== */
.student-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.showcase-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s;
}
.showcase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.showcase-card .sc-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.showcase-card .sc-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.showcase-card .sc-location {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.showcase-card .sc-result {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  background: var(--warm-cream);
  padding: 10px 12px;
  border-radius: 8px;
}
.showcase-card .sc-result strong { color: var(--xj-red); }

/* ===== 案例卡片 ===== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.case-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.case-card .case-banner {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.case-card:nth-child(1) .case-banner { background: linear-gradient(135deg, #c0392b, #e67e22); }
.case-card:nth-child(2) .case-banner { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.case-card:nth-child(3) .case-banner { background: linear-gradient(135deg, #8e44ad, #9b59b6); }
.case-card .case-body { padding: 24px; }
.case-card .case-tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--warm-sand);
  color: var(--dark-brown);
  margin-bottom: 10px;
}
.case-card h3 { font-size: 18px; margin-bottom: 8px; }
.case-card p { font-size: 14px; color: var(--text-muted); }

/* ===== 案例详情 ===== */
.case-detail {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}
.case-detail .case-banner {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.case-detail:nth-of-type(1) .case-banner { background: linear-gradient(135deg, #c0392b, #e67e22); }
.case-detail:nth-of-type(2) .case-banner { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.case-detail:nth-of-type(3) .case-banner { background: linear-gradient(135deg, #8e44ad, #9b59b6); }
.case-detail .case-body { padding: 32px; }
.case-detail .case-body .case-title {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 6px;
}
.case-detail .case-body .case-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.case-step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--warm-sand);
  align-items: flex-start;
}
.case-step:last-child { border-bottom: none; }
.case-step .step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--xj-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}
.case-step .step-text { flex: 1; min-width: 0; }
.case-step h4 { font-size: 17px; margin-bottom: 6px; color: var(--text); }
.case-step p { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.case-step .example {
  display: block;
  background: var(--warm-sand);
  border-left: 4px solid var(--xj-gold);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--dark-brown);
  margin-top: 10px;
  white-space: pre-wrap;
  line-height: 1.8;
}
.case-step .example .ex-label {
  display: block;
  font-weight: bold;
  color: var(--xj-red);
  margin-bottom: 6px;
  font-size: 13px;
}
.case-step .result {
  display: block;
  background: rgba(39, 174, 96, 0.08);
  border-left: 4px solid var(--xj-green);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  margin-top: 10px;
  white-space: pre-wrap;
  line-height: 1.8;
}
.case-step .result .res-label {
  display: block;
  font-weight: bold;
  color: var(--xj-green);
  margin-bottom: 6px;
  font-size: 13px;
}
.case-step ul {
  margin: 6px 0 8px 4px;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
}
.case-step ul li { margin-bottom: 4px; }

/* ===== 知识库 ===== */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-item {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  cursor: pointer;
}
.article-item:hover { transform: translateX(4px); }
.article-item .a-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--warm-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.article-item .a-info h4 { font-size: 16px; margin-bottom: 4px; }
.article-item .a-info p { font-size: 13px; color: var(--text-muted); }
.article-item .a-arrow { margin-left: auto; color: var(--text-muted); font-size: 18px; }

/* ===== 知识库可折叠文章 ===== */
.kb-article {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.3s;
  border-left: 4px solid var(--xj-gold);
}
.kb-article:hover { box-shadow: var(--shadow-hover); }
.kb-article summary {
  display: flex;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: bold;
  color: var(--text);
  list-style: none;
  user-select: none;
}
.kb-article summary::-webkit-details-marker { display: none; }
.kb-article summary::after {
  content: "›";
  margin-left: auto;
  color: var(--text-muted);
  font-size: 22px;
  transition: transform 0.25s;
}
.kb-article[open] summary::after { transform: rotate(90deg); }
.kb-article .kb-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--warm-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.kb-article .kb-content {
  padding: 4px 24px 28px;
  border-top: 1px solid var(--warm-sand);
  animation: kbFadeIn 0.3s ease;
}
@keyframes kbFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.kb-content h5 {
  font-size: 16px;
  color: var(--xj-red);
  margin: 20px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--xj-gold);
}
.kb-content h5:first-of-type { margin-top: 16px; }
.kb-content p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.8;
}
.kb-content ul {
  list-style: none;
  padding-left: 4px;
  margin-bottom: 12px;
}
.kb-content ul li {
  font-size: 15px;
  color: var(--text);
  padding: 8px 0 8px 22px;
  position: relative;
  line-height: 1.8;
}
.kb-content ul li::before {
  content: "•";
  color: var(--xj-gold);
  font-weight: bold;
  font-size: 20px;
  position: absolute;
  left: 4px;
  top: 6px;
}
.kb-content ul li strong { color: var(--xj-red); }
.kb-content .example {
  background: var(--warm-sand);
  border-left: 4px solid var(--xj-gold);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 10px 0 16px;
  font-size: 14px;
  color: var(--dark-brown);
  line-height: 1.9;
  white-space: pre-wrap;
  font-family: "PingFang SC", "Microsoft YaHei", monospace;
}

/* ===== 关于导师 ===== */
.about-hero {
  background: linear-gradient(135deg, var(--xj-red), var(--xj-gold));
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
}
.about-hero .avatar-big {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin: 0 auto 20px;
}
.about-hero h2 { font-size: 26px; margin-bottom: 8px; }
.about-hero p { opacity: 0.9; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.about-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.about-card .a-icon-big { font-size: 36px; margin-bottom: 12px; }
.about-card h3 { font-size: 17px; margin-bottom: 8px; }
.about-card p { font-size: 14px; color: var(--text-muted); }

/* ===== 社群页 ===== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.community-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.community-card:hover { transform: translateY(-4px); }
.community-card .c-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin: 0 auto 20px;
}
.community-card:nth-child(1) .c-icon { background: rgba(192, 57, 43, 0.1); }
.community-card:nth-child(2) .c-icon { background: rgba(39, 174, 96, 0.1); }
.community-card h3 { font-size: 20px; margin-bottom: 10px; }
.community-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.community-card .btn-outline {
  display: inline-block;
  border: 2px solid var(--xj-red);
  color: var(--xj-red);
  padding: 10px 28px;
  border-radius: var(--radius);
  font-weight: bold;
  transition: all 0.2s;
}
.community-card .btn-outline:hover { background: var(--xj-red); color: #fff; }
.community-perks {
  background: var(--warm-cream);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-top: 36px;
}
.community-perks h3 { font-size: 18px; margin-bottom: 16px; text-align: center; }
.community-perks ul { list-style: none; }
.community-perks li {
  padding: 10px 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.community-perks li::before { content: "✓"; color: var(--xj-green); font-weight: bold; font-size: 18px; }

/* ===== Footer ===== */
footer {
  background: var(--dark-brown);
  color: #d7ccc8;
  text-align: center;
  padding: 40px 40px 30px;
  margin-top: 60px;
}
footer p { font-size: 14px; margin-bottom: 8px; }
footer a { color: #e67e22; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  nav { padding: 0 16px; gap: 14px; overflow-x: auto; }
  nav .logo { font-size: 16px; }
  nav a:not(.logo) { font-size: 13px; white-space: nowrap; }
  .hero { padding: 60px 20px 50px; }
  .hero h1 { font-size: 32px; }
  .hero h1 small { font-size: 20px; }
  .hero .subtitle { font-size: 16px; }
  .hero-stats { gap: 24px; }
  .section { padding: 50px 20px; }
  .section-header h2 { font-size: 26px; }
  .mentor-box { flex-direction: column; text-align: center; }
  .course-block { padding: 24px 20px; }
  .page { padding: 0 20px 40px; }
  .kb-article summary { padding: 16px 16px; gap: 12px; font-size: 15px; }
  .kb-article .kb-icon { width: 38px; height: 38px; font-size: 19px; }
  .kb-article .kb-content { padding: 4px 16px 20px; }
  .kb-content .example { padding: 12px 14px; font-size: 13px; }
  .silk-road-map { padding: 24px 12px; }
  .station-node { width: 130px !important; }
  .station-path { display: none; }
  .floating-emoji { display: none; }
  .hero-stars { display: none; }
  .pattern-divider svg { height: 30px; }
}

/* ================================================================
   创新升级：新疆民族花纹 + 丝路星空 + 3D交互 + 滚动揭示
   ================================================================ */

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--warm-sand); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--xj-red), var(--xj-gold));
  border-radius: 999px;
  border: 2px solid var(--warm-sand);
}
::-webkit-scrollbar-thumb:hover { background: var(--xj-red-dark); }

/* ===== 页面加载淡入 ===== */
body { animation: pageFadeIn 0.6s ease-out; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 导航栏增强：滚动变色 ===== */
nav.scrolled {
  height: 56px;
  background: rgba(62, 39, 35, 0.92);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
nav.scrolled .logo { font-size: 18px; }
nav .nav-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 2L25 12L35 12L27 19L30 29L20 23L10 29L13 19L5 12L15 12Z' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E");
}

/* ===== Hero 丝路星空动画 ===== */
.hero { position: relative; overflow: hidden; }
.hero-stars {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-stars .star {
  position: absolute;
  width: 3px; height: 3px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}
.hero-dunes {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.hero-dunes svg { width: 100%; height: 100%; display: block; }
.hero-moon {
  position: absolute;
  top: 40px; right: 8%;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8e0, #f5e6c8);
  box-shadow: 0 0 60px rgba(255, 248, 224, 0.4);
  opacity: 0.7;
  z-index: 0;
  animation: moonGlow 4s infinite ease-in-out;
}
@keyframes moonGlow {
  0%, 100% { box-shadow: 0 0 60px rgba(255, 248, 224, 0.3); }
  50% { box-shadow: 0 0 80px rgba(255, 248, 224, 0.5); }
}
.hero > * { position: relative; z-index: 1; }

/* ===== 浮动装饰元素 ===== */
.floating-emoji {
  position: absolute;
  font-size: 28px;
  opacity: 0.15;
  pointer-events: none;
  animation: floatDrift 8s infinite ease-in-out;
  z-index: 0;
}
@keyframes floatDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -15px) rotate(10deg); }
  50% { transform: translate(-10px, -25px) rotate(-5deg); }
  75% { transform: translate(15px, -10px) rotate(8deg); }
}

/* ===== 动态渐变文字 ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--xj-red), var(--xj-gold), var(--xj-red));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== 3D 倾斜卡片 ===== */
.course-card {
  transform-style: preserve-3d;
  perspective: 800px;
  transition: transform 0.15s ease-out, box-shadow 0.3s;
  will-change: transform;
}
.course-card .card-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(230,126,34,0.15), transparent 60%);
}
.course-card:hover .card-glow { opacity: 1; }
.course-card .card-pattern {
  position: absolute;
  top: 8px; right: 8px;
  width: 60px; height: 60px;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.course-card:hover .card-pattern { opacity: 0.12; }

/* ===== 滚动揭示动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== 花纹分割线 ===== */
.pattern-divider {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  overflow: hidden;
}
.pattern-divider svg { width: 100%; max-width: 600px; height: 50px; }
.pattern-divider .divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--xj-gold), transparent);
}
.pattern-divider .divider-star {
  margin: 0 16px;
  color: var(--xj-gold);
  font-size: 20px;
  animation: spin 8s linear infinite;
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ===== 丝路驿站学习地图 ===== */
.silk-road-map {
  background: linear-gradient(160deg, #2c1810 0%, #3e2723 50%, #4a3020 100%);
  border-radius: var(--radius-lg);
  padding: 50px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(62, 39, 35, 0.3);
}
.silk-road-map::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 5L36 18L50 18L39 27L43 41L30 33L17 41L21 27L10 18L24 18Z' fill='%23e67e22' stroke='%23e67e22' stroke-width='0.5'/%3E%3C/svg%3E");
}
.silk-road-map .map-title {
  text-align: center;
  color: #f5e6d3;
  font-size: 24px;
  margin-bottom: 8px;
  position: relative;
}
.silk-road-map .map-sub {
  text-align: center;
  color: rgba(245, 230, 211, 0.6);
  font-size: 14px;
  margin-bottom: 36px;
  position: relative;
}
.silk-road-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  flex-wrap: wrap;
  gap: 12px;
}
.silk-road-track::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%; right: 8%;
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(230,126,34,0.5) 0, rgba(230,126,34,0.5) 8px, transparent 8px, transparent 16px);
  z-index: 0;
}
.station-node {
  position: relative;
  z-index: 1;
  width: 160px;
  text-align: center;
}
.station-dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 3px solid rgba(230, 126, 34, 0.4);
  background: #3e2723;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}
.station-dot::after {
  content: "";
  position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(230, 126, 34, 0.3);
  animation: spin 12s linear infinite;
}
.station-node:hover .station-dot {
  border-color: var(--xj-gold);
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(230, 126, 34, 0.4);
}
.station-name {
  color: #f5e6d3;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}
.station-desc {
  color: rgba(245, 230, 211, 0.5);
  font-size: 12px;
}
.station-node:last-child .station-dot { border-color: rgba(39, 174, 96, 0.5); }
.station-node:last-child .station-dot::after { border-color: rgba(39, 174, 96, 0.3); }

/* ===== 数字计数动画 ===== */
.stat-num { font-variant-numeric: tabular-nums; }

/* ===== 浮动指南针按钮 ===== */
.compass-btn {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xj-red), var(--xj-gold));
  border: 3px solid #fff;
  box-shadow: 0 4px 20px rgba(192, 57, 43, 0.3);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s;
}
.compass-btn.visible { opacity: 1; transform: scale(1); }
.compass-btn:hover { transform: scale(1.1) rotate(15deg); }
.compass-btn svg {
  width: 28px; height: 28px;
  animation: spin 6s linear infinite;
}

/* ===== 知识库增强 ===== */
.kb-article {
  position: relative;
  overflow: visible;
}
.kb-article::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  transition: all 0.3s;
}
.kb-article:nth-child(1)::before { background: var(--xj-red); }
.kb-article:nth-child(2)::before { background: var(--xj-gold); }
.kb-article:nth-child(3)::before { background: var(--xj-purple); }
.kb-article:nth-child(4)::before { background: var(--xj-green); }
.kb-article:nth-child(5)::before { background: var(--xj-red); }
.kb-article:nth-child(6)::before { background: var(--xj-gold); }
.kb-article:nth-child(7)::before { background: var(--xj-purple); }
.kb-article[open] {
  transform: scale(1.01);
  box-shadow: 0 8px 30px rgba(192, 57, 43, 0.12);
}

/* ===== 案例增强 ===== */
.case-detail {
  transition: transform 0.3s, box-shadow 0.3s;
}
.case-detail:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(192, 57, 43, 0.12);
}
.case-detail .case-banner {
  position: relative;
  overflow: hidden;
}
.case-detail .case-banner::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 2L25 12L35 12L27 19L30 29L20 23L10 29L13 19L5 12L15 12Z' fill='%23fff' stroke='%23fff' stroke-width='0.5'/%3E%3C/svg%3E");
}

/* ===== 课程块增强 ===== */
.course-block {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}
.course-block:hover { transform: translateY(-2px); }
.course-block::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50 5L61 28L85 28L66 44L73 68L50 55L27 68L34 44L15 28L39 28Z' fill='%23c0392b' stroke='%23c0392b' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: top right;
}

/* ===== 社群卡片增强 ===== */
.community-card {
  position: relative;
  overflow: hidden;
}
.community-card::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(230,126,34,0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}
.community-card:hover::before { opacity: 1; }

/* ===== 导师卡片增强 ===== */
.about-card {
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.about-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 30px rgba(192, 57, 43, 0.15);
}
.about-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--xj-red), var(--xj-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.about-card:hover::after { transform: scaleX(1); }

/* ===== 文字选中颜色 ===== */
::selection { background: rgba(192, 57, 43, 0.2); color: var(--xj-red-dark); }

/* ===== 按钮涟漪效果 ===== */
.btn, .btn-white, .btn-outline { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}
@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

/* ===== 减少动画偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ================================================================
   深度创新 V2：暗黑模式 + 毛玻璃 + 打字机 + 磁性按钮 + 页面过渡
   ================================================================ */

/* ===== 暗黑模式变量 ===== */
[data-theme="dark"] {
  --xj-red: #e74c3c;
  --xj-red-dark: #c0392b;
  --xj-gold: #f39c12;
  --xj-green: #2ecc71;
  --xj-purple: #9b59b6;
  --warm-white: #1a1a2e;
  --warm-cream: #2a2a3e;
  --warm-sand: #2e2e42;
  --dark-brown: #e0e0e0;
  --text: #e8e8e8;
  --text-muted: #9999aa;
  --card-bg: #22223a;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] body { background-color: #14141f; }
[data-theme="dark"] nav { background: rgba(26, 26, 46, 0.95); }
[data-theme="dark"] nav.scrolled { background: rgba(20, 20, 31, 0.95); }
[data-theme="dark"] .hero { background: linear-gradient(160deg, #14141f 0%, #1a1a2e 100%); }
[data-theme="dark"] .hero h1 small { color: var(--xj-gold); }
[data-theme="dark"] .hero-tag { background: rgba(231, 76, 60, 0.15); }
[data-theme="dark"] .section { background: transparent; }
[data-theme="dark"] .course-block { background: var(--card-bg); box-shadow: var(--shadow); }
[data-theme="dark"] .lesson-detail { background: #1a1a2e; }
[data-theme="dark"] .lesson-detail .example { background: #2a2a3e; color: #e8e8e8; }
[data-theme="dark"] .lesson-detail .tip { background: rgba(46, 204, 113, 0.1); }
[data-theme="dark"] .kb-article { background: var(--card-bg); }
[data-theme="dark"] .kb-article[open] { box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
[data-theme="dark"] .kb-content .example { background: #2a2a3e; color: #e8e8e8; }
[data-theme="dark"] .case-detail { background: var(--card-bg); }
[data-theme="dark"] .case-step { border-bottom-color: #2e2e42; }
[data-theme="dark"] .overview-card { background: var(--card-bg); }
[data-theme="dark"] .course-syllabus { background: #1a1a2e; border-color: #2e2e42; }
[data-theme="dark"] .sy-objectives li { background: #2a2a3e; color: #e8e8e8; }
[data-theme="dark"] .cta-section { background: linear-gradient(135deg, #1a1a2e, #2a2a3e); }
[data-theme="dark"] .mentor-box { background: var(--card-bg); }
[data-theme="dark"] .community-card { background: var(--card-bg); }
[data-theme="dark"] .page-header h1 { color: var(--xj-red); }
[data-theme="dark"] ::selection { background: rgba(231, 76, 60, 0.3); }
[data-theme="dark"] ::-webkit-scrollbar-track { background: #1a1a2e; }
[data-theme="dark"] .hero-dunes svg path { fill: rgba(231,76,60,0.06); }

/* 主题切换过渡 */
body, nav, .hero, .course-block, .kb-article, .case-detail,
.overview-card, .course-syllabus, .cta-section, .mentor-box,
.community-card, .lesson-detail, .lesson-detail .example,
.lesson-detail .tip, .kb-content .example {
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

/* ===== 主题切换按钮 ===== */
.theme-toggle {
  margin-left: auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s;
  flex-shrink: 0;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.1); border-color: #fff; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ===== 阅读进度条 ===== */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--xj-red), var(--xj-gold), var(--xj-green));
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 8px rgba(230, 126, 34, 0.5);
}

/* ===== 毛玻璃效果 ===== */
.glass {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
[data-theme="dark"] .glass {
  background: rgba(34, 34, 58, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-card {
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  background: rgba(255, 248, 240, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}
[data-theme="dark"] .glass-card {
  background: rgba(34, 34, 58, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* ===== 打字机动画 ===== */
.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--xj-gold);
  animation: typing 3s steps(40, end), blinkCursor 0.7s step-end infinite;
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blinkCursor {
  50% { border-color: transparent; }
}

/* ===== 磁性按钮 ===== */
.magnetic {
  transition: transform 0.2s ease-out;
  will-change: transform;
}

/* ===== 页面过渡覆盖层 ===== */
.page-transition {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--xj-red);
  z-index: 99999;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}
.page-transition.active {
  animation: pageWipe 0.6s ease-in-out forwards;
}
@keyframes pageWipe {
  0% { transform: scaleY(0); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
  51% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}

/* ===== 自定义光标 ===== */
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--xj-red);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--xj-gold);
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.2s, height 0.2s, border-color 0.2s, opacity 0.2s;
  opacity: 0.5;
}
.cursor-ring.hovering {
  width: 50px; height: 50px;
  border-color: var(--xj-red);
  opacity: 0.8;
}
@media (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ===== Hero SVG 天山动画 ===== */
.hero-mountain {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.hero-mountain svg { width: 100%; height: 100%; display: block; }
.hero-mountain .mountain-back {
  animation: parallaxBack 0.8s ease-out;
}
.hero-mountain .mountain-front {
  animation: parallaxFront 0.8s ease-out;
}
@keyframes parallaxBack {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 0.3; }
}
@keyframes parallaxFront {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 0.5; }
}

/* ===== 滚动视差 ===== */
.parallax-bg {
  will-change: transform;
}

/* ===== 增强滚动动画 ===== */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.reveal-flip {
  opacity: 0;
  transform: perspective(800px) rotateY(15deg);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-flip.visible { opacity: 1; transform: perspective(800px) rotateY(0); }

/* ===== 渐变边框卡片 ===== */
.gradient-border {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
}
.gradient-border::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, var(--xj-red), var(--xj-gold), var(--xj-green), var(--xj-purple));
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}
.gradient-border:hover::before { opacity: 1; }

/* ===== 发光文字效果 ===== */
.glow-text {
  text-shadow: 0 0 20px rgba(230, 126, 34, 0.3);
}
[data-theme="dark"] .glow-text {
  text-shadow: 0 0 30px rgba(243, 156, 18, 0.5);
}

/* ===== 卡片悬浮发光 ===== */
.glow-on-hover {
  position: relative;
  transition: box-shadow 0.4s;
}
.glow-on-hover::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 rgba(192, 57, 43, 0);
  transition: box-shadow 0.4s;
  pointer-events: none;
}
.glow-on-hover:hover::after {
  box-shadow: 0 0 30px rgba(192, 57, 43, 0.2);
}

/* ===== 渐变背景动画 ===== */
.animated-bg {
  background: linear-gradient(270deg, var(--warm-white), var(--warm-cream), var(--warm-sand), var(--warm-cream), var(--warm-white));
  background-size: 400% 400%;
  animation: bgShift 15s ease infinite;
}
@keyframes bgShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== 浮动标签 ===== */
.float-badge {
  position: absolute;
  top: -10px; right: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: bold;
  background: linear-gradient(135deg, var(--xj-red), var(--xj-gold));
  color: #fff;
  box-shadow: 0 2px 10px rgba(192, 57, 43, 0.3);
  animation: badgeFloat 3s infinite ease-in-out;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ===== RTL 维吾尔文排版适配 ===== */
html[dir="rtl"] body {
  direction: rtl;
  font-family: "UKIJ Tuz Tom", "Microsoft Uighur", "Scheherazade New", "Noto Naskh Arabic", "Amiri", serif;
}
html[dir="rtl"] nav {
  direction: rtl;
  padding: 0 40px 0 40px;
}
html[dir="rtl"] nav .logo { margin-right: 0; margin-left: auto; }
html[dir="rtl"] .hero { text-align: center; }
html[dir="rtl"] .section-header { text-align: center; }
html[dir="rtl"] .section-header h2 { text-align: center; }
html[dir="rtl"] .lesson-detail { border-left: none; border-right: 3px solid var(--warm-sand); }
html[dir="rtl"] .lesson-exercise { border-left: none; border-right: 3px solid var(--xj-green); }
html[dir="rtl"] .instructor-message { border: 1px dashed var(--xj-gold); }
html[dir="rtl"] .instructor-message .im-sign { text-align: left; }
html[dir="rtl"] .lesson-meta { flex-direction: row; }
html[dir="rtl"] .course-block { border-left: none; border-right: 4px solid; }
html[dir="rtl"] .lesson { flex-direction: row; }
html[dir="rtl"] .lesson-num { margin-right: 0; margin-left: 16px; }
html[dir="rtl"] .tip { border-left: none; border-right: 3px solid var(--xj-green); }
html[dir="rtl"] .example { border-left: none; border-right: 3px solid var(--xj-gold); }
html[dir="rtl"] .overview-card { border-top: 4px solid; }
html[dir="rtl"] .case-steps ol { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] .lesson-exercise ol { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] .kb-item { border-left: none; border-right: 3px solid; }
html[dir="rtl"] .faq-item { border-left: none; border-right: 3px solid; }
html[dir="rtl"] .float-badge { right: auto; left: 16px; }
html[dir="rtl"] .scroll-top { right: auto; left: 24px; }
html[dir="rtl"] .progress-bar { left: auto; right: 0; }
html[dir="rtl"] .custom-cursor-dot { left: auto; right: 0; }
html[dir="rtl"] .lang-switch {
  position: fixed;
  top: 14px;
  left: 200px;
  z-index: 1001;
}
html[dir="rtl"] .lang-switch a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  transition: all 0.2s;
}
html[dir="rtl"] .lang-switch a:hover { background: rgba(255,255,255,0.2); color: #fff; }
html[dir="rtl"] .hero-stats { direction: rtl; }
html[dir="rtl"] .instructor-bio { direction: rtl; }
html[dir="rtl"] .instructor-stats { direction: rtl; }
html[dir="rtl"] .instructor-tags { direction: rtl; }
html[dir="rtl"] .course-overview { direction: rtl; }
html[dir="rtl"] .overview-card { text-align: right; }
html[dir="rtl"] .overview-card .ov-lessons { padding-left: 0; padding-right: 18px; }
html[dir="rtl"] .lesson-info { direction: rtl; }
html[dir="rtl"] .lesson-info h4 { text-align: right; }
html[dir="rtl"] .lesson-info p { text-align: right; }
html[dir="rtl"] .lesson-detail { direction: rtl; text-align: right; }
html[dir="rtl"] .lesson-detail p { text-align: right; }
html[dir="rtl"] .section { direction: rtl; }
html[dir="rtl"] .section-header p { text-align: center; }
html[dir="rtl"] .showcase-card { direction: rtl; }
html[dir="rtl"] .showcase-card .sc-result { text-align: right; }
html[dir="rtl"] .path-card { direction: rtl; }
html[dir="rtl"] .faq-item { direction: rtl; }
html[dir="rtl"] .faq-item .faq-q { text-align: right; }
html[dir="rtl"] .faq-item .faq-a { text-align: right; }
html[dir="rtl"] .cta-section { direction: rtl; }
html[dir="rtl"] .community-card { direction: rtl; }
html[dir="rtl"] .kb-item { direction: rtl; }
html[dir="rtl"] .kb-item .kb-answer { direction: rtl; }
html[dir="rtl"] .case-card { direction: rtl; }
html[dir="rtl"] .case-steps { direction: rtl; }
html[dir="rtl"] .case-result { direction: rtl; }
html[dir="rtl"] .about-advantage { direction: rtl; }
html[dir="rtl"] .about-section { direction: rtl; }
html[dir="rtl"] .hero h1 small { direction: rtl; }
html[dir="rtl"] .subtitle { direction: rtl; }
html[dir="rtl"] .hero-tag { direction: rtl; }

/* ===== RTL 补充：边框方向翻转 ===== */
html[dir="rtl"] .course-block { border-left: none; border-right: 5px solid; }
html[dir="rtl"] .lesson-detail { border-left: none; border-right: 3px solid var(--warm-sand); }
html[dir="rtl"] .lesson-detail ul { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] .lesson-exercise { border-left: none; border-right: 3px solid var(--xj-green); }
html[dir="rtl"] .lesson-exercise ol { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] .tip { border-left: none; border-right: 3px solid var(--xj-green); }
html[dir="rtl"] .example { border-left: none; border-right: 3px solid var(--xj-gold); }
html[dir="rtl"] .case-step .example { border-left: none; border-right: 4px solid var(--xj-gold); }
html[dir="rtl"] .case-step .result { border-left: none; border-right: 4px solid var(--xj-green); }
html[dir="rtl"] .case-steps ol { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] .kb-article { border-left: none; border-right: 4px solid var(--xj-gold); }
html[dir="rtl"] .kb-content h5 { padding-left: 0; padding-right: 10px; border-left: none; border-right: 3px solid var(--xj-gold); }
html[dir="rtl"] .kb-content .example { border-left: none; border-right: 4px solid var(--xj-gold); }
html[dir="rtl"] .kb-content ul { padding-left: 0; padding-right: 4px; }
html[dir="rtl"] .kb-content ul li { padding: 8px 22px 8px 0; }
html[dir="rtl"] .kb-content ul li::before { left: auto; right: 4px; }
html[dir="rtl"] .overview-card .ov-lessons { padding-left: 0; padding-right: 18px; }
html[dir="rtl"] .kb-item { border-left: none; border-right: 3px solid; }
html[dir="rtl"] .faq-item { border-left: none; border-right: 3px solid; }

/* ===== RTL 补充：定位翻转 ===== */
html[dir="rtl"] .instructor-message .im-label { left: auto; right: 16px; }
html[dir="rtl"] .kb-article summary::after { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .article-item .a-arrow { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .theme-toggle { margin-left: 0; margin-right: auto; }

/* ===== RTL 补充：文本对齐 ===== */
html[dir="rtl"] .course-card { text-align: right; }
html[dir="rtl"] .case-step .step-text { text-align: right; }
html[dir="rtl"] .case-step .step-text h4 { text-align: right; }
html[dir="rtl"] .case-step .step-text p { text-align: right; }
html[dir="rtl"] .kb-article summary { text-align: right; }
html[dir="rtl"] .kb-content { text-align: right; }
html[dir="rtl"] .kb-content p { text-align: right; }
html[dir="rtl"] .kb-content h5 { text-align: right; }
html[dir="rtl"] .instructor-info { text-align: right; }
html[dir="rtl"] .ins-title { text-align: right; }
html[dir="rtl"] .ins-desc { text-align: right; }
html[dir="rtl"] .course-block .cb-desc { text-align: right; }
html[dir="rtl"] .page-header { text-align: right; }
html[dir="rtl"] .page-header h1 { text-align: right; }
html[dir="rtl"] .page-header p { text-align: right; }
html[dir="rtl"] .community-card { text-align: center; }
html[dir="rtl"] .about-card { text-align: center; }
html[dir="rtl"] .cta-section { text-align: center; }

/* ===== RTL 补充：组件布局 ===== */
html[dir="rtl"] .course-card .icon { margin-right: 0; }
html[dir="rtl"] .case-step { flex-direction: row; }
html[dir="rtl"] .case-step .step-num { margin-right: 0; margin-left: 16px; }
html[dir="rtl"] .cb-head { flex-direction: row; }
html[dir="rtl"] .cb-icon { margin-right: 0; margin-left: 0; }
html[dir="rtl"] .lesson { flex-direction: row; }
html[dir="rtl"] .lesson-num { margin-right: 0; margin-left: 16px; }
html[dir="rtl"] .mentor-box { flex-direction: row; }
html[dir="rtl"] .silk-road-track { flex-direction: row; }
html[dir="rtl"] .course-grid { direction: rtl; }
html[dir="rtl"] .community-grid { direction: rtl; }
html[dir="rtl"] .about-grid { direction: rtl; }

/* ===== RTL 补充：浮动徽章和滚动 ===== */
html[dir="rtl"] .float-badge { right: auto; left: 16px; }
html[dir="rtl"] .scroll-top { right: auto; left: 24px; }
html[dir="rtl"] .progress-bar { left: auto; right: 0; }
/* ===== 微信引流组件 ===== */
.wx-float { position: fixed; right: 16px; bottom: 16px; z-index: 9999; }
.wx-float-btn { width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(20,20,20,0.55); backdrop-filter: blur(4px); font-size: 22px; color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.3); opacity: .85; transition: opacity .2s; }
.wx-float-btn:hover { opacity: 1; }
.wx-float-card { position: absolute; right: 0; bottom: 58px; width: 248px; background: #fff; color: #222;
  border-radius: 12px; padding: 16px; text-align: center; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.wx-float-card img { width: 100%; height: auto; border-radius: 6px; }
.wx-float-card .wx-title { font-weight: 700; margin: 8px 0 2px; font-size: 15px; }
.wx-float-card .wx-sub { font-size: 13px; color: #555; margin: 0 0 6px; }
.wx-float-card .wx-alt { font-size: 12px; color: #999; margin: 0; }
.wx-close { position: absolute; top: 4px; right: 8px; border: none; background: none; font-size: 18px; cursor: pointer; color: #888; }
.wx-footer { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px auto 0; max-width: 520px; }
.wx-footer img { border-radius: 6px; flex-shrink: 0; }
.wx-footer p { text-align: left; font-size: 13px; margin: 0; }
.wx-about-card { margin-top: 22px; }
.wx-about-card img { width: 240px; max-width: 80%; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.wx-about-card .wx-alt { font-size: 13px; opacity: .85; }
@media (max-width: 768px) {
  .wx-float { right: 12px; bottom: 12px; }
  .wx-float-btn { width: 42px; height: 42px; font-size: 18px; }
  .wx-float-card { width: 210px; }
}

/* RTL: 悬浮按钮放左下角，卡片文字右对齐 */
html[dir="rtl"] .wx-float { right: auto; left: 16px; }
html[dir="rtl"] .wx-float-card { right: auto; left: 0; }
html[dir="rtl"] .wx-footer p { text-align: right; }
html[dir="rtl"] body { font-family: "Noto Naskh Arabic", "UKIJ Tuz", "Microsoft Uighur", serif; }
/* ===== 首页入场动效（Kimi 式极简：暖白底+大字渐入） ===== */
.intro-overlay { display: none; }
html.intro-on .intro-overlay { display: flex; position: fixed; inset: 0; z-index: 99999;
  background: #fbfaf9; align-items: center; justify-content: center; flex-direction: column;
  cursor: pointer; animation: introFadeOut .55s ease 1.5s forwards; }
.intro-title { color: #1a1a1a; font-size: 34px; font-weight: 600; letter-spacing: .12em;
  opacity: 0; transform: translateY(14px); filter: blur(6px);
  animation: introText .8s cubic-bezier(.22,.61,.36,1) .15s forwards; }
.intro-line { width: 44px; height: 2px; margin-top: 16px; border-radius: 2px;
  background: linear-gradient(90deg, #c0392b, #d4a03c);
  transform: scaleX(0); opacity: .9; animation: introLine .6s ease-out .75s forwards; }
@keyframes introLine { to { transform: scaleX(1); } }
@keyframes introText { to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes introFadeOut { to { opacity: 0; visibility: hidden; } }
@media (max-width: 768px) { .intro-title { font-size: 24px; } }
