:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #8a8f98;
  --line: #eeeeee;
  --paper: #f7f7f8;
  --surface: #ffffff;
  --brand: #d92345;
  --brand-soft: #fff1f4;
  --gold: #d59a32;
  --green: #00a884;
  --shadow: 0 14px 34px rgba(32, 33, 36, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: #e9edf2;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
  background: #e9edf2;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(32, 33, 36, 0.04), var(--shadow);
}

.mini-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 11px 12px 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.mini-navline {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 92px;
  align-items: center;
  min-height: 38px;
}

.mini-navline strong {
  justify-self: center;
  font-size: 15px;
  font-weight: 700;
}

.top-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #222;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.wechat-capsule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-self: end;
  width: 82px;
  height: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #dcdfe5;
  border-radius: 999px;
}

.wechat-capsule button {
  display: grid;
  height: 100%;
  place-items: center;
  color: #222;
  background: transparent;
  border: 0;
}

.wechat-capsule button:first-child {
  border-right: 1px solid #e4e6ea;
}

.wechat-capsule svg {
  width: 18px;
  height: 18px;
}

main {
  padding: 0 12px 92px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: rise 160ms ease-out;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mini-search,
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  margin: 6px 0 10px;
  padding: 0 12px;
  color: #b5bac2;
  text-align: left;
  background: #f2f3f5;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
}

.search-box input {
  width: 100%;
  min-height: 40px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.notice-bar {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 20px;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  margin: 8px 0;
  color: #90949c;
  background: #fff;
  border-radius: 4px;
  font-size: 12px;
}

.notice-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-bar svg {
  width: 16px;
  height: 16px;
  margin-left: 3px;
  color: #a9aeb7;
}

.notice-bar button {
  color: #b0b4bd;
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
}

.home-banner {
  margin-top: 10px;
}

.banner-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 6px;
  width: 100%;
  min-height: 144px;
  overflow: hidden;
  padding: 16px;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18)),
    var(--cover);
  background-position: center;
  background-size: cover;
  border: 0;
  border-radius: 8px;
}

.banner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.banner-card span {
  position: relative;
  justify-self: start;
  padding: 4px 8px;
  background: rgba(217, 35, 69, 0.92);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.banner-card strong {
  position: relative;
  max-width: 15em;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banner-card em {
  position: relative;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  opacity: 0.88;
}

.quick-entry-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 4px;
  background: #fff;
  border-radius: 8px;
  padding: 10px 6px;
}

.quick-entry-row button {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 66px;
  color: #40444a;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
}

.entry-badge {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 900;
}

.entry-badge.fresh {
  color: #ff4d64;
  background: #fff;
}

.entry-badge.member {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.entry-badge.free {
  color: #fff;
  background: #c94b65;
  border-color: #c94b65;
}

.mini-section {
  margin-top: 14px;
}

.mini-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  color: #50545b;
  font-size: 13px;
  font-weight: 700;
}

.mini-section-title button {
  color: #a3a7af;
  background: transparent;
  border: 0;
  font-size: 12px;
}

.hot-word {
  color: var(--brand);
  font-weight: 900;
}

.mini-rail {
  display: grid;
  grid-auto-columns: 148px;
  grid-auto-flow: column;
  gap: 8px;
  margin: 0 -12px;
  overflow-x: auto;
  padding: 0 12px 2px;
  scrollbar-width: none;
}

.mini-rail::-webkit-scrollbar,
.filter-row::-webkit-scrollbar {
  display: none;
}

.mini-card {
  display: grid;
  gap: 6px;
  background: #fff;
}

.mini-cover,
.course-thumb,
.order-cover {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--cover);
  background-position: center;
  background-size: cover;
  border: 0;
  border-radius: 4px;
}

.mini-cover::before,
.course-thumb::before,
.order-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.12)),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.34), transparent 34%);
  pointer-events: none;
}

.mini-cover::after,
.course-thumb::after {
  content: "老渔投报";
  position: absolute;
  left: 7px;
  bottom: 6px;
  max-width: calc(100% - 48px);
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-cover {
  aspect-ratio: 16 / 10;
}

.mini-cover span,
.course-thumb span {
  position: absolute;
  z-index: 1;
  right: 4px;
  bottom: 4px;
  padding: 2px 5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  border-radius: 3px;
  font-size: 10px;
}

.mini-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mini-card-copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #272a30;
  font-size: 12px;
  line-height: 1.35;
}

.mini-card-copy em {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.home-channel-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 74px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 0;
  border-radius: 6px;
}

.home-channel-card span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 900;
}

.home-channel-card strong,
.home-channel-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-channel-card strong {
  font-size: 14px;
}

.home-channel-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.course-layout {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  min-height: calc(100vh - 170px);
}

.course-menu {
  display: grid;
  align-content: start;
  background: #f3f3f4;
  border-radius: 6px;
  overflow: hidden;
}

.course-menu button {
  min-height: 50px;
  color: #555a62;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  font-size: 12px;
  font-weight: 700;
}

.course-menu button.active {
  color: var(--brand);
  background: #fff;
  border-left-color: var(--brand);
}

.course-content {
  min-width: 0;
}

.course-tabs,
.order-tabs,
.filter-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 10px;
  scrollbar-width: none;
}

.course-tabs button,
.order-tabs button,
.filter-row button {
  position: relative;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 4px;
  color: #666b73;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 700;
}

.course-tabs button.active,
.order-tabs button.active,
.filter-row button.active {
  color: var(--brand);
}

.course-tabs button.active::after,
.order-tabs button.active::after,
.filter-row button.active::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 4px;
  left: 9px;
  height: 3px;
  background: var(--brand);
  border-radius: 999px;
}

.course-list {
  display: grid;
  gap: 10px;
}

.list-load-more {
  width: 100%;
  min-height: 42px;
  color: #2f746e;
  background: #ffffff;
  border: 1px solid #cbdcda;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.course-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 6px;
  background: #fff;
  border-radius: 6px;
}

.course-thumb {
  aspect-ratio: 16 / 10;
}

.course-card strong,
.course-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.course-card strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.38;
}

.course-card em {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.learning-menu,
.profile-grid,
.order-summary {
  display: grid;
  margin-top: 12px;
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
}

.learning-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 12px;
  color: #333840;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.learning-menu button:last-child {
  border-bottom: 0;
}

.learning-menu em {
  color: #a3a7af;
  font-size: 11px;
  font-style: normal;
}

.learning-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.learning-actions button {
  min-height: 38px;
  color: #c2c5cb;
  background: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.learning-list,
.content-list {
  display: grid;
  gap: 8px;
}

.mini-list-card {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  min-height: 80px;
  padding: 8px;
  background: #fff;
  border-radius: 6px;
}

.mini-list-card .mini-cover {
  aspect-ratio: 16 / 10;
}

.save-dot,
.mini-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #a4a9b2;
  background: #f5f6f7;
  border: 0;
  border-radius: 50%;
}

.save-dot.saved {
  color: #fff;
  background: var(--brand);
}

.save-dot svg {
  width: 17px;
  height: 17px;
}

.empty-state {
  display: none;
  padding: 34px 20px;
  color: #a3a7af;
  text-align: center;
  background: #fff;
  border-radius: 6px;
}

.empty-state.show {
  display: block;
}

.empty-state strong {
  display: block;
  color: #8a8f98;
  font-size: 14px;
}

.empty-state p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
}

.my-member-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 56px;
  gap: 12px;
  align-items: center;
  min-height: 140px;
  margin-top: 10px;
  padding: 18px 16px;
  color: #fff;
  background:
    radial-gradient(circle at 75% 0%, rgba(255, 215, 116, 0.45), transparent 42%),
    linear-gradient(135deg, #d51f38, #ed9544 58%, #d7b46a);
  border-radius: 8px;
}

.my-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--brand);
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
}

.my-card-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.my-card-copy strong {
  font-size: 16px;
}

.my-card-copy span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
}

.my-member-card button {
  min-height: 30px;
  color: #8a530b;
  background: #fff1cc;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.order-summary {
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 0;
}

.order-summary button {
  display: grid;
  gap: 5px;
  place-items: center;
  min-height: 48px;
  color: #575c64;
  background: transparent;
  border: 0;
  font-size: 11px;
}

.order-summary strong {
  color: #2f3338;
  font-size: 13px;
}

.profile-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}

.profile-grid button {
  min-height: 58px;
  color: #42474f;
  background: #fff;
  border: 0;
  font-size: 12px;
  font-weight: 700;
}

.captain-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.captain-plans button {
  display: grid;
  gap: 5px;
  min-height: 66px;
  padding: 8px;
  color: #3e434a;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
}

.captain-plans button.active {
  color: #8b5108;
  background: #fff2cf;
  border-color: #f0cb7d;
}

.captain-plans strong {
  font-size: 13px;
}

.captain-plans span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.order-list {
  display: grid;
  gap: 10px;
}

.order-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border-radius: 6px;
}

.order-time {
  display: flex;
  justify-content: space-between;
  color: #7f858e;
  font-size: 12px;
}

.order-time em {
  color: #777;
  font-style: normal;
}

.order-body {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
}

.order-cover {
  aspect-ratio: 16 / 10;
}

.order-body strong,
.order-body span,
.order-body em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-body strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.4;
}

.order-body span {
  margin-top: 8px;
  color: #777;
  font-size: 11px;
}

.order-body em {
  margin-top: 8px;
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.page-title {
  padding: 12px 0 14px;
}

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

.page-title h1 {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.2;
}

.report-browser,
.report-grid {
  display: grid;
  gap: 10px;
}

.report-toolbar,
.folder-item,
.report-file {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 0;
  border-radius: 6px;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  background: #f5f6f7;
  border: 0;
  border-radius: 50%;
}

.folder-mark,
.file-mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 7px;
}

.folder-mark {
  color: #98660f;
  background: #f5ca68;
}

.file-mark {
  color: #276383;
  background: #ddeef7;
}

.folder-mark svg,
.file-mark svg {
  width: 25px;
  height: 25px;
}

.folder-mark em,
.file-mark em {
  position: absolute;
  right: 2px;
  bottom: 2px;
  padding: 1px 3px;
  color: #fff;
  background: rgba(32, 33, 36, 0.72);
  border-radius: 3px;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.report-toolbar strong,
.report-toolbar span,
.folder-item strong,
.folder-item em,
.report-file strong,
.report-file em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-toolbar strong,
.folder-item strong,
.report-file strong {
  font-size: 14px;
}

.report-toolbar span,
.folder-item em,
.report-file em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.report-breadcrumb {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  color: #adb1b9;
  scrollbar-width: none;
}

.report-breadcrumb::-webkit-scrollbar {
  display: none;
}

.report-breadcrumb button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 9px;
  color: #555a62;
  background: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.result-note {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  display: grid;
  gap: 3px;
  min-height: 50px;
  place-items: center;
  color: #9aa0a8;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}

.bottom-nav button.active {
  color: var(--brand);
}

.banner-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.episode-picker-item {
  min-height: 44px;
}

.player-control-strip button,
.player-tools button,
.lesson-actions button {
  min-height: 42px;
}

.icon-button,
.close-player {
  width: 40px;
  height: 40px;
}

button:active {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.player-card,
.player-copy,
.note-panel {
  min-width: 0;
  overflow-x: hidden;
}

.player-copy p,
.note-panel p,
.note-panel li {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.episode-picker {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.episode-picker-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #26343b;
  font-size: 13px;
  font-weight: 900;
}

.episode-picker-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.episode-picker-list {
  display: grid;
  gap: 6px;
  max-height: 190px;
  overflow-y: auto;
}

.episode-picker-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 9px;
  color: #52616a;
  text-align: left;
  background: #f4f6f7;
  border: 1px solid #e5e9eb;
  border-radius: 7px;
}

.episode-picker-item span {
  color: #78858d;
  font-size: 11px;
  font-weight: 800;
}

.episode-picker-item strong {
  overflow: hidden;
  color: #34444c;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-picker-item.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.episode-picker-item.active span,
.episode-picker-item.active strong {
  color: #fff;
}

.bottom-nav svg {
  width: 20px;
  height: 20px;
}

.player-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.78);
}

.player-sheet.open {
  display: flex;
}

.player-card {
  display: grid;
  align-content: start;
  width: min(100%, 430px);
  max-height: 100dvh;
  overflow-y: auto;
  color: #fff;
  background: #111319;
}

.player-topbar {
  position: sticky;
  z-index: 3;
  top: 0;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 8px 12px;
  background: #111319;
}

.player-topbar span {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.player-topbar a {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.player-topbar a.disabled {
  color: rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.player-topbar .icon-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.player-stage {
  display: grid;
  min-height: 238px;
  place-items: center;
  background: #000;
}

.real-video,
.real-image {
  display: block;
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.file-link {
  display: grid;
  width: 72%;
  min-height: 54px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.player-control-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  background: #191d26;
}

.player-control-strip button,
.player-tools button {
  min-height: 34px;
  color: #dfe3ea;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.player-tools {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
  background: #191d26;
}

.player-tools div {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.player-tools span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.player-tools button.active {
  color: #fff;
  background: var(--brand);
}

.copy-link-button {
  width: 100%;
}

.player-copy {
  padding: 16px 16px 0;
}

.player-card .eyebrow {
  color: #ff7d91;
}

.player-card h2 {
  margin-top: 8px;
  color: #fff;
  font-size: 20px;
  line-height: 1.35;
}

.player-card p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.6;
}

.note-panel {
  margin: 14px 16px 0;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  border-radius: 6px;
}

.note-panel.collapsed {
  display: none;
}

.note-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.note-panel ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.note-panel p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.lesson-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.lesson-tabs span {
  display: grid;
  min-height: 30px;
  place-items: center;
  color: #555a62;
  background: #f4f5f6;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.lesson-tabs span:first-child {
  color: #fff;
  background: var(--brand);
}

.lesson-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.lesson-actions button {
  min-height: 34px;
  color: #555a62;
  background: #f4f5f6;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.lock-tip {
  margin-top: 12px;
  padding: 9px;
  color: #8a530b;
  background: #fff2cf;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
}

.player-actions {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
  background: #111319;
}

.primary-button,
.ghost-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

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

.ghost-button.dark {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 86px;
  left: 20px;
  z-index: 80;
  max-width: 390px;
  margin: 0 auto;
  padding: 12px 14px;
  color: #fff;
  text-align: center;
  background: rgba(24, 26, 31, 0.9);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  font-size: 13px;
  font-weight: 700;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  .app-shell {
    margin-top: 18px;
    margin-bottom: 18px;
    min-height: calc(100vh - 36px);
    border-radius: 18px;
  }

  .bottom-nav {
    bottom: 18px;
    border-radius: 0 0 18px 18px;
  }
}

/* 2026-07 UI refinement: calmer surfaces, clearer hierarchy, same content and actions. */
:root {
  --ink: #1f2933;
  --muted: #66727d;
  --line: #e4e8eb;
  --paper: #f3f5f6;
  --surface: #ffffff;
  --brand: #b4233f;
  --brand-soft: #fbedf0;
  --gold: #b7791f;
  --green: #2f8179;
  --shadow: 0 10px 26px rgba(31, 41, 51, 0.06);
}

html,
body {
  background: #e8edf0;
}

body {
  color: var(--ink);
}

body.player-open {
  overflow: hidden;
}

.app-shell {
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(31, 41, 51, 0.05), var(--shadow);
}

.mini-topbar {
  padding: 10px 16px 8px;
  border-bottom: 1px solid rgba(228, 232, 235, 0.9);
}

.mini-navline {
  grid-template-columns: 38px minmax(0, 1fr) 86px;
}

.mini-navline strong {
  color: #26343c;
  font-size: 16px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.wechat-capsule {
  width: 78px;
  height: 30px;
  background: #f8fafb;
  border-color: #dce2e6;
}

main {
  padding: 0 16px 104px;
}

.mini-search,
.search-box {
  min-height: 42px;
  margin: 12px 0 10px;
  padding: 0 13px;
  color: #85919a;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(31, 41, 51, 0.025);
}

.mini-search svg,
.search-box svg {
  color: #7a8992;
}

.notice-bar {
  min-height: 38px;
  margin: 8px 0 12px;
  padding: 0 6px 0 2px;
  color: #66747b;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  font-size: 12px;
}

.notice-bar svg {
  color: var(--green);
}

.home-banner {
  margin-top: 12px;
}

.banner-card {
  min-height: 158px;
  padding: 18px;
  background-color: #2f4548;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(47, 69, 72, 0.14);
}

.banner-card::before {
  background: rgba(15, 23, 32, 0.28);
}

.banner-card span {
  padding: 4px 9px;
  background: var(--brand);
  border-radius: 6px;
  font-size: 11px;
}

.banner-card strong {
  font-size: 21px;
}

.quick-entry-row {
  gap: 4px;
  margin: 12px 0 2px;
  padding: 10px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(31, 41, 51, 0.025);
}

.quick-entry-row button {
  min-height: 72px;
  color: #34434a;
}

.entry-badge {
  width: 36px;
  height: 36px;
  font-size: 15px;
}

.entry-badge.member,
.entry-badge.free {
  background: var(--brand);
  border-color: var(--brand);
}

.entry-badge.free {
  background: var(--green);
  border-color: var(--green);
}

.mini-section {
  margin-top: 20px;
}

.mini-section-title {
  min-height: 32px;
  color: #35434b;
  font-size: 14px;
}

.mini-section-title button {
  min-height: 28px;
  padding: 0 3px;
  color: #87929a;
}

.mini-rail {
  grid-auto-columns: 158px;
  gap: 12px;
  margin: 0 -16px;
  padding: 0 16px 3px;
}

.mini-card {
  gap: 7px;
  min-width: 0;
  cursor: pointer;
}

.mini-cover,
.course-thumb,
.order-cover {
  border-radius: 8px;
}

.mini-cover::before,
.course-thumb::before,
.order-cover::before {
  background: rgba(15, 23, 32, 0.08);
}

.mini-cover::after,
.course-thumb::after {
  left: 8px;
  bottom: 7px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 10px;
}

.mini-cover span,
.course-thumb span {
  right: 6px;
  bottom: 6px;
  padding: 3px 6px;
  background: rgba(31, 41, 51, 0.72);
  border-radius: 5px;
}

.mini-card-copy {
  gap: 5px;
}

.mini-card-copy strong {
  color: #27343b;
  font-size: 13px;
  line-height: 1.42;
}

.mini-card-copy em {
  color: #7a8790;
  font-size: 11px;
}

.home-channel-grid {
  gap: 10px;
}

.home-channel-card {
  min-height: 78px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.home-channel-card span {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 9px;
}

.home-channel-card:nth-child(2) span {
  background: var(--brand);
}

.home-channel-card:nth-child(3) span {
  background: var(--gold);
}

.home-channel-card:nth-child(4) span {
  color: #2f5968;
  background: #dcebf0;
}

.home-channel-card strong {
  color: #304049;
  font-size: 14px;
}

.course-layout {
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  min-height: calc(100vh - 176px);
}

.course-menu {
  background: #e9edef;
  border: 1px solid #e0e5e8;
  border-radius: 10px;
}

.course-menu button {
  min-height: 54px;
  color: #64717a;
  border-left-width: 3px;
}

.course-menu button.active {
  color: var(--brand);
  background: #fff;
  border-left-color: var(--brand);
}

.course-tabs {
  gap: 18px;
  padding-bottom: 8px;
}

.course-tabs button,
.order-tabs button,
.filter-row button {
  min-height: 36px;
  color: #6b7780;
}

.course-tabs button.active,
.order-tabs button.active,
.filter-row button.active {
  color: var(--brand);
}

.course-tabs button.active::after,
.order-tabs button.active::after,
.filter-row button.active::after {
  right: 5px;
  left: 5px;
  height: 2px;
  background: var(--brand);
}

.course-list {
  gap: 10px;
}

.course-card {
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 84px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(31, 41, 51, 0.025);
  cursor: pointer;
}

.course-card strong {
  color: #26343b;
  font-size: 13px;
}

.course-card em {
  margin-top: 7px;
  color: #7a8790;
}

.learning-menu,
.profile-grid,
.order-summary {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(31, 41, 51, 0.025);
}

.learning-menu button {
  min-height: 52px;
  color: #344149;
  border-bottom-color: var(--line);
}

.learning-actions button {
  min-height: 42px;
  color: #53616a;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.mini-list-card,
.order-card,
.report-toolbar,
.folder-item,
.report-file,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(31, 41, 51, 0.025);
}

.mini-list-card {
  min-height: 86px;
  padding: 9px;
  cursor: pointer;
}

.save-dot,
.mini-button {
  color: #77848d;
  background: #eef1f2;
}

.save-dot.saved {
  background: var(--brand);
}

.my-member-card {
  min-height: 148px;
  margin-top: 12px;
  padding: 20px 18px;
  background: #2f4548;
  border: 1px solid #3c5b5e;
  border-radius: 12px;
  box-shadow: 0 9px 20px rgba(47, 69, 72, 0.14);
}

.my-avatar {
  color: #2f4548;
}

.my-member-card button {
  color: #6f4b13;
  background: #f4d28a;
}

.order-summary {
  padding: 8px 0;
}

.profile-grid {
  gap: 1px;
}

.profile-grid button {
  min-height: 62px;
  color: #3c4a52;
}

.captain-plans button {
  min-height: 72px;
  border-color: var(--line);
  border-radius: 9px;
}

.captain-plans button.active {
  color: #7b5313;
  background: #fff7e4;
  border-color: #e7c777;
}

.page-title {
  padding: 16px 0 14px;
}

.page-title h1 {
  color: #26353c;
}

.bottom-nav {
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-top-color: var(--line);
}

.bottom-nav button {
  min-height: 52px;
  color: #9aa5ac;
}

.bottom-nav button.active {
  color: var(--brand);
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(47, 129, 121, 0.32);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .course-tabs {
    display: none;
  }
}

@media (max-width: 360px) {
  main {
    padding-right: 12px;
    padding-left: 12px;
  }

  .mini-rail {
    grid-auto-columns: 148px;
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .course-layout {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 9px;
  }

  .course-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .course-tabs {
    gap: 6px;
    justify-content: space-between;
    overflow-x: visible;
  }

  .course-tabs button {
    padding: 0;
    font-size: 12px;
  }
}

/* 2026-07-21 premium web preview */
:root {
  --ink: #182321;
  --muted: #687672;
  --line: #dce3e0;
  --paper: #f4f6f5;
  --surface: #fcfdfd;
  --brand: #b3263e;
  --brand-soft: #faecef;
  --gold: #c59a3d;
  --green: #176b63;
  --shadow: 0 12px 30px rgba(24, 35, 33, 0.08);
}

html,
body {
  background: #e7eeeb;
}

.app-shell {
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(24, 35, 33, 0.05), var(--shadow);
}

.mini-topbar {
  background: rgba(252, 253, 253, 0.98);
  border-bottom-color: var(--line);
}

.mini-navline strong {
  color: #182522;
  letter-spacing: 0;
}

.wechat-capsule {
  background: #f4f6f5;
  border-color: #d8e0dd;
}

.mini-search,
.search-box {
  color: #7c8886;
  background: #fcfdfd;
  border-color: #dce3e0;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(24, 35, 33, 0.035);
}

.notice-bar {
  color: #566663;
  background: #eaf3f1;
  border: 0;
  border-radius: 7px;
}

.notice-bar svg {
  color: #176b63;
}

.banner-card {
  background-color: #203b37;
  border: 1px solid #2c4d47;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(32, 59, 55, 0.15);
}

.banner-card span {
  color: #f3d58b;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(243, 213, 139, 0.4);
  border-radius: 5px;
}

.quick-entry-row {
  background: #fcfdfd;
  border-color: #dce3e0;
  border-radius: 8px;
  box-shadow: none;
}

.entry-badge {
  border-radius: 7px;
}

.entry-badge.fresh {
  color: #b3263e;
  background: #fdf0f2;
  border-color: #e6bcc4;
}

.entry-badge.member {
  background: #b3263e;
  border-color: #b3263e;
}

.entry-badge.free {
  background: #176b63;
  border-color: #176b63;
}

.mini-section-title {
  color: #1b2927;
}

.hot-word,
.mini-section-title button {
  color: #176b63;
}

.mini-cover,
.course-thumb,
.order-cover,
.mini-list-card,
.course-card,
.order-card,
.folder-item,
.report-file,
.empty-state {
  border-radius: 8px;
}

.mini-card-copy strong,
.course-card strong {
  color: #1d2a28;
}

.course-menu {
  background: #e8edeb;
  border-color: #dce3e0;
  border-radius: 8px;
}

.course-menu button.active {
  color: #155f58;
  background: #fcfdfd;
  border-left-color: #176b63;
}

.course-tabs button.active,
.order-tabs button.active,
.filter-row button.active {
  color: #176b63;
}

.course-tabs button.active::after,
.order-tabs button.active::after,
.filter-row button.active::after {
  background: #176b63;
}

.course-card,
.learning-menu,
.profile-grid,
.order-summary,
.mini-list-card,
.order-card,
.report-toolbar,
.folder-item,
.report-file,
.empty-state {
  background: #fcfdfd;
  border-color: #dce3e0;
  box-shadow: 0 3px 12px rgba(24, 35, 33, 0.035);
}

.learning-actions button {
  color: #4b5d59;
  background: transparent;
  border-color: #d5dfdc;
  border-radius: 7px;
}

.my-member-card {
  background: #203b37;
  border-color: #2c4d47;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(32, 59, 55, 0.15);
}

.my-avatar,
.my-member-card button {
  color: #203b37;
  background: #f2d78f;
}

.captain-plans button.active {
  color: #5f4714;
  background: #fff7df;
  border-color: #dfc477;
}

.bottom-nav {
  background: rgba(252, 253, 253, 0.98);
  border-top-color: #dce3e0;
}

.bottom-nav button {
  color: #8b9598;
}

.bottom-nav button.active {
  color: #176b63;
}

.player-card {
  background: #fcfdfd;
  border-radius: 8px 8px 0 0;
}

.player-stage {
  background: #152521;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline-color: rgba(23, 107, 99, 0.3);
}
