:root {
  --ink: #111613;
  --ink-deep: #070a08;
  --ink-soft: #1a211d;
  --paper: #fffdf8;
  --paper-soft: #f8f5ee;
  --canvas: #efeee9;
  --canvas-deep: #e7e5de;
  --gold: #b78942;
  --gold-bright: #d7b878;
  --gold-pale: #f3e8d2;
  --gold-dark: #7b5929;
  --sage: #607069;
  --muted: #718078;
  --line: #d9ddd7;
  --line-strong: #c4cbc4;
  --danger: #b83232;
  --danger-soft: #fff0ee;
  --ok: #26754d;
  --ok-soft: #e8f4ed;
  --warning: #956417;
  --warning-soft: #fff4de;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --sans: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --shadow-sm: 0 8px 24px rgba(25, 35, 29, .06);
  --shadow-md: 0 20px 60px rgba(21, 31, 25, .10);
  --shadow-gold: 0 16px 40px rgba(144, 102, 41, .18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shell: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--canvas); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% -10%, rgba(183, 137, 66, .10), transparent 32%),
    linear-gradient(180deg, #f4f2ed 0, var(--canvas) 420px, #ecece7 100%);
  color: var(--ink);
  font: 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .022;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body[data-page="admin"] { background: #e9ece8; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.hidden { display: none !important; }
::selection { background: var(--gold-bright); color: var(--ink-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--gold-bright);
  color: var(--ink-deep);
  font-weight: 750;
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.app-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(215, 184, 120, .18);
  background: rgba(6, 9, 7, .96);
  color: #f4efe5;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .12);
  backdrop-filter: blur(16px);
}
.app-header::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(215, 184, 120, .46), transparent);
}
.app-header-inner {
  width: min(var(--shell), calc(100% - 44px));
  min-height: 74px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.app-brand { min-width: 0; display: flex; align-items: center; gap: 13px; }
.app-brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(215, 184, 120, .5);
  background: #020302;
}
.app-brand span { min-width: 0; }
.app-brand strong { display: block; font: 550 17px/1.15 var(--serif); letter-spacing: .08em; white-space: nowrap; }
.app-brand small { display: block; margin-top: 5px; color: #aa9d86; font-size: 8px; letter-spacing: .15em; white-space: nowrap; }
.app-nav { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.app-nav a, .app-nav button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 8px 13px;
  background: transparent;
  color: #b5bbb6;
  font-size: 12px;
  white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}
.app-nav a:hover, .app-nav button:hover, .app-nav a[aria-current="page"] {
  border-color: rgba(215, 184, 120, .34);
  background: rgba(215, 184, 120, .07);
  color: var(--gold-bright);
}
.app-nav-account { border-color: rgba(215, 184, 120, .24) !important; color: #d9c69e !important; }
.app-nav-action { margin-left: 2px; color: #89948d !important; }

/* Layout and page hero */
.app-shell { width: min(var(--shell), calc(100% - 44px)); margin: 30px auto 84px; }
.app-shell.narrow, .narrow { max-width: 720px; }
.hero-strip {
  position: relative;
  min-height: 216px;
  overflow: hidden;
  display: grid;
  align-content: center;
  margin-bottom: 20px;
  padding: 38px 42px;
  border: 1px solid rgba(215, 184, 120, .25);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(7, 10, 8, .98) 0%, rgba(7, 10, 8, .93) 48%, rgba(7, 10, 8, .48) 100%),
    url("/assets/pdz-mountain-hero.png") 74% 46% / cover no-repeat,
    var(--ink-deep);
  color: #f5f0e6;
  box-shadow: 0 28px 70px rgba(7, 10, 8, .18);
}
.hero-strip::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .16;
  pointer-events: none;
  background-image: linear-gradient(rgba(215, 184, 120, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(215, 184, 120, .11) 1px, transparent 1px);
  background-size: 100% 72px, 12.5% 100%;
  mask-image: linear-gradient(90deg, #000, transparent 84%);
}
.hero-strip > * { position: relative; z-index: 1; }
.hero-strip small { color: var(--gold-bright); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero-strip h1 { max-width: 820px; margin: 13px 0 6px; font: 520 clamp(30px, 4vw, 48px)/1.18 var(--serif); letter-spacing: .04em; }
.hero-strip p { max-width: 720px; margin: 8px 0 0; color: #aeb5af; font: 400 14px/1.9 var(--serif); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 21px; color: #9ea79f; font-size: 11px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { width: 5px; height: 5px; border-radius: 50%; content: ""; background: var(--gold-bright); box-shadow: 0 0 10px rgba(215, 184, 120, .65); }

/* Panels and content */
.panel {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, .97);
  box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 18px; }
.panel-title { min-width: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.panel-title > div { min-width: 0; }
.panel-title h1, .panel-title h2, .panel-title h3 { margin: 0; color: var(--ink); font-family: var(--serif); line-height: 1.25; letter-spacing: .025em; }
.panel-title h1 { font-size: 29px; }
.panel-title h2 { font-size: 24px; }
.panel-title h3 { font-size: 19px; }
.panel-title p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.panel-kicker { display: block; margin-bottom: 8px; color: var(--gold-dark); font-size: 9px; font-weight: 750; letter-spacing: .15em; }
.section-grid { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr); gap: 18px; }
.cards { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 19px;
  background: #fffefa;
  color: var(--ink);
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}
.card::after {
  position: absolute;
  right: -36px;
  top: -42px;
  width: 95px;
  height: 95px;
  border: 1px solid rgba(183, 137, 66, .11);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.card.active, .card.selectable:hover, .card.selectable:focus-visible {
  border-color: rgba(160, 111, 45, .72);
  background: #fffdf7;
  box-shadow: 0 0 0 3px rgba(183, 137, 66, .10), 0 15px 34px rgba(29, 35, 30, .09);
  transform: translateY(-2px);
}
.card h3 { margin: 9px 0 7px; font: 600 18px/1.4 var(--serif); }
.card p { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; }
.card .button-row { position: relative; z-index: 1; }
.price { margin: 19px 0 2px; color: var(--gold-dark); font-size: 28px; font-weight: 780; letter-spacing: -.025em; }
.meta { color: var(--muted); font-size: 12px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid #e3d4bb;
  border-radius: 999px;
  padding: 2px 9px;
  background: var(--gold-pale);
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.tag.warn { border-color: #ead0a3; background: var(--warning-soft); color: var(--warning); }
.tag.danger { border-color: #efc2bd; background: var(--danger-soft); color: var(--danger); }
.tag.ok { border-color: #c6e2d2; background: var(--ok-soft); color: var(--ok); }
.empty { grid-column: 1 / -1; padding: 32px 20px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--paper-soft); color: var(--muted); text-align: center; }

/* Forms */
.form-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { min-width: 0; display: grid; align-content: start; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #263129; font-size: 13px; font-weight: 750; }
.field small { color: var(--muted); font-size: 11px; }
input, select, textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #cbd2cb;
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: #99a29c; }
textarea { min-height: 100px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #aeb9b0; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(183, 137, 66, .13); }
input:disabled, select:disabled { background: #eff1ed; color: #667168; cursor: not-allowed; }
input[type="file"] { padding: 8px; background: var(--paper-soft); }
.otp-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 9px; }
.check { min-width: 0; display: flex; align-items: flex-start; gap: 10px; color: #465149; font-size: 12px; }
.check input { width: 18px; height: 18px; min-height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--gold-dark); }
.check span { min-width: 0; overflow-wrap: anywhere; }
.check a { color: var(--gold-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.button-row { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.btn {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 17px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-primary { border-color: #b68a46; background: linear-gradient(105deg, #b98c48, #dcc083); color: #11150f; box-shadow: var(--shadow-gold); }
.btn-primary:hover:not(:disabled) { background: linear-gradient(105deg, #c69a53, #e5cc97); }
.btn-secondary { border-color: #cfd5ce; background: #f5f6f2; color: #334039; }
.btn-secondary:hover:not(:disabled) { border-color: #b99865; background: #faf5e9; color: var(--gold-dark); }
.btn-danger { border-color: #efc9c5; background: var(--danger-soft); color: var(--danger); }
.btn:disabled, .btn[aria-busy="true"] { cursor: wait; opacity: .58; transform: none; box-shadow: none; }
.btn[aria-busy="true"]::before { width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: spin .7s linear infinite; }
.status { min-height: 24px; margin: 11px 0 0; color: var(--muted); font-size: 12px; }
.status:not(:empty) { display: flex; align-items: center; gap: 7px; }
.status:not(:empty)::before { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; content: ""; background: currentColor; }
.status.error { color: var(--danger); }
.status.success { color: var(--ok); }
.notice-red { padding: 15px 17px; border: 1px solid #e8bcb6; border-left: 4px solid var(--danger); border-radius: 10px; background: #fff5f3; color: #8c2929; font-size: 12px; font-weight: 650; }
.debug-code { padding: 11px 13px; border: 1px solid #e4c88e; border-radius: 9px; background: #fff4d9; color: #77520f; font-weight: 800; }

/* Login */
.auth-layout { min-height: min(700px, calc(100vh - 150px)); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(430px, .58fr); overflow: hidden; border: 1px solid rgba(215, 184, 120, .28); border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 34px 100px rgba(17, 26, 21, .15); }
.auth-visual {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 52px 52px;
  background:
    linear-gradient(0deg, rgba(5, 8, 6, .98), rgba(5, 8, 6, .17) 76%),
    linear-gradient(90deg, rgba(5, 8, 6, .88), transparent 78%),
    url("/assets/pdz-mountain-hero.png") 64% center / cover no-repeat,
    var(--ink-deep);
  color: #f5f0e6;
}
.auth-visual::before { position: absolute; inset: 0; content: ""; opacity: .18; background-image: linear-gradient(rgba(215,184,120,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(215,184,120,.12) 1px, transparent 1px); background-size: 92px 92px; mask-image: linear-gradient(0deg, #000, transparent 84%); }
.auth-visual::after { position: absolute; right: -190px; top: -190px; width: 540px; height: 540px; border: 1px solid rgba(215,184,120,.11); border-radius: 50%; box-shadow: 0 0 0 68px rgba(215,184,120,.018), 0 0 0 136px rgba(215,184,120,.009); content: ""; }
.auth-visual-index { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(215,184,120,.2); color: var(--gold-bright); font-size: 8px; letter-spacing: .16em; }
.auth-visual-index i { color: #7f8982; font-style: normal; }
.auth-copy { position: relative; z-index: 1; max-width: 620px; }
.auth-copy > small { color: var(--gold-bright); font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.auth-copy h1 { margin: 18px 0 17px; font: 520 clamp(43px, 5vw, 68px)/1.16 var(--serif); letter-spacing: .045em; }
.auth-copy > p { max-width: 540px; margin: 0; color: #aeb6af; font: 400 14px/1.9 var(--serif); }
.auth-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 32px; border: 1px solid rgba(215, 184, 120, .22); background: rgba(215, 184, 120, .22); }
.auth-benefits div { min-height: 116px; padding: 17px; background: rgba(8, 12, 9, .82); }
.auth-benefits div > small { display: block; margin-bottom: 17px; color: #66716a; font-size: 7px; letter-spacing: .13em; }
.auth-benefits b { display: block; color: var(--gold-bright); font-size: 12px; }
.auth-benefits span { display: block; margin-top: 6px; color: #858f88; font-size: 9px; }
.auth-card { position: relative; align-self: stretch; display: grid; align-content: center; border: 0; border-radius: 0; padding: clamp(38px, 5vw, 68px); box-shadow: none; }
.auth-card::before { position: absolute; inset: 18px; border: 1px solid rgba(183,137,66,.12); pointer-events: none; content: ""; }
.auth-card-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 18px; margin-bottom: 48px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--gold-dark); font-size: 8px; font-weight: 750; letter-spacing: .15em; }
.auth-card-topline i { color: #9ba39d; font-style: normal; font-weight: 500; }
.auth-card .panel-title { margin-bottom: 30px; }
.auth-card .panel-title h2 { font-size: 34px; letter-spacing: .05em; }
.auth-card form, .admin-login-form-wrap form { display: grid; gap: 16px; }
.auth-card form .button-row, .admin-login-form-wrap form .button-row { margin-top: 2px; }
.auth-card .btn-primary { width: 100%; min-height: 52px; box-shadow: 0 14px 32px rgba(123,89,41,.18); }
.auth-trust { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: #88928b; font-size: 10px; }
.auth-trust::before { width: 7px; height: 7px; border-radius: 50%; content: ""; background: #43a26f; box-shadow: 0 0 12px rgba(67,162,111,.45); }
.auth-trust-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.auth-trust-row > span { margin-top: 24px; color: #a4aaa5; font-size: 7px; letter-spacing: .12em; }

/* Member and purchase */
.quick-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-card { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.quick-card .card-arrow { margin-top: 14px; color: var(--gold-dark); font-size: 18px; }
.profile-lock-note { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.profile-lock-note::before { content: "◆"; color: var(--gold); font-size: 7px; }
.purchase-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.purchase-steps span { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(215,184,120,.28); padding: 6px 10px; background: rgba(8,12,9,.52); color: #aab2ac; font-size: 10px; }
.purchase-steps b { color: var(--gold-bright); font-size: 9px; }
.product-choice { width: 100%; min-height: 236px; display: flex; flex-direction: column; text-align: left; }
.product-choice .price { margin-top: auto; padding-top: 17px; }
.product-choice.active::before { position: absolute; z-index: 2; right: 13px; top: 13px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; content: "✓"; background: var(--gold); color: var(--ink-deep); font-weight: 900; }
.order-summary { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 17px 18px; border: 1px solid #dfd4bf; border-radius: 12px; background: #faf4e8; }
.order-summary small { display: block; color: var(--gold-dark); font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.order-summary strong { display: block; margin-top: 5px; overflow-wrap: anywhere; font: 600 17px var(--serif); }
.order-summary span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.order-summary-price { color: var(--gold-dark); font-size: 23px; font-weight: 800; white-space: nowrap; }
.checkout-actions { align-items: stretch; }
.checkout-actions .btn-primary { min-width: 220px; min-height: 48px; }
.safe-pay-note { align-self: center; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.safe-pay-note::before { content: "●"; color: var(--ok); font-size: 8px; }

/* Tables and stats */
.table-wrap { width: 100%; min-width: 0; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; scrollbar-color: #b7a27d #edf0eb; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 13px; border-bottom: 1px solid #e4e7e2; text-align: left; vertical-align: top; }
.data-table th { position: sticky; z-index: 1; top: 0; background: #f1f3ef; color: #5e6b63; font-size: 10px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.data-table td { color: #354038; font-size: 12px; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: #fbf8f1; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table small { color: var(--muted); overflow-wrap: anywhere; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { position: relative; min-height: 118px; overflow: hidden; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, #fbfbf7, #f3f2ec); }
.stat::after { position: absolute; right: -24px; bottom: -38px; width: 94px; height: 94px; border: 1px solid rgba(183,137,66,.15); border-radius: 50%; content: ""; }
.stat small { color: var(--muted); font-size: 11px; }
.stat b { display: block; margin-top: 10px; color: #273129; font-size: 27px; line-height: 1.15; }

/* Course */
.course-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .68fr); gap: 18px; align-items: start; }
.course-player-panel { background: #0c100e; border-color: #222b25; color: #f4efe5; }
.player-shell { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid rgba(215,184,120,.18); border-radius: 12px; background: #030504; box-shadow: 0 18px 44px rgba(0,0,0,.24); }
.player-shell video { width: 100%; height: 100%; display: block; object-fit: contain; }
.pdz-player-host { position: absolute; inset: 0; width: 100%; height: 100%; }
.pdz-player-host[hidden] { display: none; }
.pdz-player-host .pdz-player { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.aliyun-player-host { position: absolute !important; inset: 0; display: none; width: 100% !important; height: 100% !important; }
.player-shell.is-vod .aliyun-player-host { display: block; }
.player-shell.is-vod .pdz-player-host { display: none; }
.player-shell.has-player .player-placeholder { display: none; }
.player-shell .prism-player .prism-big-play-btn { z-index: 3; }
.private-play-button { position: absolute; z-index: 30; left: 50%; top: 50%; display: flex; align-items: center; gap: 10px; transform: translate(-50%,-50%); border: 1px solid rgba(215,184,120,.72); border-radius: 999px; padding: 13px 20px; background: rgba(5,9,7,.88); color: #f5e4b9; box-shadow: 0 8px 30px rgba(0,0,0,.42); cursor: pointer; }
.private-play-button[hidden] { display: none; }
.private-play-button span { font-size: 20px; line-height: 1; }
.private-play-button b { font-size: 14px; letter-spacing: .08em; }
.private-play-button:hover, .private-play-button:focus-visible { border-color: #f0d28b; background: rgba(20,29,24,.96); outline: 2px solid rgba(240,210,139,.32); outline-offset: 3px; }
.player-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; pointer-events: none; color: #707a73; font-size: 12px; }
.player-placeholder span { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(215,184,120,.28); border-radius: 50%; color: var(--gold-bright); font: 650 13px var(--serif); letter-spacing: .12em; }
.player-placeholder p { margin: 0; }
.player-shell:has(video[src]) .player-placeholder { display: none; }
.video-watermark { position: absolute; z-index: 4; left: 6%; top: 10%; color: rgba(255,255,255,.38); font-size: 11px; letter-spacing: .05em; text-shadow: 0 1px 4px #000; pointer-events: none; animation: drift 20s ease-in-out infinite alternate; }
.compatibility-watermark { z-index: 20; }
.aliyun-secure-watermark { z-index: 20; }
.course-player-panel h2 { margin: 20px 0 3px; font: 520 22px var(--serif); }
.course-player-panel .status { color: #8e9991; }
.lesson-list { display: grid; gap: 8px; }
.lesson { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; background: #fffefa; color: var(--ink); text-align: left; transition: border-color .2s, background .2s, transform .2s; }
.lesson:hover, .lesson.active { border-color: var(--gold); background: #fbf4e8; transform: translateX(2px); }
.lesson strong { display: block; margin-top: 3px; font-size: 13px; }
.lesson small { display: block; color: var(--muted); font-size: 10px; }

/* Admin */
.admin-layout { min-width: 0; display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-menu { position: sticky; top: 92px; display: grid; gap: 5px; padding: 13px; background: #0c100e; border-color: #222a25; box-shadow: 0 20px 45px rgba(16,24,19,.14); }
.admin-menu::before { padding: 9px 11px 13px; border-bottom: 1px solid rgba(215,184,120,.17); content: "OPERATIONS"; color: var(--gold-bright); font-size: 8px; font-weight: 750; letter-spacing: .16em; }
.admin-menu button { min-height: 42px; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 8px; padding: 9px 11px; background: transparent; color: #9da69f; text-align: left; font-size: 12px; transition: .18s; }
.admin-menu button::before { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; content: ""; background: #59655e; }
.admin-menu button:hover, .admin-menu button.active { border-color: rgba(215,184,120,.22); background: rgba(215,184,120,.09); color: var(--gold-bright); }
.admin-menu button.active::before { background: var(--gold-bright); box-shadow: 0 0 10px rgba(215,184,120,.6); }
.admin-section { display: none; min-width: 0; animation: rise .28s ease both; }
.admin-section.active { display: block; }
.filter-grid { min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(112px, 1fr)); gap: 9px; margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #f6f7f3; }
.filter-grid .btn { min-height: 46px; }
.stack { display: grid; gap: 10px; }
.product-admin-form { margin-bottom: 13px; background: #fbfaf6; }
.admin-login-shell { max-width: 940px; margin-top: 60px; }
.admin-login-card { display: grid; grid-template-columns: minmax(0, .7fr) minmax(360px, 1fr); overflow: hidden; padding: 0; }
.admin-login-brand { min-height: 430px; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; background: linear-gradient(0deg, rgba(5,8,6,.97), rgba(5,8,6,.28)), url("/assets/pdz-mountain-hero.png") 67% center / cover; color: #f4efe5; }
.admin-login-brand small { color: var(--gold-bright); font-size: 8px; letter-spacing: .16em; }
.admin-login-brand h1 { margin: 14px 0 9px; font: 520 34px var(--serif); }
.admin-login-brand p { margin: 0; color: #9ca59e; font-size: 11px; }
.admin-login-form-wrap { display: grid; align-content: center; padding: 42px; }
.legacy-import { overflow: hidden; border: 1px solid #d4d9d3; border-radius: 12px; background: #f7f8f4; }
.legacy-import summary { padding: 14px 16px; color: #324038; font-weight: 750; cursor: pointer; }
.legacy-import[open] summary { border-bottom: 1px solid var(--line); background: #f2f0e9; }
.legacy-import form { padding: 17px; }
.batch-import { margin-top: 10px; }
.legacy-import-body { padding: 17px; }
.legacy-import-body > p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.batch-import-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.file-picker { position: relative; overflow: hidden; cursor: pointer; }
.file-picker input { position: absolute; width: 1px; height: 1px; min-height: 1px; opacity: 0; pointer-events: none; }
.import-summary { display: flex; flex-wrap: wrap; gap: 7px; margin: 5px 0 13px; }
.import-summary span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: #fff; color: var(--muted); font-size: 10px; }
.import-summary b { color: var(--ink); }
.import-row-error { max-width: 300px; color: var(--danger); white-space: normal; }
.user-search-field { margin: 14px 0 12px; }
.app-dialog { position: relative; width: min(780px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow: auto; border: 1px solid rgba(215,184,120,.32); border-radius: 18px; padding: 28px; background: #fffdf8; color: var(--ink); box-shadow: 0 28px 100px rgba(7,14,10,.34); }
.app-dialog::backdrop { background: rgba(5,9,7,.7); backdrop-filter: blur(4px); }
.app-dialog h2 { margin: 0 40px 20px 0; font-family: var(--serif); }
.app-dialog h3 { margin: 27px 0 12px; font-family: var(--serif); }
.wechat-payment-dialog { width: min(520px, calc(100vw - 28px)); text-align: center; }
.wechat-payment-dialog > p { color: var(--muted); line-height: 1.75; }
.wechat-payment-summary { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px; margin: 20px 0; text-align: left; }
.wechat-payment-summary > div { padding: 12px; border: 1px solid rgba(28,70,51,.12); border-radius: 12px; background: #fff; }
.wechat-payment-summary small, .wechat-payment-summary strong { display: block; }
.wechat-payment-summary small { color: var(--muted); margin-bottom: 4px; }
.wechat-payment-summary strong { overflow-wrap: anywhere; }
.wechat-payment-qr { display: grid; place-items: center; width: 304px; height: 304px; max-width: 100%; margin: 0 auto 14px; padding: 12px; border: 1px solid rgba(28,70,51,.14); border-radius: 18px; background: #fff; }
.wechat-payment-qr img { display: block; width: 280px; height: 280px; max-width: 100%; }
.wechat-payment-dialog .button-row { justify-content: center; }
.payment-return-status:not(:empty) { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: rgba(215,184,120,.13); }
.activity-payment-choice { display: grid; gap: 7px; margin-bottom: 12px; color: var(--muted); font-size: .88rem; }
.activity-payment-choice select { width: 100%; }
.activity-wechat-payment { display: grid; gap: 10px; justify-items: center; text-align: center; }
.activity-wechat-payment img { width: 240px; height: 240px; max-width: 100%; padding: 8px; border-radius: 14px; border: 1px solid rgba(28,70,51,.14); background: #fff; }
.activity-wechat-payment > small, .activity-wechat-payment > span { color: var(--muted); overflow-wrap: anywhere; }
.dialog-x { position: absolute; right: 16px; top: 14px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #f1f2ed; color: var(--muted); font-size: 20px; }
.entitlement-editor { display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(150px, 1fr) minmax(120px, .8fr) auto; gap: 9px; align-items: end; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf6; }
.entitlement-editor strong, .entitlement-editor small { display: block; }
.entitlement-editor small { color: var(--muted); }

/* Legal */
.legal-copy { padding: clamp(26px, 5vw, 50px); }
.legal-copy h1 { margin: 16px 0 28px; font: 520 clamp(30px, 5vw, 44px)/1.25 var(--serif); }
.legal-copy h2 { margin: 28px 0 9px; font: 600 19px var(--serif); }
.legal-copy p { margin: 0 0 14px; color: #4f5a52; white-space: pre-line; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate(360px, 165px); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1040px) {
  .app-nav-section { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-grid, .course-layout { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: minmax(0, 1fr) 420px; }
  .auth-visual { padding: 40px; }
  .admin-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .app-header-inner, .app-shell { width: min(100% - 28px, var(--shell)); }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { min-height: 390px; }
  .auth-card { padding: 34px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-menu { position: static; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow-x: auto; }
  .admin-menu::before { display: none; }
  .admin-menu button { justify-content: center; padding: 9px; white-space: nowrap; }
  .admin-menu button::before { display: none; }
  .admin-login-card { grid-template-columns: 1fr; }
  .admin-login-brand { min-height: 220px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body { font-size: 14px; }
  .app-header-inner { min-height: 66px; gap: 10px; }
  .app-brand { gap: 10px; }
  .app-brand img { width: 39px; height: 39px; }
  .app-brand strong { font-size: 15px; }
  .app-brand small { max-width: 145px; overflow: hidden; text-overflow: ellipsis; font-size: 7px; }
  .app-nav .app-nav-section { display: none; }
  .app-nav a, .app-nav button { min-height: 35px; padding: 7px 9px; font-size: 11px; }
  .app-shell { margin-top: 17px; margin-bottom: 58px; }
  .hero-strip { min-height: 205px; padding: 28px 20px; border-radius: 17px; background-position: 70% center; }
  .hero-strip h1 { margin-top: 10px; font-size: 31px; }
  .hero-strip p { font-size: 12px; }
  .hero-meta { gap: 7px 13px; margin-top: 16px; font-size: 10px; }
  .panel { padding: 21px 16px; border-radius: 14px; }
  .panel-title { align-items: flex-start; margin-bottom: 17px; }
  .panel-title h1 { font-size: 25px; }
  .panel-title h2 { font-size: 21px; }
  .panel-title p { font-size: 11px; }
  .panel-title > .btn { flex: 0 0 auto; }
  .cards, .form-grid, .stat-grid, .quick-cards { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .button-row .btn { flex: 1 1 auto; }
  .otp-row { grid-template-columns: minmax(0, 1fr) 116px; }
  .otp-row .btn { width: 116px; padding-inline: 7px; font-size: 11px; }
  .auth-layout { border-radius: 17px; }
  .auth-visual { min-height: 380px; padding: 24px 21px 28px; }
  .auth-visual-index { font-size: 6px; }
  .auth-copy h1 { font-size: 38px; }
  .auth-copy > p { font-size: 12px; }
  .auth-benefits { grid-template-columns: 1fr; margin-top: 22px; }
  .auth-benefits div { min-height: 0; padding: 11px 13px; }
  .auth-benefits div > small { display: none; }
  .auth-benefits span { margin-top: 2px; }
  .auth-card { padding: 27px 20px 30px; }
  .auth-card::before { inset: 10px; }
  .auth-card-topline { margin-bottom: 30px; font-size: 7px; }
  .auth-card .panel-title h2 { font-size: 25px; }
  .auth-trust-row { align-items: flex-start; flex-direction: column; gap: 0; }
  .auth-trust-row > span { margin-top: 4px; }
  .purchase-steps { margin-top: 17px; }
  .product-choice { min-height: 210px; }
  .order-summary { grid-template-columns: 1fr; gap: 8px; }
  .order-summary-price { font-size: 21px; }
  .checkout-actions { display: grid; }
  .safe-pay-note { justify-self: start; }
  .admin-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-menu button { justify-content: flex-start; }
  .filter-grid { grid-template-columns: 1fr 1fr; padding: 10px; }
  .entitlement-editor { grid-template-columns: 1fr; }
  .app-dialog { padding: 22px 16px; }
  .admin-login-shell { margin-top: 18px; }
  .admin-login-brand { min-height: 190px; padding: 24px; }
  .admin-login-form-wrap { padding: 28px 20px; }
}

@media (max-width: 390px) {
  .app-header-inner, .app-shell { width: calc(100% - 22px); }
  .app-brand small { display: none; }
  .app-nav a, .app-nav button { padding-inline: 7px; }
  .filter-grid { grid-template-columns: 1fr; }
  .otp-row { grid-template-columns: minmax(0, 1fr) 108px; }
  .otp-row .btn { width: 108px; }
}

/* 2026 interactive service, rights and profile upgrade */
.service-selection-panel { padding-bottom: 32px; }
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-grid .product-choice { min-height: 318px; height: 100%; padding: 24px; }
.service-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-card-head small { color: var(--muted); font-size: 11px; }
.product-choice h3 { margin-top: 18px; font-size: 22px; }
.service-card-points { display: grid; gap: 8px; margin: 18px 0 22px; padding: 0; list-style: none; color: #536058; font-size: 12px; }
.service-card-points li { position: relative; padding-left: 16px; }
.service-card-points li::before { position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; content: ""; background: var(--gold); }
.service-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 18px; border-top: 1px solid #e7e1d5; }
.service-card-footer .price { margin: 0; }
.service-card-footer > span { color: var(--gold-dark); font-size: 12px; font-weight: 750; white-space: nowrap; }
.selected-service-detail { padding: 17px 19px; border: 1px solid #dce1db; border-radius: 12px; background: #f8faf6; }
.selected-service-detail strong { display: block; margin-bottom: 8px; color: #27332b; font-size: 13px; }
.selected-service-detail ul { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: #59645d; font-size: 12px; }

.member-hero, .profile-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(215,184,120,.25);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(100deg, rgba(6,9,7,.98), rgba(7,11,8,.87) 58%, rgba(7,11,8,.48)),
    url("/assets/pdz-mountain-hero.png") right 42% / cover no-repeat,
    var(--ink-deep);
  color: #f6f0e5;
  box-shadow: 0 28px 70px rgba(7,10,8,.16);
}
.member-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; padding: 38px 42px 0; }
.member-hero::before, .profile-hero::before { position: absolute; inset: 0; content: ""; opacity: .13; pointer-events: none; background-image: linear-gradient(rgba(215,184,120,.17) 1px, transparent 1px), linear-gradient(90deg, rgba(215,184,120,.13) 1px, transparent 1px); background-size: 100% 76px, 12.5% 100%; mask-image: linear-gradient(90deg, #000, transparent 88%); }
.member-hero > *, .profile-hero > * { position: relative; z-index: 1; }
.member-hero-copy > small, .profile-hero > div > small { color: var(--gold-bright); font-size: 9px; font-weight: 750; letter-spacing: .18em; }
.member-hero h1, .profile-hero h1 { margin: 11px 0 7px; font: 520 clamp(30px,4vw,46px)/1.2 var(--serif); letter-spacing: .035em; }
.member-hero-copy > p, .profile-hero > div > p { max-width: 690px; margin: 0; color: #abb4ac; font: 400 13px/1.9 var(--serif); }
.member-hero-actions { display: flex; align-items: flex-start; gap: 9px; }
.btn-ghost-dark { min-height: 43px; border: 1px solid rgba(215,184,120,.35); background: rgba(8,12,9,.58); color: #d8c79f; }
.btn-ghost-dark:hover { border-color: rgba(215,184,120,.62); background: rgba(215,184,120,.1); }
.member-profile-summary { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 26px -42px 0; border-top: 1px solid rgba(215,184,120,.16); background: rgba(4,7,5,.7); }
.member-profile-summary > div { min-width: 0; padding: 17px 42px; border-right: 1px solid rgba(215,184,120,.12); }
.member-profile-summary > div:last-child { border-right: 0; }
.member-profile-summary small { display: block; color: #879189; font-size: 9px; letter-spacing: .08em; }
.member-profile-summary strong { display: block; margin-top: 5px; overflow-wrap: anywhere; color: #e6d8b9; font-size: 13px; font-weight: 650; }
.rights-hub { padding: clamp(26px,3.2vw,40px); }
.rights-section { padding-top: 3px; }
.rights-section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.rights-section-heading h3 { margin: 0; font: 600 20px/1.35 var(--serif); }
.rights-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.rights-index { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #decba8; border-radius: 50%; background: #faf1df; color: var(--gold-dark); font-size: 10px; font-weight: 800; }
.rights-divider { height: 1px; margin: 30px 0; background: linear-gradient(90deg, var(--line), rgba(217,221,215,.25)); }
.benefit-grid, .course-rights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.benefit-card, .course-right-card { min-height: 190px; }
.benefit-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.benefit-card-top small { color: var(--muted); font-size: 10px; }
.benefit-validity { margin: 13px 0 8px !important; color: var(--gold-dark) !important; font-weight: 750; }
.course-right-card { display: flex; flex-direction: column; }
.course-right-card > strong { margin-top: auto; padding-top: 20px; color: var(--gold-dark); font-size: 12px; }
.member-secondary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 18px 0; }
.member-secondary-grid .panel { margin: 0; }
.member-action-card { min-height: 205px; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.member-action-card:hover { border-color: #c8ae83; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.member-action-card h2 { margin: 18px 0 7px; font: 600 23px var(--serif); }
.member-action-card p { max-width: 470px; margin: 0; color: var(--muted); font-size: 13px; }
.member-action-card > strong { margin-top: auto; padding-top: 24px; color: var(--gold-dark); font-size: 12px; }

.profile-shell { max-width: 1320px; }
.profile-hero { min-height: 196px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px 40px; }
.profile-layout { display: grid; grid-template-columns: minmax(270px,330px) minmax(0,1fr); gap: 18px; align-items: start; }
.profile-identity-card { position: sticky; top: 96px; padding: 30px; text-align: center; background: linear-gradient(165deg,#fffefa,#f5f1e7); }
.profile-avatar { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 16px; border: 1px solid #d5b981; border-radius: 50%; background: linear-gradient(145deg,#151b17,#2c382f); color: var(--gold-bright); font: 600 29px var(--serif); box-shadow: 0 12px 28px rgba(17,22,19,.18); }
.profile-identity-card > small { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.profile-identity-card h2 { margin: 7px 0 9px; font: 600 23px var(--serif); overflow-wrap: anywhere; }
.profile-id-badge { display: inline-flex; border: 1px solid #dcc69e; border-radius: 999px; padding: 4px 12px; background: #f7ecd7; color: var(--gold-dark); font-size: 11px; font-weight: 750; }
.profile-facts { display: grid; gap: 0; margin: 25px 0 0; text-align: left; }
.profile-facts > div { padding: 14px 0; border-top: 1px solid #e1e2dc; }
.profile-facts dt { color: var(--muted); font-size: 10px; }
.profile-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; color: #303b33; font-size: 12px; font-weight: 650; }
.profile-system-note { margin: 18px 0 0; padding: 13px; border-radius: 10px; background: #eeeee8; color: #68726b; text-align: left; font-size: 10px; }
.profile-form-panel { padding: clamp(25px,3vw,38px); }
.profile-form-grid { grid-template-columns: repeat(12,minmax(0,1fr)); gap: 18px; }
.profile-form-grid > .field { grid-column: span 6; }
.profile-form-grid > .profile-wechat-field,
.profile-form-grid > .profile-track-field { grid-column: span 6; }
.profile-form-grid > .field.full { grid-column: 1 / -1; }
.counter { justify-self: end; margin-top: -3px; }

.legal-shell { max-width: 1000px; }
.legal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.legal-heading h1 { margin-bottom: 10px; }
.legal-heading > div > p { max-width: 680px; }
#agreement-content { max-width: 820px; margin: 30px auto 0; }
.legal-section { padding: 5px 0 8px; }
.legal-section h2 { color: #232d26; }
.legal-alert { margin: 18px 0 24px; padding: 20px 22px; border: 1px solid #e5b7b0; border-left: 5px solid var(--danger); border-radius: 12px; background: #fff3f1; }
.legal-alert h2 { margin-top: 0; color: var(--danger); }
.legal-alert p { margin-bottom: 0; color: #7e2929; font-weight: 650; }

@media (max-width: 820px) {
  .member-hero { grid-template-columns: 1fr; padding: 30px 28px 0; }
  .member-hero-actions { flex-wrap: wrap; }
  .member-profile-summary { margin-inline: -28px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .member-profile-summary > div { padding-inline: 28px; border-bottom: 1px solid rgba(215,184,120,.12); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-identity-card { position: static; }
  .profile-hero { align-items: flex-start; flex-direction: column; padding: 30px 28px; }
  .legal-heading { flex-direction: column; }
}

@media (max-width: 620px) {
  .product-grid, .benefit-grid, .course-rights-grid, .member-secondary-grid { grid-template-columns: 1fr; }
  .product-grid .product-choice { min-height: 300px; }
  .service-card-head, .service-card-footer { align-items: flex-start; }
  .service-card-footer { flex-direction: column; }
  .member-profile-summary { grid-template-columns: 1fr; }
  .member-profile-summary > div { padding: 14px 24px; border-right: 0; }
  .rights-hub { padding: 22px 18px; }
  .profile-form-panel { padding-inline: 18px; }
  .profile-form-grid { grid-template-columns: 1fr; }
  .profile-form-grid > .field,
  .profile-form-grid > .profile-wechat-field,
  .profile-form-grid > .profile-track-field,
  .profile-form-grid > .field.full { grid-column: auto; }
}

@media print {
  .app-header, .legal-heading .btn, .skip-link { display: none !important; }
  body { background: #fff; }
  .app-shell { width: 100%; margin: 0; }
  .legal-copy { border: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Final UE 2.0 — shared premium experience */
:root {
  --shell: 1360px;
  --paper: #f5f2e9;
  --paper-strong: #fbfaf6;
  --forest: #10251c;
  --forest-soft: #173629;
  --gold: #c89d4c;
  --gold-bright: #e8cf97;
  --shadow-sm: 0 10px 30px rgba(17, 31, 23, .06);
  --shadow-md: 0 24px 68px rgba(17, 31, 23, .12);
}
body {
  background:
    radial-gradient(circle at 8% 2%, rgba(200, 157, 76, .08), transparent 26rem),
    linear-gradient(180deg, #f7f4ed 0, #eef1ed 100%);
}
.app-header { border-bottom-color: rgba(200, 157, 76, .2); background: rgba(9, 16, 12, .97); box-shadow: 0 12px 40px rgba(4, 9, 6, .12); }
.app-header-inner { min-height: 80px; }
.app-shell { margin-top: 36px; }
.hero-strip, .member-hero, .profile-hero { border-radius: 26px; box-shadow: 0 28px 72px rgba(7, 17, 11, .15); }
.panel, .card, .product-choice, .benefit-card, .course-right-card, .member-action-card {
  border-color: rgba(30, 55, 41, .12);
  border-radius: 20px;
  background: rgba(255, 254, 250, .94);
  box-shadow: var(--shadow-sm);
}
.panel-title h2, .rights-section-heading h3, .member-action-card h2 { letter-spacing: -.02em; }
.btn { border-radius: 10px; font-weight: 750; letter-spacing: .02em; }
.btn.primary, .member-login-submit { background: linear-gradient(135deg, #b88632, #d8b567); box-shadow: 0 10px 25px rgba(175, 129, 48, .2); }
input, select, textarea { border-color: #d5ddd7; border-radius: 11px; background: #fff; transition: border-color .2s, box-shadow .2s, background .2s; }
input:focus, select:focus, textarea:focus { border-color: #b99955; box-shadow: 0 0 0 4px rgba(185, 153, 85, .12); }
.profile-layout { grid-template-columns: minmax(280px, 338px) minmax(0, 1fr); gap: 22px; }
.profile-form-panel { border-radius: 22px; }
.profile-form-grid { align-items: start; column-gap: 22px; row-gap: 18px; }
.profile-form-grid > .field:not(.full) { display: flex; min-width: 0; flex-direction: column; margin: 0; }
.profile-form-grid > .field:not(.full) input,
.profile-form-grid > .field:not(.full) select { width: 100%; height: 56px; min-height: 56px; }
.profile-form-grid > .field:not(.full) small { min-height: 20px; margin-top: 7px; }
.profile-form-grid > .profile-wechat-field { grid-column: span 7; }
.profile-form-grid > .profile-track-field { grid-column: span 5; }
.profile-identity-card { border-radius: 22px; box-shadow: var(--shadow-md); }
.video-watermark { color: rgba(255,255,255,.34); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.human-verification-field { margin-top: 16px; }
.human-slider {
  position: relative;
  overflow: hidden;
  height: 48px;
  border: 1px solid #d9ded9;
  border-radius: 12px;
  background: #eef2ee;
  touch-action: none;
  user-select: none;
}
.human-slider-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg,#e4cf9b,#f5ead0); transition: width .15s; }
.human-slider-hint { position: absolute; inset: 0; display: grid; place-items: center; color: #728078; font-size: 13px; pointer-events: none; }
.human-slider-thumb { position: absolute; top: 4px; left: 4px; z-index: 2; display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 9px; color: #f5e5bd; background: #173328; box-shadow: 0 5px 14px rgba(15,42,29,.2); cursor: grab; transition: transform .12s; }
.human-slider-thumb:active { cursor: grabbing; }
.human-slider[data-state="dragging"] .human-slider-fill { transition: none; }
.human-slider[data-state="dragging"] .human-slider-thumb { transition: none; }
.human-slider[data-state="verified"] { border-color: #8caf98; background: #e8f2ea; }
.human-slider[data-state="verified"] .human-slider-fill { background: #dcecdf; }
.human-slider[data-state="verified"] .human-slider-hint { color: #315d43; font-weight: 800; }
.human-slider[data-state="loading"] { opacity: .7; pointer-events: none; }
.human-slider-status { display: block; margin-top: 7px; color: #7b8780; }

@media (max-width: 820px) {
  .app-header-inner { min-height: 70px; }
  .app-shell { margin-top: 20px; }
  .profile-layout { grid-template-columns: 1fr; }
}

/* Community & offline events — premium responsive system */
.premium-header .app-nav a[aria-current="page"] { color: var(--gold-bright); }
.community-shell, .activities-shell, .activity-detail-shell, .messages-shell { padding-bottom: 90px; }
.community-hero, .activities-hero, .messages-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 48px;
  align-items: end;
  min-height: 360px;
  padding: 58px 62px;
  border: 1px solid rgba(211, 175, 102, .22);
  border-radius: 28px;
  color: #f8f4e7;
  background:
    linear-gradient(96deg, rgba(4, 12, 8, .97) 0%, rgba(8, 24, 16, .91) 55%, rgba(18, 43, 29, .76)),
    url('/assets/bg.jpg') center/cover;
  box-shadow: 0 32px 90px rgba(6, 19, 12, .2);
}
.community-hero::after, .activities-hero::after, .messages-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(219, 186, 113, .17);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(219, 186, 113, .025), 0 0 0 144px rgba(219, 186, 113, .018);
}
.community-hero > *, .activities-hero > *, .messages-hero > * { position: relative; z-index: 1; }
.community-hero small, .activities-hero small, .messages-hero small,
.community-aside > * > small, .activity-story > small, .activity-checkout > small {
  color: #d9b766;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
}
.community-hero h1, .activities-hero h1, .messages-hero h1 {
  margin: 16px 0 20px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(44px, 5.5vw, 82px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.05em;
}
.community-hero p, .activities-hero > p, .messages-hero > p { max-width: 620px; margin: 0; color: rgba(245, 240, 225, .7); font-size: 17px; line-height: 1.9; }
.community-hero-stat {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border: 1px solid rgba(220, 187, 112, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(8px);
}
.community-hero-stat span { color: rgba(234, 214, 164, .55); font-size: 10px; letter-spacing: .2em; }
.community-hero-stat strong { margin: 10px 0 6px; font-family: "Songti SC", serif; font-size: 25px; }
.community-hero-stat small { color: rgba(255,255,255,.52); letter-spacing: 0; }
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; margin-top: 26px; }
.community-main { min-width: 0; }
.community-compose { padding: 28px; }
.compose-heading, .feed-heading, .activity-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.compose-heading h2, .feed-heading h2 { margin: 4px 0 0; font-family: "Songti SC", serif; font-size: 28px; }
.compose-heading > span, .feed-heading > span, .activity-toolbar > span { color: #718077; font-size: 13px; }
.compose-heading small, .feed-heading small { color: #a47b32; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.community-compose form { display: grid; gap: 12px; margin-top: 20px; }
.community-compose input, .community-compose textarea { width: 100%; }
.community-compose.is-locked form { opacity: .48; pointer-events: none; }
.compose-tools { display: flex; align-items: center; gap: 14px; }
.compose-tools small { flex: 1; color: #859089; }
.media-picker {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid #d9ded9;
  border-radius: 9px;
  color: #31483c;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.media-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.compose-media-list { display: flex; flex-wrap: wrap; gap: 8px; }
.compose-media-list span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #edf2ed; color: #3f5549; font-size: 12px; }
.compose-media-list button { border: 0; background: none; color: #8e5b52; cursor: pointer; }
.compose-locked { padding: 6px 0; }
.compose-locked span { color: #a7803d; font-size: 10px; letter-spacing: .18em; }
.compose-locked h2 { margin: 8px 0; font-family: "Songti SC", serif; }
.compose-locked p { max-width: 660px; color: #76837b; line-height: 1.8; }
.feed-heading { padding: 32px 4px 16px; }
.community-feed { display: grid; gap: 18px; }
.social-post {
  padding: 28px;
  border: 1px solid rgba(30, 55, 41, .12);
  border-radius: 20px;
  background: rgba(255, 254, 250, .95);
  box-shadow: var(--shadow-sm);
}
.social-post-head { display: flex; align-items: center; gap: 12px; }
.social-avatar { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 50%; color: #f0ddb0; background: #233c2f; font-family: "Songti SC", serif; font-size: 20px; }
.social-avatar.official { background: linear-gradient(145deg, #b2863a, #d1ad61); color: #14241b; }
.social-post-head > div { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.social-post-head strong { color: #193126; }
.social-post-head small { margin-top: 4px; color: #8b948f; font-size: 11px; }
.official-badge, .pinned-badge { padding: 5px 8px; border-radius: 999px; background: #f2e4c5; color: #88621e; font-size: 10px; font-weight: 800; }
.pinned-badge { background: #e8efea; color: #3b5949; }
.social-post h2 { margin: 22px 0 8px; color: #172b21; font-family: "Songti SC", serif; font-size: 24px; }
.social-post-copy { margin: 16px 0 0; color: #405148; font-size: 15px; line-height: 1.9; }
.social-media-grid { display: grid; gap: 8px; margin-top: 20px; overflow: hidden; border-radius: 14px; }
.social-media-2, .social-media-3, .social-media-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.social-media-grid img, .social-media-grid video { width: 100%; max-height: 520px; aspect-ratio: 4/3; object-fit: cover; background: #0a100c; }
.social-actions { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #e5e9e5; }
.social-actions button { display: inline-flex; min-width: 68px; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; border: 0; border-radius: 8px; color: #65736b; background: transparent; cursor: pointer; transition: .2s; }
.social-actions button:hover, .social-actions button.active { color: #8f6728; background: #f5ecda; }
.social-actions .heat { margin-left: auto; color: #98a19c; font-size: 11px; }
.social-safety-trigger b { font-weight: 500; }
.social-actions .social-safety-trigger { min-width: 46px; gap: 4px; padding: 6px 8px; font-size: 11px; }
.social-action-status { min-height: 0; margin: 7px 0 0; font-size: 11px; }
.social-action-status:empty { display: none; }
.social-safety-menu {
  display: grid;
  grid-template-columns: minmax(150px,.8fr) minmax(170px,.7fr) minmax(210px,1fr);
  gap: 10px 12px;
  align-items: end;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #e0e6e1;
  border-radius: 13px;
  background: #f6f8f5;
}
.social-safety-menu > div:first-child { align-self: center; }
.social-safety-menu strong,.social-safety-menu small,.social-safety-menu label span { display: block; }
.social-safety-menu strong { color: #263d31; font-size: 13px; }
.social-safety-menu small { margin-top: 4px; color: #89938d; font-size: 10px; line-height: 1.5; }
.social-safety-menu label span { margin-bottom: 5px; color: #69766e; font-size: 10px; }
.social-safety-menu select,.social-safety-menu input { min-height: 38px; padding: 8px 10px; border: 1px solid #d8dfd9; border-radius: 9px; background: #fff; }
.social-safety-actions { display: flex; grid-column: 2 / -1; justify-content: flex-end; gap: 8px; }
.social-safety-actions .btn { min-height: 36px; padding: 7px 12px; }
.social-safety-menu .status { grid-column: 1 / -1; margin: 0; }
.social-post-leaving { opacity: 0; transform: translateY(-8px); transition: .22s ease; }
.social-comments { margin-top: 14px; padding: 18px; border-radius: 12px; background: #f4f6f3; }
.comment-list { display: grid; gap: 12px; }
.comment-list p { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; margin: 0; font-size: 13px; }
.comment-list strong { color: #264235; }
.comment-list span { color: #55635c; }
.comment-list small { color: #9aa29e; }
.comment-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.empty-mini { padding: 10px 0; color: #919a95; text-align: center; font-size: 13px; }
.upload-hint { color: #7f8b84; font-size: 11px; line-height: 1.6; }
.community-aside { position: sticky; top: 104px; display: grid; gap: 18px; }
.community-aside > * { padding: 26px; }
.community-aside h2 { margin: 9px 0 18px; font-family: "Songti SC", serif; font-size: 28px; }
.community-principles ol { display: grid; gap: 16px; padding: 0; list-style: none; }
.community-principles li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.community-principles li b { color: #bb9146; font-size: 11px; }
.community-principles li span { color: #5d6a63; font-size: 13px; line-height: 1.7; }
.activity-promo { color: #f4eedf; background: linear-gradient(145deg, #12271d, #0a140f); }
.activity-promo > span { color: #ccaa60; font-size: 10px; letter-spacing: .18em; }
.activity-promo p { color: rgba(255,255,255,.58); line-height: 1.7; }
.activity-promo strong { color: #e4c679; font-size: 13px; }
.premium-empty { grid-column: 1 / -1; padding: 60px 28px; border: 1px dashed #cbd4ce; border-radius: 18px; text-align: center; background: rgba(255,255,255,.52); }
.premium-empty > span { color: #af8740; font-size: 10px; letter-spacing: .2em; }
.premium-empty h2 { margin: 10px 0; font-family: "Songti SC", serif; }
.premium-empty p { color: #7b8780; }

.activities-hero, .messages-hero { min-height: 315px; }
.activities-hero > p, .messages-hero > p { align-self: end; }
.activity-toolbar { margin: 30px 0 20px; }
.activity-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.activity-filters button { padding: 10px 15px; border: 1px solid #d7ddd8; border-radius: 999px; color: #5c6a62; background: rgba(255,255,255,.72); cursor: pointer; }
.activity-filters button.active { border-color: #183328; color: #f4e6c2; background: #183328; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.activity-card { overflow: hidden; border: 1px solid rgba(30,55,41,.12); border-radius: 20px; color: inherit; background: rgba(255,254,250,.95); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.activity-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.activity-cover { display: flex; min-height: 220px; align-items: flex-start; justify-content: space-between; padding: 18px; background: linear-gradient(145deg, #19362a, #0c1912); background-position: center; background-size: cover; }
.activity-cover span, .activity-cover b { padding: 7px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #f1e0b9; background: rgba(5,12,8,.46); font-size: 10px; backdrop-filter: blur(8px); }
.activity-card-body { padding: 24px; }
.activity-card-body > small { color: #9b7837; font-size: 11px; }
.activity-card-body h2 { margin: 12px 0 8px; font-family: "Songti SC", serif; font-size: 24px; }
.activity-card-body p { min-height: 52px; color: #6c7972; line-height: 1.75; }
.activity-card-body footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e3e8e4; }
.activity-card-body footer strong { color: #a57728; font-size: 20px; }
.activity-card-body footer span { overflow: hidden; color: #66756d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.back-link { display: inline-flex; margin: 0 0 18px; color: #4d6257; font-weight: 700; text-decoration: none; }
.activity-detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 70px 64px;
  border-radius: 28px;
  color: white;
  background:
    linear-gradient(90deg, rgba(4,12,8,.96), rgba(4,14,9,.58)),
    var(--activity-cover, linear-gradient(145deg, #17382a, #0a160f)) center/cover;
  box-shadow: var(--shadow-md);
}
.activity-detail-hero > span { color: #d8b564; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.activity-detail-hero h1 { max-width: 850px; margin: 24px 0 18px; font-family: "Songti SC", serif; font-size: clamp(42px, 5vw, 72px); font-weight: 500; }
.activity-detail-hero p { max-width: 700px; color: rgba(255,255,255,.7); font-size: 17px; line-height: 1.8; }
.activity-detail-hero > div { display: flex; flex-direction: column; gap: 8px; margin-top: 54px; }
.activity-detail-hero i { color: rgba(255,255,255,.58); font-style: normal; }
.activity-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; margin-top: 24px; }
.activity-story, .activity-checkout { padding: 38px; border: 1px solid rgba(30,55,41,.12); border-radius: 20px; background: rgba(255,254,250,.95); box-shadow: var(--shadow-sm); }
.activity-story h2, .activity-checkout h2 { margin: 10px 0 24px; font-family: "Songti SC", serif; font-size: 32px; }
.activity-story p { color: #52625a; line-height: 2; }
.activity-checkout { position: sticky; top: 104px; }
.activity-checkout h2 { color: #9d742d; font-size: 40px; }
.activity-checkout dl { display: grid; gap: 14px; margin: 0 0 22px; }
.activity-checkout dl div { display: grid; grid-template-columns: 68px 1fr; gap: 12px; }
.activity-checkout dt { color: #9aa39e; }
.activity-checkout dd { margin: 0; color: #3d5046; text-align: right; }
.btn-block { width: 100%; justify-content: center; }

.message-list { display: grid; gap: 12px; margin-top: 24px; }
.message-card { display: grid; grid-template-columns: 50px 1fr auto; gap: 18px; align-items: center; width: 100%; padding: 22px 26px; border: 1px solid rgba(30,55,41,.12); border-radius: 16px; color: inherit; background: rgba(255,254,250,.94); text-align: left; box-shadow: var(--shadow-sm); cursor: pointer; }
.message-card > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: #d3b36c; background: #173226; font-family: "Songti SC", serif; font-size: 20px; }
.message-card h2 { margin: 4px 0; font-size: 17px; }
.message-card p { margin: 0; color: #69766f; }
.message-card small { color: #a3aaa6; }
.message-card i { color: #b0863e; font-style: normal; }
.message-card.unread { border-color: rgba(184,135,50,.42); background: #fffaf0; }
.message-card.unread h2::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: #bd773d; vertical-align: middle; }

.mobile-tabbar { display: none; }

@media (max-width: 1060px) {
  .community-layout { grid-template-columns: 1fr; }
  .community-aside { position: static; grid-template-columns: 1fr 1fr; }
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-detail-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (max-width: 820px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .premium-header .app-nav { display: none; }
  .premium-header .app-brand small { display: block; }
  .community-hero, .activities-hero, .messages-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 26px;
    padding: 38px 26px;
    border-radius: 20px;
  }
  .community-hero h1, .activities-hero h1, .messages-hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .community-hero p, .activities-hero > p, .messages-hero > p { font-size: 14px; line-height: 1.8; }
  .community-hero-stat { min-height: 110px; }
  .community-layout { margin-top: 16px; }
  .community-compose, .social-post { padding: 20px; border-radius: 16px; }
  .compose-heading, .feed-heading, .activity-toolbar { align-items: flex-start; flex-direction: column; }
  .compose-tools { align-items: stretch; flex-direction: column; }
  .compose-tools .btn { width: 100%; justify-content: center; }
  .community-aside { grid-template-columns: 1fr; }
  .social-media-3, .social-media-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comment-list p { grid-template-columns: 1fr; gap: 3px; }
  .comment-form { grid-template-columns: 1fr; }
  .social-safety-menu { grid-template-columns: 1fr; align-items: stretch; }
  .social-safety-actions,.social-safety-menu .status { grid-column: 1; }
  .social-safety-actions { justify-content: stretch; }
  .social-safety-actions .btn { flex: 1; }
  .activity-toolbar { margin-top: 18px; }
  .activity-toolbar > span { display: none; }
  .activity-filters { flex-wrap: nowrap; width: 100%; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .activity-filters button { flex: 0 0 auto; }
  .activity-grid { grid-template-columns: 1fr; }
  .activity-cover { min-height: 200px; }
  .activity-detail-hero { min-height: 380px; padding: 42px 24px; border-radius: 20px; }
  .activity-detail-hero h1 { font-size: 42px; }
  .activity-detail-layout { grid-template-columns: 1fr; }
  .activity-story, .activity-checkout { padding: 26px 22px; }
  .activity-checkout { position: static; }
  .message-card { grid-template-columns: 44px 1fr; padding: 18px; }
  .message-card > i { display: none; }
  .mobile-tabbar {
    position: fixed;
    z-index: 80;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 7px 12px env(safe-area-inset-bottom);
    border-top: 1px solid rgba(20,46,33,.12);
    background: rgba(253,252,247,.94);
    box-shadow: 0 -12px 34px rgba(13,31,21,.08);
    backdrop-filter: blur(18px);
  }
  .mobile-tabbar a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; color: #7c8982; font-size: 11px; text-decoration: none; }
  .mobile-tabbar span { font-size: 20px; line-height: 1; }
  .mobile-tabbar a.active { color: #17382a; font-weight: 800; }
}

@media (max-width: 520px) {
  .community-shell, .activities-shell, .activity-detail-shell, .messages-shell { width: calc(100% - 24px); }
  .social-actions { gap: 2px; }
  .social-actions button { min-width: 54px; padding-inline: 8px; }
  .social-actions .heat { font-size: 9px; }
  .social-media-grid { grid-template-columns: 1fr; }
  .activity-card-body { padding: 20px; }
}

/* UE 2.1 — content-first member experience */
.compact-app-hero,
.community-hero.compact-app-hero,
.activities-hero.compact-app-hero,
.rights-hero.compact-app-hero,
.my-hero.compact-app-hero {
  min-height: 0;
  padding: 24px 32px;
  border-radius: 22px;
}
.community-hero.compact-app-hero,
.activities-hero.compact-app-hero { grid-template-columns: minmax(0,1.4fr) minmax(230px,.6fr); gap: 28px; }
.community-hero.compact-app-hero h1,
.activities-hero.compact-app-hero h1,
.rights-hero.compact-app-hero h1,
.my-hero.compact-app-hero h1 { margin: 8px 0 7px; font-size: clamp(30px,3.2vw,46px); line-height: 1.12; }
.community-hero.compact-app-hero p,
.activities-hero.compact-app-hero > p,
.rights-hero.compact-app-hero > div > p { font-size: 13px; line-height: 1.65; }
.community-hero.compact-app-hero .community-hero-stat { min-height: 92px; padding: 17px 20px; }
.community-hero.compact-app-hero .community-hero-stat strong { margin: 5px 0 2px; font-size: 19px; }
.rights-hero.compact-app-hero { grid-template-columns: minmax(0,1fr) minmax(250px,.32fr); align-items: center; gap: 30px; }
.rights-hero.compact-app-hero .rights-hero-side { padding: 16px 20px; }
.rights-hero.compact-app-hero .rights-hero-side strong { margin: 6px 0 3px; }
.my-hero.compact-app-hero { min-height: 0; }
.my-hero.compact-app-hero .my-identity .profile-avatar { width: 64px; height: 64px; }
.my-hero-intro { position: relative; z-index: 1; max-width: 470px; margin: 0; color: rgba(245,240,227,.62); font-size: 13px; line-height: 1.7; text-align: right; }

.community-compose-details { padding: 0; overflow: hidden; }
.community-compose-details > summary { padding: 18px 22px; cursor: pointer; list-style: none; user-select: none; }
.community-compose-details > summary::-webkit-details-marker { display: none; }
.community-compose-details > summary > span { display: flex; align-items: center; gap: 12px; }
.community-compose-details > summary b { color: #718077; font-size: 12px; font-weight: 500; }
.community-compose-details > summary i { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border: 1px solid #d7c18e; border-radius: 999px; color: #7f5e23; background: #fbf3df; font-size: 11px; font-style: normal; }
.community-compose-details[open] > summary i::after { content: "收起"; }
.community-compose-details[open] > summary i { font-size: 0; }
.community-compose-details[open] > summary i::after { font-size: 11px; }
.community-compose-details .compose-heading h2 { font-size: 21px; }
.community-compose-details .community-compose-form { margin: 0; padding: 0 22px 20px; border-top: 1px solid #edf0ec; }
.feed-heading { margin-top: 18px; }

.rights-summary-bar { margin: 12px 0 0; overflow: hidden; border: 1px solid rgba(205,172,101,.2); border-radius: 18px; background: linear-gradient(100deg,#102219,#1b3327); box-shadow: 0 16px 42px rgba(8,21,14,.13); }
.rights-summary-bar > div { padding: 14px 24px; }

.account-overview,
.profile-full-panel,
.my-orders-panel { margin-top: 18px; border-radius: 22px; }
.account-overview { padding: 28px 32px; }
.account-actions { display: flex; align-items: center; gap: 14px; }
.account-fact-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1px; overflow: hidden; margin: 20px 0 0; border: 1px solid #e4e8e3; border-radius: 16px; background: #e4e8e3; }
.account-fact-grid > div { min-width: 0; padding: 18px; background: #f8f8f4; }
.account-fact-grid dt { color: #89938d; font-size: 10px; }
.account-fact-grid dd { margin: 7px 0 0; overflow-wrap: anywhere; color: #183027; font-size: 13px; font-weight: 750; }
.profile-full-panel { padding: clamp(26px,3vw,38px); scroll-margin-top: 92px; }
.my-page-shell .profile-full-panel .profile-form-grid > .field:not(.full) { min-height: 94px; }
.profile-form-subheading { margin-top: 8px; padding: 22px 0 2px; border-top: 1px solid #e3e7e2; }
.profile-form-subheading small { color: #a47b32; font-size: 10px; font-weight: 850; letter-spacing: .18em; }
.profile-form-subheading h3 { margin: 5px 0 4px; font: 600 24px/1.3 var(--serif); }
.profile-form-subheading p { margin: 0; color: var(--muted); font-size: 12px; }
.order-filter-bar { display: grid; grid-template-columns: 210px minmax(250px,1fr) auto auto; gap: 12px; align-items: end; margin: 20px 0 16px; padding: 15px; border: 1px solid #e1e6e1; border-radius: 15px; background: #f7f8f4; }
.order-filter-bar label { display: grid; gap: 6px; }
.order-filter-bar label > span { color: #647169; font-size: 10px; font-weight: 750; }
.order-filter-bar input,
.order-filter-bar select { min-height: 42px; }

@media (max-width: 900px) {
  .account-fact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .order-filter-bar { grid-template-columns: 1fr 1fr; }
  .community-hero.compact-app-hero,
  .activities-hero.compact-app-hero,
  .rights-hero.compact-app-hero { grid-template-columns: 1fr; }
  .community-hero.compact-app-hero .community-hero-stat { display: none; }
  .my-hero.compact-app-hero { flex-direction: row; align-items: center; }
}

@media (max-width: 620px) {
  .compact-app-hero,
  .community-hero.compact-app-hero,
  .activities-hero.compact-app-hero,
  .rights-hero.compact-app-hero,
  .my-hero.compact-app-hero { padding: 18px 18px; border-radius: 17px; }
  .community-hero.compact-app-hero h1,
  .activities-hero.compact-app-hero h1,
  .rights-hero.compact-app-hero h1,
  .my-hero.compact-app-hero h1 { font-size: 28px; }
  .activities-hero.compact-app-hero > p { display: none; }
  .rights-hero.compact-app-hero .rights-hero-side { display: none; }
  .my-hero.compact-app-hero { align-items: flex-start; flex-direction: column; gap: 8px; }
  .my-hero-intro { text-align: left; }
  .community-compose-details > summary { align-items: flex-start; flex-direction: column; padding: 16px; }
  .community-compose-details > summary > span { width: 100%; justify-content: space-between; }
  .community-compose-details .community-compose-form { padding: 0 16px 16px; }
  .rights-summary-bar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rights-summary-bar > div { padding: 12px 16px; }
  .account-overview,
  .profile-full-panel,
  .my-orders-panel { margin-top: 12px; padding: 20px 16px; border-radius: 18px; }
  .account-overview .panel-title { align-items: flex-start; }
  .account-actions { width: 100%; justify-content: space-between; }
  .account-fact-grid { grid-template-columns: 1fr 1fr; }
  .account-fact-grid > div { padding: 14px; }
  .account-fact-grid > div:last-child { grid-column: 1 / -1; }
  .order-filter-bar { grid-template-columns: 1fr; }
  .order-filter-bar .btn { justify-content: center; }
}

/* UE 4.0 — member home, pure entitlements and account center */
.text-link { color: #8f682a; font-size: 12px; font-weight: 800; white-space: nowrap; }
.text-link:hover { color: #5e431c; }
.btn-block { width: 100%; justify-content: center; }

.member-home-shell, .rights-page-shell, .my-page-shell { width: min(1320px, calc(100% - 48px)); }
.member-home-hero, .rights-hero, .my-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(205, 172, 101, .24);
  border-radius: 30px;
  color: #f7f2e6;
  background:
    linear-gradient(98deg, rgba(5, 13, 9, .98) 0%, rgba(8, 23, 15, .91) 56%, rgba(13, 35, 24, .65)),
    url("/assets/pdz-mountain-hero.png") 74% 44% / cover no-repeat,
    #09120d;
  box-shadow: 0 34px 90px rgba(8, 22, 14, .19);
}
.member-home-hero::before, .rights-hero::before, .my-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .16;
  pointer-events: none;
  background:
    radial-gradient(circle at 81% 50%, rgba(225, 190, 110, .85) 0 1px, transparent 2px),
    linear-gradient(90deg, transparent 0 71%, rgba(215, 184, 120, .14) 71.1%, transparent 71.3%);
}

.member-home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 180px; min-height: 410px; padding: 62px 64px 0; }
.member-home-copy, .member-home-mark, .member-home-metrics { position: relative; z-index: 1; }
.member-home-copy { max-width: 770px; }
.member-home-copy > small, .rights-hero > div > small, .my-identity small { color: #d9b767; font-size: 10px; font-weight: 850; letter-spacing: .22em; }
.member-home-copy h1, .rights-hero h1, .my-hero h1 {
  margin: 18px 0 16px;
  font: 500 clamp(44px, 5.2vw, 74px)/1.08 var(--serif);
  letter-spacing: -.045em;
}
.member-home-copy > p { max-width: 680px; margin: 0 0 30px; color: rgba(245, 240, 227, .67); font-size: 16px; line-height: 1.9; }
.member-home-mark { display: grid; align-self: center; justify-items: end; }
.member-home-mark span { color: rgba(226, 203, 148, .18); font: 800 82px/1 var(--sans); letter-spacing: -.08em; }
.member-home-mark strong { margin-top: 8px; color: #dfc57f; font-size: 12px; letter-spacing: .14em; }
.member-home-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 54px -64px 0;
  border-top: 1px solid rgba(218, 185, 111, .16);
  background: rgba(1, 8, 4, .66);
}
.member-home-metrics > div { min-width: 0; padding: 22px 64px; border-right: 1px solid rgba(218, 185, 111, .12); }
.member-home-metrics > div:last-child { border-right: 0; }
.member-home-metrics small { display: block; color: rgba(232, 227, 211, .46); font-size: 10px; letter-spacing: .08em; }
.member-home-metrics strong { display: inline-block; margin-top: 5px; color: #f2dfad; font: 600 28px var(--serif); }
.member-home-metrics span { margin-left: 5px; color: rgba(232, 227, 211, .48); font-size: 10px; }

.member-home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .55fr); gap: 22px; margin-top: 22px; }
.member-home-grid > .panel { margin: 0; padding: 36px; border-radius: 24px; }
.home-course-list { display: grid; }
.home-course-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  border-top: 1px solid #e3e7e2;
  transition: padding .2s, background .2s;
}
.home-course-row:first-child { border-top: 0; }
.home-course-row:hover { padding-inline: 14px; background: #f7f2e7; }
.home-course-row > span { color: #c5a25b; font: 700 13px var(--serif); letter-spacing: .1em; }
.home-course-row div { min-width: 0; }
.home-course-row strong { display: block; color: #173125; font: 600 18px var(--serif); }
.home-course-row small { display: block; overflow: hidden; margin-top: 6px; color: #829088; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.home-course-row b { color: #9d742d; font-size: 11px; }
.member-home-service { background: linear-gradient(155deg, #fffdf8, #f2eee3) !important; }
.service-orbit { min-height: 230px; display: flex; align-items: center; justify-content: center; flex-direction: column; margin-bottom: 18px; border: 1px solid #ded4bd; border-radius: 50%; text-align: center; background: radial-gradient(circle, #fffdf9 0 48%, #eee7d7 49% 50%, transparent 51%); }
.service-orbit span { color: #8a948e; font-size: 10px; letter-spacing: .1em; }
.service-orbit strong { max-width: 190px; margin: 12px 0 8px; color: #1e3b2d; font: 600 20px var(--serif); }
.service-orbit p { max-width: 190px; margin: 0; color: #a07937; font-size: 11px; line-height: 1.7; }
.member-home-activities { margin-top: 22px; padding: 36px; border-radius: 24px; }
.member-home-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.member-home-shortcuts a { display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: center; min-height: 96px; padding: 20px 24px; border: 1px solid rgba(30,55,41,.12); border-radius: 18px; background: rgba(255,254,250,.9); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.member-home-shortcuts a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.member-home-shortcuts span { color: #ba914a; font-size: 10px; letter-spacing: .12em; }
.member-home-shortcuts strong, .member-home-shortcuts small { display: block; }
.member-home-shortcuts strong { color: #173126; font: 600 17px var(--serif); }
.member-home-shortcuts small { margin-top: 4px; color: #849087; font-size: 10px; }
.member-home-shortcuts b { color: #ad8540; }

.rights-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .36fr); align-items: end; padding: 56px 58px 0; }
.rights-hero > div { position: relative; z-index: 1; }
.rights-hero h1 { font-size: clamp(42px, 4.6vw, 66px); }
.rights-hero > div > p { max-width: 720px; margin: 0; color: rgba(245,240,227,.64); font-size: 14px; line-height: 1.9; }
.rights-hero-side { align-self: center; padding: 24px 26px; border: 1px solid rgba(218,185,111,.19); border-radius: 18px; background: rgba(255,255,255,.035); }
.rights-hero-side span, .rights-hero-side small { display: block; color: rgba(245,240,227,.48); font-size: 10px; }
.rights-hero-side strong { display: block; margin: 11px 0 7px; color: #e4c779; font: 600 18px var(--serif); }
.rights-hero .member-profile-summary { position: relative; z-index: 1; margin: 46px -58px 0; }
.rights-hub { margin-top: 22px; border-radius: 24px; }
.rights-index { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid #d9be85; border-radius: 50%; color: #a67c32; background: #fbf4e4; }
.rights-section-heading { align-items: center; }
.rights-section-heading h3 { font-size: 25px; }
.rights-divider { margin: 34px 0; background: linear-gradient(90deg, #dce2dc, transparent); }

.my-hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 260px; padding: 46px 54px; }
.my-identity, .my-hero-facts { position: relative; z-index: 1; }
.my-identity { display: flex; align-items: center; gap: 24px; }
.my-identity .profile-avatar { width: 96px; height: 96px; flex: 0 0 auto; margin: 0; color: #f1d994; background: rgba(255,255,255,.07); }
.my-identity h1 { margin: 9px 0 6px; font-size: clamp(36px, 4vw, 58px); }
.my-identity p { margin: 0; color: rgba(245,240,227,.55); font-size: 12px; }
.my-hero-facts { display: grid; min-width: 430px; gap: 12px; }
.my-hero-facts div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(218,185,111,.12); }
.my-hero-facts span { color: rgba(245,240,227,.45); font-size: 10px; }
.my-hero-facts strong { overflow-wrap: anywhere; color: #e4d5b0; font-size: 12px; text-align: right; }
.my-section-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.my-section-nav a { display: grid; grid-template-columns: 30px 1fr; min-height: 100px; align-content: center; padding: 20px; border: 1px solid rgba(30,55,41,.12); border-radius: 17px; background: rgba(255,254,250,.92); box-shadow: var(--shadow-sm); }
.my-section-nav span { grid-row: 1 / 3; color: #b68b42; font-size: 10px; letter-spacing: .1em; }
.my-section-nav strong { color: #173126; font: 600 16px var(--serif); }
.my-section-nav small { margin-top: 4px; color: #87928b; font-size: 9px; }
.my-orders-panel { padding: 34px; border-radius: 23px; scroll-margin-top: 100px; }
.my-orders-table { min-width: 880px; }
.my-orders-table th, .my-orders-table td { vertical-align: middle; }
.order-actions { min-width: 160px; }
.order-actions .tag { margin-right: 6px; }
.order-muted { color: #a4aca7 !important; }
.text-button { border: 0; padding: 7px 2px; color: #9a702b; background: transparent; font-size: 11px; font-weight: 750; }

.my-page-shell .profile-layout { margin-top: 22px; scroll-margin-top: 100px; }
.my-page-shell .profile-identity-card { padding: 30px; text-align: left; }
.my-page-shell .profile-identity-card h2 { margin: 6px 0 0; font-size: 28px; }
.my-page-shell .profile-form-grid > .profile-wechat-field,
.my-page-shell .profile-form-grid > .profile-track-field { grid-column: span 6; }
.my-page-shell .profile-form-grid > .field:not(.full) { min-height: 105px; }
.my-page-shell .profile-form-grid > .field:not(.full) input,
.my-page-shell .profile-form-grid > .field:not(.full) select { height: 56px; }
.invoice-profile-panel { margin-top: 22px; padding: 34px; border-radius: 23px; scroll-margin-top: 100px; }
.invoice-profile-form { display: grid; grid-template-columns: .62fr 1.2fr 1fr 1.1fr auto; gap: 16px; align-items: end; }
.invoice-profile-form .field { min-width: 0; }
.invoice-profile-form .field.full { grid-column: 1 / -1; }
.invoice-profile-action { align-self: end; }
.invoice-profile-action .btn { min-height: 46px; white-space: nowrap; }
.is-hidden { display: none !important; }

.site-footer {
  width: min(100% - 32px, 1500px);
  margin: 32px auto 0;
  padding: 22px 20px 30px;
  color: #7c847f;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .04em;
  text-align: center;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #9a702b; }

@media (max-width: 1080px) {
  .member-home-hero { grid-template-columns: 1fr; padding: 50px 44px 0; }
  .member-home-mark { display: none; }
  .member-home-metrics { margin-inline: -44px; }
  .member-home-metrics > div { padding-inline: 44px; }
  .member-home-grid { grid-template-columns: 1fr 300px; }
  .rights-hero { grid-template-columns: 1fr; gap: 28px; padding: 48px 42px 0; }
  .rights-hero-side { width: min(100%, 430px); }
  .rights-hero .member-profile-summary { margin-inline: -42px; }
  .my-hero { align-items: flex-start; flex-direction: column; }
  .my-hero-facts { width: 100%; min-width: 0; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .my-hero-facts div { display: flex; min-width: 0; flex-direction: column; }
  .my-hero-facts strong { text-align: left; }
  .invoice-profile-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .invoice-profile-action { align-self: end; }
}

@media (max-width: 820px) {
  .site-footer { width: calc(100% - 24px); margin-top: 18px; padding-bottom: 94px; }
  .member-home-shell, .rights-page-shell, .my-page-shell { width: calc(100% - 24px); margin-top: 14px; padding-bottom: 88px; }
  .member-home-hero { min-height: 0; padding: 38px 24px 0; border-radius: 22px; }
  .member-home-copy h1 { font-size: 42px; }
  .member-home-copy > p { font-size: 13px; }
  .member-home-copy .button-row { align-items: stretch; flex-direction: column; }
  .member-home-copy .btn { justify-content: center; }
  .member-home-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 34px -24px 0; }
  .member-home-metrics > div { padding: 18px 24px; border-bottom: 1px solid rgba(218,185,111,.12); }
  .member-home-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
  .member-home-grid > .panel, .member-home-activities { padding: 24px 20px; border-radius: 18px; }
  .member-home-shortcuts { grid-template-columns: 1fr; }
  .home-course-row { grid-template-columns: 34px minmax(0,1fr); }
  .home-course-row > b { display: none; }
  .service-orbit { min-height: 210px; max-width: 250px; margin-inline: auto; }
  .rights-hero { padding: 38px 24px 0; border-radius: 22px; }
  .rights-hero h1 { font-size: 42px; }
  .rights-hero .member-profile-summary { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 30px -24px 0; }
  .rights-hero .member-profile-summary > div { padding-inline: 24px; }
  .rights-hub { margin-top: 14px; }
  .my-hero { min-height: 0; padding: 30px 24px; border-radius: 22px; }
  .my-identity { align-items: flex-start; gap: 16px; }
  .my-identity .profile-avatar { width: 68px; height: 68px; }
  .my-identity h1 { font-size: 34px; }
  .my-hero-facts { grid-template-columns: 1fr; }
  .my-section-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .my-orders-panel, .invoice-profile-panel { padding: 24px 18px; }
  .invoice-profile-form { grid-template-columns: 1fr; }
  .invoice-profile-action .btn { width: 100%; justify-content: center; }
}

@media (max-width: 520px) {
  .member-home-metrics { grid-template-columns: 1fr 1fr; }
  .member-home-metrics > div { padding-inline: 18px; }
  .rights-hero .member-profile-summary { grid-template-columns: 1fr 1fr; }
  .rights-section-heading { align-items: flex-start; }
  .rights-index { width: 38px; height: 38px; flex: 0 0 auto; }
  .rights-section-heading h3 { font-size: 21px; }
  .my-section-nav { grid-template-columns: 1fr; }
  .my-section-nav a { min-height: 82px; }
  .my-page-shell .profile-form-grid > .profile-wechat-field,
  .my-page-shell .profile-form-grid > .profile-track-field { grid-column: auto; }
}
