:root {
  --red: #e7373f;
  --red-dark: #bb1f2e;
  --red-soft: #fff0f1;
  --gold: #c58b35;
  --ink: #1f2229;
  --muted: #8b909a;
  --line: #eceef2;
  --bg: #f5f6f8;
  --card: #fff;
  --shadow: 0 12px 34px rgba(30, 34, 45, 0.08);
  --radius: 18px;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #eef0f3;
  overflow-x: hidden;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.app-shell {
  width: 100%;
  max-width: 520px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
  overflow-x: clip;
}
.topbar {
  height: 58px;
  padding: env(safe-area-inset-top) 18px 0;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(15px);
}
.topbar h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 700;
}
.topbar .back {
  position: absolute;
  left: 16px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
}
.topbar .action {
  position: absolute;
  right: 17px;
  border: 0;
  background: none;
  color: var(--red);
  font-size: 14px;
}
.home-head {
  background: #fff;
  padding: 15px 18px 12px;
  border-bottom: 1px solid #f2eeee;
}
.brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f3575d 0%, #c92736 60%, #a91c2c 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 9px 22px rgba(189, 31, 45, 0.23);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 12px;
}
.brand-mark span {
  font-family: "Songti SC", serif;
  font-size: 23px;
  position: relative;
  z-index: 1;
}
.brand-copy {
  min-width: 0;
  flex: 1;
}
.brand-copy small {
  display: block;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 1.8px;
  color: #c3424a;
  margin-bottom: 5px;
}
.brand-copy strong {
  display: block;
  font-family: "Songti SC", "STSong", serif;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: 1px;
}
.brand-copy > span {
  font-size: 11px;
  color: #8b8587;
  display: block;
  margin-top: 5px;
}
.brand-trust {
  border-left: 1px solid #eee6e7;
  padding-left: 12px;
  text-align: center;
  white-space: nowrap;
}
.brand-trust b {
  display: block;
  color: #c62c39;
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1;
}
.brand-trust span {
  display: block;
  color: #999094;
  font-size: 9px;
  margin-top: 5px;
}
.notice {
  height: 36px;
  padding: 0 11px;
  border: 1px solid #f2dfe1;
  background: linear-gradient(90deg, #fff7f7, #fffafa);
  border-radius: 11px;
  color: #7f6467;
  font-size: 11px;
  display: flex;
  gap: 9px;
  align-items: center;
  overflow: hidden;
}
.notice i {
  font-style: normal;
  color: #fff;
  background: #d63843;
  border-radius: 5px;
  padding: 3px 5px;
  font-size: 9px;
  white-space: nowrap;
}
.notice span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.notice b {
  font-size: 17px;
  color: #c6a5a8;
  font-weight: 400;
}
.platform-brief {
  position: relative;
  margin: 2px 0 11px;
  padding: 14px 14px 12px;
  border: 1px solid #efd8da;
  border-radius: 15px;
  background: linear-gradient(145deg, #fffafa 0%, #fff4f4 100%);
  box-shadow: inset 3px 0 0 #d63540;
  overflow: hidden;
}
.platform-brief::after {
  content: "名师";
  position: absolute;
  right: -8px;
  bottom: -20px;
  font-family: "Songti SC", serif;
  font-size: 64px;
  font-weight: 800;
  color: rgba(199, 44, 55, 0.035);
  transform: rotate(-8deg);
}
.brief-head {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.brief-head span {
  background: #cd2e3a;
  color: #fff;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 9px;
  letter-spacing: 0.5px;
}
.brief-head b {
  font-family: "Songti SC", serif;
  font-size: 14px;
  letter-spacing: 0.4px;
}
.platform-brief p {
  position: relative;
  z-index: 1;
  margin: 9px 0 10px;
  color: #74676a;
  font-size: 11px;
  line-height: 1.75;
}
.brief-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid #f0dfe0;
}
.mark-legend {
  font-size: 9px;
  color: #94878a;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.mark-legend span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-family: "Songti SC", serif;
  font-weight: 700;
  margin-left: 3px;
}
.mark-legend .red {
  background: #d8323e;
}
.mark-legend .black {
  background: #25272b;
}
.brief-foot button {
  border: 0;
  background: transparent;
  color: #bb343e;
  font-size: 10px;
  padding: 4px 5px;
}
.brief-foot button + button::before {
  content: "";
  border-left: 1px solid #e4ced0;
  margin-right: 9px;
}
.search-wrap {
  background: rgba(255, 255, 255, 0.97);
  padding: 12px 18px 11px;
  position: sticky;
  top: 58px;
  z-index: 15;
  border-bottom: 1px solid rgba(222, 215, 216, 0.68);
  box-shadow: 0 7px 20px rgba(75, 43, 47, 0.035);
  backdrop-filter: blur(18px);
}
.search {
  height: 44px;
  border: 1px solid #e7dfe0;
  border-radius: 14px;
  padding: 0 6px 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #faf8f8;
  transition: 0.2s;
}
.search:focus-within {
  background: #fff;
  border-color: #e4aeb3;
  box-shadow: 0 0 0 3px #fff0f1;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 13px;
  color: #403a3c;
}
.search span {
  width: 19px;
  height: 19px;
  color: #a9a0a2;
  display: grid;
  place-items: center;
}
.search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.search em {
  font-style: normal;
  background: #d93440;
  color: #fff;
  font-size: 11px;
  padding: 7px 10px;
  border-radius: 9px;
  white-space: nowrap;
}
.filters {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 11px 0 0;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar {
  display: none;
}
.chip {
  border: 1px solid transparent;
  background: #f7f4f4;
  color: #625b5d;
  padding: 7px 15px;
  border-radius: 99px;
  white-space: nowrap;
  font-size: 12px;
  transition: 0.18s;
}
.chip.active {
  background: #fff1f2;
  border-color: #eebdc1;
  color: #c42431;
  box-shadow: none;
  font-weight: 650;
}
.content {
  padding: 15px 14px 28px;
  background: linear-gradient(180deg, #f7f4f4 0, #f5f6f8 260px);
}
.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2px 3px 12px;
}
.feed-head div small {
  display: block;
  color: #c84a53;
  font-family: Georgia, serif;
  font-size: 8px;
  letter-spacing: 1.6px;
  margin-bottom: 4px;
}
.feed-head strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.feed-head > span {
  font-size: 10px;
  color: #a29a9c;
}
.article-card {
  position: relative;
  background: linear-gradient(160deg, #fff 0%, #fff 70%, #fffafa 100%);
  border: 1px solid rgba(153, 104, 110, 0.11);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(65, 38, 42, 0.075);
  padding: 16px 16px 14px;
  margin-bottom: 14px;
  overflow: hidden;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.article-card:active {
  transform: scale(0.992);
  box-shadow: 0 5px 16px rgba(65, 38, 42, 0.08);
}
.article-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 3px;
  height: 34px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(#ed5960, #bd2634);
}
.latest {
  position: absolute;
  right: 0;
  top: 0;
  color: #fff;
  background: linear-gradient(135deg, #ee5961, #c42432);
  padding: 7px 11px 7px 14px;
  border-radius: 0 0 0 15px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 12px rgba(193, 35, 49, 0.14);
}
.latest i {
  font-style: normal;
  color: #ffd8da;
  margin-right: 2px;
}
.card-topline {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding-right: 75px;
}
.card-topline > span {
  font-family: Georgia, "Songti SC", serif;
  font-size: 9px;
  color: #a98a67;
  letter-spacing: 1px;
}
.card-topline > em {
  font-style: normal;
  font-size: 9px;
  color: #b7afb0;
}
.card-topline > em::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #cfb6b8;
  vertical-align: middle;
  margin-right: 7px;
}
.author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 0;
}
.avatar {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: linear-gradient(145deg, #31353b, #656c75);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Songti SC", serif;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.13);
}
.avatar.tone-1 {
  background: linear-gradient(145deg, #2f333a, #6c737c);
}
.avatar.tone-2 {
  background: linear-gradient(145deg, #a32836, #db5158);
}
.avatar.tone-3 {
  background: linear-gradient(145deg, #9a6a2c, #d4a252);
}
.author-copy {
  min-width: 0;
}
.author strong {
  font-size: 15px;
  letter-spacing: 0.2px;
}
.verified {
  font-size: 10px;
  color: #16835b;
  margin-top: 4px;
}
.verified span {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #16835b;
  color: #fff;
  font-size: 8px;
  margin-right: 3px;
}
.author-arrow {
  margin-left: auto;
  color: #d2c9ca;
  font-size: 22px;
  font-weight: 300;
}
.article-card h2 {
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
  line-height: 1.58;
  margin: 14px 0 7px;
  letter-spacing: 0.25px;
}
.summary {
  font-size: 12px;
  line-height: 1.7;
  color: #777174;
  margin: 0 0 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tag {
  font-size: 9px;
  padding: 4px 6px;
  background: #fff2f2;
  color: #bd454d;
  border: 1px solid #f6dfe1;
  border-radius: 5px;
}
.price {
  font-family: Georgia, "PingFang SC", serif;
  font-size: 15px;
  font-weight: 700;
  color: #c72a37;
  white-space: nowrap;
}
.price.free {
  font-family: inherit;
  font-size: 12px;
  background: #fff0f1;
  padding: 5px 8px;
  border-radius: 7px;
}
.date {
  font-size: 9px;
  color: #aaa2a4;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #f2eded;
  display: flex;
  justify-content: space-between;
}
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  height: calc(67px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #ebe5e6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 30;
  backdrop-filter: blur(20px);
  box-shadow: 0 -8px 24px rgba(56, 35, 38, 0.04);
}
.tab {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #aaa4a6;
  font-size: 10px;
}
.tab b {
  width: 21px;
  height: 21px;
  display: block;
  line-height: 1;
}
.tab svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}
.tab.active {
  color: #cf2d39;
  font-weight: 650;
}
.tab.active b {
  filter: drop-shadow(0 3px 5px rgba(207, 45, 57, 0.18));
}
.result-stamp {
  position: absolute;
  right: 15px;
  top: 88px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
  transform: rotate(-6deg);
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.12);
}
.result-stamp::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}
.result-stamp.red {
  background: linear-gradient(145deg, #f25b61, #c82937);
}
.result-stamp.black {
  background: linear-gradient(145deg, #45484e, #17191d);
}
.result-stamp b {
  font-family: "Songti SC", serif;
  font-size: 21px;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.result-stamp small {
  font-size: 7px;
  margin-top: 4px;
  opacity: 0.78;
  position: relative;
  z-index: 1;
}
.article-card.has-stamp h2 {
  padding-right: 62px;
  min-height: 54px;
}
.article-card.has-stamp .summary {
  padding-right: 5px;
}
.section {
  padding: 16px;
}
.empty {
  min-height: 56vh;
  display: grid;
  place-content: center;
  text-align: center;
  color: #a3a7ae;
}
.empty b {
  font-size: 44px;
  opacity: 0.35;
}
.empty p {
  font-size: 14px;
}
.profile-hero {
  background: linear-gradient(145deg, #b91f2e, #ef454b);
  color: #fff;
  padding: 30px 20px 76px;
}
.profile-line {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-line .avatar {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 24px;
}
.profile-line h2 {
  margin: 0 0 5px;
}
.profile-line p {
  margin: 0;
  opacity: 0.75;
  font-size: 13px;
}
.asset-panel {
  margin: -50px 16px 13px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  padding: 20px;
}
.asset-panel div + div {
  border-left: 1px solid var(--line);
}
.asset-panel strong {
  display: block;
  font-size: 20px;
}
.asset-panel span {
  font-size: 12px;
  color: var(--muted);
}
.panel {
  margin: 13px 16px;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 28px rgba(30, 34, 45, 0.06);
}
.panel-title {
  font-size: 17px;
  font-weight: 750;
  margin-bottom: 12px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.menu-item {
  border: 0;
  background: #fafafa;
  border-radius: 14px;
  padding: 14px 6px;
  color: #333;
}
.menu-item b {
  display: block;
  font-size: 22px;
  margin-bottom: 7px;
}
.menu-item span {
  font-size: 12px;
}
.menu-list button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 15px 4px;
  text-align: left;
  display: flex;
  justify-content: space-between;
}
.guest-profile {
  min-height: calc(100vh - 112px);
  padding: 18px 16px 110px;
}
.wechat-login-page {
  min-height: calc(100vh - 54px);
  display: grid;
  place-items: center;
  padding: 28px 16px 96px;
}
.wechat-login-card {
  width: 100%;
  max-width: 420px;
  padding: 34px 24px 26px;
  border: 1px solid #e7ece9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(28, 55, 41, 0.1);
  text-align: center;
}
.wechat-login-card.compact {
  padding: 30px 22px 24px;
}
.wechat-login-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 23px;
  background: linear-gradient(145deg, #19cd6c, #07a94f);
  box-shadow: 0 12px 24px rgba(7, 193, 96, 0.24);
  color: #fff;
}
.wechat-login-mark svg {
  width: 46px;
  height: 46px;
  fill: currentColor;
}
.wechat-login-copy h2 {
  margin: 0;
  color: #1f2421;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.wechat-login-copy p {
  margin: 8px 0 22px;
  color: #8a918d;
  font-size: 13px;
}
.wechat-login-button,
.wechat-copy-link {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  background: #07c160;
  box-shadow: 0 10px 22px rgba(7, 193, 96, 0.2);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
}
.wechat-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.wechat-login-button svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}
.wechat-login-button:active,
.wechat-copy-link:active {
  background: #06ad56;
  transform: translateY(1px);
}
.guest-platform-panel {
  max-width: 420px;
  margin: 16px auto 0;
}
.wechat-open-sheet {
  padding: 28px 22px 22px;
  text-align: center;
}
.wechat-open-sheet .close {
  position: absolute;
  top: 12px;
  right: 14px;
}
.wechat-open-sheet .wechat-login-mark {
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
}
.wechat-open-sheet .wechat-login-mark svg {
  width: 39px;
  height: 39px;
}
.wechat-open-sheet h3 {
  margin: 0;
  font-size: 20px;
}
.wechat-open-sheet p {
  margin: 9px 0 20px;
  color: #858b88;
  font-size: 13px;
}
.menu-list button:last-child {
  border-bottom: 0;
}
.detail-head {
  background: linear-gradient(160deg, #a91d2b, #ee454b);
  color: #fff;
  padding: 24px 18px 28px;
}
.detail-head .author {
  padding: 0;
}
.detail-head .avatar {
  width: 54px;
  height: 54px;
}
.detail-head h2 {
  font-size: 20px;
  line-height: 1.5;
  margin: 18px 0 10px;
}
.detail-head p {
  opacity: 0.78;
  font-size: 13px;
  line-height: 1.7;
}
.detail-head > p:empty {
  display: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 18px;
}
.stats div {
  text-align: center;
  padding: 13px 4px;
  background: rgba(255, 255, 255, 0.06);
}
.stats strong {
  display: block;
  font-size: 17px;
}
.stats span {
  font-size: 11px;
  opacity: 0.74;
}
.article-body {
  background: #fff;
  margin: 14px;
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.article-body h3 {
  font-size: 17px;
  margin: 0 0 12px;
}
.article-body p {
  font-size: 14px;
  color: #666d77;
  line-height: 1.9;
}
.timeline-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  margin-top: 12px;
}
.timeline-card strong {
  line-height: 1.5;
}
.timeline-card small {
  display: block;
  color: var(--muted);
  margin-top: 10px;
}
.bottom-action {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 520px;
  width: 100%;
  background: #fff;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 25;
}
.bottom-action strong {
  color: var(--red);
  font-size: 20px;
}
.primary {
  border: 0;
  background: linear-gradient(135deg, #ef4850, #c62434);
  color: #fff;
  border-radius: 99px;
  padding: 13px 25px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(211, 39, 49, 0.2);
}
.secondary {
  border: 1px solid #e1e3e6;
  background: #fff;
  border-radius: 99px;
  padding: 10px 18px;
}
.form {
  padding: 18px;
}
.form-card {
  background: #fff;
  border-radius: 18px;
  padding: 19px;
  box-shadow: var(--shadow);
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid #e5e6e9;
  border-radius: 12px;
  padding: 13px;
  outline: 0;
  background: #fafafa;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.wide {
  width: 100%;
}
.hint {
  background: #fff7ed;
  color: #8a5d20;
  border: 1px solid #f2dfbf;
  border-radius: 13px;
  padding: 13px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 15px;
}
.agent-hero {
  background: linear-gradient(145deg, #9d1828, #e74147);
  color: #fff;
  padding: 26px 18px 62px;
}
.agent-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}
.agent-identity .avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
}
.agent-identity h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.agent-identity p {
  margin: 0;
  font-size: 11px;
  opacity: 0.8;
}
.agent-card {
  margin: -42px 15px 14px;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.agent-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}
.agent-actions button {
  border: 0;
  background: #fafafa;
  border-radius: 12px;
  padding: 12px 3px;
  font-size: 11px;
}
.agent-actions b {
  display: block;
  font-size: 20px;
  margin-bottom: 5px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 6px;
}
.metrics strong {
  display: block;
  font-size: 15px;
}
.metrics span {
  font-size: 10px;
  color: var(--muted);
}
.panel-desc {
  font-size: 11px;
  line-height: 1.7;
  color: #7d828a;
  margin: -4px 0 13px;
}
.qr-panel {
  text-align: center;
}
.qr-panel .panel-title,
.qr-panel .panel-desc {
  text-align: left;
}
.qr-image {
  display: block;
  width: min(230px, 74vw);
  aspect-ratio: 1;
  margin: 10px auto;
  border: 8px solid #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.ref-link {
  font-size: 10px;
  color: #8f949c;
  background: #f7f7f8;
  border-radius: 9px;
  padding: 10px;
  margin: 10px 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agent-search {
  display: flex;
  gap: 8px;
}
.agent-search input {
  min-width: 0;
  flex: 1;
  border: 1px solid #e3e4e7;
  border-radius: 10px;
  padding: 11px;
  background: #fafafa;
  outline: 0;
}
.agent-search button,
.attach-row button {
  border: 0;
  background: #d8323e;
  color: #fff;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 11px;
}
.agent-results {
  margin-top: 10px;
}
.attach-row,
.customer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f1f3;
}
.attach-row:last-child,
.customer-row:last-child {
  border-bottom: 0;
}
.attach-row > div,
.customer-row > div {
  min-width: 0;
  flex: 1;
  text-align: left;
}
.attach-row strong,
.customer-row strong {
  display: block;
  font-size: 13px;
}
.attach-row small,
.customer-row small {
  display: block;
  font-size: 9px;
  color: #999fa7;
  margin-top: 4px;
}
.attach-row > span {
  display: flex;
  gap: 5px;
}
.attach-row .muted-btn {
  background: #eef0f3;
  color: #666;
}
.attach-status {
  font-style: normal;
  font-size: 9px;
  padding: 5px 7px;
  border-radius: 99px;
  background: #f1f2f4;
  color: #777;
}
.attach-status.approved {
  background: #edf9f0;
  color: #2f8f49;
}
.attach-status.pending {
  background: #fff6e8;
  color: #b97719;
}
.customer-row .avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 12px;
}
.customer-row > em {
  font-style: normal;
  font-size: 9px;
  color: #adb1b7;
}
.mini-empty {
  padding: 24px 0;
  text-align: center;
  font-size: 11px;
  color: #a4a8af;
}
.title-count {
  font-size: 10px;
  color: #fff;
  background: #d8323e;
  border-radius: 99px;
  padding: 3px 7px;
  margin-left: 4px;
  font-weight: 500;
}
.panel-title-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title-action button {
  border: 0;
  background: #d8323e;
  color: #fff;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 10px;
}
.agent-article-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f1f3;
}
.agent-article-row:last-child {
  border-bottom: 0;
}
.agent-article-row .result-stamp {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  transform: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.agent-article-row .result-stamp b {
  font-size: 14px;
}
.agent-article-row .result-stamp::after {
  inset: 3px;
}
.agent-article-row > div {
  min-width: 0;
}
.agent-article-row strong {
  font-size: 12px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agent-article-row small {
  font-size: 9px;
  color: #999fa7;
  margin-top: 4px;
  display: block;
}
.agent-publish-sheet {
  max-height: 88vh;
  overflow: auto;
}
.agent-publish-sheet .field {
  margin: 14px 0;
}
.agent-publish-sheet .field label,
.publish-options span {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 7px;
}
.agent-publish-sheet .field input,
.agent-publish-sheet .field textarea,
.publish-options select {
  width: 100%;
  border: 1px solid #e3e4e7;
  border-radius: 10px;
  padding: 11px;
  background: #fafafa;
  outline: 0;
}
.agent-publish-sheet .field textarea {
  min-height: 90px;
  resize: vertical;
}
.publish-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.publish-options label {
  font-size: 12px;
}
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(18, 20, 24, 0.48);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: max(12px, env(safe-area-inset-top));
}
.sheet {
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 12px - env(safe-area-inset-top));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(22px + env(safe-area-inset-bottom));
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sheet-head h3 {
  margin: 0;
}
.close {
  border: 0;
  background: none;
  font-size: 25px;
  color: #888;
}
.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e1e3e7;
  border-radius: 14px;
  padding: 13px;
  margin-top: 12px;
}
.pay-option.active {
  border-color: var(--red);
  background: #fff6f6;
}
.pay-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #edf5ff;
  display: grid;
  place-items: center;
  font-size: 21px;
}
.pay-option input {
  margin-left: auto;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translate(-50%, 12px);
  background: rgba(28, 30, 35, 0.92);
  color: #fff;
  padding: 10px 16px;
  border-radius: 99px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 99;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.home-banners {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 12px 14px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.home-banners::-webkit-scrollbar {
  display: none;
}
.home-banners button {
  flex: 0 0 86%;
  height: 104px;
  border: 0;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: left;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  scroll-snap-align: center;
  box-shadow: 0 8px 22px rgba(40, 28, 30, 0.12);
}
.home-banners strong {
  font-family: "Songti SC", serif;
  font-size: 17px;
}
.home-banners span {
  font-size: 10px;
  margin-top: 6px;
  opacity: 0.82;
}
.article-content {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 16px;
}
.article-content > div {
  font-size: 14px;
  color: #454a52;
  line-height: 2;
  word-break: break-word;
}
.content-lock {
  text-align: center;
  padding: 22px 16px;
  margin-bottom: 16px;
  border: 1px solid #f0dadd;
  border-radius: 16px;
  background: linear-gradient(145deg, #fffafa, #fff3f4);
}
.content-lock > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: #d8323e;
  color: #fff;
  font-size: 12px;
}
.content-lock h3 {
  margin-bottom: 6px;
}
.content-lock p {
  margin: 0;
  font-size: 12px;
}
.primary:disabled {
  opacity: 0.52;
  box-shadow: none;
  cursor: default;
}
.order-list {
  background: #f5f6f8;
  min-height: calc(100vh - 58px);
}
.order-card {
  background: #fff;
  border-radius: 17px;
  padding: 16px;
  margin-bottom: 13px;
  box-shadow: 0 7px 24px rgba(30, 34, 45, 0.06);
}
.order-card header,
.order-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.order-card header {
  font-size: 10px;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.order-card h3 {
  font-size: 15px;
  line-height: 1.55;
  margin: 15px 0;
}
.order-meta {
  display: grid;
  gap: 6px;
  color: #969ba3;
  font-size: 10px;
}
.order-card footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.order-card footer strong {
  color: var(--red);
  font-size: 17px;
}
.order-status {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 99px;
  background: #f0f1f3;
  color: #70757d;
}
.order-status.paid,
.order-status.completed {
  background: #edf8ef;
  color: #2c8544;
}
.order-status.refunded {
  background: #fff0f1;
  color: #c42a37;
}
.order-status.pending {
  background: #fff7e9;
  color: #ae701d;
}
.wallet-head {
  border-radius: 18px;
  text-align: center;
}
.wallet-head h2 {
  font-size: 32px;
}
.wallet-panel {
  margin: 14px 0;
}
.ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row:last-child {
  border-bottom: 0;
}
.ledger-row div {
  min-width: 0;
}
.ledger-row strong {
  display: block;
  font-size: 12px;
}
.ledger-row small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.ledger-row > b {
  font-size: 12px;
}
.ledger-row .income {
  color: #2a8b49;
}
.ledger-row .expense {
  color: var(--red);
}
.agent-article-row > div {
  flex: 1;
}
.row-actions {
  display: flex;
  gap: 4px;
}
.row-actions button {
  border: 0;
  background: #f2f3f5;
  color: #555d67;
  border-radius: 7px;
  padding: 6px 7px;
  font-size: 9px;
}
.row-actions .danger-text {
  color: #c42b37;
  background: #fff0f1;
}
.sync-badge {
  font-style: normal;
  font-size: 9px;
  color: #69717c;
  background: #f1f2f4;
  border-radius: 99px;
  padding: 5px 7px;
}
.template-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.template-row:last-child {
  border-bottom: 0;
}
.template-row strong {
  display: block;
  font-size: 12px;
}
.template-row small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.template-row > span {
  font-size: 10px;
  color: var(--red);
}
.publish-options input {
  width: 100%;
  border: 1px solid #e3e4e7;
  border-radius: 10px;
  padding: 11px;
  background: #fafafa;
  outline: 0;
}
.agent-publish-sheet .content-input {
  min-height: 180px;
}
.agent-publish-sheet {
  padding-top: 16px;
}
.agent-publish-sheet .sheet-head {
  position: sticky;
  top: -16px;
  z-index: 2;
  margin: -16px -2px 12px;
  padding: 16px 2px 10px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #f0f1f3;
  backdrop-filter: blur(12px);
}
.reference-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 18px 26px;
  color: #fff;
  background:
    radial-gradient(
      circle at 108% -5%,
      rgba(255, 220, 177, 0.14) 0 92px,
      transparent 93px
    ),
    linear-gradient(145deg, #c94652 0%, #a82637 56%, #741a2b 100%);
  box-shadow: inset 0 -1px 0 rgba(80, 8, 22, 0.2);
}
.reference-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(
      circle at 8% 78%,
      rgba(255, 162, 139, 0.18),
      transparent 34%
    );
}
.reference-hero > * {
  position: relative;
  z-index: 1;
}
.reference-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.reference-logo {
  position: relative;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: linear-gradient(145deg, #15956f, #066b50);
  box-shadow:
    0 8px 20px rgba(0, 43, 96, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  color: #fff;
  font-family: "Songti SC", serif;
}
.reference-logo::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
}
.reference-logo > span {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
}
.reference-brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.5px;
}
.reference-brand span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}
.reference-intro {
  padding: 25px 22px 17px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.12)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(74, 7, 20, 0.16);
  backdrop-filter: blur(2px);
}
.reference-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  line-height: 2;
  text-align: justify;
  text-justify: inter-ideograph;
  letter-spacing: 0.08px;
}
.reference-intro > div {
  display: flex;
  justify-content: space-around;
  gap: 28px;
  margin-top: 18px;
}
.reference-intro button {
  flex: 1;
  max-width: 150px;
  padding: 10px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 99px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.13),
    rgba(255, 255, 255, 0.06)
  );
  color: #ffbd28;
  font-size: 14px;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.reference-intro button:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.18);
}
.reference-intro button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reference-ticker {
  height: 48px;
  margin: 14px 16px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border-left: 4px solid #ffad0a;
  border-radius: 12px;
  background: linear-gradient(90deg, #fff8d9, #fff1b1);
  box-shadow: 0 5px 14px rgba(170, 130, 25, 0.07);
}
.reference-ticker b {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 8px;
  background: #1674d4;
  color: #fff;
  font-size: 12px;
}
.reference-ticker i {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #e8a20b;
  font-style: normal;
}
.reference-ticker i svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reference-ticker-window {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.reference-ticker-window span {
  display: block;
  width: max-content;
  min-width: 100%;
  color: #4c4d50;
  font-size: 12px;
  white-space: nowrap;
  animation: reference-ticker 22s linear infinite;
}
.reference-search-card {
  margin: 0 16px 15px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(47, 61, 82, 0.07);
}
.reference-search {
  height: 51px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid #d9dce1;
  border-radius: 28px;
  background: #fff;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.reference-search:focus-within {
  border-color: rgba(22, 116, 212, 0.68);
  box-shadow: 0 0 0 4px rgba(22, 116, 212, 0.09);
}
.reference-search span {
  width: 21px;
  height: 21px;
  color: #9298a0;
}
.reference-search svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.reference-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #34373c;
  font-size: 14px;
}
.reference-search input::placeholder {
  color: #989ca3;
}
.reference-filters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.reference-chip {
  min-width: 0;
  padding: 8px 3px;
  border: 0;
  border-radius: 99px;
  background: #f5f6f8;
  color: #4d5056;
  font-size: 12px;
  white-space: nowrap;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}
.reference-chip:active {
  transform: scale(0.94);
}
.reference-chip.active {
  background: #1674d4;
  color: #fff;
  box-shadow: 0 4px 10px rgba(22, 116, 212, 0.2);
}
.reference-content {
  padding: 0 16px 28px;
}
.course-list-section > header {
  margin: 4px 2px 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.course-list-section > header h2 {
  margin: 0;
  color: #242830;
  font-size: 20px;
  letter-spacing: 0.3px;
}
.course-list-section > header > span {
  padding-bottom: 2px;
  color: #969ca5;
  font-size: 11px;
}
.course-list-section.course-stage-history {
  margin-top: 26px;
}
.reference-article-card {
  position: relative;
  margin-bottom: 15px;
  padding: 22px 20px 16px;
  overflow: hidden;
  border: 1px solid #e9edf2;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fefefe);
  box-shadow:
    0 12px 30px rgba(35, 48, 67, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.reference-article-card:active {
  transform: translateY(1px) scale(0.995);
  box-shadow: 0 7px 18px rgba(35, 48, 67, 0.07);
}
.reference-latest {
  position: absolute;
  top: 0;
  right: 0;
  padding: 9px 13px;
  border-radius: 0 0 0 11px;
  background: #ff4b54;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: -4px 5px 13px rgba(239, 54, 65, 0.15);
}
.course-result-stamp {
  position: absolute;
  top: 88px;
  right: 18px;
  z-index: 2;
  width: 62px;
  height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  transform: rotate(-5deg);
  box-shadow: 0 8px 18px rgba(32, 38, 47, 0.18);
}
.course-result-stamp::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(255, 255, 255, 0.58);
  border-radius: inherit;
}
.course-result-stamp.red {
  background: linear-gradient(145deg, #ff6a70, #e83743);
}
.course-result-stamp.black {
  background: linear-gradient(145deg, #555a62, #202329);
}
.course-result-stamp b,
.course-result-stamp small {
  position: relative;
  z-index: 1;
}
.course-result-stamp b {
  font-family: "Songti SC", serif;
  font-size: 23px;
  line-height: 1;
}
.course-result-stamp small {
  margin-top: 4px;
  font-size: 7px;
  opacity: 0.76;
}
.reference-author {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 0;
  border: 0;
}
.reference-article-card.is-latest .reference-author {
  padding-right: 76px;
}
.reference-author-copy {
  min-width: 0;
  flex: 1;
}
.reference-author-copy > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.reference-author-copy strong {
  overflow: hidden;
  color: #d45b25;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reference-author-copy small {
  display: block;
  margin-top: 4px;
  color: #9298a2;
  font-size: 11px;
}
.reference-verified {
  flex: 0 0 auto;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 999px;
  background: #25b96c;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}
.reference-verified b {
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #25b96c;
  font-size: 9px;
}
.reference-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #17191e, #50545b);
  color: #fff;
  font-family: "Songti SC", serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow:
    0 5px 12px rgba(24, 28, 35, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.reference-avatar i {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: inherit;
  font-style: normal;
}
.reference-avatar.tone-2 {
  background: linear-gradient(145deg, #63666b, #16181c);
}
.reference-avatar.tone-3 {
  background: linear-gradient(145deg, #76818e, #30353c);
}
.reference-article-card h2 {
  margin: 17px 0 14px;
  color: #21242a;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.58;
}
.reference-article-card.is-history h2 {
  min-height: 62px;
  padding-right: 66px;
}
.reference-result-line {
  margin: -3px 76px 15px 0;
  overflow: hidden;
  color: #d75b28;
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.reference-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.reference-tags {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.reference-tags span {
  position: relative;
  flex: 0 0 auto;
  padding: 7px 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #737984;
  color: #fff;
  font-size: 11px;
}
.reference-tags span:first-child {
  border-radius: 5px 0 0 5px;
}
.reference-tags span:last-child {
  border-radius: 0 5px 5px 0;
}
.reference-tags span:only-child {
  border-radius: 5px;
}
.reference-tags span.tag-slot-1 {
  background: #2f7d3b;
}
.reference-tags span.tag-slot-1::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 3px;
  pointer-events: none;
}
.reference-tags svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reference-tags span.tag-slot-2 {
  background: #e83a43;
  color: #fff;
}
.reference-tags span.tag-slot-2 svg {
  fill: currentColor;
  stroke: none;
}
.reference-price {
  flex: 0 0 auto;
  color: #d92d3f;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}
.reference-card-stats {
  margin-top: 14px;
  padding-top: 12px;
  display: grid;
  grid-template-columns: minmax(74px, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #f0f1f3;
  color: #9ea3aa;
  font-size: 11px;
}
.reference-card-stats time {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reference-card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.reference-card-stats svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 370px) {
  .reference-card-stats {
    gap: 6px;
    font-size: 9px;
  }
  .reference-card-stats .reference-price {
    font-size: 12px;
  }
}
.tab.active {
  color: #216ff2;
}
.reference-content + .tabbar {
  border-top-color: rgba(32, 62, 106, 0.08);
  box-shadow: 0 -10px 28px rgba(29, 49, 78, 0.07);
}
.reference-content + .tabbar .tab.active b {
  filter: drop-shadow(0 4px 6px rgba(33, 111, 242, 0.2));
}
.detail-result {
  margin-top: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}
.detail-result > span {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-family: "Songti SC", serif;
  font-size: 20px;
  font-weight: 800;
}
.detail-result.black > span {
  background: rgba(21, 24, 30, 0.62);
}
.detail-result.red > span {
  background: rgba(255, 255, 255, 0.2);
}
.detail-result.pending > span {
  font-size: 17px;
}
.detail-result div {
  min-width: 0;
}
.detail-result small,
.detail-result strong {
  display: block;
}
.detail-result small {
  margin-bottom: 4px;
  font-size: 10px;
  opacity: 0.7;
}
.detail-result strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.author-courses,
.author-history {
  margin-top: 26px;
}
.detail-section-title {
  margin-bottom: 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.detail-section-title h3 {
  margin: 0;
  font-size: 18px;
}
.detail-section-title > span {
  color: #9da2aa;
  font-size: 11px;
}
.author-course-card,
.history-result-card {
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #eceef2;
  border-radius: 15px;
  background: #fff;
  color: #252932;
  text-align: left;
}
.author-course-card.current {
  border-color: #f0c8cc;
  background: linear-gradient(145deg, #fff, #fff7f8);
}
.author-course-card > div,
.history-result-card > div {
  min-width: 0;
  flex: 1;
}
.author-course-card small,
.author-course-card strong,
.author-course-card em,
.history-result-card strong,
.history-result-card small {
  display: block;
}
.author-course-card small {
  margin-bottom: 5px;
  color: #a0666b;
  font-size: 9px;
}
.author-course-card strong,
.history-result-card strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.55;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.author-course-card em {
  margin-top: 5px;
  color: #dc3541;
  font-size: 11px;
  font-style: normal;
}
.author-course-card > b {
  color: #b8bcc2;
  font-size: 22px;
  font-weight: 400;
}
.history-result-card {
  position: relative;
  align-items: center;
  padding-right: 12px;
}
.history-result-card p {
  margin: 5px 0 4px;
  overflow: hidden;
  color: #d05b2d;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.history-result-card small {
  color: #9da2aa;
  font-size: 9px;
}
.history-author-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(145deg, #30353d, #666e78);
  color: #fff;
  font-family: "Songti SC", serif;
  font-size: 16px;
  font-weight: 800;
  box-shadow:
    0 5px 12px rgba(30, 35, 43, 0.15),
    0 0 0 1px #e3e6eb;
}
.history-author-avatar i {
  font-style: normal;
}
.history-result-status {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  transform: rotate(-4deg);
  box-shadow: 0 7px 16px rgba(32, 38, 47, 0.17);
}
.history-result-status::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(255, 255, 255, 0.6);
  border-radius: inherit;
}
.history-result-status b,
.history-result-status small {
  position: relative;
  z-index: 1;
}
.history-result-status b {
  font-family: "Songti SC", serif;
  font-size: 21px;
  line-height: 1;
}
.history-result-status small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 7px;
}
.history-result-status.red {
  background: linear-gradient(145deg, #ff626a, #d82f3c);
}
.history-result-status.black {
  background: linear-gradient(145deg, #555a62, #202329);
}
.super-entry {
  background: linear-gradient(145deg, #fff1f2, #fff8f8);
}
.super-entry b {
  background: linear-gradient(145deg, #c94652, #7b1728) !important;
  color: #fff !important;
  font-size: 12px !important;
}
.temp-login-page {
  padding: 18px 16px 36px;
}
.temp-login-intro {
  padding: 24px 22px;
  border-radius: 22px;
  background: linear-gradient(145deg, #c94652, #7b1728);
  box-shadow: 0 14px 28px rgba(105, 19, 37, 0.2);
  color: #fff;
}
.temp-login-intro > span {
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.72;
}
.temp-login-intro h2 {
  margin: 10px 0 8px;
  font-size: 24px;
}
.temp-login-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.75;
}
.temp-login-card {
  margin-top: 15px;
  padding: 17px;
  border: 1px solid #eee7e8;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(49, 37, 40, 0.07);
}
.temp-role-option {
  display: block;
  margin-bottom: 10px;
}
.temp-role-option > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.temp-role-option > span {
  min-height: 70px;
  padding: 12px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 11px;
  border: 1px solid #ece9ea;
  border-radius: 15px;
  background: #fbfbfb;
  transition: 0.18s ease;
}
.temp-role-option > input:checked + span {
  border-color: #bd3444;
  background: #fff6f7;
  box-shadow: 0 0 0 3px rgba(189, 52, 68, 0.08);
}
.temp-role-option b {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #e05661, #9c2132);
  color: #fff;
}
.temp-role-option strong,
.temp-role-option small {
  display: block;
}
.temp-role-option strong {
  font-size: 14px;
}
.temp-role-option small {
  margin-top: 4px;
  color: #999296;
  font-size: 10px;
  font-weight: 400;
}
.temp-role-option em {
  color: #9d7a80;
  font-size: 10px;
  font-style: normal;
}
.temp-login-note {
  margin: 12px 0 0;
  color: #9b9497;
  font-size: 11px;
  text-align: center;
}
.text-button {
  width: 100%;
  margin-top: 9px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #a42a3a;
  font-size: 12px;
}
.super-hero {
  padding: 24px 20px 38px;
  background:
    radial-gradient(
      circle at 95% 0,
      rgba(255, 220, 190, 0.16),
      transparent 34%
    ),
    linear-gradient(145deg, #c94652, #8f2031 62%, #691526);
  color: #fff;
}
.super-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}
.super-identity .avatar {
  width: 62px;
  height: 62px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(145deg, #3b4149, #17191d);
  box-shadow: 0 10px 24px rgba(71, 7, 19, 0.24);
}
.super-identity h2 {
  margin: 0 0 7px;
  font-size: 22px;
}
.super-identity p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}
.super-main {
  margin-top: -20px;
  padding: 0 14px 32px;
  position: relative;
}
.super-card {
  margin-bottom: 13px;
  padding: 18px;
  border: 1px solid #eee9ea;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(48, 35, 39, 0.065);
}
.super-today,
.super-finance {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.super-finance {
  grid-template-columns: repeat(3, 1fr);
}
.super-today > div,
.super-finance > div {
  padding: 7px 10px;
  text-align: center;
}
.super-today > div + div,
.super-finance > div + div {
  border-left: 1px solid #eee9ea;
}
.super-today strong,
.super-finance strong,
.super-overview strong {
  display: block;
  color: #a82739;
  font-size: 21px;
}
.super-today span,
.super-finance span,
.super-overview span {
  display: block;
  margin-top: 7px;
  color: #8f898c;
  font-size: 11px;
}
.super-overview {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  text-align: center;
}
.super-overview strong {
  color: #252329;
  font-size: 17px;
}
.super-pending {
  width: 100%;
  margin-top: 10px;
  padding: 14px 2px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-top: 1px solid #f0edef;
  background: #fff;
  color: #302d31;
  font-size: 14px;
  text-align: left;
}
.super-pending b {
  min-width: 28px;
  padding: 5px 8px;
  border-radius: 99px;
  background: #ef4451;
  color: #fff;
  font-size: 11px;
  text-align: center;
}
.super-pending em,
.super-menu em {
  color: #c8c2c4;
  font-size: 20px;
  font-style: normal;
}
.super-menu {
  margin-top: 10px;
}
.super-menu button {
  width: 100%;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 11px;
  border: 0;
  border-top: 1px solid #f0edef;
  background: #fff;
  text-align: left;
}
.super-menu button > b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff0f2;
  color: #b52e40;
}
.super-menu span {
  color: #2c292d;
  font-size: 14px;
  font-weight: 650;
}
.super-menu small {
  display: block;
  margin-top: 4px;
  color: #9d9699;
  font-size: 10px;
  font-weight: 400;
}
.super-search {
  padding: 14px;
  display: flex;
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid #eee9ea;
}
.super-search input {
  min-width: 0;
  flex: 1;
  padding: 13px 14px;
  border: 1px solid #e5e1e2;
  border-radius: 13px;
  background: #f8f7f7;
  outline: 0;
}
.super-search button,
.super-agent-card button,
.super-application-card footer button,
.super-article-card footer button {
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: #ad2c3d;
  color: #fff;
  font-size: 12px;
}
.super-list {
  padding: 14px 14px 36px;
}
.super-agent-card,
.super-application-card,
.super-order-card,
.super-article-card {
  margin-bottom: 13px;
  padding: 17px;
  border: 1px solid #ece8e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(49, 36, 40, 0.055);
}
.super-agent-card header,
.super-application-card header,
.super-order-card header,
.super-article-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.super-agent-card header strong,
.super-agent-card header small,
.super-application-card header strong,
.super-application-card header small,
.super-article-card header strong,
.super-article-card header small {
  display: block;
}
.super-agent-card header strong,
.super-application-card header strong,
.super-order-card header strong,
.super-article-card header strong {
  font-size: 15px;
  line-height: 1.5;
}
.super-agent-card header small,
.super-application-card header small,
.super-article-card header small {
  margin-top: 5px;
  color: #999296;
  font-size: 10px;
}
.super-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f1f1f1;
  color: #777;
  font-size: 10px;
  font-style: normal;
}
.super-status.approved,
.super-status.paid,
.super-status.completed,
.super-status.enabled {
  background: #eaf7ef;
  color: #268457;
}
.super-status.pending {
  background: #fff4df;
  color: #b97916;
}
.super-status.rejected,
.super-status.suspended,
.super-status.refunded,
.super-status.disabled {
  background: #fff0f1;
  color: #bc3344;
}
.super-agent-grid {
  margin: 15px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.super-agent-grid span {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  border-radius: 11px;
  background: #f8f7f7;
  color: #8c8588;
  font-size: 11px;
}
.super-agent-grid b {
  color: #312e32;
}
.super-agent-card footer,
.super-application-card footer,
.super-order-card footer,
.super-article-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #8f888b;
  font-size: 10px;
}
.super-application-card > p {
  margin: 14px 0;
  color: #625d60;
  font-size: 12px;
  line-height: 1.7;
}
.super-application-meta,
.super-article-meta {
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.super-application-meta span,
.super-article-meta span {
  padding: 5px 8px;
  border-radius: 7px;
  background: #f7f5f6;
  color: #817a7d;
  font-size: 10px;
}
.ghost-action {
  border: 1px solid #ded9da !important;
  background: #fff !important;
  color: #716b6e !important;
}
.super-order-card header > b {
  color: #b72e40;
  font-size: 16px;
}
.super-order-card > div {
  margin: 14px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 12px;
  font-size: 11px;
}
.super-order-card > div span {
  color: #a29ca0;
}
.super-order-card > div b {
  overflow-wrap: anywhere;
  color: #4f4a4d;
  font-weight: 500;
  text-align: right;
}
.super-article-card .result-stamp {
  position: static;
  width: 42px;
  height: 42px;
  font-size: 16px;
}
.danger-action {
  border: 1px solid #f2c7cd !important;
  background: #fff4f5 !important;
  color: #bd3345 !important;
}
.super-user-card,
.super-withdrawal-card,
.super-audit-list > section {
  margin-bottom: 13px;
  padding: 17px;
  border: 1px solid #ece8e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(49, 36, 40, 0.055);
}
.super-user-card header,
.super-withdrawal-card header,
.super-audit-list > section header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.super-user-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.super-user-identity > span {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #bd3e50, #7b1e2d);
  color: #fff;
  font-weight: 750;
}
.super-user-identity strong,
.super-user-identity small,
.super-withdrawal-card header strong,
.super-withdrawal-card header small {
  display: block;
}
.super-user-identity strong,
.super-withdrawal-card header strong {
  font-size: 14px;
}
.super-user-identity small,
.super-withdrawal-card header small {
  margin-top: 5px;
  color: #999296;
  font-size: 10px;
}
.super-user-grid {
  margin: 15px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.super-user-grid span {
  padding: 9px 3px;
  border-radius: 10px;
  background: #f8f7f7;
  color: #918a8d;
  font-size: 9px;
  text-align: center;
}
.super-user-grid b {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #393538;
  font-size: 10px;
}
.super-user-card footer,
.super-withdrawal-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #8f888b;
  font-size: 10px;
}
.super-user-card footer button,
.super-withdrawal-card footer button,
.super-config-head > button,
.super-channel-list button,
.super-config-list button {
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: #ad2c3d;
  color: #fff;
  font-size: 11px;
}
.super-withdrawal-card header > b {
  color: #b72e40;
  font-size: 18px;
}
.super-withdrawal-account {
  margin: 14px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  font-size: 11px;
}
.super-withdrawal-account span {
  color: #9e979a;
}
.super-withdrawal-account b {
  overflow-wrap: anywhere;
  color: #4c474a;
  text-align: right;
}
.super-withdrawal-card footer > div {
  display: flex;
  gap: 7px;
}
.detail-strip {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.detail-strip span {
  padding: 10px 4px;
  border-radius: 10px;
  background: #f7f5f6;
  color: #8b8487;
  font-size: 9px;
  text-align: center;
}
.detail-strip b {
  display: block;
  margin-top: 5px;
  color: #3b373a;
  font-size: 11px;
}
.field.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.field.two-col label {
  margin: 0;
}
.long-textarea {
  min-height: 180px !important;
}
.super-article-sheet {
  max-height: 88vh;
  overflow-y: auto;
}
.super-config-page {
  padding: 14px 14px 36px;
}
.super-config-card {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid #ece8e9;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(49, 36, 40, 0.055);
}
.super-config-card h2 {
  margin: 0;
  font-size: 17px;
}
.super-config-card > p,
.super-config-head p {
  margin: 6px 0 14px;
  color: #989194;
  font-size: 10px;
  line-height: 1.6;
}
.super-config-card .field textarea {
  min-height: 88px;
}
.super-config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.super-channel-list form {
  margin-top: 10px;
  padding: 13px;
  display: grid;
  grid-template-columns: 1fr 62px;
  gap: 10px;
  border-radius: 13px;
  background: #f8f7f7;
}
.super-channel-list form > div strong,
.super-channel-list form > div small {
  display: block;
}
.super-channel-list form > div small {
  margin-top: 5px;
  color: #9a9396;
  font-size: 9px;
}
.super-channel-list label {
  color: #857e81;
  font-size: 9px;
}
.super-channel-list input,
.super-channel-list select {
  width: 100%;
  margin-top: 5px;
  padding: 8px;
  border: 1px solid #e3dfe0;
  border-radius: 8px;
  background: #fff;
}
.super-channel-list .switch-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}
.super-channel-list .switch-inline input {
  width: auto;
  margin: 0;
}
.super-config-list > div {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 7px;
  border-top: 1px solid #eee9ea;
}
.super-config-list span,
.super-config-list strong,
.super-config-list small {
  min-width: 0;
  display: block;
}
.super-config-list strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.super-config-list small {
  margin-top: 5px;
  color: #999296;
  font-size: 9px;
}
.super-config-list .danger-text {
  background: #fff1f2;
  color: #b82f41;
}
.super-audit-list > section header strong {
  color: #842535;
  font-size: 12px;
}
.super-audit-list > section header small,
.super-audit-list > section div > span {
  color: #999296;
  font-size: 9px;
}
.super-audit-list > section div {
  margin-top: 10px;
}
.super-audit-list code {
  margin-top: 8px;
  padding: 9px;
  display: block;
  overflow-wrap: anywhere;
  border-radius: 9px;
  background: #f7f5f6;
  color: #686164;
  font-size: 9px;
  line-height: 1.5;
  white-space: normal;
}
.super-sheet .sheet-subtitle {
  margin: -4px 0 14px;
  color: #8f888b;
  font-size: 12px;
}
.switch-row {
  margin: 11px 0;
  padding: 13px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eee9ea;
}
.switch-row span,
.switch-row small {
  display: block;
}
.switch-row span {
  font-size: 14px;
}
.switch-row small {
  margin-top: 4px;
  color: #9a9396;
  font-size: 10px;
}
.switch-row input {
  width: 44px;
  height: 24px;
  accent-color: #ad2c3d;
}
@keyframes reference-ticker {
  0%,
  12% {
    transform: translateX(0);
  }
  88%,
  100% {
    transform: translateX(calc(-100% + 245px));
  }
}
@media (max-width: 390px) {
  .reference-hero {
    padding: 21px 14px 22px;
  }
  .reference-brand {
    gap: 12px;
    margin-bottom: 17px;
  }
  .reference-logo {
    width: 59px;
    height: 59px;
  }
  .reference-intro {
    padding: 20px 17px 15px;
    border-radius: 18px;
  }
  .reference-intro p {
    font-size: 13px;
    line-height: 1.92;
  }
  .reference-intro > div {
    gap: 16px;
    margin-top: 15px;
  }
  .reference-intro button {
    font-size: 13px;
  }
  .reference-ticker,
  .reference-search-card {
    margin-right: 12px;
    margin-left: 12px;
  }
  .reference-ticker {
    padding: 0 11px;
    gap: 7px;
  }
  .reference-ticker b {
    padding: 7px 8px;
    font-size: 11px;
  }
  .reference-search-card {
    padding: 16px;
  }
  .reference-filters {
    gap: 5px;
  }
  .reference-chip {
    font-size: 11px;
  }
  .reference-content {
    padding-right: 12px;
    padding-left: 12px;
  }
  .reference-article-card {
    padding: 20px 16px 15px;
  }
  .reference-article-card h2 {
    font-size: 17px;
  }
  .course-result-stamp {
    right: 14px;
    width: 58px;
    height: 58px;
  }
  .reference-article-card.is-history h2 {
    padding-right: 61px;
  }
  .reference-result-line {
    margin-right: 68px;
  }
  .reference-tags span {
    padding: 6px;
    font-size: 10px;
  }
  .history-result-card {
    gap: 9px;
    padding: 12px 10px;
  }
  .history-author-avatar {
    width: 38px;
    height: 38px;
  }
  .history-result-status {
    width: 53px;
    height: 53px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reference-ticker-window span {
    width: auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: none;
  }
  .reference-chip,
  .reference-intro button,
  .reference-article-card {
    transition: none;
  }
}
@media (min-width: 700px) {
  body {
    padding: 20px 0;
  }
  .app-shell {
    min-height: calc(100dvh - 40px);
    border-radius: 24px;
    overflow: hidden;
  }
  .tabbar,
  .bottom-action {
    bottom: 20px;
    border-radius: 0 0 24px 24px;
  }
}

/* 代理中心：按照移动端独立业务页面组织，沿用名师论坛红白视觉 */
.agent-hub-hero{background:linear-gradient(145deg,#c71831,#ef4b57);padding:24px 20px 72px;color:#fff}.agent-hub-person{display:flex;align-items:center;gap:14px}.agent-hub-avatar{width:64px;height:64px;border:3px solid rgba(255,255,255,.8);border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.18);font-size:24px;font-weight:800}.agent-hub-person h2{margin:0 0 7px;font-size:22px}.agent-hub-person p{margin:0;opacity:.82}.agent-hub-person em{margin-left:auto;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.18);font-style:normal;font-size:12px}.agent-balance{margin-top:24px;padding:22px;text-align:center;border-radius:18px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18)}.agent-balance span{display:block;opacity:.75}.agent-balance strong{display:block;margin-top:8px;font-size:32px}.agent-hub-main{padding:0 14px 32px;margin-top:-44px;position:relative}.agent-quick-card,.agent-hub-card,.agent-white-card,.agent-form-card{background:#fff;border:1px solid #eceef2;border-radius:18px;box-shadow:0 10px 28px rgba(31,37,48,.07)}.agent-quick-card{display:grid;grid-template-columns:repeat(4,1fr);padding:17px 6px;margin-bottom:14px}.agent-quick-card button{border:0;background:none;display:grid;justify-items:center;gap:8px;color:#252832}.agent-quick-card i{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#fff1f2;color:#d8253d;font-style:normal;font-weight:800}.agent-quick-card button:nth-child(2) i{background:#eef7ff;color:#2989c7}.agent-quick-card button:nth-child(3) i{background:#fff2e8;color:#e55b28}.agent-quick-card button:nth-child(4) i{background:#edf9f2;color:#2b9b61}.agent-hub-card{margin-bottom:14px;padding:18px}.agent-hub-card h3,.agent-white-card h3,.agent-form-card h3{margin:0 0 15px;font-size:18px}.agent-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.agent-metrics div{text-align:center;min-width:0}.agent-metrics strong{display:block;font-size:17px;color:#1f222b;white-space:nowrap}.agent-metrics span{display:block;margin-top:8px;font-size:11px;color:#8c929d}.agent-menu-row{width:100%;display:flex;align-items:center;gap:12px;padding:14px 2px;border:0;border-bottom:1px solid #eff0f2;background:none;text-align:left}.agent-menu-row:last-child{border-bottom:0}.agent-menu-row i{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#fff1f2;color:#d7253d;font-style:normal;font-weight:700}.agent-menu-row span{flex:1;font-size:15px}.agent-menu-row small{display:block;margin-top:4px;color:#9a9fa8;font-size:11px}.agent-menu-row b{color:#b7bbc2;font-size:22px}.agent-page{min-height:calc(100dvh - 58px);padding:16px 14px 100px;background:#f5f6f8}.agent-page>.agent-white-card,.agent-page>.agent-form-card{margin-bottom:14px}.agent-white-card,.agent-form-card{padding:18px}.agent-poster{padding:20px 38px}.agent-poster>div{min-height:370px;padding:28px;border-radius:22px;color:#fff;text-align:center;background:radial-gradient(circle at top right,rgba(255,255,255,.24),transparent 33%),linear-gradient(145deg,#b5162c,#ef535f);box-shadow:0 18px 35px rgba(166,22,42,.22)}.agent-poster small{letter-spacing:2px}.agent-poster h2{margin:22px 0 8px;font-size:27px}.agent-poster p{opacity:.82}.agent-poster img{display:block;width:180px;height:180px;margin:22px auto 12px;padding:10px;background:#fff;border-radius:14px}.agent-poster b{letter-spacing:3px}.agent-copy-line{display:flex;gap:10px}.agent-copy-line span{flex:1;min-width:0;padding:12px;border-radius:10px;background:#f5f6f8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#737984}.agent-copy-line button,.agent-card-heading button{border:0;border-radius:10px;padding:0 12px;background:#fff0f2;color:#c71d35}.agent-kv{display:flex;justify-content:space-between;padding:14px 0;border-top:1px solid #eff0f2}.agent-kv:first-of-type{margin-top:18px}.agent-kv span{color:#737984}.agent-kv b{color:#d4253d}.agent-fixed-action{position:fixed;z-index:20;bottom:0;left:50%;width:min(100%,520px);transform:translateX(-50%);padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #eceef2}.agent-page-empty{min-height:55vh;display:grid;place-content:center;justify-items:center;gap:12px;color:#9a9fa8}.agent-page-empty b{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#fff0f2;color:#d4253d;font-size:23px}.agent-page-empty.small{min-height:220px}.agent-income-card{margin-bottom:14px;padding:32px;text-align:center;border-radius:18px;background:linear-gradient(135deg,#bc1830,#ed4b58);color:#fff}.agent-income-card span{display:block;opacity:.78}.agent-income-card strong{display:block;margin:8px 0;font-size:34px}.agent-card-heading{display:flex;justify-content:space-between;align-items:center}.agent-card-heading span{display:flex;gap:6px}.agent-card-heading button{padding:7px 9px}.agent-ledger-row{display:flex;align-items:center;gap:10px;padding:14px 0;border-top:1px solid #eff0f2}.agent-ledger-row div{flex:1}.agent-ledger-row strong,.agent-ledger-row small{display:block}.agent-ledger-row small{margin-top:4px;color:#969ba4}.agent-ledger-row>b{color:#2c9b63}.agent-form-card{display:grid;gap:15px}.agent-form-card>label,.agent-form-card fieldset label{display:grid;gap:8px;font-size:14px}.agent-form-card label i{color:#d4253d}.agent-form-card input,.agent-form-card textarea,.agent-form-card select,.agent-article-tools input{box-sizing:border-box;width:100%;border:1px solid #e7e9ed;border-radius:12px;padding:13px;background:#f8f8f9;font:inherit}.agent-form-card textarea{min-height:100px;resize:vertical}.agent-publish-form textarea[name=content]{min-height:190px}.agent-form-card fieldset{margin:0;padding:0;border:0}.agent-form-card legend{margin-bottom:10px}.money-input{grid-template-columns:auto 1fr auto!important;align-items:center;padding:6px 12px;border-radius:12px;background:#f7f8f9}.money-input input{border:0;background:transparent;font-size:22px}.money-input button{border:0;background:none;color:#d4253d}.agent-note{padding:13px;border-radius:10px;background:#fff4f5;color:#777}.agent-note.warm{background:#fff9e9;color:#8b6b1c}.agent-segment{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.agent-segment.three{grid-template-columns:repeat(3,1fr)}.agent-segment label{display:block}.agent-segment input{position:absolute;opacity:0;pointer-events:none}.agent-segment span{display:block;padding:12px;border:1px solid transparent;border-radius:11px;background:#f6f7f8;text-align:center}.agent-segment input:checked+span{border-color:#d4253d;background:#fff1f3;color:#c91e36}.switch-row{display:flex!important;align-items:center;justify-content:space-between}.switch-row input{width:50px;height:28px;accent-color:#d4253d}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.agent-form-actions{position:sticky;bottom:0;display:grid;grid-template-columns:1fr 1.5fr;gap:10px;padding-top:10px;background:#fff}.agent-form-actions button{padding:14px;border:0;border-radius:13px;background:#f2f3f5}.agent-article-tools{display:grid;grid-template-columns:1fr auto;gap:12px;margin-bottom:14px}.agent-article-tools .agent-segment{grid-template-columns:repeat(3,1fr)}.agent-article-tools>input{grid-column:1/-1}.agent-manage-article{margin-bottom:14px;padding:17px;border:1px solid #eceef2;border-radius:17px;background:#fff;box-shadow:0 8px 22px rgba(31,37,48,.05)}.agent-manage-article>div{display:flex;align-items:center;gap:10px}.agent-manage-article>div strong{flex:1}.agent-result-dot{width:37px;height:37px;display:grid;place-items:center;border-radius:50%;background:#a9adb4;color:#fff;font-size:12px}.agent-result-dot.red{background:#ed4a58}.agent-result-dot.black{background:#30343b}.agent-manage-article p{color:#747a85}.agent-manage-article small{color:#9ba0a9}.agent-manage-article footer{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid #eff0f2}.agent-manage-article footer button,.template-row button{border:0;border-radius:8px;padding:7px 10px;background:#f3f4f6}.agent-add-template{margin-bottom:14px}.template-check-list{display:grid;gap:8px}.template-check-list label{display:flex!important;align-items:center;gap:10px;padding:12px;border:1px solid #eceef2;border-radius:12px}.template-check-list input{width:auto}.template-check-list span{display:grid}.template-check-list small{color:#999}.agent-bg-options{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.agent-bg-options label span{height:55px;display:block;border-radius:12px;background:#c91f38}.agent-bg-options label.wine span{background:#771f35}.agent-bg-options label.green span{background:#147b64}.agent-bg-options label.dark span{background:#252a34}.agent-bg-options input{position:absolute;opacity:0}.agent-bg-options input:checked+span{outline:3px solid #fff;box-shadow:0 0 0 5px #d4253d}.agent-template-sheet{max-height:88dvh;overflow:auto}.agent-template-sheet .switch-row{margin:10px 0}.agent-search{display:flex;gap:8px}.agent-search input{flex:1;min-width:0;border:1px solid #e7e9ed;border-radius:11px;padding:12px}.agent-search button{border:0;border-radius:11px;padding:0 15px;background:#d4253d;color:#fff}
@media(max-width:370px){.agent-hub-person em{display:none}.agent-metrics strong{font-size:14px}.agent-poster{padding:14px}.agent-quick-card span{font-size:11px}}

/* 全平台操作控件：移动端优先，统一图形、触控、状态与危险操作语义 */
button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease,
    opacity 0.16s ease;
}
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(215, 45, 56, 0.2);
  outline-offset: 2px;
}
button:active:not(:disabled),
[role="button"]:active:not([aria-disabled="true"]) {
  transform: scale(0.975);
}
button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none !important;
}
.action-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topbar .back,
.topbar .action {
  min-width: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 12px;
}
.topbar .back:hover,
.topbar .action:hover {
  background: #f7f2f3;
}
.primary {
  min-height: 44px;
  border: 1px solid rgba(177, 31, 48, 0.12);
  box-shadow: 0 9px 20px rgba(194, 35, 52, 0.2), inset 0 1px rgba(255, 255, 255, 0.18);
}
.primary:hover {
  box-shadow: 0 12px 24px rgba(194, 35, 52, 0.26), inset 0 1px rgba(255, 255, 255, 0.22);
}
.secondary,
.ghost-action,
.danger-action {
  min-height: 42px;
  font-weight: 650;
}
.danger-text,
.danger-action {
  border-color: #f1c9ce !important;
  background: #fff5f6 !important;
  color: #c12d42 !important;
}

.agent-quick-card {
  gap: 5px;
  padding: 12px 8px;
}
.agent-quick-card button {
  min-width: 0;
  min-height: 88px;
  padding: 10px 3px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  font-weight: 650;
}
.agent-quick-card button:hover,
.agent-quick-card button:focus-visible {
  border-color: #eee5e7;
  background: #fcfafb;
  box-shadow: 0 7px 18px rgba(45, 35, 40, 0.06);
}
.agent-quick-card i {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(206, 43, 63, 0.08);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
}
.agent-quick-card .action-icon {
  width: 23px;
  height: 23px;
}
.agent-quick-card span {
  overflow: hidden;
  color: #2e3038;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agent-quick-card .tone-promotion { background: #fff0f2; color: #cf2f46; }
.agent-quick-card .tone-team { background: #edf7ff; color: #2184c5; }
.agent-quick-card .tone-revenue { background: #fff4e9; color: #df622d; }
.agent-quick-card .tone-withdraw { background: #edf9f3; color: #238d5a; }

.agent-menu-row {
  min-height: 66px;
  margin: 2px 0;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-bottom-color: #eff0f2;
  border-radius: 13px;
}
.agent-menu-row:hover,
.agent-menu-row:focus-visible {
  border-color: #ece7e9;
  background: #fbf9fa;
  box-shadow: 0 6px 16px rgba(42, 35, 38, 0.045);
}
.agent-menu-row i {
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid rgba(199, 35, 55, 0.07);
}
.agent-menu-row .action-icon {
  width: 21px;
  height: 21px;
}
.agent-menu-row span {
  font-weight: 650;
}
.agent-menu-row small {
  font-weight: 400;
}
.agent-menu-row .tone-publish,
.agent-menu-row .tone-batch { background: #fff0f2; color: #ca2b43; }
.agent-menu-row .tone-articles,
.agent-menu-row .tone-visits { background: #edf7ff; color: #277fba; }
.agent-menu-row .tone-drafts,
.agent-menu-row .tone-customers { background: #f2f0ff; color: #6b5bc3; }
.agent-menu-row .tone-templates,
.agent-menu-row .tone-attachment { background: #fff5e9; color: #d56f2d; }
.agent-menu-row .tone-store { background: #edf9f3; color: #268a59; }

.agent-copy-line button,
.agent-card-heading button,
.agent-search button,
.attach-row button,
.agent-manage-article footer button,
.template-row button,
.money-input button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 8px 13px;
  font-weight: 650;
}
.agent-search button,
.attach-row button {
  background: linear-gradient(135deg, #e43b4b, #bd273b);
  box-shadow: 0 6px 14px rgba(196, 39, 58, 0.16);
}
.attach-row .muted-btn,
.agent-manage-article footer button,
.template-row button {
  border-color: #e7e9ed;
  background: #f7f8f9;
  color: #525762;
}
.agent-manage-article footer button:hover,
.template-row button:hover {
  border-color: #dcdfe4;
  background: #fff;
  box-shadow: 0 5px 12px rgba(41, 46, 56, 0.07);
}

.super-pending,
.super-menu button {
  min-height: 64px;
  padding-right: 8px;
  padding-left: 8px;
  border: 1px solid transparent;
  border-top-color: #f0edef;
  border-radius: 13px;
}
.super-pending:hover,
.super-pending:focus-visible,
.super-menu button:hover,
.super-menu button:focus-visible {
  border-color: #ebe3e5;
  background: #fbf8f9;
  box-shadow: 0 6px 16px rgba(48, 36, 40, 0.05);
}
.super-menu button > b {
  border: 1px solid rgba(181, 46, 64, 0.08);
}
.super-menu .action-icon {
  width: 21px;
  height: 21px;
}
.super-menu .tone-users,
.super-menu .tone-articles { background: #eef6ff; color: #2b7fbd; }
.super-menu .tone-team,
.super-menu .tone-applications { background: #fff0f2; color: #bd3044; }
.super-menu .tone-orders,
.super-menu .tone-withdrawReview { background: #fff5e9; color: #d36b2b; }
.super-menu .tone-settings,
.super-menu .tone-audit { background: #edf9f3; color: #288a5a; }
.super-menu .tone-operations { background: #f2f0ff; color: #6b59bf; }
.super-search button,
.super-agent-card button,
.super-application-card footer button,
.super-article-card footer button {
  min-height: 40px;
  border: 1px solid rgba(149, 31, 47, 0.1);
  font-weight: 650;
  box-shadow: 0 6px 14px rgba(151, 35, 51, 0.13);
}

.article-tag-field {
  margin: 0;
  padding: 0;
  border: 0;
}
.article-tag-field legend {
  margin-bottom: 10px;
  color: #252832;
  font-size: 14px;
}
.article-tag-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.article-tag-inputs label {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: #5d626c;
  font-size: 13px;
}
.article-tag-inputs input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f7f8f9;
  color: #252832;
  font: inherit;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.article-tag-inputs input:focus {
  outline: 0;
  border-color: #cf2c42;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(207, 44, 66, 0.1);
}
.article-tag-inputs .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.agent-form-actions .primary {
  background: linear-gradient(135deg, #c71831, #ef4b57);
  color: #fff;
  box-shadow: 0 10px 22px rgba(199, 24, 49, 0.2);
}
.agent-form-actions [data-publish-copy] {
  border: 1px solid #d4253d;
  background: #fff;
  color: #c91e36;
}
.publish-time-field {
  padding-top: 2px !important;
}
.publish-time-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.publish-time-detail[hidden],
.publish-time-detail > [hidden] {
  display: none;
}
.publish-time-detail label {
  padding: 10px;
  border-radius: 11px;
  background: #fff5f6;
  color: #8a2937;
}
.publish-time-detail input {
  margin-top: 6px;
  background: #fff;
}

/* 代理模板与批量发布：对齐移动端业务原型，统一为平台红白视觉。 */
.agent-template-mask,
.agent-use-template-mask,
.batch-template-mask {
  padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
  align-items: center;
}
.agent-template-sheet,
.agent-use-template-sheet,
.batch-template-sheet {
  width: min(100%, 470px);
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  border-radius: 22px;
  padding: 22px 20px 0;
  box-shadow: 0 22px 64px rgba(30, 20, 24, 0.24);
}
.agent-template-heading {
  justify-content: center;
  margin-bottom: 20px;
}
.agent-template-heading h3,
.batch-template-sheet .sheet-head h3 {
  color: #20232b;
  font-size: 20px;
}
.agent-template-sheet > .field,
.agent-template-sheet > .article-tag-field {
  margin-bottom: 16px;
}
.agent-template-sheet .field > label,
.agent-template-sheet .article-tag-field legend {
  display: block;
  margin-bottom: 9px;
  color: #272a31;
  font-size: 15px;
  font-weight: 650;
}
.agent-template-sheet .required-field > label::before {
  content: "*";
  margin-right: 6px;
  color: #dc2e43;
}
.agent-template-sheet input,
.agent-template-sheet textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #e7e9ed;
  border-radius: 12px;
  padding: 13px;
  background: #f7f8f9;
  color: #252832;
  font: inherit;
}
.agent-template-sheet textarea[name="titlePattern"] {
  min-height: 92px;
  resize: vertical;
}
.template-default-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 15px;
  border-radius: 13px;
  background: #f7f9fc;
}
.template-default-row span {
  min-width: 0;
}
.template-default-row b,
.template-default-row small {
  display: block;
}
.template-default-row b {
  margin-bottom: 5px;
  font-size: 15px;
}
.template-default-row small {
  color: #8c929d;
  font-size: 12px;
  line-height: 1.5;
}
.template-default-row input,
.template-free-row input {
  flex: 0 0 auto;
  width: 50px;
  height: 28px;
  accent-color: #c71831;
}
.template-free-row {
  min-height: 44px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 650;
}
.template-money-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid #e7e9ed;
  border-radius: 12px;
  background: #f7f8f9;
}
.template-money-input b {
  padding-left: 14px;
  color: #c71831;
  font-size: 18px;
}
.template-money-input input {
  border: 0;
  background: transparent;
}
.template-money-input.is-free {
  opacity: 0.68;
}
.agent-modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px -20px 0;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #eceef2;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}
.agent-modal-actions button {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: #f1f2f4;
  color: #575c66;
  font: inherit;
  font-weight: 700;
}
.agent-modal-actions .primary,
.agent-batch-fixed .primary {
  background: linear-gradient(135deg, #c71831, #ef4b57);
  color: #fff;
  box-shadow: 0 10px 22px rgba(199, 24, 49, 0.2);
}
.agent-template-list .template-row {
  gap: 12px;
}
.agent-template-list .template-row > div {
  min-width: 0;
  flex: 1;
}
.agent-template-list .template-row > span {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}
.agent-template-list .template-row .template-use-button {
  border-color: transparent;
  background: linear-gradient(135deg, #c71831, #ef4b57);
  color: #fff;
  box-shadow: 0 7px 15px rgba(199, 24, 49, 0.18);
}
.agent-template-list .template-row .template-use-button:hover,
.agent-template-list .template-row .template-use-button:focus-visible {
  border-color: transparent;
  background: linear-gradient(135deg, #b9152d, #e43f4d);
  color: #fff;
}
.agent-use-template-sheet .sheet-head {
  margin-bottom: 16px;
}
.template-use-summary,
.template-title-preview {
  display: grid;
  gap: 7px;
  padding: 15px;
  border: 1px solid #eceef2;
  border-radius: 13px;
  background: #fafafa;
}
.template-use-summary span,
.template-title-preview span,
.template-issue-input > span {
  color: #8b9099;
  font-size: 12px;
}
.template-use-summary strong,
.template-title-preview strong {
  color: #23262e;
  font-size: 15px;
  line-height: 1.55;
}
.template-issue-input {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.template-issue-input > span {
  color: #272a31;
  font-size: 15px;
  font-weight: 650;
}
.template-issue-input input {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #e3e5e9;
  border-radius: 13px;
  padding: 14px;
  background: #f7f8f9;
  color: #23262e;
  font: inherit;
  font-size: 18px;
}
.template-issue-input input:focus {
  outline: 0;
  border-color: #cf2c42;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(207, 44, 66, 0.1);
}
.template-title-preview {
  border-color: #f1d8dc;
  background: #fff7f8;
}
.template-paid-content-input {
  display: grid;
  gap: 8px;
  margin: 16px 0 4px;
}
.template-paid-content-input > span {
  color: #272a31;
  font-size: 15px;
  font-weight: 650;
}
.template-paid-content-input textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 150px;
  border: 1px solid #e3e5e9;
  border-radius: 13px;
  padding: 14px;
  resize: vertical;
  background: #f7f8f9;
  color: #23262e;
  font: inherit;
  line-height: 1.55;
}
.template-paid-content-input textarea:focus {
  outline: 0;
  border-color: #cf2c42;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(207, 44, 66, 0.1);
}
.agent-batch-form {
  gap: 14px;
  padding: 16px;
}
.agent-batch-page {
  font-size: 13px;
}
.agent-batch-page .agent-form-card h3 {
  margin-bottom: 10px;
  font-size: 16px;
}
.agent-batch-page .publish-time-field legend {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 650;
}
.agent-batch-page .agent-segment span {
  padding: 10px 7px;
  font-size: 13px;
}
.batch-issue-field {
  grid-template-columns: 44px 1fr !important;
  align-items: center;
}
.batch-issue-field > span {
  color: #272a31;
  font-weight: 650;
}
.batch-pinned-row {
  min-height: 38px;
  font-weight: 650;
}
.batch-template-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #e7e9ed;
  border-radius: 12px;
  background: #f7f8f9;
  color: #292c33;
  text-align: left;
}
.batch-template-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.batch-template-trigger b {
  color: #a4a9b2;
  font-size: 24px;
}
.batch-selected-section {
  margin-top: 12px;
  padding: 17px 18px 8px;
  border: 1px solid #eceef2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 37, 48, 0.06);
}
.batch-selected-section > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.batch-selected-section > header h3 {
  margin: 0;
  color: #22252d;
  font-size: 16px;
}
.batch-selected-section > header span {
  color: #9a9fa8;
  font-size: 11px;
}
.batch-selected-list {
  display: block;
}
.batch-selected-item {
  padding: 14px 0 18px;
  border: 0;
  border-bottom: 1px solid #eceef2;
  border-radius: 0;
  background: #fff;
}
.batch-selected-item:last-child {
  border-bottom: 0;
}
.batch-selected-meta {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}
.batch-selected-meta > i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0f2;
  color: #d4253d;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}
.batch-selected-meta > div {
  min-width: 0;
}
.batch-selected-meta strong,
.batch-selected-meta small {
  display: block;
}
.batch-selected-meta strong {
  color: #22252d;
  font-size: 15px;
  line-height: 1.45;
}
.batch-selected-meta small {
  margin-top: 7px;
}
.batch-selected-meta > b {
  padding-top: 2px;
  color: #e26024;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.batch-selected-tags {
  display: flex !important;
  align-items: center;
  gap: 6px;
}
.batch-selected-tags span {
  padding: 3px 7px;
  border-radius: 4px;
  background: #eaf8ff;
  color: #3588b7;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}
.batch-selected-item > label {
  display: block;
  margin-top: 12px;
}
.batch-selected-item > label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.batch-selected-item textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 184px;
  border: 1px solid #e8eaee;
  border-radius: 10px;
  padding: 13px 14px;
  resize: vertical;
  background: #f8f8f9;
  color: #292c33;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
}
.batch-selected-item textarea:focus {
  outline: 0;
  border-color: #cf2c42;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(207, 44, 66, 0.09);
}
.agent-batch-fixed button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 750;
}
.batch-template-sheet .sheet-head {
  position: sticky;
  top: -22px;
  z-index: 3;
  margin: -22px -2px 12px;
  padding: 20px 2px 12px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #f0f1f3;
}
.batch-template-options {
  display: grid;
  gap: 10px;
}
.batch-template-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #e8eaee;
  border-radius: 13px;
  background: #fff;
}
.batch-template-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.batch-template-option span {
  flex: 1;
  min-width: 0;
}
.batch-template-option strong,
.batch-template-option small {
  display: block;
}
.batch-template-option strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.batch-template-option small {
  margin-top: 5px;
  color: #9297a1;
  font-size: 12px;
}
.batch-template-option i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #d8dbe0;
  border-radius: 50%;
  color: transparent;
  font-style: normal;
}
.batch-template-option:has(input:checked) {
  border-color: #d42d44;
  background: #fff5f6;
}
.batch-template-option input:checked ~ i {
  border-color: #c71831;
  background: #c71831;
  color: #fff;
}

/* 课程详情：按移动端原版的蓝色信息头、服务卡和往期方案对齐。 */
.course-detail-topbar {
  height: 52px;
  color: #fff;
  background: #2373cc;
  border-bottom: 0;
  backdrop-filter: none;
}
.course-detail-topbar h1 {
  font-size: 18px;
  font-weight: 700;
}
.course-detail-topbar .back {
  color: #fff;
}
.course-detail-hero {
  padding: 24px 20px 25px;
  color: #fff;
  background: linear-gradient(155deg, #2276d1 0%, #0f5fb7 100%);
}
.course-detail-author {
  display: flex;
  align-items: center;
  gap: 17px;
}
.course-detail-author > div {
  min-width: 0;
  flex: 1;
}
.course-detail-avatar {
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.64);
  border-radius: 50%;
  background: linear-gradient(145deg, #4b5564, #151922);
  box-shadow: 0 7px 18px rgba(0, 48, 105, 0.25);
  font-family: "Songti SC", "STSong", serif;
  font-size: 23px;
  font-weight: 800;
}
.course-detail-name-line {
  display: flex;
  align-items: center;
  gap: 11px;
}
.course-detail-name-line h2 {
  overflow: hidden;
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 750;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.course-detail-name-line > span {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: #f5be1a;
  font-size: 12px;
  font-weight: 700;
}
.course-detail-name-line > span b {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #58bf31;
  font-size: 10px;
}
.course-detail-author p {
  margin: 11px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.65;
}
.course-detail-stats {
  margin-top: 20px;
  padding: 14px 7px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.course-detail-stats div {
  min-width: 0;
  text-align: center;
}
.course-detail-stats span,
.course-detail-stats strong {
  display: block;
}
.course-detail-stats span {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}
.course-detail-stats strong {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 720;
}
.course-detail-stats div:nth-child(2) strong {
  color: #59c935;
}
.course-detail-body {
  min-height: 420px;
  padding: 24px 18px 112px;
  background: #f3f5f9;
}
.course-section-heading {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #24272d;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 760;
}
.course-section-heading > span {
  color: #2386c9;
  font-size: 27px;
  line-height: 1;
}
.course-detail-body > .course-section-heading:first-child > span {
  color: #55bf38;
}
.course-service-card {
  padding: 20px;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(34, 49, 72, 0.07);
}
.course-publish-time {
  padding-bottom: 17px;
  border-bottom: 1px solid #eceef2;
}
.course-publish-time strong,
.course-publish-time span {
  display: block;
}
.course-publish-time strong {
  margin-bottom: 13px;
  color: #23262c;
  font-size: 17px;
}
.course-publish-time span {
  color: #666b73;
  font-size: 15px;
}
.course-author-notice {
  padding: 17px 0 18px;
  border-bottom: 1px solid #eceef2;
}
.course-author-notice h3,
.course-paid-heading h3 {
  margin: 0;
  color: #24272d;
  font-size: 18px;
  line-height: 1.35;
}
.course-author-notice h3 span {
  margin-right: 8px;
  color: #2086c8;
  font-weight: 500;
}
.course-author-notice p {
  position: relative;
  margin: 17px 0 0;
  padding-left: 22px;
  color: #656a72;
  font-size: 14px;
  line-height: 1.85;
}
.course-author-notice p i {
  position: absolute;
  top: 0;
  left: 1px;
  color: #eeb91d;
  font-style: normal;
}
.course-paid-block {
  padding-top: 18px;
}
.course-paid-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.course-paid-heading h3 span {
  margin-right: 8px;
  color: #eab316;
}
.course-paid-heading b {
  padding: 7px 12px;
  border: 1px solid #e3b31d;
  border-radius: 11px;
  color: #d99f08;
  background: #fffdf4;
  font-size: 13px;
}
.course-content-open,
.course-content-locked {
  min-height: 126px;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff9df, #fff3ba);
}
.course-content-open {
  padding: 22px 18px;
}
.course-content-open strong {
  display: block;
  margin-bottom: 18px;
  color: #e2a70c;
  font-size: 16px;
  text-align: center;
}
.course-content-open p {
  margin: 0;
  color: #282b31;
  font-size: 15px;
  line-height: 1.85;
}
.course-content-locked {
  min-height: 218px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #2d3037;
}
.course-content-locked span {
  color: #e4ae10;
  font-size: 25px;
  transform: rotate(-5deg);
}
.course-content-locked strong {
  font-size: 18px;
  transform: rotate(-5deg);
}
.course-disclaimer {
  margin: 17px 0 0;
  color: #938c6f;
  font-size: 13px;
  line-height: 1.95;
}
.course-history-section {
  margin-top: 28px;
}
.course-history-section .course-section-heading {
  margin-bottom: 17px;
}
.course-history-card {
  width: 100%;
  min-height: 170px;
  margin-top: 13px;
  padding: 20px 19px;
  position: relative;
  display: block;
  border: 0;
  border-radius: 17px;
  color: #22262d;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34, 49, 72, 0.07);
  text-align: left;
}
.course-history-copy {
  padding-right: 82px;
}
.course-history-copy strong {
  display: block;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 730;
}
.course-history-copy p {
  margin: 15px 0 22px;
  color: #d45822;
  font-size: 14px;
  line-height: 1.6;
}
.course-history-copy small {
  color: #989da5;
  font-size: 12px;
}
.course-history-copy small span {
  margin-right: 3px;
}
.course-history-stamp {
  width: 68px;
  height: 68px;
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  border: 3px dashed rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #fff;
  font-family: "Songti SC", "STSong", serif;
  font-size: 27px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(31, 35, 43, 0.12);
}
.course-history-stamp.red {
  background: #ff5862;
}
.course-history-stamp.black {
  background: #17191d;
}
.course-history-card > em {
  position: absolute;
  right: 18px;
  bottom: 19px;
  padding: 6px 9px;
  border-radius: 10px;
  color: #d83337;
  background: #fafafa;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}
.course-history-empty {
  padding: 40px 20px;
  border-radius: 17px;
  color: #999fa8;
  background: #fff;
  text-align: center;
}
.course-detail-action {
  min-height: 76px;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
}
.course-detail-action > div {
  min-width: 0;
}
.course-detail-action strong,
.course-detail-action small {
  display: block;
}
.course-detail-action strong {
  color: #ee3d49;
  font-size: 21px;
  line-height: 1.2;
}
.course-detail-action small {
  margin-top: 7px;
  color: #555a61;
  font-size: 12px;
}
.course-detail-action > button {
  min-width: 112px;
  min-height: 48px;
  border: 1px solid #e73b48;
  border-radius: 999px;
  color: #d93542;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: none;
}
.course-detail-action > button:active {
  background: #fff1f2;
  transform: translateY(1px);
}

.template-order-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.template-order-actions button {
  width: 38px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #24262b;
  font-size: 18px;
  font-weight: 800;
}
.template-order-actions button:disabled {
  opacity: 0.28;
}
.agent-team-row > button,
.super-referral-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #d9263d;
  border-radius: 999px;
  color: #c91f36;
  background: #fff7f8;
  font-size: 13px;
  font-weight: 700;
}
.super-referral-button {
  margin-left: auto;
  border-color: rgba(255,255,255,.72);
  color: #fff;
  background: rgba(255,255,255,.14);
}
.super-referral-mask .agent-poster {
  margin: 8px 0 16px;
}

@media (max-width: 370px) {
  .course-detail-name-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .course-detail-name-line h2 {
    font-size: 20px;
  }
  .course-detail-author p {
    margin-top: 7px;
    font-size: 14px;
  }
  .course-detail-stats strong {
    font-size: 16px;
  }
  .course-history-copy strong {
    font-size: 16px;
  }
  .agent-template-mask,
  .agent-use-template-mask,
  .batch-template-mask {
    padding-inline: 8px;
  }
  .agent-template-sheet,
  .agent-use-template-sheet,
  .batch-template-sheet {
    padding-inline: 16px;
  }
  .agent-modal-actions {
    margin-inline: -16px;
    padding-inline: 16px;
  }
  .agent-template-list .template-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .agent-template-list .template-row > span {
    width: 100%;
  }
  .agent-template-list .template-row > span button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  button,
  [role="button"] {
    transition: none;
  }
}
