body.frontend-refresh.page-detail,
body.frontend-refresh.page-account {
  --bg: #fafafa;
  --surface: #fff;
  --surface-light: #e9f4f5;
  --text: #202225;
  --muted: #61676c;
  --border: #e0e3e5;
  --primary: #087f94;
  --primary-soft: #087f94;
  --glow: none;
  --glow-sm: none;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}
html[data-theme="dark"] body.frontend-refresh.page-detail,
html[data-theme="dark"] body.frontend-refresh.page-account {
  --bg: #151617;
  --surface: #202223;
  --surface-light: #263b3e;
  --text: #f4f5f5;
  --muted: #adb3b6;
  --border: #3a3d3f;
  --primary: #6dd3df;
  --primary-soft: #6dd3df;
}
body.frontend-refresh.page-detail .page-body,
body.frontend-refresh.page-account .page-body { background: transparent; padding: 0; }
body.frontend-refresh.page-detail .page-body > .container,
body.frontend-refresh.page-account .page-body > .container {
  width: calc(100% - 112px);
  max-width: 1600px;
  margin-inline: auto;
  padding: 32px 0 56px;
}
body.frontend-refresh.page-detail .section-title,
body.frontend-refresh.page-account .uc-panel-title { font-size: 23px; font-weight: 600; letter-spacing: 0; }
body.frontend-refresh.page-detail .title-bar,
body.frontend-refresh.page-account .title-bar { display: none; }
body.frontend-refresh.page-detail :is(a, button, textarea):focus-visible,
body.frontend-refresh.page-account :is(a, button, input):focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
body.frontend-refresh:is(.page-detail, .page-account) :is(input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="url"], input[type="search"], textarea):is(:focus, :focus-visible) { outline: none; box-shadow: none; border-color: var(--primary); }
body.frontend-refresh.page-detail [hidden],
body.frontend-refresh.page-account [hidden] { display: none !important; }
body.frontend-refresh.page-detail .detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 40px;
}
body.frontend-refresh.page-detail .detail-left { display: block; min-width: 0; }
body.frontend-refresh.page-detail .detail-preview { border: 0; border-radius: 6px; background: #161718; }
body.frontend-refresh.page-detail .detail-preview > img,
body.frontend-refresh.page-detail .detail-preview > video {
  width: 100%; height: 100%; object-fit: contain; transform: none;
}
body.frontend-refresh.page-detail .detail-preview > img { transform: scale(1.06); transform-origin: center; }
body.frontend-refresh.page-detail .detail-info {
  width: auto; min-width: 0; padding: 0; border: 0; background: transparent;
}
body.frontend-refresh.page-detail .detail-head { padding: 0 0 22px; }
body.frontend-refresh.page-detail .detail-title { font-size: 30px; line-height: 1.35; font-weight: 650; letter-spacing: 0; overflow-wrap: anywhere; }
body.frontend-refresh.page-detail .detail-sub { gap: 8px; line-height: 1.7; }
body.frontend-refresh.page-detail .detail-sub > span { width: 100%; overflow-wrap: anywhere; }
body.frontend-refresh.page-detail .info-title { font-size: 13px; letter-spacing: 0; margin-bottom: 8px; }
body.frontend-refresh.page-detail .info-table { flex: none; border-top: 1px solid var(--border); }
body.frontend-refresh.page-detail .info-table :is(th, td) { padding: 10px 0; font-size: 13px; }
body.frontend-refresh.page-detail .info-table th { width: 96px; }
body.frontend-refresh.page-detail .btn-actions { gap: 12px; margin-top: 22px; }
body.frontend-refresh.page-detail :is(.btn-preview, .btn-fav) { padding: 11px 6px; font-size: 14px; font-weight: 500; border-radius: 6px; }
body.frontend-refresh.page-detail .btn-download { padding: 13px 10px; font-size: 15px; border-radius: 6px; }
body.frontend-refresh.page-detail .download-kc { background: var(--surface-light); border-radius: 6px; font-size: 13px; }
body.frontend-refresh.page-detail .app-dl-row { gap: 10px; flex-wrap: wrap; }
body.frontend-refresh.page-detail .app-dl-btn { flex: 1 1 140px; min-width: 0; }
body.frontend-refresh.page-detail .share-row { flex-wrap: wrap; gap: 8px; margin-top: 14px; }
body.frontend-refresh.page-detail .share-copy-btn { border-radius: 6px; }
body.frontend-refresh.page-detail .detail-description {
  margin-top: 32px; padding: 24px 0; border-block: 1px solid var(--border);
}
body.frontend-refresh.page-detail .detail-description .section-title { font-size: 18px; }
body.frontend-refresh.page-detail .detail-desc { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
body.frontend-refresh.page-detail .detail-tags { margin-top: 16px; }
body.frontend-refresh.page-detail .detail-tags .chip {
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--muted);
}
body.frontend-refresh.page-detail .detail-tags .chip:hover,
body.frontend-refresh.page-detail .detail-tags .chip:focus-visible {
  border-color: var(--primary); background: var(--surface-light); color: var(--primary);
}
body.frontend-refresh.page-detail .comments { margin-top: 0; padding: 24px 0 30px; border: 0; border-bottom: 1px solid var(--border); background: transparent; }
body.frontend-refresh.page-detail .comment-post { border: 0; background: transparent; padding: 0; }
body.frontend-refresh.page-detail .comment-input { background: var(--surface); border-color: var(--border); border-radius: 6px; }
body.frontend-refresh.page-detail .guess-section { margin-top: 32px; }
body.frontend-refresh.page-account .uc-summary {
  padding: 2px 0 32px; margin: 0; border: 0; border-bottom: 1px solid var(--border); background: transparent;
}
body.frontend-refresh.page-account .uc-avatar { width: 64px; height: 64px; border-radius: 6px; border: 0; overflow: hidden; }
body.frontend-refresh.page-account .uc-avatar img { width: 100%; height: 100%; object-fit: cover; }
body.frontend-refresh.page-account .uc-name { font-size: 25px; font-weight: 600; overflow-wrap: anywhere; }
body.frontend-refresh.page-account .uc-kc-num { font-size: 30px; color: var(--text); font-variant-numeric: tabular-nums; }
body.frontend-refresh.page-account .uc-short-tip { margin-top: 20px; }
body.frontend-refresh.page-account .uc-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 0 40px; padding-top: 32px; min-height: 600px; }
body.frontend-refresh.page-account .uc-tabs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-self: stretch; gap: 8px; border-right: 1px solid var(--border); padding-right: 24px; margin: 0; }
body.frontend-refresh.page-account .uc-tab { border: 0; border-radius: 6px; background: transparent; color: var(--muted); text-align: left; padding: 12px; white-space: nowrap; box-shadow: none; }
body.frontend-refresh.page-account .uc-tab:hover,
body.frontend-refresh.page-account .uc-tab.active { color: var(--primary); background: var(--surface-light); box-shadow: none; }
body.frontend-refresh.page-account .uc-panel { grid-column: 2; grid-row: 1; align-self: start; min-width: 0; padding: 0; border: 0; background: transparent; }
body.frontend-refresh.page-account .uc-panel-head { margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
body.frontend-refresh.page-account .pay-table-wrap { border-block: 1px solid var(--border); }
body.frontend-refresh.page-account .pay-table :is(th, td) { padding: 16px 14px; font-size: 13px; }
body.frontend-refresh.page-account .pay-table th { background: var(--bg); color: var(--muted); font-weight: 500; }
body.frontend-refresh.page-account .pay-table tbody tr:hover { background: var(--surface-light); }
body.frontend-refresh.page-account .uc-panel .pager { justify-content: flex-end; box-shadow: none; }
body.frontend-refresh.page-account .uc-profile-grid { grid-template-columns: minmax(0, 520px) minmax(220px, 1fr); gap: 48px; }
body.frontend-refresh.page-account .profile-form { grid-column: 1; grid-row: 1; gap: 20px; min-width: 0; }
body.frontend-refresh.page-account .profile-ro { grid-column: 2; grid-row: 1; padding: 0 0 0 24px; background: transparent; border: 0; border-left: 1px solid var(--border); min-width: 0; }
body.frontend-refresh.page-account .form-row { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; }
body.frontend-refresh.page-account .form-row label { width: auto; text-align: left; font-size: 13px; font-weight: 600; color: var(--text); }
body.frontend-refresh.page-account .form-row label:empty { display: none; }
body.frontend-refresh.page-account .form-row input { width: 100%; max-width: none; min-width: 0; background: var(--surface); border-color: var(--border); border-radius: 6px; }
body.frontend-refresh.page-account .form-row input[readonly] { background: var(--bg); color: var(--muted); }
body.frontend-refresh.page-account .form-row .btn-primary { align-self: start; }
body.frontend-refresh.page-account :is(.btn-primary, .btn-ghost) { border-radius: 6px; }
body.frontend-refresh.page-account .recharge-box { display: grid; grid-template-columns: minmax(0, 520px) minmax(220px, 1fr); gap: 48px; align-items: start; }
body.frontend-refresh.page-account .recharge-form { width: auto; min-width: 0; }
body.frontend-refresh.page-account .recharge-price { padding: 18px 0; border-block: 1px solid var(--border); overflow-wrap: anywhere; }
body.frontend-refresh.page-account .qr-area { margin: 0; min-width: 0; width: 220px; max-width: 100%; justify-self: start; }
body.frontend-refresh.page-account .qr-box img { width: 100%; height: auto; aspect-ratio: 1; }
body.frontend-refresh.page-account :is(.qr-tip, .qr-status) { width: 100%; text-align: center; overflow-wrap: anywhere; }
body.frontend-refresh.page-account .mc-subtabs { gap: 22px; flex-wrap: nowrap; overflow-x: auto; border-bottom: 1px solid var(--border); }
body.frontend-refresh.page-account .mc-subtab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 12px 0; white-space: nowrap; }
body.frontend-refresh.page-account .mc-subtab.active { color: var(--primary); background: transparent; border-color: var(--primary); }
body.frontend-refresh.page-account .mc-list { gap: 0; }
body.frontend-refresh.page-account .mc-item { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 24px 0; background: transparent; }
body.frontend-refresh.page-account #fav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; }
body.frontend-refresh.page-account .av-dialog { border-radius: 6px; max-width: 460px; max-height: calc(100dvh - 32px); overflow-y: auto; }
/* 裁剪脚本使用固定的 260px 坐标系。 */
body.frontend-refresh.page-account .av-crop { width: 260px; height: 260px; min-width: 260px; border-radius: 6px; border: 0; }
@media (min-width: 1500px) {
  body.frontend-refresh.page-account #fav-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  body.frontend-refresh.page-detail .page-body > .container,
  body.frontend-refresh.page-account .page-body > .container { width: calc(100% - 48px); }
  body.frontend-refresh.page-detail .detail-main { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  body.frontend-refresh.page-account .uc-layout { grid-template-columns: 176px minmax(0, 1fr); gap: 0 24px; }
  body.frontend-refresh.page-account .uc-tabs { padding-right: 16px; }
  body.frontend-refresh.page-account #fav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.frontend-refresh.page-account :is(.uc-profile-grid, .recharge-box) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body.frontend-refresh.page-account .profile-ro { grid-column: 1; grid-row: 2; border-left: 0; border-top: 1px solid var(--border); padding: 24px 0 0; }
}
@media (max-width: 800px) {
  body.frontend-refresh.page-detail .page-body > .container,
  body.frontend-refresh.page-account .page-body > .container { width: calc(100% - 32px); padding-top: 24px; }
  body.frontend-refresh.page-detail .detail-main { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body.frontend-refresh.page-detail .detail-title { font-size: 27px; }
  body.frontend-refresh.page-detail .detail-description { margin-top: 24px; }
  body.frontend-refresh.page-account .uc-summary { gap: 12px; padding-bottom: 24px; flex-wrap: wrap; }
  body.frontend-refresh.page-account .uc-avatar { width: 48px; height: 48px; font-size: 23px; }
  body.frontend-refresh.page-account .uc-name { font-size: 21px; }
  body.frontend-refresh.page-account .uc-kc-num { font-size: 25px; }
  body.frontend-refresh.page-account .uc-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 0; align-content: start; min-height: 0; }
  body.frontend-refresh.page-account .uc-tabs { grid-column: 1; grid-row: 1; min-width: 0; height: 61px; box-sizing: border-box; flex-direction: row; flex-wrap: nowrap; align-items: center; align-self: start; gap: 20px; padding: 8px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; border-right: 0; border-bottom: 1px solid var(--border); }
  body.frontend-refresh.page-account .uc-tabs::-webkit-scrollbar { display: none; }
  body.frontend-refresh.page-account .uc-tab {
    position: relative; display: inline-flex; align-items: center; box-sizing: border-box; flex: none;
    height: 44px; min-height: 44px; border-radius: 0; padding: 12px 0; font-size: 13px; line-height: 20px;
    font-weight: 600; transition: color .2s, background .2s;
  }
  body.frontend-refresh.page-account .uc-tab::after {
    content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 2px;
    background: transparent; pointer-events: none;
  }
  body.frontend-refresh.page-account .uc-tab.active { background: transparent; box-shadow: none; }
  body.frontend-refresh.page-account .uc-tab.active::after { background: var(--primary); }
  body.frontend-refresh.page-account .uc-tab:focus-visible { outline-offset: -3px; }
  body.frontend-refresh.page-account .uc-panel { grid-column: 1; grid-row: 2; }
  body.frontend-refresh.page-account .qr-area { justify-self: center; }
  body.frontend-refresh.page-account .mc-time { width: 100%; margin-left: 0; }
  body.frontend-refresh.page-account .av-dialog { width: calc(100% - 16px); padding: 16px; }
}
@media (max-width: 380px) {
  body.frontend-refresh.page-account .uc-kc { margin-left: 60px; text-align: left; }
  body.frontend-refresh.page-account #fav-grid { grid-template-columns: minmax(0, 1fr); }
}
