:root {
  color-scheme: light;
  --bg: #e8f3fc;
  --surface: #ffffff;
  --ink: #171b22;
  --muted: #7d8590;
  --line: #eceff3;
  --accent: #ef432f;
  --accent-soft: #fff1ee;
  --blue: #4c90dd;
  --green: #1fa54a;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
}

.topbar {
  height: 0;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: end;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.page-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
}

.page-title {
  visibility: hidden;
}

.icon-button {
  color: #101216;
  font-size: 28px;
  line-height: 1;
}

.topbar .icon-button {
  visibility: hidden;
  pointer-events: none;
}

.hero {
  position: relative;
  height: 232px;
  padding: 18px 18px 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.4)),
    var(--hero-bg, url("/assets/stadium-header.jpg")) center / cover;
}

.app-shell:not(.show-hero) .hero {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(229, 244, 251, 0.7)
  );
}

.hero-content,
.hero-actions {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 8px;
}

.hero h1 {
  margin: 0;
  font-size: 20px;
}

.hero p {
  margin: 7px 0 0;
  color: #34495e;
  font-size: 15px;
}

.follow-button {
  min-width: 78px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #4a4f57;
  background: rgba(255, 255, 255, 0.84);
}

.login-button {
  position: absolute;
  top: 80px;
  right: 18px;
  z-index: 1;
  min-width: 88px;
  height: 36px;
  padding: 0 14px;
  color: #fff;
  border-radius: 999px;
  background: #18ad55;
}

.hero-actions {
  position: absolute;
  right: 18px;
  bottom: 14px;
  left: 18px;
  height: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
}

.hero-actions button {
  min-width: 0;
  height: 28px;
  color: #46505c;
  font-size: 15px;
  border-right: 1px solid #d8dde4;
}

.hero-actions button:last-child {
  border-right: 0;
  color: var(--green);
}

.content {
  padding: 0 14px 92px;
}

.tabs {
  height: 58px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #fff;
}

.tabs button {
  position: relative;
  color: #676d76;
  font-size: 18px;
}

.tabs button.active::after {
  position: absolute;
  right: 34px;
  bottom: 0;
  left: 34px;
  height: 3px;
  content: "";
  background: var(--accent);
}

.search-box {
  height: 42px;
  display: grid;
  grid-template-columns: 1fr 48px;
  align-items: center;
  margin: 12px 0 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f3;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  text-align: center;
  color: #626873;
  background: transparent;
}

.search-box span {
  display: grid;
  height: 100%;
  place-items: center;
  color: #fff;
  font-size: 26px;
  background: var(--blue);
}

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

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

.post-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px;
  text-align: left;
  border-radius: 12px;
  background: #fff;
}

.post-cover {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-hit-flag {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #ef432f, #ff6a35);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(239, 67, 47, 0.35);
}

.post-miss-flag {
  background: #1f2937;
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.4);
}

.post-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-info h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  font-size: 11px;
  line-height: 1;
  border-radius: 4px;
  white-space: nowrap;
}

.tag-author {
  color: #d23a2a;
  background: #fde9e6;
}

.tag-verified {
  color: #2f9e5f;
  background: #e3f7ec;
}

.tag-rate {
  align-self: flex-start;
  color: #d23a2a;
  background: #fff;
  border: 1px solid #f4b8af;
}

.post-published {
  color: #8a909a;
  font-size: 12px;
}

.post-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
}

.post-stats .stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-stats .stat i {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.post-stats .stat-views i {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/><circle cx='12' cy='12' r='3'/></svg>");
}

.post-stats .stat-buyers i {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1.5'/><circle cx='18' cy='21' r='1.5'/><path d='M2.5 3h2.5l2.7 12.4a2 2 0 0 0 2 1.6h8.6a2 2 0 0 0 2-1.6L21.5 7H6'/></svg>");
}

.post-price-pill {
  margin-left: auto;
  padding: 3px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef432f, #ff6a35);
}

.detail-view {
  position: relative;
  min-height: calc(100vh - 76px);
  padding-bottom: 126px;
  background: #fff;
}

.detail-back,
.my-back,
.publisher-top button:not(.publisher-back) {
  position: fixed;
  right: max(calc((100vw - 430px) / 2 + 18px), 18px);
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 30;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  border: 0;
  border-radius: 999px;
  background-color: rgba(255, 122, 53, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow:
    0 8px 20px rgba(239, 67, 47, 0.22),
    0 2px 6px rgba(17, 24, 39, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.detail-back:active,
.my-back:active,
.publisher-top button:not(.publisher-back):active {
  transform: scale(0.94);
  background-color: rgba(239, 67, 47, 0.78);
  box-shadow:
    0 4px 10px rgba(239, 67, 47, 0.22),
    0 1px 3px rgba(17, 24, 39, 0.12);
}

.detail-back::before,
.my-back::before,
.publisher-top button:not(.publisher-back)::before,
.detail-back::after,
.my-back::after,
.publisher-top button:not(.publisher-back)::after {
  content: none;
}

.publisher-back {
  justify-self: start;
  align-self: center;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.publisher-back:active {
  opacity: 0.7;
}

.detail-header {
  min-height: 98px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-header p,
.detail-header h2 {
  margin: 0;
}

.detail-header p {
  margin-bottom: 8px;
  font-size: 20px;
}

.detail-header h2 {
  color: #304255;
  font-size: 18px;
  font-weight: 500;
}

.stamp {
  width: 64px;
  height: 64px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #d52a2a;
  border: 1px solid #d52a2a;
  border-radius: 50%;
  font-size: 28px;
  transform: rotate(-12deg);
}

.detail-tab {
  width: 88px;
  margin-top: 18px;
  padding: 10px 14px;
  color: #fff;
  font-weight: 700;
  border-radius: 0 999px 999px 0;
  background: var(--accent);
}

.published {
  padding: 16px 14px 0;
  color: var(--muted);
}

.locked-card {
  width: calc(100% - 68px);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 32px auto 0;
  color: #9b8667;
  border: 1px dashed #9b8667;
  border-radius: 6px;
}

.locked-card strong {
  color: #e0aa25;
}

.article-body {
  padding: 24px 18px;
  line-height: 1.8;
}

.article-body h3 {
  margin-top: 0;
}

.past-records {
  display: grid;
  gap: 10px;
  padding: 0 14px 24px;
}

.past-records header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}

.past-records header span {
  color: var(--muted);
  font-size: 13px;
}

.past-record-list {
  display: grid;
  gap: 8px;
}

.past-record {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.past-record span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.past-record strong {
  color: #304255;
  font-size: 14px;
}

.past-record em {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-style: normal;
  background: var(--accent);
}

.past-record.active {
  border-color: rgba(239, 67, 47, 0.46);
  background: #fff7f5;
}

.floating-actions {
  position: fixed;
  right: max(calc((100vw - 430px) / 2 + 12px), 12px);
  bottom: 144px;
  display: grid;
  gap: 10px;
}

.floating-actions button {
  width: 62px;
  height: 62px;
  color: #fff;
  border-radius: 999px;
  background: #db2d1c;
}

.floating-actions button:first-child {
  color: #6f757d;
  border: 1px solid var(--line);
  background: #fff;
}

.floating-actions small {
  display: block;
}

.wallet-view {
  min-height: calc(100vh - 308px);
  padding: 18px 14px 92px;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.35), transparent 32%),
    linear-gradient(145deg, #ff9f8d 0%, #ee1742 52%, #c81335 100%);
}

.info-view {
  min-height: calc(100vh - 308px);
  padding: 18px 14px 92px;
}

.info-card {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
}

.info-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.record-grid strong {
  display: block;
  font-size: 24px;
}

.record-grid span,
.record-list span,
.official-list span,
.profile-meta span {
  color: var(--muted);
  font-size: 13px;
}

.record-list,
.official-list {
  display: grid;
  gap: 10px;
}

.record-row,
.official-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.profile-code {
  min-height: 170px;
  display: grid;
  place-items: center;
  margin: 12px 0;
  border-radius: 8px;
  color: #fff;
  font-size: 42px;
  background: #18202a;
}

.profile-meta {
  display: grid;
  gap: 6px;
}

.plan-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
}

.plan-card h2,
.plan-card p {
  margin: 0;
}

.plan-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-card strong {
  color: #ef4b14;
}

.plan-card button {
  height: 36px;
  padding: 0 14px;
  color: #fff;
  border-radius: 999px;
  background: var(--accent);
}

.wallet-summary {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #ef432f, #ff7e32);
}

.wallet-view > .wallet-summary,
.wallet-view > .wallet-panel {
  display: none;
}

.wallet-summary span {
  font-size: 14px;
}

.wallet-summary strong {
  font-size: 30px;
}

.wallet-panel {
  margin-top: 14px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
}

.wallet-panel h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.wallet-panel p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.my-menu {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 14px;
  padding: 16px 10px;
  border-radius: 8px;
  background: #fff;
}

.my-menu button {
  min-width: 0;
  min-height: 70px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 0 4px;
  color: #20262e;
  background: #fff;
}

.my-panel {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.my-menu button span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 23px;
}

.my-menu button strong {
  max-width: 100%;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.agent-card,
.wallet-hero,
.traffic-card,
.setting-card {
  border-radius: 8px;
  background: #fff;
}

.agent-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.agent-card strong {
  display: block;
  font-size: 18px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
  background: linear-gradient(135deg, #ef432f, #ff7a35);
}

.agent-card p {
  margin: 6px 0 0;
  color: #c8a6a0;
  font-size: 13px;
}

.agent-card > span {
  color: #777;
  font-size: 30px;
}

.wallet-hero {
  min-height: 176px;
  padding: 18px;
  color: #fff7dd;
  background: linear-gradient(135deg, #5a1217, #2e0b0e);
}

.wallet-hero header,
.wallet-hero footer,
.wallet-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wallet-hero header button,
.wallet-line button {
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  color: #5d4a21;
  background: #fff5d5;
}

.wallet-line {
  margin: 28px 0;
  justify-content: flex-start;
}

.wallet-line span {
  color: #fff1d0;
}

.wallet-line strong {
  margin-right: auto;
  font-size: 36px;
}

.wallet-hero footer {
  color: rgba(255, 247, 221, 0.78);
}

.traffic-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 18px 0;
  text-align: center;
}

.traffic-card div + div {
  border-left: 1px solid var(--line);
}

.traffic-card strong {
  display: block;
  font-size: 24px;
}

.traffic-card span {
  color: var(--muted);
}

.setting-card {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 0 18px;
  color: #222;
  font-size: 18px;
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.mini-link {
  width: 100%;
  align-items: center;
  text-align: left;
  color: inherit;
}

.mini-link::after {
  content: "›";
  color: var(--muted);
  font-size: 20px;
}

.customer-order {
  align-items: flex-start;
}

.customer-order span {
  display: grid;
  gap: 4px;
}

.customer-order b,
.customer-order em,
.customer-order small {
  font-style: normal;
}

.customer-order b {
  font-size: 15px;
}

.customer-order small {
  color: var(--muted);
  font-size: 12px;
}

.customer-order em {
  color: #344151;
  font-size: 13px;
}

.customer-order strong {
  white-space: nowrap;
}

.role-note {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.article-row {
  align-items: flex-start;
}

.article-row span {
  display: grid;
  gap: 4px;
}

.article-row b,
.article-row em,
.article-row small {
  font-style: normal;
}

.article-row b {
  color: #1d2430;
  font-size: 15px;
}

.article-row small {
  color: var(--muted);
  font-size: 12px;
}

.article-row em {
  color: #344151;
  font-size: 13px;
}

.article-row strong {
  white-space: nowrap;
}

.my-form {
  display: grid;
  gap: 10px;
}

.my-form input,
.my-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.my-form input {
  height: 42px;
  padding: 0 12px;
}

.my-form textarea {
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
}

.my-form button,
.my-panel .primary-action {
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
}

.my-subpage {
  display: grid;
  gap: 12px;
}

.my-subtitle {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.subpage-mode .my-panel {
  margin-top: 0;
}

.subpage-mode .info-card {
  padding-right: 16px;
}

.subpage-mode .info-card::before {
  display: none;
}

.purchase-bar {
  position: fixed;
  right: 0;
  bottom: 58px;
  left: 0;
  width: min(100%, 430px);
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.purchase-bar span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.purchase-bar strong {
  font-size: 16px;
}

.purchase-bar button {
  min-width: 154px;
  height: 44px;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  background: var(--accent);
}

.tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 430px);
  height: 58px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  background: #fff;
}

.tabbar.operator-tabbar {
  grid-template-columns: repeat(2, 1fr);
}

.tabbar.operator-tabbar [data-view="orders"] {
  display: none;
}

.tabbar button {
  display: grid;
  place-items: center;
  color: #8b9198;
  font-size: 22px;
}

.tabbar span {
  font-size: 12px;
}

.tabbar button.active {
  color: var(--accent);
}

/* Visual refresh */
html {
  background:
    radial-gradient(circle at 50% -10%, rgba(239, 67, 47, 0.14), transparent 36%),
    #eef1f5;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 160px),
    #eef1f5;
}

.app-shell {
  position: relative;
  box-shadow: 0 18px 55px rgba(20, 31, 45, 0.12);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  backdrop-filter: blur(14px);
  border-bottom: 0;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 999px;
  background: rgba(23, 27, 34, 0.04);
}

.hero {
  overflow: hidden;
  border-radius: 0 0 20px 20px;
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.76);
}

.hero::after {
  position: absolute;
  inset: auto -20% -40px 12%;
  height: 120px;
  content: "";
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent 62%);
  pointer-events: none;
}

.avatar {
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 18px rgba(23, 27, 34, 0.18);
}

.follow-button,
.login-button,
.hero-actions,
.post-card,
.plan-card,
.info-card,
.agent-card,
.wallet-hero,
.traffic-card,
.setting-card,
.my-menu,
.wallet-panel {
  box-shadow: 0 10px 28px rgba(25, 36, 50, 0.08);
}

.hero-actions {
  height: 66px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
}

.hero-actions button {
  height: 54px;
  display: grid;
  place-items: center;
  gap: 3px;
  border-radius: 12px;
  border-right: 0;
  font-size: 12px;
}

.hero-actions button::before {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  content: "";
  background: var(--accent);
}

.hero-actions button:nth-child(1)::before {
  content: "\1F3C6";
  background: linear-gradient(135deg, #ffba26, #ff7a00);
}

.hero-actions button:nth-child(2)::before {
  content: "\25A6";
  background: linear-gradient(135deg, #4c90dd, #4567ee);
}

.hero-actions button:nth-child(3)::before {
  content: "\25B6";
  background: linear-gradient(135deg, #f44747, #d71e36);
}

.hero-actions button:nth-child(4)::before {
  content: "\260E";
  background: linear-gradient(135deg, #22b76a, #18a04f);
}

.tabs {
  margin: 10px -14px 0;
  border-radius: 18px 18px 0 0;
}

.search-box {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.post-card {
  border: 1px solid rgba(236, 239, 243, 0.9);
}

.plan-card,
.info-card {
  position: relative;
  overflow: hidden;
  padding-right: 58px;
  border: 1px solid rgba(236, 239, 243, 0.9);
  border-radius: 14px;
}

.plan-card::before,
.info-card::before {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  background: linear-gradient(135deg, #ef432f, #ff8a35);
}

.plan-card::before {
  content: "\1F4E6";
}

.info-card::before {
  content: "\2726";
  background: linear-gradient(135deg, #4c90dd, #6a7cff);
}

.stamp {
  background: #fff7f5;
  box-shadow: 0 8px 20px rgba(213, 42, 42, 0.12);
}

.detail-tab {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-tab::before {
  content: "\1F4DD";
}

.locked-card {
  border-radius: 12px;
  background: #fffaf1;
}

.wallet-view {
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 255, 255, 0.5), transparent 26%),
    radial-gradient(circle at 88% 22%, rgba(255, 215, 95, 0.24), transparent 24%),
    linear-gradient(145deg, #ff9583 0%, #ef2e4f 48%, #bb1534 100%);
}

.agent-card,
.wallet-hero,
.traffic-card,
.setting-card,
.my-menu {
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.wallet-hero {
  overflow: hidden;
  position: relative;
  border-radius: 16px;
}

.wallet-hero::after {
  position: absolute;
  right: -24px;
  bottom: -26px;
  width: 96px;
  height: 96px;
  content: "\1FAD8";
  display: grid;
  place-items: center;
  color: rgba(255, 245, 213, 0.2);
  font-size: 72px;
}

.my-menu {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  border-radius: 16px;
}

.my-menu button {
  border-radius: 14px;
  transition: transform 0.16s ease, background 0.16s ease;
}

.my-menu button:active,
.post-card:active,
.plan-card button:active,
.purchase-bar button:active {
  transform: scale(0.98);
}

.my-menu button span {
  box-shadow: 0 8px 18px rgba(25, 36, 50, 0.14);
}

.traffic-card {
  border-radius: 16px;
}

.setting-card::before {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  content: "\2699";
  background: linear-gradient(135deg, #ff6a5b, #e81922);
}

.purchase-bar {
  box-shadow: 0 -10px 28px rgba(25, 36, 50, 0.1);
}

.purchase-bar button {
  box-shadow: 0 8px 18px rgba(239, 67, 47, 0.26);
}

.tabbar {
  height: 64px;
  box-shadow: 0 -8px 22px rgba(25, 36, 50, 0.08);
}

.tabbar button {
  gap: 2px;
  font-size: 12px;
}

.tabbar button::before {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: currentColor;
  font-size: 18px;
}

.tabbar button[data-view="home"]::before {
  content: "\2302";
}

.tabbar button[data-view="wallet"]::before {
  content: "\263A";
}

.tabbar button[data-view="orders"]::before {
  content: "\1F4CB";
}

.tabbar button.active::before {
  color: #fff;
  background: var(--accent);
}

.order-view {
  min-height: calc(100vh - 76px);
  padding: 18px 14px 92px;
}

.commission-strip {
  height: 44px;
  display: grid;
  place-items: center;
  margin: -12px -12px 10px;
  color: #fff6f2;
  font-size: 17px;
  font-weight: 700;
  background: #d80f0f;
}

.promoter-mode {
  background:
    linear-gradient(90deg, rgba(255, 204, 180, 0.7), transparent 12%, transparent 88%, rgba(255, 211, 188, 0.7)),
    linear-gradient(180deg, #ff7d86 0%, #ef3153 38%, #ef3153 100%);
}

.promoter-mode .my-panel {
  gap: 12px;
}

.promoter-profile,
.promoter-wallet,
.promoter-stats,
.promoter-menu,
.promoter-setting {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(93, 11, 25, 0.12);
}

.operator-identity {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  color: #201b1b;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(93, 11, 25, 0.12);
}

.operator-identity strong {
  display: block;
  font-size: 19px;
}

.operator-identity span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-top: 6px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(135deg, #ef432f, #ff7a35);
}

.operator-identity em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.promoter-profile {
  min-height: 112px;
  display: grid;
  grid-template-columns: 66px 1fr 28px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, #fff7f1, #ffd7d7);
}

.promoter-profile .avatar {
  width: 62px;
  height: 62px;
  border-radius: 999px;
}

.promoter-profile strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
}

.promoter-profile p {
  margin: 8px 0 0;
  color: #9a8b87;
}

.promoter-profile > span {
  color: #2b2424;
  font-size: 34px;
}

.promoter-badge {
  min-width: 86px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff7c5;
  font-size: 13px;
  background: linear-gradient(90deg, #d5aa28, #ffe36f);
}

.promoter-wallet {
  min-height: 184px;
  padding: 22px;
  color: #fff7d5;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(135deg, #5b1516, #3a0b0d);
}

.promoter-wallet header,
.promoter-wallet footer,
.promoter-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.promoter-wallet header strong {
  font-size: 20px;
}

.promoter-wallet header button {
  color: #fff5cf;
}

.promoter-balance {
  margin: 32px 0 28px;
  justify-content: flex-start;
}

.promoter-balance span {
  color: #fff3cc;
  font-size: 18px;
}

.promoter-balance strong {
  margin-right: auto;
  font-size: 44px;
  line-height: 1;
}

.promoter-balance button {
  min-width: 96px;
  height: 42px;
  border-radius: 999px;
  color: #6f4d22;
  font-size: 18px;
  background: #fff0c9;
}

.promoter-wallet footer {
  color: rgba(255, 247, 213, 0.72);
  font-size: 16px;
}

.promoter-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 86px;
  align-items: center;
  text-align: center;
}

.promoter-stats div + div {
  border-left: 1px solid var(--line);
}

.promoter-stats strong {
  display: block;
  font-size: 24px;
}

.promoter-stats span {
  font-size: 18px;
}

.promoter-menu {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 12px;
  padding: 18px 10px;
}

.promoter-menu button {
  min-height: 84px;
}

.promoter-menu button span {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.promoter-menu button strong {
  font-size: 15px;
}

.promoter-setting {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 22px;
  font-size: 20px;
}

.promoter-recharge {
  position: fixed;
  right: max(calc((100vw - 430px) / 2 + 22px), 22px);
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 8;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  background: #46bf71;
  box-shadow: 0 14px 28px rgba(44, 141, 80, 0.28);
}

.publisher-mode {
  padding: 0 0 calc(138px + env(safe-area-inset-bottom));
  background: #fff;
}

.publisher-mode .my-panel {
  gap: 0;
}

.publisher-page {
  min-height: 100dvh;
  color: #101216;
  background: #fff;
}

.publisher-top {
  position: sticky;
  top: 0;
  z-index: 12;
  height: calc(56px + env(safe-area-inset-top));
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: end;
  padding: env(safe-area-inset-top) 12px 10px;
  color: #fff;
  background: #c80014;
  box-shadow: 0 2px 10px rgba(84, 0, 8, 0.18);
}

.publisher-top strong {
  justify-self: center;
  font-size: 18px;
  font-weight: 600;
}

.publisher-form {
  display: grid;
  gap: 0;
  padding-bottom: 28px;
}

.publisher-block,
.publisher-inline,
.publisher-row,
.publisher-price {
  padding: 18px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.publisher-field,
.publisher-price label {
  display: grid;
  gap: 12px;
}

.publisher-field + .publisher-field {
  margin-top: 16px;
}

.publisher-field span,
.publisher-price span,
.publisher-inline span {
  color: #121212;
  font-size: 19px;
  font-weight: 700;
}

.publisher-field.required > span::before {
  content: "*";
  color: #c80014;
  margin-right: 2px;
}

.publisher-field em,
.publisher-copy em {
  color: #8c9299;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
}

.publisher-form input,
.publisher-form textarea {
  width: 100%;
  border: 0;
  outline: 0;
  color: #20242a;
  font-size: 17px;
  background: #fbfbfb;
}

.publisher-field input,
.publisher-field textarea {
  padding: 14px 12px;
}

.publisher-field input {
  height: 54px;
}

.publisher-field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

.publisher-form input::placeholder,
.publisher-form textarea::placeholder {
  color: #c3c7cc;
}

.publisher-row {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.publisher-copy {
  display: grid;
  gap: 6px;
}

.publisher-copy strong {
  font-size: 19px;
}

.publisher-copy span {
  color: #9aa0a6;
  font-size: 15px;
}

.switch {
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch span {
  width: 56px;
  height: 32px;
  display: block;
  position: relative;
  border-radius: 999px;
  background: #f4f4f4;
  box-shadow: inset 0 0 0 1px #e8e8e8;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  content: "";
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 28, 36, 0.18);
  transition: transform 0.16s ease;
}

.switch input:checked + span {
  background: #c80014;
}

.switch input:checked + span::after {
  transform: translateX(24px);
}

.publisher-inline {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
}

.publisher-inline label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.publisher-inline input {
  height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #eee;
  background: #fff;
}

.image-uploader {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin-top: 16px;
  padding: 8px;
  color: #b7bcc2;
  text-align: center;
  border-radius: 4px;
  background: #fbfbfb var(--preview-image) center / cover no-repeat;
  overflow: hidden;
  position: relative;
}

.image-uploader span::after {
  content: "+";
  display: block;
  color: #c9cdd2;
  font-size: 30px;
  line-height: 1;
}

.image-uploader.has-image span {
  color: transparent;
}

.image-uploader.has-image span::after {
  content: "";
}

.image-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-value {
  display: none;
}

.publisher-price {
  display: flex;
  align-items: center;
  gap: 18px;
}

.publisher-price label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.publisher-price input {
  width: 56px;
  height: 32px;
  padding: 0 6px;
  color: #20242a;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  border: 0;
  border-bottom: 1px solid #e2e4e8;
  border-radius: 0;
  background: transparent;
}

.publisher-price input:focus {
  border-bottom-color: #c80014;
  outline: 0;
}

.publisher-price p {
  margin: 0;
  color: #8c9299;
  font-size: 16px;
}

.publisher-submit-row {
  position: fixed;
  right: max(calc((100vw - 430px) / 2 + 18px), 18px);
  bottom: calc(78px + env(safe-area-inset-bottom));
  left: max(calc((100vw - 430px) / 2 + 18px), 18px);
  z-index: 20;
  display: flex;
  gap: 12px;
}

.publisher-submit {
  flex: 1;
  height: 56px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.publisher-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.publisher-submit:active {
  transform: scale(0.98);
}

.publisher-draft {
  color: #1f2937;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.publisher-publish {
  color: #fff;
  background: #c80014;
  border: 0;
  box-shadow: 0 10px 22px rgba(200, 0, 20, 0.22);
}

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

.manage-empty {
  margin: 8px 0;
  color: #8c9299;
}

.manage-article {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  background: #fff;
}

.manage-article-main {
  display: grid;
  gap: 4px;
  padding: 0;
  text-align: left;
  background: none;
}

.manage-article-title {
  color: #1f2937;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.manage-article-meta {
  color: #8c9299;
  font-size: 12px;
}

.manage-status {
  justify-self: start;
  margin-top: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}

.manage-status-paid { color: #6b7280; background: #f3f4f6; }
.manage-status-presale { color: #b15c00; background: #fff3e0; }
.manage-status-hit { color: #fff; background: linear-gradient(135deg, #ef432f, #ff6a35); }
.manage-status-miss { color: #fff; background: #1f2937; }
.manage-status-draft { color: #fff; background: #6b7280; }

.manage-article-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.judge-btn {
  width: 64px;
  height: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.judge-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.judge-hit {
  background: linear-gradient(135deg, #ef432f, #ff6a35);
}

.judge-miss {
  background: #1f2937;
}

.judge-publish {
  background: #18ad55;
}

.promote-card {
  text-align: center;
}

.promote-card p {
  text-align: left;
}

.qr-frame {
  margin: 16px auto 14px;
  padding: 12px;
  width: 192px;
  height: 192px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
  border: 1px solid #eef0f3;
}

.invite-qr {
  width: 168px;
  height: 168px;
  display: block;
}

.invite-link {
  margin: 8px auto 14px;
  padding: 10px 12px;
  font-size: 12px;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 8px;
  word-break: break-all;
  user-select: all;
}

.promote-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.promote-actions .primary-action,
.promote-actions .secondary-action {
  flex: 1;
  min-width: 110px;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

.promote-actions .primary-action {
  color: #fff;
  background: #07c160;
  border: 0;
}

.promote-actions .secondary-action {
  color: #1f2937;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.apply-page {
  display: grid;
  gap: 14px;
  padding: 4px 0 24px;
  background: transparent;
  border: 0;
}

.apply-form {
  display: grid;
  gap: 14px;
}

.apply-section-title {
  margin: 4px 4px 0;
  font-size: 17px;
  font-weight: 700;
  color: #20262e;
}

.apply-card {
  background: #fff;
  border-radius: 14px;
  padding: 4px 16px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.apply-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 12px 0;
  border-bottom: 1px solid #eef0f3;
}

.apply-row-last,
.apply-card > .apply-row:last-child {
  border-bottom: 0;
}

.apply-row > span {
  color: #20262e;
  font-size: 15px;
  font-weight: 500;
}

.apply-row input {
  width: 100%;
  padding: 8px 0;
  color: #1f2937;
  font-size: 15px;
  background: transparent;
  border: 0;
  outline: none;
}

.apply-row input::placeholder {
  color: #c3c7cc;
}

.apply-row-code {
  grid-template-columns: 80px 1fr auto;
}

.apply-code-btn {
  height: 32px;
  padding: 0 12px;
  color: #8c9299;
  font-size: 13px;
  font-weight: 600;
  background: #f3f4f6;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.apply-code-btn:not(:disabled):active {
  background: #e5e7eb;
}

.apply-card-note {
  position: relative;
  padding: 14px 16px 30px;
}

.apply-card-note textarea {
  width: 100%;
  min-height: 92px;
  color: #1f2937;
  font-size: 15px;
  background: transparent;
  border: 0;
  outline: none;
  resize: vertical;
  line-height: 1.55;
  font-family: inherit;
}

.apply-card-note textarea::placeholder {
  color: #c3c7cc;
}

.apply-note-count {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: #b1b6bd;
  font-size: 12px;
}

.apply-agreement {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  font-size: 13px;
  color: #5b626d;
  cursor: pointer;
  user-select: none;
}

.apply-agreement input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #c5c8cf;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.15s ease;
}

.apply-agreement input[type="checkbox"]:checked {
  border-color: #2f80ed;
  background: #2f80ed url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6.5'/></svg>") center / 14px 14px no-repeat;
}

.apply-agreement-mark {
  display: none;
}

.apply-agreement-text a {
  color: #2f80ed;
  text-decoration: none;
}

.apply-submit {
  margin-top: 6px;
  height: 52px;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  background: #2f80ed;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.apply-submit:disabled {
  background: #c5d6f0;
  cursor: not-allowed;
}

.apply-submit:not(:disabled):active {
  transform: scale(0.98);
}

.apply-history {
  margin-top: 6px;
}

.article-intro {
  width: calc(100% - 36px);
  margin: 0 auto 14px;
  padding: 14px 16px;
  color: #3a4250;
  line-height: 1.7;
  border-radius: 12px;
  background: #f6f7f9;
}

.article-intro h3 {
  margin: 0 0 8px;
  color: #c80014;
  font-size: 14px;
  font-weight: 600;
}

.article-intro p {
  margin: 0;
  white-space: pre-wrap;
}

.article-image {
  width: 100%;
  display: block;
  margin: 12px 0;
  border-radius: 10px;
}


.toast {
  position: fixed;
  right: 50%;
  bottom: 136px;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  color: #fff;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  pointer-events: none;
  transform: translateX(50%) translateY(12px);
  transition: 0.18s ease;
}

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

.hidden {
  display: none;
}

.contact-dialog {
  width: calc(100% - 32px);
  max-width: 320px;
  padding: 18px;
  border: 0;
  border-radius: 10px;
}

.contact-dialog::backdrop {
  background: rgba(0, 0, 0, 0.34);
}

.contact-dialog h2 {
  margin: 0 0 12px;
}

.contact-dialog p {
  margin: 0 0 8px;
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #7d8590;
  font-size: 24px;
}

@media (max-width: 360px) {
  .hero-actions button {
    font-size: 13px;
  }

  .post-card {
    grid-template-columns: 96px 1fr;
  }

  .post-cover {
    width: 96px;
    height: 96px;
  }

  .post-info h2 {
    font-size: 14px;
  }

  .my-menu button span {
    width: 42px;
    height: 42px;
  }

  .my-menu button strong {
    font-size: 11px;
  }
}

/* Mobile flow aligned to 主站.mm */
@media (max-width: 520px) {
  html,
  body {
    min-height: 100%;
    background: #e8f3fc;
  }

  button,
  input,
  textarea {
    -webkit-tap-highlight-color: transparent;
  }

  .app-shell {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    box-shadow: none;
  }

  .topbar {
    height: 0;
    align-items: center;
    grid-template-columns: 44px 1fr 44px;
    padding: 0;
  }

  .page-title {
    font-size: 18px;
  }

  .icon-button {
    width: 34px;
    height: 34px;
    font-size: 22px;
    background: transparent;
  }

  .hero {
    height: calc(144px + env(safe-area-inset-top));
    padding: calc(10px + env(safe-area-inset-top)) 14px 0;
    border-radius: 0 0 18px 18px;
  }

  .hero-content {
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
  }

  .avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .hero h1 {
    font-size: 18px;
  }

  .hero p {
    margin-top: 4px;
    font-size: 13px;
  }

  .follow-button,
  .login-button {
    min-width: 66px;
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }

  .login-button {
    top: 76px;
    right: 14px;
  }

  .content {
    padding: 8px 12px calc(86px + env(safe-area-inset-bottom));
  }

  .tabs {
    height: 44px;
    gap: 8px;
    margin: 0 0 10px;
    background: transparent;
  }

  .tabs button {
    border-radius: 999px;
    font-size: 15px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(25, 36, 50, 0.06);
  }

  .tabs button.active {
    color: #fff;
    background: var(--accent);
  }

  .tabs button.active::after {
    display: none;
  }

  .search-box {
    height: 40px;
    margin: 0 0 12px;
  }

  .post-list,
  .plan-list,
  .my-panel,
  .mini-list {
    gap: 10px;
  }

  .post-card {
    padding: 10px;
    border-radius: 12px;
  }

  .post-info h2 {
    font-size: 14px;
  }

  .plan-card::before,
  .info-card::before {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .plan-card,
  .info-card {
    padding: 14px 52px 14px 14px;
    border-radius: 14px;
  }

  .plan-card h2,
  .info-card h2 {
    font-size: 17px;
  }

  .plan-card p,
  .info-card p {
    font-size: 14px;
  }

  .detail-view {
    min-height: 100dvh;
    padding-bottom: calc(132px + env(safe-area-inset-bottom));
  }

  .detail-header {
    min-height: 86px;
    padding: 14px;
  }

  .detail-header p {
    font-size: 18px;
  }

  .detail-header h2 {
    font-size: 15px;
  }

  .stamp {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .detail-tab {
    margin-top: 14px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .published {
    padding: 12px 14px 0;
    font-size: 13px;
  }

  .locked-card {
    width: calc(100% - 28px);
    margin-top: 24px;
  }

  .article-body {
    padding: 18px 14px;
    font-size: 15px;
  }

  .wallet-view,
  .info-view {
    min-height: 100dvh;
    padding: calc(10px + env(safe-area-inset-top)) 12px calc(86px + env(safe-area-inset-bottom));
  }

  .agent-card {
    min-height: 76px;
    grid-template-columns: 48px 1fr 34px;
    padding: 12px;
    border-radius: 16px;
  }

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

  .role-badge {
    min-height: 20px;
    margin-left: 6px;
    padding: 0 7px;
    font-size: 10px;
  }

  .agent-card p {
    margin-top: 4px;
    font-size: 12px;
  }

  .wallet-hero {
    min-height: 136px;
    padding: 14px;
    border-radius: 16px;
  }

  .wallet-line {
    margin: 18px 0;
  }

  .wallet-line strong {
    font-size: 32px;
  }

  .wallet-hero footer {
    font-size: 12px;
  }

  .wallet-hero header button,
  .wallet-line button {
    min-height: 30px;
    padding: 0 12px;
    font-size: 12px;
  }

  .traffic-card {
    padding: 14px 0;
    border-radius: 16px;
  }

  .traffic-card strong {
    font-size: 22px;
  }

  .traffic-card span {
    font-size: 12px;
  }

  .my-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 6px;
    margin-top: 10px;
    padding: 12px 8px;
    border-radius: 16px;
  }

  .my-menu button {
    min-height: 72px;
    gap: 6px;
  }

  .my-menu button span {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .my-menu button strong {
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
  }

  .promoter-mode {
    padding: env(safe-area-inset-top) 12px calc(86px + env(safe-area-inset-bottom));
  }

  .commission-strip {
    height: 42px;
    margin: 0 -12px 12px;
    font-size: 16px;
  }

  .promoter-profile {
    min-height: 96px;
    grid-template-columns: 58px 1fr 24px;
    gap: 12px;
    padding: 14px;
  }

  .operator-identity {
    min-height: 68px;
    padding: 12px 14px;
  }

  .operator-identity strong {
    font-size: 17px;
  }

  .promoter-profile .avatar {
    width: 56px;
    height: 56px;
  }

  .promoter-profile strong {
    font-size: 18px;
  }

  .promoter-profile p {
    margin-top: 6px;
    font-size: 13px;
  }

  .promoter-badge {
    min-width: 72px;
    height: 24px;
    font-size: 12px;
  }

  .promoter-wallet {
    min-height: 166px;
    padding: 18px;
  }

  .promoter-balance {
    margin: 28px 0 24px;
  }

  .promoter-balance strong {
    font-size: 40px;
  }

  .promoter-balance button {
    min-width: 90px;
    height: 38px;
    font-size: 16px;
  }

  .promoter-wallet footer {
    font-size: 14px;
  }

  .promoter-stats {
    min-height: 78px;
  }

  .promoter-stats span {
    font-size: 16px;
  }

  .promoter-menu {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 14px 6px;
  }

  .promoter-menu button {
    min-height: 76px;
  }

  .promoter-menu button span {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .promoter-menu button strong {
    font-size: 13px;
    white-space: nowrap;
  }

  .promoter-setting {
    min-height: 58px;
    margin-top: 12px;
    padding: 0 20px;
    font-size: 18px;
  }

  .promoter-recharge {
    right: 20px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    width: 62px;
    height: 62px;
    font-size: 30px;
  }

  .order-view {
    min-height: 100dvh;
    padding: calc(10px + env(safe-area-inset-top)) 12px calc(86px + env(safe-area-inset-bottom));
  }

  .record-grid {
    gap: 8px;
  }

  .record-grid strong {
    font-size: 22px;
  }

  .mini-row {
    align-items: center;
    padding: 9px 0;
    font-size: 14px;
  }

  .my-form input,
  .my-form button {
    height: 44px;
  }

  .my-form textarea {
    min-height: 92px;
  }

  .my-subpage {
    gap: 10px;
  }

  .my-subtitle {
    font-size: 20px;
  }

  .subpage-mode .info-card {
    padding: 14px;
  }

  .purchase-bar {
    bottom: calc(64px + env(safe-area-inset-bottom));
    width: 100%;
    min-height: 66px;
    padding: 10px 12px;
  }

  .purchase-bar button {
    min-width: 148px;
    height: 44px;
  }

  .tabbar {
    width: 100%;
    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }

  .tabbar button {
    align-content: center;
    gap: 3px;
  }
}
