:root {
  --page: #f3efe6;
  --paper: #fffdf8;
  --ink: #14231f;
  --sub: #5f6c66;
  --faint: #8b938e;
  --brand: #123c34;
  --brand-2: #1f5e51;
  --gold: #b98a2f;
  --gold-soft: #fff2cf;
  --line: #e4dac8;
  --mint: #e7f4ec;
  --danger: #9b3d18;
  --shadow: 0 18px 50px rgba(32, 42, 37, .12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(185, 138, 47, .14), transparent 30%),
    linear-gradient(180deg, #fbf7ee, var(--page));
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, sans-serif;
}
a { color: inherit; text-decoration: none; }

.shell {
  max-width: 620px;
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, #fffaf0 0%, #f7f1e6 100%);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 60, 52, .96), rgba(31, 94, 81, .96)),
    url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 119h120M119 0v120' stroke='%23d8bf7c' stroke-opacity='.18'/%3E%3C/svg%3E");
}
.hero:before {
  content: "";
  position: absolute;
  right: -42px;
  top: -46px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 236, 181, .25);
  transform: rotate(18deg);
}
.hero > * { position: relative; z-index: 1; }
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #e9d9a8;
  font-size: 12px;
  font-weight: 800;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-mark:before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(185, 138, 47, .18);
}
.kicker {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(236, 211, 145, .45);
  border-radius: 999px;
  color: #f1d999;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.hero h1 {
  margin: 12px 0 8px;
  max-width: 12em;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: 0;
}
.hero p {
  margin: 0;
  max-width: 31em;
  color: #e2ece8;
  font-size: 14px;
  line-height: 1.75;
}
.hero .hero-line {
  margin-top: 10px;
  color: #ffe58d;
  font-size: 13px;
  font-weight: 800;
}
.hero-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.stat {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .09);
}
.stat b {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: 4px;
  color: #d8e4df;
  font-size: 11px;
  white-space: nowrap;
}

.content { padding: 16px; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: #f0d892;
  font-size: 14px;
  font-weight: 900;
}
.back:before { content: "<"; }
.section { margin-top: 18px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.section-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}
.section-head span {
  color: var(--faint);
  font-size: 12px;
  white-space: nowrap;
}
.grid, .list { display: grid; gap: 11px; }
.cover-grid { display: grid; gap: 14px; }

.course-cover {
  position: relative;
  display: block;
  min-height: 186px;
  overflow: hidden;
  border-radius: 22px;
  padding: 16px;
  color: #fff;
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(17, 54, 47, .96), rgba(34, 103, 88, .92)),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.18), transparent 28%);
}
.course-cover:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .24;
  background:
    linear-gradient(120deg, transparent 0 50%, rgba(255,255,255,.18) 50% 51%, transparent 51%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 18px);
}
.course-cover:after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 170px;
  height: 170px;
  border-radius: 42px;
  border: 1px solid rgba(255,255,255,.24);
  transform: rotate(18deg);
}
.course-cover > * { position: relative; z-index: 1; }
.cover-top, .cover-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cover-top span {
  color: #e7d49b;
  font-size: 12px;
  font-weight: 900;
}
.cover-top b {
  min-width: 58px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  color: #fff3bf;
  font-size: 12px;
  text-align: center;
}
.cover-body {
  display: block;
  max-width: 78%;
  margin: 30px 0 24px;
}
.cover-name {
  font-size: 26px;
  line-height: 1.08;
  font-weight: 950;
}
.cover-title {
  margin-top: 6px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.5;
}
.cover-bottom {
  flex-wrap: wrap;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 800;
}
.cover-bottom strong {
  margin-left: auto;
  color: #fff;
}
.course-cover.is-locked {
  filter: saturate(.78);
}
.course-cover.is-locked .cover-top b {
  background: rgba(255, 235, 176, .22);
}
.tone-maternal { background: linear-gradient(135deg, #613c43, #1c5a4f); }
.tone-infant { background: linear-gradient(135deg, #29506f, #1d6a62); }
.tone-care { background: linear-gradient(135deg, #2f4e42, #78612e); }
.tone-medical { background: linear-gradient(135deg, #174c50, #255d82); }
.tone-safety { background: linear-gradient(135deg, #61311f, #293d4f); }
.tone-security { background: linear-gradient(135deg, #28313f, #625327); }
.tone-service { background: linear-gradient(135deg, #394b44, #70622d); }
.tone-health { background: linear-gradient(135deg, #264f38, #235764); }
.tone-office { background: linear-gradient(135deg, #343f55, #244f4d); }
.tone-build, .tone-policy { background: linear-gradient(135deg, #31465c, #7a6429); }

.card, .item, .panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, .92);
  box-shadow: var(--shadow);
}
.card, .item { display: block; padding: 14px; }
.panel { padding: 16px; }
.row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.seal, .resource-index {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
}
.seal.lock, .resource-index.lock {
  background: var(--gold-soft);
  color: #8a5f12;
}
.main { min-width: 0; flex: 1; }
.title {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.38;
  font-weight: 950;
}
.desc {
  margin-top: 6px;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.65;
}
.meta {
  margin-top: 7px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.6;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.chip.open { background: #dcf1e4; color: #17643f; }
.chip.lock { background: var(--gold-soft); color: #835a11; }
.chip.neutral { background: #eee7da; color: #56625d; }
.chip.dark { background: var(--brand); color: #fff; }
.chip.video-chip {
  background: #e8f1ff;
  color: #184f91;
}
.chip.document-chip {
  background: #f4ead2;
  color: #7b5412;
}
.arrow {
  margin-left: auto;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}
.item:active, .card:active { transform: translateY(1px); }
.chapter-block { margin-top: 16px; }
.chapter-block:first-of-type { margin-top: 0; }
.chapter-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px;
  color: var(--brand);
  font-size: 16px;
  font-weight: 950;
}
.chapter-title span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
}

.last-viewed {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid #d7c08b;
  border-radius: 17px;
  background: linear-gradient(135deg, #fff7df, #fffdf8);
  box-shadow: 0 12px 34px rgba(111, 82, 14, .12);
}
.last-viewed span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
}
.last-viewed strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}
.last-viewed em {
  color: var(--sub);
  font-size: 12px;
  font-style: normal;
}

.lesson-item {
  border-left: 6px solid var(--line);
}
.lesson-item.video {
  background: linear-gradient(135deg, #f7fbff, #fffdf8);
  border-left-color: #2b75b8;
}
.lesson-item.document {
  background: linear-gradient(135deg, #fffaf0, #fffdf8);
  border-left-color: var(--gold);
}
.lesson-kind {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}
.lesson-item.video .lesson-kind {
  background: #e2efff;
  color: #195d9d;
}
.lesson-item.document .lesson-kind {
  background: #f6e9c9;
  color: #7c5810;
}
.lesson-action {
  align-self: center;
  min-width: 44px;
  text-align: right;
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
}
.lesson-item.video .lesson-action { color: #195d9d; }
.lesson-item.document .lesson-action { color: #7c5810; }

.notice {
  padding: 12px;
  border: 1px solid #e9d49e;
  border-radius: 15px;
  background: #fff6dd;
  color: #6f520e;
  font-size: 13px;
  line-height: 1.7;
}
.path {
  display: grid;
  gap: 8px;
}
.path-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.55;
}
.path-step b {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  width: 100%;
  padding: 0 16px;
  border: 0;
  border-radius: 15px;
  font: inherit;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.secondary {
  border: 1px solid #d9ccb6;
  background: #efe7d9;
  color: var(--ink);
}
.btn.lock { background: var(--gold-soft); color: #76530f; }
.btn + .btn, .btn + .notice, .notice + .btn { margin-top: 10px; }

.viewer {
  min-height: 100vh;
  background: #07110f;
  color: #fff;
}
.viewer-shell { max-width: 900px; margin: 0 auto; }
.viewer-head {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 12px 14px;
  background: rgba(9, 29, 25, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.viewer-head h1 {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.35;
}
.media-wrap { padding: 12px; }
.media-wrap video, .media-wrap img {
  display: block;
  width: 100%;
  max-height: 74vh;
  border-radius: 14px;
  background: #000;
}
.pdf-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 118px);
  min-height: 640px;
  border: 0;
  border-radius: 14px;
  background: #fff;
}
.watermark {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 224, 152, .32);
  border-radius: 14px;
  background: rgba(255, 242, 207, .1);
  color: #f5ddb0;
  font-size: 12px;
  line-height: 1.7;
}
.viewer-nav {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.viewer-nav a, .viewer-nav span {
  display: block;
  padding: 12px;
  border: 1px solid rgba(255, 224, 152, .32);
  border-radius: 14px;
  color: #f5ddb0;
  background: rgba(255, 242, 207, .08);
  font-size: 13px;
  line-height: 1.45;
}
.viewer-nav span { color: rgba(245, 221, 176, .55); }

.form-card {
  margin: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
}
.form-group input, .form-group textarea {
  width: 100%;
  border: 1px solid #d8ccb6;
  border-radius: 14px;
  outline: 0;
  background: #fffaf0;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.form-group input { height: 50px; padding: 0 14px; }
.form-group textarea {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}
.error-message {
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff0e8;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.6;
}
.success-box {
  padding: 14px;
  border-radius: 16px;
  background: #edf7ef;
  border: 1px solid #c7e3cd;
  color: #174f31;
  font-size: 15px;
  line-height: 1.9;
  word-break: break-all;
}
.footer {
  padding: 24px 16px 30px;
  color: #7b827f;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}

.lesson-page {
  background: #f7f1e6;
  color: var(--ink);
}
.lesson-shell {
  position: relative;
  max-width: 720px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fffdf8;
}
.lesson-head {
  position: sticky;
  top: 0;
  z-index: 8;
  padding: 13px 16px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .96);
  backdrop-filter: blur(12px);
}
.lesson-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 950;
}
.lesson-back:before { content: "<"; }
.lesson-kicker {
  margin-top: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}
.lesson-head h1 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 950;
}
.lesson-body {
  position: relative;
  z-index: 7;
  padding: 18px 18px 26px;
}
.lesson-body h2 {
  margin: 22px 0 9px;
  padding-left: 10px;
  border-left: 4px solid var(--gold);
  color: var(--brand);
  font-size: 18px;
  line-height: 1.45;
}
.lesson-body h2:first-child { margin-top: 0; }
.lesson-body h3 {
  margin: 17px 0 8px;
  color: #123c34;
  font-size: 16px;
  line-height: 1.48;
  font-weight: 900;
}
.lesson-body h3:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: .18em;
}
.lesson-body h4 {
  margin: 13px 0 7px;
  color: #596861;
  font-size: 15px;
  line-height: 1.48;
  font-weight: 800;
}
.lesson-body p {
  margin: 0 0 13px;
  color: #263732;
  font-size: 17px;
  line-height: 1.9;
  text-align: justify;
}
.lesson-list {
  display: grid;
  gap: 9px;
  margin: 2px 0 18px;
  padding: 0;
  list-style: none;
}
.lesson-list li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border: 1px solid #eadfcd;
  border-radius: 14px;
  background: rgba(255, 248, 233, .82);
  color: #253832;
  font-size: 16px;
  line-height: 1.72;
}
.lesson-list li:before {
  content: "";
  position: absolute;
  left: 14px;
  top: 1.05em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(185, 138, 47, .13);
}
.lesson-footer {
  position: relative;
  z-index: 7;
  margin: 0 18px 24px;
  padding: 12px;
  border-top: 1px solid var(--line);
  color: #7b827f;
  font-size: 12px;
  line-height: 1.7;
}
.account-mark {
  margin-top: 8px;
  color: #6f776f;
  font-weight: 800;
}
.lesson-nav {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}
.lesson-nav a, .lesson-nav span {
  display: block;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #fff8e9;
  color: var(--brand);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 900;
}
.lesson-nav span {
  color: #8f968f;
  font-weight: 700;
}

@media (min-width: 720px) {
  body { padding: 24px; }
  .shell {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(25, 38, 34, .16);
  }
  .content { padding: 22px; }
  .grid.two { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
}
