:root {
  --primary: #1f6feb;
  --primary-soft: #eaf2ff;
  --price: #ff5a1f;
  --bg: #f5f6f8;
  --card: #fff;
  --text: #1a1d24;
  --sub: #8a8f99;
  --line: #edeff3;
  --gold: #f5d18b;
  --radius: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.app {
  max-width: 640px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow-x: clip;
}

.page {
  padding-bottom: calc(76px + var(--safe-bottom));
}

.page-plain {
  padding-bottom: calc(20px + var(--safe-bottom));
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(237, 239, 243, 0.9);
}

.navbar .nav-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.nav-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}

.nav-btn:active {
  background: #f0f2f5;
}

.navbar .nav-right {
  min-width: 34px;
  font-size: 13px;
  color: var(--sub);
  text-align: right;
  background: none;
  border: 0;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
  z-index: 30;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 56px;
  color: var(--sub);
  font-size: 10px;
}

.tab-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}

.tab-item.active {
  color: var(--primary);
  font-weight: 600;
}

.search-entry {
  padding: 12px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 20px;
  background: #fff;
  color: var(--sub);
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(26, 29, 36, 0.04);
}

.search-bar svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.banner-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 12px 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.banner-track::-webkit-scrollbar {
  display: none;
}

.banner {
  flex: 0 0 88%;
  scroll-snap-align: start;
  border-radius: 14px;
  padding: 18px 16px;
  color: #fff;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.banner::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.banner h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.banner p {
  margin: 0;
  font-size: 12px;
  opacity: 0.88;
}

.banner .banner-tag {
  align-self: flex-start;
  margin-bottom: 10px;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.24);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 14px 12px 2px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #4a4f59;
}

.quick-char {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
}

.quick-char svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.9;
}

.quick-char img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 0 12px;
  margin-top: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.section-head .sub {
  font-size: 11px;
  color: var(--sub);
  font-weight: 400;
  margin-left: 6px;
}

.section-head .more {
  font-size: 12px;
  color: var(--sub);
  display: flex;
  align-items: center;
  gap: 2px;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-card {
  display: flex;
  gap: 10px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 1px 4px rgba(26, 29, 36, 0.03);
}

.course-card:active {
  transform: scale(0.995);
}

.thumb {
  width: 112px;
  height: 76px;
  border-radius: 8px;
  flex: none;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb .badge {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 0 0 8px 0;
  background: rgba(20, 22, 26, 0.6);
  color: #fff;
  font-weight: 500;
}

.course-card .info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.course-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--sub);
  flex-wrap: wrap;
}

.course-card .meta .dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #c8ccd4;
}

.course-card .price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price {
  color: var(--price);
  font-weight: 700;
  font-size: 16px;
}

.price small {
  font-size: 11px;
  margin-right: 1px;
}

.price-origin {
  color: #b0b4bc;
  font-size: 11px;
  text-decoration: line-through;
}

.price-free {
  color: #12a150;
  font-weight: 600;
  font-size: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  flex: none;
}

.tag-gold {
  background: #fff6e5;
  color: #a9781f;
}

.tag-hot {
  background: #fff0eb;
  color: var(--price);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  background: #eef0f4;
  color: var(--text);
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn:active {
  opacity: 0.82;
}

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-buy {
  background: var(--price);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  border: 1px solid #dde1e7;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 8px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 12px 2px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  padding: 6px 14px;
  border-radius: 16px;
  background: #fff;
  color: #4a4f59;
  font-size: 12px;
  border: 1px solid transparent;
  cursor: pointer;
}

.chip.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #c7dbff;
  font-weight: 600;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #dfe4ea;
}

.detail-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-cover .cover-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.38));
}

.detail-head {
  background: #fff;
  padding: 14px;
}

.detail-head h1 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
}

.detail-head .desc {
  margin: 0;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.6;
}

.detail-facts {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--sub);
}

.price-bar {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: #fff;
  padding: 0 14px 14px;
}

.price-bar .price {
  font-size: 24px;
}

.price-bar .vip-tip {
  margin-left: auto;
  font-size: 11px;
  color: #a9781f;
  background: #fff6e5;
  padding: 4px 9px;
  border-radius: 12px;
}

.tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 48px;
  z-index: 12;
}

.tabs button {
  flex: 1;
  border: 0;
  background: none;
  padding: 12px 0;
  font-size: 13px;
  color: var(--sub);
  position: relative;
  cursor: pointer;
}

.tabs button.active {
  color: var(--text);
  font-weight: 600;
}

.tabs button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}

.tab-panel {
  display: none;
  padding: 12px;
}

.tab-panel.active {
  display: block;
  animation: fade-up 0.22s ease;
}

.chapter {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}

.chapter-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  background: #fafbfc;
  cursor: pointer;
}

.chapter-head .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--sub);
  font-weight: 400;
}

.chapter.collapsed .lesson {
  display: none;
}

.lesson {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #f3f4f7;
  font-size: 13px;
}

.lesson .idx {
  width: 16px;
  font-size: 11px;
  color: #b0b4bc;
  flex: none;
}

.lesson .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lesson .dur {
  font-size: 11px;
  color: var(--sub);
  flex: none;
}

.lesson .free {
  font-size: 10px;
  color: var(--primary);
  border: 1px solid #c7dbff;
  background: #f0f6ff;
  border-radius: 3px;
  padding: 1px 4px;
  flex: none;
}

.lesson .lockicon {
  width: 14px;
  height: 14px;
  color: #c0c4cc;
  flex: none;
}

.lesson.playing .name {
  color: var(--primary);
  font-weight: 600;
}

.buy-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + var(--safe-bottom));
  z-index: 30;
}

.buy-bar .price-col {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.buy-bar .price-col .price {
  font-size: 20px;
}

.buy-bar .price-col span {
  font-size: 10px;
  color: var(--sub);
}

.buy-bar .btn {
  flex: 1;
  height: 44px;
}

.buy-bar .btn-icon {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #f4f5f7;
  font-size: 11px;
  flex-direction: column;
  gap: 1px;
  color: var(--sub);
}

.buy-bar .btn-icon svg {
  width: 18px;
  height: 18px;
}

.teacher-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  margin: 12px;
  padding: 12px;
  border-radius: var(--radius);
}

.teacher-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9db8e8, #4c7fd0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  flex: none;
}

.teacher-row .t-name {
  font-size: 14px;
  font-weight: 600;
}

.teacher-row .t-desc {
  font-size: 11px;
  color: var(--sub);
  margin-top: 2px;
}

.article-rich {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  line-height: 1.85;
  font-size: 14px;
  color: #33373f;
}

.article-rich h3 {
  font-size: 15px;
  margin: 14px 0 6px;
}

.article-rich p {
  margin: 0 0 10px;
}

.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0d11;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: radial-gradient(circle at 50% 40%, #2a3550, #0b0d11 70%);
  text-align: center;
  padding: 20px;
}

.player-poster .p-title {
  font-size: 13px;
  opacity: 0.8;
}

.play-fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.play-fab svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.audio-card {
  margin: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.audio-disc {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #3d4a66 0 30%, #1c2333 31% 60%, #2c3650 61% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dfe6f5;
  font-size: 12px;
  box-shadow: 0 10px 30px rgba(28, 35, 51, 0.3);
  transition: transform 0.4s;
}

.audio-disc.spinning {
  animation: spin 8s linear infinite;
}

.audio-title {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.audio-ctrl {
  display: flex;
  align-items: center;
  gap: 22px;
}

.audio-ctrl button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #f2f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.audio-ctrl button.main {
  width: 58px;
  height: 58px;
  background: var(--primary);
  color: #fff;
}

.audio-ctrl svg {
  width: 20px;
  height: 20px;
}

.progress-line {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #eef0f4;
  overflow: hidden;
}

.progress-line i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.2s;
}

.lock-mask {
  position: absolute;
  inset: 0;
  background: rgba(16, 18, 22, 0.74);
  backdrop-filter: blur(3px);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  z-index: 5;
}

.lock-mask .lock-icon {
  width: 38px;
  height: 38px;
  opacity: 0.9;
}

.lock-mask p {
  margin: 0;
  font-size: 13px;
  opacity: 0.86;
}

.lesson-nav {
  display: flex;
  gap: 10px;
  padding: 12px;
}

.lesson-nav .btn {
  flex: 1;
}

.my-hero {
  background: linear-gradient(140deg, #1f6feb 0%, #4c9bff 60%, #77b4ff 100%);
  color: #fff;
  padding: 22px 16px 30px;
  border-radius: 0 0 22px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  flex: none;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.my-hero .u-name {
  font-size: 17px;
  font-weight: 600;
}

.my-hero .u-name .lv-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  vertical-align: middle;
  background: #8a909c;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.my-hero .u-name .lv-badge.lv-1 {
  background: linear-gradient(120deg, #b9c2d4, #e4ebf6);
  color: #4a5263;
}

.my-hero .u-name .lv-badge.lv-2 {
  background: linear-gradient(120deg, #3b82f6, #7c3aed);
}

.my-hero .u-name .lv-badge.lv-3 {
  background: linear-gradient(120deg, #f59e0b, #ef4444);
}

.my-hero .u-sub {
  font-size: 11px;
  opacity: 0.82;
  margin-top: 3px;
}

.my-hero .login-btn {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 12px;
}

.vip-card {
  margin: -16px 12px 0;
  background: linear-gradient(120deg, #2c3039, #16191f);
  color: var(--gold);
  border-radius: 14px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(22, 25, 31, 0.25);
  position: relative;
  overflow: hidden;
}

.vip-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(245, 209, 139, 0.1);
}

.vip-card .vip-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.vip-card .vip-desc {
  font-size: 11px;
  color: #a9adb8;
  margin-top: 3px;
}

.vip-card .btn {
  margin-left: auto;
  background: linear-gradient(120deg, #f7dc9f, #e2b767);
  color: #4a3410;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 14px;
  flex: none;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-radius: var(--radius);
  margin: 12px;
  padding: 16px 0;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.stat-item b {
  display: block;
  font-size: 17px;
  font-weight: 700;
}

.stat-item span {
  font-size: 11px;
  color: var(--sub);
}

.cell-group {
  background: #fff;
  border-radius: var(--radius);
  margin: 12px;
  overflow: hidden;
}

.cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #f3f4f7;
  font-size: 14px;
}

.cell:first-child {
  border-top: 0;
}

.cell:active {
  background: #fafbfc;
}

.cell .ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f5fa;
  color: var(--primary);
  flex: none;
}

.cell .ico svg {
  width: 16px;
  height: 16px;
}

.cell .arrow {
  margin-left: auto;
  color: #c0c4cc;
  width: 16px;
  height: 16px;
}

.cell .hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--sub);
}

.cell-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px 0 10px;
}

.cell-grid .cell {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  border-top: 0;
  font-size: 12px;
  text-align: center;
}

.cell-grid .cell .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.cell-grid .cell .ico svg {
  width: 20px;
  height: 20px;
}

.cell-grid .cell .label {
  color: #4a4f57;
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius);
}

.qr-card .qr-box {
  flex: none;
  width: 168px;
  height: 168px;
}

.qr-card .qr-box canvas,
.qr-card .qr-box img {
  display: block;
  width: 168px;
  height: 168px;
}

.qr-card .qr-meta {
  flex: 1;
  min-width: 0;
}

.qr-card .qr-title {
  font-size: 15px;
  font-weight: 700;
}

.qr-card .qr-sub {
  font-size: 11px;
  color: var(--sub);
  margin: 4px 0 12px;
  line-height: 1.5;
}

.order-card {
  background: #fff;
  border-radius: var(--radius);
  margin: 12px;
  padding: 12px 14px;
}

.order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--sub);
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f7;
}

.order-status {
  color: var(--price);
  font-weight: 600;
}

.order-status.done {
  color: #12a150;
}

.order-status.closed {
  color: var(--sub);
}

.order-body {
  display: flex;
  gap: 10px;
  padding: 10px 0;
}

.order-body .thumb {
  width: 92px;
  height: 62px;
}

.order-body h3 {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f3f4f7;
  font-size: 12px;
}

.order-foot .total {
  margin-right: auto;
  color: var(--sub);
}

.order-foot .total b {
  color: var(--price);
  font-size: 15px;
}

.field-group {
  margin: 12px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

.field {
  padding: 10px 14px;
  border-top: 1px solid #f3f4f7;
}

.field:first-child {
  border-top: 0;
}

.field label {
  display: block;
  font-size: 11px;
  color: var(--sub);
  margin-bottom: 2px;
}

.field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 4px 0;
  font-size: 16px;
}

.field.code-field {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.code-btn {
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 13px;
  padding: 4px 0;
  flex: none;
  cursor: pointer;
}

.code-btn[disabled] {
  color: var(--sub);
}

.login-hint {
  text-align: center;
  font-size: 11px;
  color: var(--sub);
  padding: 0 24px;
  line-height: 1.6;
}

.wechat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px;
  height: 46px;
  border-radius: 12px;
  background: #07c160;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  width: calc(100% - 24px);
}

.plans {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.plan {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.plan.active {
  border-color: var(--price);
  background: #fffaf8;
}

.plan .plan-name {
  font-size: 15px;
  font-weight: 600;
}

.plan .plan-days {
  font-size: 11px;
  color: var(--sub);
  margin-top: 2px;
}

.plan .plan-price {
  margin-left: auto;
  color: var(--price);
  font-weight: 700;
  font-size: 18px;
}

.vip-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 12px;
}

.benefit {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
}

.benefit b {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.benefit span {
  font-size: 11px;
  color: var(--sub);
}


.empty {
  padding: 56px 0;
  text-align: center;
  color: #a8adb7;
  font-size: 13px;
}

.empty .ico {
  font-size: 34px;
  opacity: 0.5;
  margin-bottom: 10px;
}

.sk {
  background: linear-gradient(90deg, #eef0f4 25%, #f7f8fa 37%, #eef0f4 63%);
  background-size: 400% 100%;
  animation: sk 1.2s ease infinite;
  border-radius: 6px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(20, 22, 26, 0.92);
  color: #fff;
  padding: 9px 16px;
  border-radius: 20px;
  font-size: 13px;
  opacity: 0;
  transition: 0.25s;
  z-index: 99;
  pointer-events: none;
  max-width: 78%;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}

.sheet-mask.show {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(16px + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet-mask.show .sheet {
  transform: none;
}

.sheet h3 {
  margin: 0 0 14px;
  font-size: 16px;
  text-align: center;
}

.sheet .sheet-close {
  position: absolute;
  right: 14px;
  top: 14px;
  color: var(--sub);
  background: none;
  border: 0;
}

.install-tip {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 10px 12px 0;
  padding: 10px 12px;
  background: #fff8e8;
  border-radius: 10px;
  font-size: 11px;
  color: #8a6415;
}

.install-tip.show {
  display: flex;
}

.install-tip button {
  margin-left: auto;
  flex: none;
  border: 0;
  background: #8a6415;
  color: #fff;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11px;
}

.hide {
  display: none !important;
}

@keyframes sk {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 641px) {
  body {
    background: #e9ecf1;
  }
  .app {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  }
}
.protected {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.protected input,
.protected textarea,
.protected [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

.protected img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.wm-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background-repeat: repeat;
  opacity: 0.9;
}
.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 8px;
  padding: 0 14px;
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--sub);
  font-size: 17px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-a {
  padding: 10px 0 14px;
  border-top: 1px solid #f3f4f7;
  font-size: 12px;
  color: #5a6472;
  line-height: 1.8;
  white-space: pre-wrap;
}

.fb-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
}

.fb-form textarea {
  width: 100%;
  min-height: 110px;
  border: 1px solid #dde1e7;
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  background: #fafbfc;
}

.fb-form textarea:focus {
  border-color: var(--primary);
  background: #fff;
}

.fb-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--sub);
  padding: 6px 2px 10px;
}

.fb-input {
  width: 100%;
  height: 40px;
  border: 1px solid #dde1e7;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 13px;
  background: #fafbfc;
  outline: none;
  margin-bottom: 12px;
}

.fb-input:focus {
  border-color: var(--primary);
  background: #fff;
}

.fb-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
}

.fb-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--sub);
}

.fb-time {
  margin-left: auto;
}

.fb-status {
  color: var(--price);
  font-weight: 600;
}

.fb-status.done {
  color: #12a150;
}

.fb-content {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.fb-reply {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--primary-soft);
  font-size: 12px;
  color: #2c3e5c;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.fb-reply b {
  display: block;
  font-size: 11px;
  color: var(--primary);
  margin-bottom: 2px;
}

.fb-reply span {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: var(--sub);
}
.rc-hero {
  margin: 12px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(140deg, #1f2a3d, #2c4368);
  color: #fff;
}

.rc-hero-label {
  font-size: 12px;
  opacity: 0.8;
}

.rc-hero-value {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 700;
}

.rc-hero-value small {
  font-size: 14px;
  margin-right: 2px;
}

.qr-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.qr-box img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
}

.qr-box p {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.7;
}

.qr-empty {
  width: 190px;
  height: 190px;
  margin: 0 auto;
  border: 1px dashed #d9dde5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--sub);
  font-size: 12px;
}

.rc-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
}

.rc-form label {
  display: block;
  font-size: 12px;
  color: var(--sub);
  margin: 10px 0 6px;
}

.rc-form label:first-child {
  margin-top: 0;
}

.proof-preview {
  display: none;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  margin-top: 10px;
  border-radius: 10px;
  background: #f5f6f8;
}

.rc-tip {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--sub);
  line-height: 1.7;
}

.rc-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
}

.rc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--sub);
}

.rc-status {
  font-weight: 600;
  color: var(--price);
  flex: none;
}

.rc-status.paid {
  color: #12a150;
}

.rc-status.rejected {
  color: #e5484d;
}

.rc-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--sub);
}

.rc-body b {
  font-size: 18px;
  color: var(--text);
}

.rc-time {
  margin-top: 4px;
  font-size: 11px;
  color: #b0b4bc;
}

.rc-reject {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fdecec;
  color: #c0392b;
  font-size: 12px;
  line-height: 1.6;
}