:root {
  --bg: #f4efe7;
  --paper: #fffaf5;
  --paper-strong: #ffffff;
  --line: rgba(15, 123, 119, 0.08);
  --ink: #15343b;
  --muted: #6d7c80;
  --brand: #0f7b77;
  --brand-soft: #e6f5f1;
  --brand-deep: #0d5465;
  --sand: #fff0dc;
  --warm: #b36d18;
  --blue: #4867c6;
  --shadow: 0 20px 56px rgba(14, 62, 69, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content-width: 1180px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 123, 119, 0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(138, 205, 189, 0.18), transparent 28%),
    var(--bg);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  background: linear-gradient(145deg, rgba(13, 84, 101, 0.95), rgba(15, 123, 119, 0.94));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
}

.brand-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: normal;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  line-height: 1.15;
  word-break: keep-all;
  transition: color var(--transition), opacity var(--transition);
}

.site-nav a .nav-line {
  display: inline;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
}

.site-nav a.is-active {
  font-size: 18px;
  font-weight: 800;
}

.site-nav a[data-nav="home"].is-active {
  font-size: 18px;
  font-weight: 800;
}

.header-pill {
  min-width: 240px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 14px;
}

.header-pill.is-active {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.page-main {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 40px 34px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, #0d5465 0%, #0f7b77 54%, #8acdbd 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-panel::after {
  display: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.hero-title {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
}

.hero-subtitle,
.hero-description {
  margin: 18px 0 0;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0f7b77 0%, #1ca6a0 100%);
  box-shadow: 0 18px 36px rgba(15, 123, 119, 0.22);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  color: var(--brand-deep);
  background: transparent;
  border: 1px solid rgba(70, 103, 103, 0.2);
}

.section-card,
.panel-card {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
}

.section-copy,
.section-caption,
.body-copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.metrics-grid,
.focus-grid,
.category-grid,
.course-grid,
.article-grid,
.contact-grid,
.service-grid,
.plan-grid,
.highlight-grid {
  display: grid;
  gap: 18px;
}

.metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(248, 252, 250, 0.96);
  border: 1px solid rgba(70, 103, 103, 0.08);
}

.metric-value {
  display: block;
  font-size: 32px;
  color: var(--brand-deep);
}

.metric-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-card,
.highlight-card,
.contact-card,
.service-card,
.plan-card,
.article-card,
.course-card,
.status-panel,
.result-panel {
  border-radius: var(--radius-md);
  border: 1px solid rgba(70, 103, 103, 0.08);
  background: rgba(250, 253, 252, 0.94);
}

.focus-card,
.highlight-card,
.status-panel,
.result-panel {
  padding: 22px;
}

.focus-card h3,
.highlight-card h3,
.result-panel h2,
.status-panel h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.focus-card p,
.highlight-card p,
.highlight-meta,
.status-panel p,
.result-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.highlight-meta {
  margin-bottom: 10px;
}

.category-grid,
.course-grid,
.article-grid,
.plan-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(70, 103, 103, 0.08);
  background: rgba(250, 253, 252, 0.94);
  box-shadow: var(--shadow);
}

.category-card img,
.course-card-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.category-card-body,
.course-card-body,
.article-card,
.contact-card,
.service-card-body {
  padding: 20px;
}

.category-card h3,
.course-card-title,
.article-card-title,
.contact-card h3,
.service-card-body h3 {
  margin: 12px 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.category-card p,
.course-card-text,
.contact-card p,
.service-card-body p,
.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.category-meta,
.course-card-meta,
.detail-meta-grid,
.article-card-top,
.course-card-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.course-card-top {
  justify-content: space-between;
}

.course-card-meta,
.article-date,
.category-meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.chip,
.status-pill,
.plan-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.chip {
  background: var(--chip-bg, rgba(37, 93, 90, 0.1));
  color: var(--chip-color, var(--brand));
}

.status-pill {
  color: #fff;
  background: #7a8c8b;
}

.status-free,
.status-ready,
.status-member {
  background: var(--brand);
}

.status-locked {
  background: var(--warm);
}

.course-card .status-pill {
  margin-left: auto;
}

.course-list {
  display: grid;
  gap: 14px;
  scroll-margin-top: 132px;
}

.course-row-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(70, 103, 103, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(31, 76, 84, 0.07);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.course-row-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 93, 90, 0.24);
  box-shadow: 0 18px 42px rgba(31, 76, 84, 0.1);
}

.course-row-card.is-current {
  border-color: rgba(15, 123, 119, 0.48);
  box-shadow: 0 18px 46px rgba(15, 123, 119, 0.16);
}

.course-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 98px;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
}

.course-row-card.is-member-expanded .course-row {
  grid-template-columns: 44px minmax(0, 1fr);
}

.course-row-index {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: var(--course-accent, var(--brand));
  box-shadow: 0 10px 22px rgba(15, 123, 119, 0.16);
  font-size: 14px;
  font-weight: 800;
}

.course-row-main {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.course-row-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.course-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.course-row-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(70, 103, 103, 0.07);
}

.course-row-lock {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 18px;
  border: 1px solid rgba(70, 103, 103, 0.12);
  color: #5d6e70;
  background: #fff;
  flex-direction: column;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.course-row-card.is-unlocked .course-row-lock {
  color: #ffffff;
  border-color: rgba(15, 123, 119, 0.22);
  background: linear-gradient(135deg, #0f8f6f 0%, #0f7b77 100%);
  box-shadow: 0 12px 26px rgba(15, 123, 119, 0.18);
}

.course-row-card.is-locked .course-row-lock {
  color: var(--warm);
  border-color: rgba(172, 112, 50, 0.18);
  background: #fff7ef;
}

.course-lock-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
}

.course-lock-icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.course-row-card.is-unlocked .course-lock-icon {
  background: rgba(255, 255, 255, 0.2);
}

.course-row-card.is-locked .course-lock-icon {
  background: var(--warm);
  box-shadow: 0 8px 18px rgba(172, 112, 50, 0.16);
}

.course-empty {
  padding: 28px;
  border-radius: 22px;
  border: 1px dashed rgba(70, 103, 103, 0.22);
  background: #f8fbfa;
}

.course-empty strong {
  display: block;
  color: var(--brand-deep);
  font-size: 22px;
}

.course-empty p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.resource-landing-card {
  scroll-margin-top: 132px;
}

.resource-tab-row {
  margin-top: 18px;
}

.resource-summary {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.summary-line {
  display: block;
}

.summary-line + .summary-line {
  margin-top: 4px;
}

.resource-list {
  margin-top: 0;
}

.resource-row-card .course-row-meta span {
  text-transform: none;
}

.favorites-main {
  display: grid;
  gap: 18px;
}

.favorites-section {
  display: grid;
  gap: 18px;
}

.favorites-page-title {
  margin: 0 0 2px;
  color: var(--brand-deep);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.02em;
  text-align: left;
}

.favorite-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.favorite-type-tab {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(70, 103, 103, 0.16);
  border-radius: 999px;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 18px rgba(31, 76, 84, 0.05);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}

.favorite-type-tab.is-active {
  color: #ffffff;
  border-color: rgba(15, 123, 119, 0.2);
  background: linear-gradient(135deg, #0f8f6f 0%, #0f7b77 100%);
  box-shadow: 0 12px 26px rgba(15, 123, 119, 0.16);
}

.favorite-list {
  margin-top: 0;
}

.favorite-meta[hidden] {
  display: none;
}

.favorite-row-card .favorite-row-compact {
  padding-right: 18px;
}

.favorite-row-compact.course-row {
  grid-template-columns: 44px minmax(0, 1fr);
}

.resource-summary:empty {
  display: none;
}

.resource-detail-card {
  padding: clamp(22px, 4vw, 34px);
  max-width: 100%;
  overflow: hidden;
}

.course-detail-card {
  scroll-margin-top: 132px;
}

.course-detail-card .resource-detail-head > div,
.course-detail-card .section-title,
.course-detail-card .course-detail-toolbar,
.course-media-panel,
.course-media-panel .video-shell {
  min-width: 0;
}

.course-detail-card .section-title {
  overflow-wrap: anywhere;
}

.resource-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 14px;
}

.resource-detail-toolbar {
  max-width: 100%;
  margin-bottom: 18px;
}

.resource-detail-toolbar[hidden] {
  display: none;
}

.resource-detail-toolbar .course-back-link {
  grid-column: 3;
}

.course-detail-status-row[hidden],
.course-media-panel[hidden] {
  display: none;
}

.course-media-panel {
  display: grid;
  gap: 12px;
}

.course-media-panel .video-shell {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 18px 44px rgba(31, 76, 84, 0.08);
}

.course-media-panel .video-shell video {
  border-radius: 24px;
}

.course-locked-panel {
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(70, 103, 103, 0.08);
  border-radius: 24px;
  background: rgba(248, 252, 250, 0.94);
}

.course-locked-panel .section-head {
  margin-bottom: 0;
}

.course-locked-panel .action-row {
  margin-top: 18px;
}

.soft-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 123, 119, 0.12);
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.primary-button {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0f8f6f 0%, #0f7b77 100%);
  box-shadow: 0 14px 28px rgba(15, 123, 119, 0.16);
}

.secondary-button {
  color: var(--brand-deep);
  background: #fff;
}

.resource-reader {
  max-width: 100%;
  overflow: visible;
}

.resource-reader-shell {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-width: 100%;
  min-height: 70vh;
  border: 1px solid rgba(70, 103, 103, 0.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(31, 76, 84, 0.08);
}

/* PDF阅读器头部 */
.resource-reader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(70, 103, 103, 0.08);
  background: rgba(248, 252, 250, 0.6);
}

.resource-reader-header .resource-page-status {
  margin: 0;
  flex: 1;
  text-align: left;
}

.resource-reader-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 全屏阅览按钮 */
.resource-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(15, 123, 119, 0.25);
  border-radius: 999px;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 123, 119, 0.1);
}

.resource-fullscreen-btn:hover {
  background: var(--brand-soft);
  border-color: rgba(15, 123, 119, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 123, 119, 0.15);
}

.resource-fullscreen-btn:active {
  transform: translateY(0);
}

.resource-fullscreen-btn svg {
  flex-shrink: 0;
}

.resource-reader-pages {
  padding: 14px;
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.resource-page-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 100%;
}

.resource-page-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.resource-page-canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 76, 84, 0.08);
  cursor: zoom-in;
  transition: transform 0.2s ease;
  object-fit: contain;
}

.resource-page-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 76, 84, 0.08);
}

.resource-reader-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: min(86vh, 980px);
  min-height: 620px;
  border: 0;
  background: #fff;
}

/* iframe移动端适配 */
.resource-reader-shell.is-mobile-reader .resource-reader-frame {
  height: 80vh;
  min-height: 500px;
}

.resource-page-status {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.resource-reader-shell.is-mobile-reader {
  min-height: 56vh;
}

.resource-reader-shell.is-mobile-reader .resource-page-status {
  padding: 8px 4px;
}

.resource-page-item.is-pending {
  min-height: min(72vh, 920px);
  align-content: center;
  border: 1px dashed rgba(70, 103, 103, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(229, 241, 237, 0.68), rgba(255, 255, 255, 0.94)),
    #fff;
}

.resource-page-placeholder {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.resource-page-placeholder strong {
  color: var(--brand-deep);
  font-size: 16px;
}

.resource-page-placeholder.is-error strong {
  color: #8c3e2f;
}

.resource-page-canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 76, 84, 0.08);
}

.resource-page-number {
  color: var(--muted);
  font-size: 12px;
}

.resource-watermark {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  pointer-events: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(13, 84, 101, 0.5);
  background: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
}

/* PDF放大查看器 - 优化版 */
.resource-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: zoomOverlayFadeIn 0.2s ease;
}

@keyframes zoomOverlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.resource-zoom-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.resource-zoom-page-info {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.resource-zoom-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.resource-zoom-btn {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.resource-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.resource-zoom-btn:active {
  transform: scale(0.95);
}

.resource-zoom-level {
  min-width: 56px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.resource-zoom-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
  cursor: grab;
}

.resource-zoom-content:active {
  cursor: grabbing;
}

.resource-zoom-content img {
  max-width: none;
  max-height: none;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
  transform-origin: center center;
}

.resource-zoom-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1001;
}

.resource-zoom-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.resource-zoom-close:active {
  transform: scale(0.95);
}

.resource-page-canvas {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto !important;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 76, 84, 0.08);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  object-fit: contain;
}

.resource-page-canvas:hover {
  transform: scale(1.005);
  box-shadow: 0 12px 32px rgba(31, 76, 84, 0.12);
}

/* 表格内容页面特殊样式 */
.resource-page-item.has-table-content .resource-page-canvas {
  box-shadow: 0 10px 30px rgba(31, 76, 84, 0.12);
}

/* 确保PDF阅读器响应式，无横向滚动 */
.resource-reader {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.resource-detail-card {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* 防止内容溢出 */
#resource-reader {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* 优化小屏幕显示 */
@media (max-width: 480px) {
  .resource-reader-shell {
    border-radius: 14px;
    min-height: 50vh;
  }
  
  .resource-reader-pages {
    padding: 8px;
  }
  
  .resource-page-canvas {
    border-radius: 8px;
  }

  .resource-page-image {
    border-radius: 8px;
  }
  
  .resource-watermark {
    font-size: 10px;
    padding: 6px 10px;
    right: 8px;
    bottom: 8px;
  }
}

/* 移动端适配 */
@media (max-width: 720px) {
  .resource-zoom-overlay {
    padding: 0;
  }
  
  .resource-zoom-toolbar {
    padding: 12px 16px;
    gap: 12px;
  }
  
  .resource-zoom-page-info {
    font-size: 13px;
  }
  
  .resource-zoom-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .resource-zoom-level {
    min-width: 48px;
    font-size: 13px;
  }
  
  .resource-zoom-content {
    padding: 10px;
  }
  
  .resource-zoom-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

/* 触摸设备优化 */
@media (pointer: coarse) {
  .resource-page-canvas {
    cursor: pointer;
  }
  
  .resource-zoom-content {
    cursor: default;
  }
}

.resource-locked-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.plan-grid {
  align-items: stretch;
}

.plan-card {
  display: block;
  width: 100%;
  padding: 22px;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 138, 138, 0.22);
}

.plan-card.is-active,
.preview-card {
  border-color: rgba(52, 96, 110, 0.55);
  background: linear-gradient(180deg, rgba(242, 249, 248, 0.98), rgba(231, 243, 240, 0.98));
  box-shadow: 0 18px 32px rgba(45, 72, 72, 0.16);
}

.plan-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.plan-card-top h3 {
  margin: 10px 0 0;
  font-size: 26px;
}

.plan-select-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(70, 103, 103, 0.16);
  color: var(--muted);
  background: rgba(245, 250, 247, 0.92);
  font-size: 13px;
  font-weight: 600;
}

.plan-card.is-active .plan-select-indicator {
  border-color: rgba(52, 96, 110, 0.32);
  color: var(--brand-deep);
  background: rgba(213, 232, 228, 0.85);
}

.plan-price-wrap {
  text-align: right;
}

.plan-price-wrap strong {
  display: block;
  color: var(--brand-deep);
  font-size: 30px;
}

.plan-price-wrap span {
  color: var(--muted);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

.compact-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.form-action-cell {
  display: flex;
  align-items: end;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.text-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(70, 103, 103, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.inline-message {
  margin-top: 14px;
  min-height: 22px;
  font-size: 14px;
}

.inline-message.is-success {
  color: var(--brand);
}

.inline-message.is-error {
  color: #b64d32;
}

.inline-message.is-warn {
  color: #8f6114;
}

.wechat-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(11, 28, 29, 0.48);
  backdrop-filter: blur(6px);
}

.wechat-login-card {
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(8, 37, 38, 0.24);
}

.wechat-login-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.35;
}

.wechat-login-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.wechat-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.wechat-login-actions .btn {
  flex: 1 1 140px;
}

.section-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.admin-list-head {
  align-items: center;
}

.admin-membership-list {
  margin-top: 14px;
}

.admin-empty-state {
  padding: 18px;
  border: 1px dashed rgba(70, 103, 103, 0.22);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(247, 250, 249, 0.8);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(31, 76, 84, 0.1);
  border-radius: 18px;
  background: #fbfdfc;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(70, 103, 103, 0.08);
  color: #213f43;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  color: var(--muted);
  font-weight: 700;
  background: rgba(224, 238, 235, 0.5);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 700;
}

.admin-status.is-active {
  color: #0f7b77;
  background: rgba(15, 123, 119, 0.1);
}

.admin-status.is-expired {
  color: #8f6114;
  background: rgba(172, 112, 50, 0.12);
}

.management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.management-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(31, 76, 84, 0.12);
  border-radius: 28px;
  background: #f9fbfb;
}

.management-card h3 {
  margin: 14px 0 0;
  color: #14363d;
  font-size: 24px;
  line-height: 1.35;
}

.management-card p {
  margin: 12px 0 0;
  color: #677578;
  font-size: 16px;
  line-height: 1.75;
}

.meta-value {
  word-break: break-word;
}

.order-list,
.refund-steps {
  display: grid;
  gap: 12px;
}

.order-card,
.order-empty {
  padding: 16px;
  border: 1px solid rgba(31, 76, 84, 0.12);
  border-radius: 22px;
  background: #f9fbfb;
}

.order-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.order-card h3,
.order-empty strong {
  display: block;
  margin: 0;
  color: #14363d;
  font-size: 20px;
  line-height: 1.35;
}

.order-empty p {
  margin: 10px 0 0;
  color: #677578;
  line-height: 1.75;
}

.order-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.order-compact-grid span {
  display: grid;
  gap: 4px;
  min-height: 56px;
  padding: 10px;
  border-radius: 16px;
  color: #16353d;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(70, 103, 103, 0.08);
  font-size: 14px;
  line-height: 1.35;
}

.order-compact-grid strong {
  color: #6c7b7e;
  font-size: 12px;
  font-weight: 700;
}

.order-number {
  margin: 10px 0 0;
  color: #819092;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}

.order-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #5d6e70;
  background: rgba(70, 103, 103, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.order-status.is-success {
  color: #ffffff;
  background: linear-gradient(135deg, #0f8f6f 0%, #0f7b77 100%);
}

.order-status.is-warn {
  color: #8f6114;
  background: #fff7ef;
}

.order-status.is-muted {
  color: #697779;
  background: #eef3f2;
}

.invoice-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.invoice-step {
  min-height: 158px;
  padding: 20px;
  border: 1px solid rgba(31, 76, 84, 0.1);
  border-radius: 24px;
  background: rgba(249, 251, 251, 0.86);
}

.invoice-step span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0f8f6f 0%, #0f7b77 100%);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.invoice-step strong {
  display: block;
  margin-top: 14px;
  color: #14363d;
  font-size: 20px;
}

.invoice-step p {
  margin: 8px 0 0;
  color: #677578;
  line-height: 1.7;
}

.invoice-form-grid {
  align-items: start;
}

.invoice-full-row {
  grid-column: 1 / -1;
}

.invoice-type-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.invoice-choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid rgba(31, 76, 84, 0.14);
  border-radius: 22px;
  background: #fbfdfc;
  cursor: pointer;
}

.invoice-choice input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand);
}

.invoice-choice strong,
.invoice-choice small {
  display: block;
}

.invoice-choice strong {
  color: #14363d;
  font-size: 18px;
}

.invoice-choice small {
  margin-top: 5px;
  color: #718083;
  line-height: 1.5;
}

.invoice-note-panel {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(15, 143, 111, 0.18);
  background: rgba(233, 247, 241, 0.78);
}

.invoice-note-panel strong {
  color: var(--brand);
}

.invoice-note-panel p {
  margin: 8px 0 0;
  color: #607174;
  line-height: 1.7;
}

.invoice-order-panel {
  padding: 18px;
  border: 1px solid rgba(31, 76, 84, 0.1);
  border-radius: 22px;
  background: #f9fbfb;
}

.invoice-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.invoice-order-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.invoice-order-empty,
.invoice-order-item {
  padding: 14px;
  border: 1px solid rgba(70, 103, 103, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.invoice-order-empty {
  color: #718083;
}

.invoice-order-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.invoice-order-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}

.invoice-order-item.is-disabled {
  color: #8b989a;
  background: rgba(239, 244, 243, 0.82);
  cursor: not-allowed;
}

.invoice-order-title {
  display: block;
  color: #14363d;
  font-size: 17px;
  font-weight: 800;
}

.invoice-order-item.is-disabled .invoice-order-title {
  color: #687779;
}

.invoice-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: #718083;
  font-size: 13px;
  line-height: 1.45;
}

.invoice-order-amount,
.invoice-order-summary,
.invoice-amount-highlight {
  color: var(--brand-deep);
  font-style: normal;
  font-weight: 900;
}

.invoice-order-summary {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(213, 232, 228, 0.72);
}

.invoice-selected-orders {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.invoice-selected-order {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(70, 103, 103, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.invoice-record-list {
  display: grid;
  gap: 12px;
}

.invoice-record-section-title .title-line {
  display: block;
}

.invoice-refresh-button {
  padding: 0 14px;
  text-align: center;
}

.invoice-record-card {
  padding: 18px;
  border: 1px solid rgba(31, 76, 84, 0.12);
  border-radius: 24px;
  background: #f9fbfb;
}

.invoice-record-empty {
  padding: 22px;
}

.invoice-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.invoice-record-head h3,
.invoice-record-empty h3 {
  margin: 10px 0 0;
  color: #14363d;
  font-size: 20px;
  line-height: 1.35;
}

.invoice-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.invoice-record-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 16px;
  color: #16353d;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(70, 103, 103, 0.08);
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
}

.invoice-record-grid strong {
  color: #6c7b7e;
  font-size: 12px;
  font-weight: 700;
}

.invoice-record-note,
.invoice-record-empty p {
  margin: 12px 0 0;
  color: #677578;
  line-height: 1.7;
}

.admin-invoice-filter {
  grid-template-columns: minmax(240px, 1.3fr) minmax(180px, 0.8fr) auto;
  align-items: end;
}

.admin-invoice-list {
  display: grid;
  gap: 14px;
}

.admin-invoice-card {
  padding: 18px;
  border: 1px solid rgba(31, 76, 84, 0.12);
  border-radius: 24px;
  background: #f9fbfb;
}

.admin-invoice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-invoice-actions {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(180px, 1fr) minmax(240px, 1.4fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.admin-invoice-note-field {
  min-width: 0;
}

.admin-invoice-actions .textarea-input {
  min-height: 92px;
}

.textarea-input {
  min-height: 138px;
  padding-top: 14px;
  resize: vertical;
}

.step-list,
.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: start;
  color: var(--muted);
  line-height: 1.75;
}

.step-index {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 14px;
}

.feature-item {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.video-first-card {
  padding: 14px;
  scroll-margin-top: 132px;
}

.course-detail-toolbar {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 2px 10px;
}

.favorite-toggle {
  justify-self: start;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(70, 103, 103, 0.14);
  border-radius: 999px;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(31, 76, 84, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.favorite-toggle.is-active {
  color: #8c6100;
  background: #fff8e2;
  border-color: rgba(208, 154, 32, 0.28);
}

.favorite-star {
  display: block;
  width: 22px;
  height: 22px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.9 14.8 8.6l6.3.9-4.55 4.43 1.07 6.25L12 17.23l-5.62 2.95 1.07-6.25L2.9 9.5l6.3-.9L12 2.9Z' fill='none' stroke='%23466767' stroke-width='2.1' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.favorite-toggle.is-active .favorite-star {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.9 14.8 8.6l6.3.9-4.55 4.43 1.07 6.25L12 17.23l-5.62 2.95 1.07-6.25L2.9 9.5l6.3-.9L12 2.9Z' fill='%23f6c34a' stroke='%23b47a00' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.course-back-link {
  justify-self: end;
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.course-nav-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 4px;
}

.course-step-btn {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(70, 103, 103, 0.12);
  border-radius: 999px;
  color: var(--brand-deep);
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 76, 84, 0.08);
  text-decoration: none;
}

.course-step-icon,
.back-top-btn::before {
  display: block;
  width: 28px;
  height: 28px;
  background: var(--brand-deep);
  content: "";
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.course-step-icon.is-prev {
  -webkit-mask-image: url("../上一个.svg");
  mask-image: url("../上一个.svg");
}

.course-step-icon.is-next {
  -webkit-mask-image: url("../下一个.svg");
  mask-image: url("../下一个.svg");
}

.course-step-btn.is-disabled {
  opacity: 0.38;
  background: #f5f7f6;
  box-shadow: none;
  pointer-events: none;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.page-arrow-btn,
.page-number-btn {
  display: inline-flex;
  width: 38px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #747f82;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 19px;
  line-height: 1;
}

.page-arrow-btn {
  font-size: 42px;
  font-weight: 300;
}

.page-arrow-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.page-number-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.page-number-btn {
  position: relative;
  color: #70797c;
  font-weight: 500;
}

.page-number-btn.is-active {
  color: #0e1f24;
  font-weight: 700;
}

.page-number-btn.is-active::after {
  position: absolute;
  right: 2px;
  bottom: 0;
  left: 2px;
  height: 4px;
  background: #4f5557;
  content: "";
}

.back-top-btn {
  position: fixed;
  right: max(18px, calc((100vw - var(--content-width)) / 2 + 18px));
  bottom: 24px;
  z-index: 20;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(70, 103, 103, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(31, 76, 84, 0.14);
  cursor: pointer;
}

.back-top-btn::before {
  -webkit-mask-image: url("../返回顶部.svg");
  mask-image: url("../返回顶部.svg");
}

.detail-summary-card {
  padding: 22px;
}

.detail-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.18;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-meta-grid-single {
  grid-template-columns: 1fr;
}

.meta-box {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(248, 252, 250, 0.94);
  border: 1px solid rgba(70, 103, 103, 0.08);
}

.meta-box-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.meta-inline-item {
  flex: 1;
  min-width: 0;
}

.meta-divider {
  width: 1px;
  height: 42px;
  background: rgba(70, 103, 103, 0.12);
}

.meta-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.meta-value {
  font-size: 18px;
  line-height: 1.5;
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: #000;
}

.locked-panel {
  display: grid;
  gap: 14px;
  align-items: start;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(70, 103, 103, 0.14);
  border-radius: 999px;
  color: var(--brand-deep);
  background: rgba(245, 250, 247, 0.95);
  cursor: pointer;
}

.tab-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.search-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.search-shell .text-input {
  max-width: 340px;
}

.service-card {
  overflow: hidden;
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.contact-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(91, 138, 138, 0.06);
}

.result-panel {
  text-align: center;
}

.result-panel.is-success {
  border-color: rgba(37, 93, 90, 0.25);
}

.panel-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--brand);
  font-weight: 700;
}

.site-footer {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto 40px;
  padding: 28px;
  border-top: 1px solid rgba(70, 103, 103, 0.1);
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-subtle {
  color: #12363f;
  background: #ecf3f1;
}

.no-top-gap {
  margin-top: 0;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(260px, 0.84fr);
  gap: 24px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-visual-wrap {
  position: relative;
  min-height: 290px;
}

.hero-orbit {
  position: absolute;
  border-radius: 28px;
}

.hero-orbit-a {
  top: 36px;
  right: 18px;
  width: 212px;
  height: 170px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.16);
}

.hero-orbit-b {
  bottom: 24px;
  left: 4px;
  width: 160px;
  height: 122px;
  background: rgba(221, 246, 238, 0.12);
  border: 2px solid rgba(221, 246, 238, 0.18);
}

.hero-visual {
  position: absolute;
  max-width: none;
}

.hero-visual-primary {
  right: 0;
  top: 10px;
  width: 240px;
  filter: drop-shadow(0 20px 40px rgba(8, 62, 68, 0.22));
}

.hero-visual-secondary {
  left: 0;
  bottom: 0;
  width: 178px;
  filter: drop-shadow(0 16px 28px rgba(8, 62, 68, 0.16));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 24px 20px;
  border-radius: 26px;
  background: #fffaf5;
  box-shadow: 0 16px 42px rgba(14, 62, 69, 0.08);
}

.stat-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #0f7b77;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: #617173;
  font-size: 15px;
  line-height: 1.5;
}

.intro-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #fff7f1 100%);
}

.intro-text {
  display: block;
  font-size: 18px;
  color: #26454c;
  line-height: 1.9;
}

.intro-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
}

.focus-stack {
  display: grid;
  gap: 18px;
}

.focus-card {
  padding: 24px;
  border-radius: 24px;
  background: #f8fbfa;
}

.focus-title {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #15343b;
}

.focus-desc {
  display: block;
  margin-top: 12px;
  color: #667578;
  font-size: 16px;
  line-height: 1.8;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-category-grid-large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-category-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 24px;
  background: var(--category-bg, #f8fbfa);
  border: 1px solid rgba(70, 103, 103, 0.08);
  box-shadow: 0 18px 42px rgba(30, 61, 62, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(30, 61, 62, 0.12);
}

.home-category-index {
  color: var(--category-color, var(--brand));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.home-category-name {
  display: block;
  margin-top: 16px;
  color: var(--category-color, var(--brand));
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.22;
}

.home-category-summary {
  display: block;
  margin-top: 14px;
  color: #526668;
  font-size: 15px;
  line-height: 1.7;
}

.home-category-count {
  display: block;
  margin-top: 18px;
  color: #29464a;
  font-size: 15px;
  font-weight: 700;
}

.list-stack {
  display: grid;
  gap: 20px;
}

.mini-course {
  display: flex;
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
  background: #f9fbfb;
}

.mini-course-cover {
  width: 190px;
  height: 190px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
}

.mini-course-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.mini-course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-course-tag,
.article-strip-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.mini-course-date,
.article-strip-date {
  color: #6c7b7e;
  font-size: 14px;
}

.mini-course-title,
.article-strip-title {
  display: block;
  margin-top: 14px;
  font-size: 24px;
  font-weight: 700;
  color: #16353d;
  line-height: 1.35;
}

.mini-course-summary {
  display: block;
  margin-top: 10px;
  color: #667578;
  font-size: 16px;
  line-height: 1.75;
}

.mini-course .badge {
  margin-top: 14px;
  width: fit-content;
}

.membership-compact {
  margin-bottom: 18px;
}

.membership-title-split span {
  display: block;
}

.home-membership-strip .section-kicker {
  margin-bottom: 16px;
}

.home-membership-strip .membership-title-split {
  line-height: 1.34;
}

.home-membership-strip .membership-title-split span + span {
  margin-top: 8px;
}

.stacked-action-link {
  width: auto;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.membership-compact .status-panel {
  padding: 20px 22px;
  border-radius: 24px;
  background: #f9fbfb;
}

.member-subnav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(31, 76, 84, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 42px rgba(41, 70, 74, 0.08);
}

.member-subnav a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #29464a;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.member-subnav a:hover,
.member-subnav a:focus-visible {
  color: var(--brand);
  background: rgba(15, 143, 111, 0.08);
}

.member-subnav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, #0f8f6f 0%, #0f7b77 100%);
  box-shadow: 0 12px 28px rgba(15, 143, 111, 0.18);
}

.article-strip {
  display: flex;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #f9fbfb;
}

.article-strip-cover {
  width: 180px;
  height: 144px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
}

.article-strip-body {
  flex: 1;
  min-width: 0;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.qr-card {
  padding: 20px;
  border-radius: 24px;
  background: #f9fbfb;
}

.qr-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 18px;
  background: #ffffff;
}

.qr-title {
  display: block;
  margin-top: 14px;
  font-size: 22px;
  font-weight: 700;
}

.qr-desc {
  display: block;
  margin-top: 10px;
  color: #6b787b;
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-pill {
    width: 100%;
  }

  .home-hero-grid,
  .metrics-grid,
  .focus-grid,
  .category-grid,
  .course-grid,
  .article-grid,
  .plan-grid,
  .management-grid,
  .invoice-steps,
  .contact-grid,
  .service-grid,
  .highlight-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .invoice-type-row,
  .invoice-record-grid,
  .admin-invoice-grid,
  .admin-invoice-actions {
    grid-template-columns: 1fr;
  }

  .form-action-cell,
  .form-action-cell .btn {
    width: 100%;
  }

  .home-category-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 16px;
  }

  .brand-name {
    font-size: 20px;
  }

  .page-main {
    width: min(100% - 24px, var(--content-width));
    padding-top: 20px;
  }

  .hero-panel,
  .section-card,
  .panel-card {
    padding: 20px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 2px;
    justify-content: stretch;
    overflow-x: visible;
  }

  .site-nav a {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 6px 2px;
    white-space: normal;
    line-height: 1.22;
    text-align: center;
    flex-direction: column;
    font-size: 17px;
  }

  .site-nav a[data-nav="home"] {
    white-space: nowrap;
    flex-direction: row;
  }

  .site-nav a.is-active {
    font-size: 19px;
    font-weight: 800;
  }

  .site-nav a[data-nav="home"].is-active {
    font-size: 19px;
    font-weight: 800;
  }

  .site-nav a .nav-line {
    display: block;
  }

  .member-subnav {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .member-subnav a {
    min-height: 48px;
    border-radius: 18px;
  }

  .hero-title {
    max-width: none;
  }

  .mini-course,
  .article-strip {
    flex-direction: column;
  }

  .mini-course-cover,
  .article-strip-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .stats-grid,
  .home-category-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .course-row {
    grid-template-columns: 34px minmax(0, 1fr) 84px;
    gap: 10px;
    align-items: center;
    padding: 14px;
  }

  .course-row-card.is-member-expanded .course-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .favorite-type-tabs {
    gap: 8px;
  }

  .favorite-type-tab {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .favorite-row-compact.course-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .favorite-row-card .favorite-row-compact {
    padding-right: 14px;
  }

  .course-row-index {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    font-size: 12px;
  }

  .course-row-title {
    font-size: 16px;
    -webkit-line-clamp: 3;
  }

  .course-row-meta {
    gap: 6px;
  }

  .course-row-meta span {
    min-height: 24px;
    padding: 0 8px;
    font-size: 12px;
  }

  .course-row-lock {
    min-height: 56px;
    padding: 8px 6px;
    border-radius: 16px;
    font-size: 11px;
  }

  .course-lock-icon {
    width: 30px;
    height: 30px;
    border-radius: 12px;
  }

  .course-lock-icon img {
    width: 19px;
    height: 19px;
  }

  .course-detail-toolbar {
    grid-template-columns: auto 1fr auto;
    padding-bottom: 8px;
  }

  .course-nav-actions {
    padding: 0;
  }

  .course-step-btn {
    width: 44px;
    height: 44px;
  }

  .pagination-controls {
    gap: 8px;
  }

  .page-number-row {
    gap: 10px;
  }

  .page-arrow-btn,
  .page-number-btn {
    width: 32px;
    height: 40px;
  }

  .page-arrow-btn {
    font-size: 38px;
  }

  .back-top-btn {
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }

  .order-card,
  .order-empty {
    padding: 14px;
    border-radius: 20px;
  }

  .order-card-head {
    align-items: start;
    flex-direction: row;
  }

  .order-status {
    width: fit-content;
    flex-shrink: 0;
  }

  .order-compact-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .order-compact-grid span {
    min-height: auto;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .invoice-step,
  .invoice-record-card {
    padding: 14px;
    border-radius: 20px;
  }

  .invoice-order-head {
    align-items: stretch;
    flex-direction: column;
  }

  .invoice-order-head .btn {
    width: 100%;
  }

  .invoice-order-item {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .invoice-order-amount {
    grid-column: 2;
    justify-self: start;
  }

  .invoice-record-grid span {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .order-card h3,
  .order-empty strong {
    font-size: 18px;
  }

  .resource-detail-head {
    flex-direction: column;
    gap: 14px;
  }

  .resource-detail-toolbar {
    grid-template-columns: auto 1fr auto;
    margin-bottom: 14px;
  }

  .course-media-panel .video-shell,
  .course-media-panel .video-shell video {
    border-radius: 18px;
  }

  .resource-reader-shell {
    min-height: 62vh;
    border-radius: 18px;
    overflow-x: hidden;
  }

  .resource-reader-header {
    padding: 10px 12px;
  }

  .resource-reader-header .resource-page-status {
    font-size: 12px;
  }

  .resource-reader-pages {
    padding: 10px;
    overflow-x: hidden;
  }

  .resource-reader-frame {
    height: 72vh;
    min-height: 480px;
  }

  .resource-page-list {
    gap: 10px;
    width: 100%;
  }

  .resource-page-item {
    width: 100%;
    max-width: 100%;
  }

  .resource-page-item.is-pending {
    min-height: 54vh;
    border-radius: 10px;
  }

  .resource-page-placeholder {
    padding: 18px;
  }

  .resource-page-canvas {
    border-radius: 10px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .resource-watermark {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }

  .hero-visual-wrap {
    min-height: 220px;
  }

  .hero-visual-primary {
    width: 180px;
  }

  .hero-visual-secondary {
    width: 132px;
  }
}
