/* ============================================================
   汉教Html工坊 · 单课课堂包
   只用于旗舰单课入口、HSK1 第1课总控页与学生任务单
   ============================================================ */

.lp-home-feature,
.lp-prep-feature,
.lp-hero,
.lp-step,
.lp-rail-card,
.lp-sheet {
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-1);
}

.lp-kicker,
.lp-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--brand);
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .14em;
}

.lp-kicker::before,
.lp-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--brand);
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s, background .16s, border-color .16s, box-shadow .16s;
}

.lp-btn:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20,70,52,.16);
}

.lp-btn:active { transform: translateY(0) scale(.99); }
.lp-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.lp-btn--ghost {
  color: var(--brand);
  background: rgba(255,255,255,.72);
  border-color: var(--brand-line);
  box-shadow: none;
}

.lp-btn--ghost:hover {
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-color: var(--brand);
}

.lp-btn--small {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 12.5px;
  border-radius: 9px;
}

/* 首页更新轮播 */
.lp-home-carousel {
  position: relative;
  margin: 24px 0 0;
}

.lp-carousel-viewport {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  touch-action: pan-y;
}

.lp-home-carousel .lp-carousel-slide {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity .38s ease, transform .38s ease, visibility .38s;
}

.lp-home-carousel .lp-carousel-slide.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
}

/* 首页桌面端：按参考图压缩到更接近的一屏密度 */
@media (min-width: 1280px) {
  .tw-body .tw-topbar-in {
    padding: 6px 18px;
  }

  .tw-body .tw-brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .tw-body .tw-shell {
    grid-template-columns: 190px minmax(0,1fr) 352px;
    gap: 10px 14px;
    padding: 10px 18px 16px;
  }

  .tw-body .tw-sidebar {
    height: calc(100vh - 92px);
    max-height: calc(100vh - 92px);
    padding: 14px 11px;
  }

  .tw-body .tw-hero {
    min-height: 226px;
    grid-template-columns: minmax(0,1fr) 280px;
    gap: 14px;
    padding: 17px 21px;
    border-radius: 19px;
  }

  .tw-body .tw-kicker {
    margin-bottom: 7px;
    padding: 2px 7px;
    font-size: 10px;
  }

  .tw-body .tw-hero h1 {
    max-width: 14em;
    margin-bottom: 7px;
    font-size: 34px;
    line-height: 1.14;
  }

  .tw-body .tw-hero-lede {
    max-width: 36em;
    font-size: 12.5px;
    line-height: 1.55;
  }

  .tw-body .tw-hero-actions {
    margin-top: 10px;
    gap: 8px;
  }

  .tw-body .tw-btn {
    min-height: 32px;
    padding: 0 11px;
    font-size: 11.5px;
    border-radius: 9px;
  }

  .tw-body .tw-btn-hero {
    min-height: 35px;
    padding: 0 13px;
    font-size: 12px;
  }

  .tw-body .tw-hero-art svg {
    max-width: 258px;
  }

  .tw-body .lp-home-carousel {
    margin-top: 10px;
  }

  .tw-body .lp-home-feature {
    height: 220px;
    min-height: 220px;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 20px;
    padding: 15px 20px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(20,70,52,.08);
  }

  .tw-body .lp-home-feature::before {
    top: 15px;
    bottom: 15px;
    width: 4px;
  }

  .tw-body .lp-home-copy h2 {
    margin: 5px 0 4px;
    font-size: 28px;
    line-height: 1.18;
  }

  .tw-body .lp-home-copy p {
    font-size: 11.5px;
    line-height: 1.48;
  }

  .tw-body .lp-home-actions {
    margin-top: 8px;
    gap: 7px;
  }

  .tw-body .lp-home-note {
    font-size: 10px;
  }

  .tw-body .lp-home-visual {
    min-height: 148px;
  }

  .tw-body .lp-home-shot {
    border-width: 6px;
    border-radius: 13px;
  }

  .tw-body .lp-home-shot--a {
    top: 8px;
    height: 126px;
  }

  .tw-body .lp-home-shot--b {
    height: 126px;
  }

  .tw-body .lp-home-badge {
    right: 4px;
    bottom: 1px;
    padding: 6px 9px;
    font-size: 10px;
    border-radius: 10px;
  }

  .tw-body .lp-carousel-controls {
    min-height: 28px;
    padding-top: 5px;
  }

  .tw-body .lp-carousel-btn,
  .tw-body .lp-carousel-toggle {
    min-height: 21px;
    padding: 0 7px;
    font-size: 9px;
  }

  .tw-body .tw-flow {
    padding: 5px 8px;
    border-radius: 14px;
  }

  .tw-body .tw-flow-link {
    min-height: 46px;
    padding: 5px 7px;
  }

  .tw-body .tw-flow-step {
    width: 23px;
    height: 23px;
    font-size: 9px;
  }

  .tw-body .tw-flow-icon {
    width: 29px;
    height: 29px;
  }

  .tw-body .tw-flow-body b {
    font-size: 11.5px;
  }

  .tw-body .tw-flow-body small {
    min-height: 0;
    font-size: 9.5px;
  }

  .tw-body .tw-section-head {
    margin-bottom: 5px;
  }

  .tw-body .tw-section-title {
    font-size: 16px;
  }

  .tw-body .tw-tool-grid {
    gap: 10px;
  }

  .tw-body .tw-tool-card {
    padding: 9px 11px;
    border-radius: 14px;
  }

  .tw-body .tw-tool-card-head {
    grid-template-columns: 30px minmax(0,1fr);
    gap: 7px;
  }

  .tw-body .tw-tool-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .tw-body .tw-tool-card-head h3 {
    font-size: 13px;
  }

  .tw-body .tw-tool-card-head p {
    margin-top: 2px;
    font-size: 9.5px;
    line-height: 1.38;
  }

  .tw-body .tw-tool-cta {
    min-height: 27px;
    margin-top: 6px;
    font-size: 9.5px;
    border-radius: 8px;
  }

  .tw-body .tw-tool-list {
    margin-top: 5px;
    padding-top: 0;
  }

  .tw-body .tw-tool-list li a {
    min-height: 25px;
    padding: 3px 5px;
    font-size: 9.5px;
  }

  .tw-body .tw-tool-list .tw-icon {
    width: 13px;
    height: 13px;
  }
}

.lp-carousel-controls {
  min-height: 34px;
  padding: 8px 2px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.lp-carousel-controls[hidden] {
  display: none;
}

.lp-carousel-btn,
.lp-carousel-toggle {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--ink-soft);
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.lp-carousel-btn:hover,
.lp-carousel-toggle:hover {
  color: var(--brand);
  border-color: var(--brand-line);
  background: var(--brand-soft);
}

.lp-carousel-btn:focus-visible,
.lp-carousel-toggle:focus-visible,
.lp-carousel-dot:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.lp-carousel-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 4px;
}

.lp-carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c8d8d1;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.lp-carousel-dot.is-active {
  width: 20px;
  background: var(--brand);
}

/* 首页旗舰入口 */
.lp-home-feature {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 30px 32px;
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr);
  gap: 34px;
  border-radius: 22px;
  background:
    radial-gradient(520px 260px at 94% 10%, rgba(218,239,228,.9), transparent 70%),
    linear-gradient(135deg,#ffffff 0%,#f4fbf7 64%,#eaf6ef 100%);
  box-shadow: 0 18px 42px rgba(20,70,52,.10);
}

.lp-home-feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 30px;
  bottom: 30px;
  width: 5px;
  border-radius: 0 5px 5px 0;
  background: var(--brand);
}

.lp-home-copy { align-self: center; min-width: 0; }

.lp-home-copy h2 {
  margin: 10px 0 9px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(27px,3vw,39px);
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: .01em;
  text-wrap: balance;
}

.lp-home-copy p {
  max-width: 62ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.lp-home-actions {
  margin-top: 19px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lp-home-feature .lp-home-actions .lp-btn {
  color: #fff;
}

.lp-home-feature .lp-home-actions .lp-btn--ghost {
  color: var(--brand);
}

html[data-theme="dim"] .lp-home-feature .lp-home-actions .lp-btn {
  color: #10231a;
}

html[data-theme="dim"] .lp-home-feature .lp-home-actions .lp-btn--ghost {
  color: #dcece3;
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}

html[data-theme="dim"] .lp-home-feature .lp-home-actions .lp-btn--ghost:hover {
  color: #f2faf5;
  background: rgba(143,191,164,.15);
  border-color: var(--brand);
}

html[data-theme="dim"] .lp-carousel-btn,
html[data-theme="dim"] .lp-carousel-toggle {
  background: rgba(255,255,255,.05);
  border-color: var(--rule);
  color: var(--ink-soft);
}

html[data-theme="dim"] .lp-carousel-dot {
  background: #62584d;
}

html[data-theme="dim"] .lp-carousel-dot.is-active {
  background: var(--brand);
}

.lp-home-note {
  color: var(--ink-soft);
  font-size: 12px;
}

.lp-home-visual {
  position: relative;
  min-height: 210px;
}

.lp-home-shot {
  position: absolute;
  overflow: hidden;
  border: 7px solid #fff;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(20,70,52,.15);
}

.lp-home-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lp-home-shot--a {
  left: 0;
  top: 17px;
  width: 62%;
  height: 178px;
  transform: rotate(-2deg);
}

.lp-home-shot--b {
  right: 0;
  top: 0;
  width: 48%;
  height: 178px;
  transform: rotate(2.4deg);
}

.lp-home-badge {
  position: absolute;
  right: 8px;
  bottom: 3px;
  z-index: 2;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  box-shadow: 0 9px 18px rgba(20,70,52,.18);
}

/* 备课区旗舰入口 */
.lp-prep-feature {
  margin: 24px 0 30px;
  padding: 25px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  border-radius: 18px;
  background:
    linear-gradient(110deg,rgba(231,243,236,.78),rgba(255,255,255,.94) 58%),
    var(--card);
}

.lp-prep-feature h2 {
  margin: 8px 0 7px;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.3;
  font-weight: 600;
}

.lp-prep-feature p {
  margin: 0;
  max-width: 72ch;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.lp-prep-side {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lp-prep-steps {
  display: flex;
  gap: 5px;
}

.lp-prep-steps span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

/* 单课页面骨架 */
.lp-wrap {
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px 28px 64px;
}

.lp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.lp-breadcrumb a {
  color: var(--brand);
  font-weight: 700;
}

.lp-breadcrumb a:hover { text-decoration: underline; }

.lp-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr);
  gap: 36px;
  padding: 38px 40px 34px;
  border-radius: 24px;
  background:
    radial-gradient(520px 250px at 92% 8%, rgba(223,243,234,.92), transparent 68%),
    linear-gradient(135deg,#ffffff 0%,#f8fdf9 62%,#eef8f2 100%);
}

.lp-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: -120px;
  border: 1px solid rgba(31,107,79,.12);
  border-radius: 50%;
  pointer-events: none;
}

.lp-hero-copy { align-self: center; min-width: 0; }

.lp-lesson-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 11px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
}

.lp-lesson-badge b {
  padding-left: 9px;
  border-left: 1px solid var(--brand-line);
}

.lp-hero h1 {
  max-width: none;
  margin: 18px 0 14px;
  font-size: clamp(34px,4vw,54px);
  line-height: 1.17;
  text-wrap: balance;
}

.lp-hero h1 em {
  color: var(--brand);
  font-style: normal;
}

.lp-title-book,
.lp-title-action {
  display: block;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

.lp-title-action {
  margin-top: 3px;
}

.lp-hero-lede {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.78;
}

.lp-hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lp-meta-strip {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
}

.lp-meta-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
}

.lp-meta-strip b {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.lp-hero-side {
  align-self: stretch;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  min-width: 0;
}

.lp-collage {
  position: relative;
  min-height: 270px;
}

.lp-collage img {
  position: absolute;
  display: block;
  width: 55%;
  height: 218px;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(20,70,52,.16);
}

.lp-collage img:first-child {
  left: 0;
  top: 23px;
  transform: rotate(-2.3deg);
}

.lp-collage img:last-child {
  right: 0;
  top: 0;
  transform: rotate(2.6deg);
}

.lp-ready-card {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--brand-line);
  border-radius: 16px;
  background: rgba(255,255,255,.84);
}

.lp-ready-ring {
  --p: 0;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--rule-soft) 0);
  position: relative;
}

.lp-ready-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}

.lp-ready-ring b {
  position: relative;
  z-index: 1;
  color: var(--brand);
  font-size: 13px;
}

.lp-ready-copy b {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.lp-ready-copy span {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.55;
}

/* 主工作区 */
.lp-workbench {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 280px minmax(0,1fr);
  gap: 22px;
  align-items: start;
}

.lp-rail {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 14px;
}

.lp-rail-card {
  padding: 19px;
  border-radius: 17px;
}

.lp-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lp-rail-head b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.lp-rail-head span {
  color: var(--ink-soft);
  font-size: 11.5px;
}

.lp-progress-track {
  height: 8px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--rule-soft);
}

.lp-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,var(--brand),#5ba986);
  transition: width .25s ease;
}

.lp-step-links {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.lp-step-links a {
  min-height: 43px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  transition: background .16s,border-color .16s,color .16s;
}

.lp-step-links a:hover,
.lp-step-links a:focus-visible {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: var(--brand-line);
  outline: none;
}

.lp-step-links a.is-done {
  color: var(--brand);
  background: rgba(231,243,236,.72);
}

.lp-step-links a.is-done::after {
  content: "✓";
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
}

.lp-step-links .n {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
}

.lp-rail-reset {
  margin-top: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}

.lp-rail-reset:hover { color: var(--brand); text-decoration: underline; }

.lp-rail-note {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.lp-rail-note b { color: var(--ink); }

.lp-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.lp-step {
  scroll-margin-top: 84px;
  padding: 28px;
  border-radius: 20px;
}

.lp-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.lp-step-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  min-width: 0;
}

.lp-step-no {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.lp-step-title-wrap h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
  font-weight: 600;
}

.lp-step-title-wrap p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.65;
}

.lp-step-mark {
  flex: none;
  min-width: 92px;
  padding: 9px 12px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.lp-step-mark:hover { background: var(--brand-soft); }
.lp-step-mark[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.lp-step-body { margin-top: 24px; }

.lp-objective-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 11px;
}

.lp-objective {
  min-height: 126px;
  padding: 17px 16px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fbfdfb;
}

.lp-objective span {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.lp-objective b {
  display: block;
  margin-top: 13px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.lp-objective small {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.55;
}

.lp-academic-note {
  margin-top: 14px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 13px;
  border-left: 4px solid var(--fun);
  border-radius: 0 13px 13px 0;
  background: #fbf5eb;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.7;
}

.lp-academic-note b { color: var(--fun); }

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

.lp-visual-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--rule);
  border-radius: 15px;
  background: #fff;
}

.lp-visual-card img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
}

.lp-visual-card figcaption {
  padding: 12px 14px 14px;
  background: #fff;
}

.lp-visual-card b {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.lp-visual-card span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.5;
}

.lp-timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.lp-stage {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 0 0 22px;
  position: relative;
}

.lp-stage:last-child { padding-bottom: 0; }

.lp-stage::before {
  content: "";
  position: absolute;
  left: 45px;
  top: 42px;
  bottom: 0;
  width: 2px;
  background: var(--brand-line);
}

.lp-stage:last-child::before { display: none; }

.lp-time {
  width: 92px;
  min-height: 42px;
  padding: 8px 7px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
}

.lp-stage-card {
  padding: 17px 18px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fbfdfb;
}

.lp-stage-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.lp-stage-card p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.7;
}

.lp-stage-card .lp-output {
  margin-top: 10px;
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 800;
}

.lp-material-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lp-material {
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fbfdfb;
}

.lp-material b {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.lp-material span {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.6;
}

.lp-material .lp-arrow {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}

.lp-word-bank {
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed var(--brand-line);
  border-radius: 14px;
  background: #f5fbf7;
}

.lp-word-bank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lp-word-bank-head b {
  color: var(--ink);
  font-size: 13.5px;
}

.lp-word-list {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.lp-word-list span {
  padding: 5px 9px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.lp-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lp-check {
  min-height: 145px;
  padding: 19px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fbfdfb;
}

.lp-check .lp-label { color: var(--fun); }
.lp-check h3 { margin: 11px 0 0; color: var(--ink); font-size: 17px; }
.lp-check p { margin: 7px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }

.lp-download-box {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 20px;
  align-items: center;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
}

.lp-download-box h3 {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
}

.lp-download-box p {
  margin: 7px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 12px;
  line-height: 1.6;
}

.lp-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.lp-download-box .lp-btn {
  background: #fff;
  border-color: #fff;
  color: var(--brand-deep);
}

.lp-download-box .lp-btn--ghost {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

.lp-copy-status {
  min-width: 72px;
  color: var(--ink-soft);
  font-size: 11px;
  text-align: right;
}

.lp-footer {
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 12px;
}

.lp-footer b { color: var(--ink); }

/* 学生任务单 */
.ws-topline {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ws-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 20px 58px;
}

.lp-sheet {
  padding: 42px 46px;
  border-radius: 18px;
}

.ws-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.ws-brand {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.ws-head h1 {
  margin: 9px 0 5px;
  font-size: 32px;
  line-height: 1.25;
}

.ws-head p { margin: 0; color: var(--ink-soft); font-size: 13px; }

.ws-meta {
  min-width: 170px;
  display: grid;
  gap: 9px;
  align-content: start;
  color: var(--ink-soft);
  font-size: 12px;
}

.ws-meta span {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}

.ws-section {
  padding: 25px 0;
  border-bottom: 1px solid var(--rule);
}

.ws-section:last-of-type { border-bottom: 0; }

.ws-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.ws-section h2 {
  margin: 0;
  font-size: 20px;
}

.ws-points {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

.ws-section > p,
.ws-note {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.65;
}

.ws-choice-grid,
.ws-role-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ws-choice,
.ws-role {
  min-height: 104px;
  padding: 15px;
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.ws-choice b,
.ws-role b {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.ws-choice p,
.ws-role p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.ws-answer-line {
  margin-top: 12px;
  height: 28px;
  border-bottom: 1px solid #a8b9af;
}

.ws-dialogue {
  margin-top: 14px;
  display: grid;
  gap: 9px;
}

.ws-line {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: end;
}

.ws-who {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.ws-text {
  min-height: 31px;
  padding-bottom: 5px;
  border-bottom: 1px solid #b8c6bf;
  color: var(--ink);
  font-size: 14px;
}

.ws-checklist {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.ws-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
}

.ws-checklist li::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: none;
  border: 1.5px solid var(--brand);
  border-radius: 4px;
}

.ws-answer-key {
  margin-top: 15px;
  padding: 14px 16px;
  border: 1px dashed var(--brand-line);
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.ws-answer-key[hidden] { display: none; }

.ws-foot {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 10.5px;
}

/* 护眼模式 */
html[data-theme="dim"] .lp-home-feature,
html[data-theme="dim"] .lp-prep-feature,
html[data-theme="dim"] .lp-hero {
  background:
    radial-gradient(520px 250px at 92% 8%, rgba(143,191,164,.10), transparent 68%),
    var(--card);
  border-color: rgba(255,255,255,.08);
}

html[data-theme="dim"] .lp-step,
html[data-theme="dim"] .lp-rail-card,
html[data-theme="dim"] .lp-sheet {
  border-color: rgba(255,255,255,.08);
}

html[data-theme="dim"] .lp-objective,
html[data-theme="dim"] .lp-stage-card,
html[data-theme="dim"] .lp-material,
html[data-theme="dim"] .lp-check,
html[data-theme="dim"] .lp-visual-card figcaption {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.08);
}

html[data-theme="dim"] .lp-academic-note {
  background: rgba(203,122,50,.10);
  color: var(--ink-soft);
}

html[data-theme="dim"] .lp-word-bank {
  background: rgba(143,191,164,.08);
}

html[data-theme="dim"] .lp-word-list span,
html[data-theme="dim"] .lp-step-mark,
html[data-theme="dim"] .lp-step-links a:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--rule);
}

html[data-theme="dim"] .lp-step-mark[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #10231a;
}

html[data-theme="dim"] .lp-ready-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}

html[data-theme="dim"] .lp-ready-ring::before { background: var(--card); }

html[data-theme="dim"] .lp-arrow,
html[data-theme="dim"] .lp-time,
html[data-theme="dim"] .lp-step-no {
  background: rgba(143,191,164,.13);
}

html[data-theme="dim"] .ws-choice,
html[data-theme="dim"] .ws-role,
html[data-theme="dim"] .ws-answer-key {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.10);
}

/* 响应式 */
@media (max-width:1180px) {
  .lp-home-feature { grid-template-columns: 1fr 360px; }
  .lp-hero { grid-template-columns: 1fr 360px; gap: 24px; padding: 32px; }
  .lp-workbench { grid-template-columns: 245px minmax(0,1fr); }
  .lp-objective-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width:980px) {
  .lp-home-feature { grid-template-columns: 1fr; }
  .lp-home-visual { min-height: 210px; max-width: 560px; }
  .lp-prep-feature { grid-template-columns: 1fr; }
  .lp-prep-side { justify-content: flex-start; }
  .lp-hero { grid-template-columns: 1fr; }
  .lp-hero-side { grid-template-columns: minmax(0,1fr) minmax(240px,.7fr); grid-template-rows: auto; }
  .lp-collage { min-height: 250px; }
  .lp-workbench { grid-template-columns: 1fr; }
  .lp-rail { position: static; grid-template-columns: 1fr 1fr; }
  .lp-content { min-width: 0; }
}

@media (max-width:760px) {
  .lp-wrap { padding: 20px 16px 48px; }
  .lp-home-feature { padding: 24px 21px; border-radius: 18px; }
  .lp-home-feature::before { top: 23px; bottom: 23px; }
  .lp-home-copy h2 { font-size: 29px; }
  .lp-home-shot--a { width: 67%; }
  .lp-home-shot--b { width: 46%; }
  .lp-carousel-controls { justify-content: space-between; }
  .lp-carousel-btn { display: none; }
  .lp-carousel-toggle { margin-left: auto; }
  .lp-hero { padding: 24px 21px; border-radius: 19px; }
  .lp-hero h1 { font-size: 34px; max-width: none; letter-spacing: -.025em; }
  .lp-hero-side { grid-template-columns: 1fr; }
  .lp-collage { min-height: 235px; }
  .lp-collage img { height: 190px; width: 56%; }
  .lp-rail { grid-template-columns: 1fr; }
  .lp-step { padding: 21px 18px; }
  .lp-step-head { display: grid; }
  .lp-step-mark { width: 100%; }
  .lp-objective-grid,
  .lp-visual-grid,
  .lp-material-grid,
  .lp-check-grid,
  .ws-choice-grid,
  .ws-role-grid { grid-template-columns: 1fr; }
  .lp-visual-card img { height: 250px; }
  .lp-download-box { grid-template-columns: 1fr; }
  .lp-download-actions { justify-content: flex-start; }
  .lp-sheet { padding: 27px 21px; }
  .ws-head { display: block; }
  .ws-meta { min-width: 0; margin-top: 18px; grid-template-columns: 1fr 1fr; }
  .ws-meta span:last-child { grid-column: 1/-1; }
}

@media (max-width:520px) {
  .lp-hero h1 {
    font-size: 30px;
    letter-spacing: -.035em;
  }
}

@media (max-width:520px) {
  .lp-home-actions .lp-btn,
  .lp-hero-actions .lp-btn { width: 100%; }
  .lp-home-badge { font-size: 10.5px; }
  .lp-meta-strip { display: grid; grid-template-columns: 1fr 1fr; }
  .lp-stage { grid-template-columns: 72px 1fr; gap: 12px; }
  .lp-stage::before { left: 35px; }
  .lp-time { width: 72px; font-size: 10.5px; }
  .lp-academic-note { grid-template-columns: 1fr; gap: 5px; }
  .lp-step-title-wrap { gap: 11px; }
  .lp-step-no { width: 36px; height: 36px; border-radius: 10px; }
  .lp-step-title-wrap h2 { font-size: 23px; }
  .ws-section-head { display: block; }
  .ws-points { display: block; margin-top: 4px; }
}

@media print {
  body { background: #fff !important; }
  .topbar,
  .ws-topline,
  .theme-toggle,
  .lp-footer,
  .lp-btn,
  .lp-rail { display: none !important; }
  .ws-wrap { max-width: none; padding: 0; }
  .lp-sheet { border: 0; box-shadow: none; border-radius: 0; padding: 0; }
  .ws-section { break-inside: avoid; }
  .ws-answer-key { display: none !important; }
  @page { size: A4; margin: 14mm; }
}
