:root {
  --blue: #2478ff;
  --blue-deep: #0f4fb8;
  --navy: #10284d;
  --cyan: #16b4d8;
  --red: #d6464f;
  --red-deep: #ba2c37;
  --orange: #ff9e2f;
  --gold: #d8a72f;
  --green: #25b36b;
  --ink: #172033;
  --text: #2d3442;
  --muted: #7b8494;
  --line: #edf1f6;
  --page: #f3f7fc;
  --card: #ffffff;
  --blue-soft: #eaf3ff;
  --orange-soft: #fff3df;
  --green-soft: #eaf8f0;
  --shadow-sm: 0 8px 20px rgba(19, 45, 85, 0.08);
  --shadow-md: 0 16px 38px rgba(19, 45, 85, 0.13);
  --shadow-lg: 0 26px 70px rgba(15, 30, 55, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  background: #dce7f3;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 16% 8%, rgba(36, 120, 255, 0.18), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(255, 158, 47, 0.16), transparent 28%),
    linear-gradient(145deg, #dfe9f7, #f7f9fc 48%, #d8e5f3);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus {
  outline: none;
}

button:focus-visible {
  box-shadow: 0 0 0 3px rgba(36, 120, 255, 0.18);
}

button:active {
  transform: translateY(1px);
}

.phone {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
}

.miniapp {
  position: relative;
  width: min(430px, 100%);
  height: min(930px, calc(100vh - 36px));
  min-height: 760px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  background: var(--page);
  box-shadow: var(--shadow-lg);
}

.wx-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 20px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  backdrop-filter: blur(16px);
}

.wx-status span {
  flex: 1;
  padding-right: 10px;
  text-align: right;
  color: #303846;
  font-size: 12px;
  font-weight: 700;
}

.wx-status b {
  display: inline-grid;
  min-width: 30px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #525965, #2f3540);
  font-size: 14px;
}

.screen {
  display: none;
  height: calc(100% - 48px);
  overflow-y: auto;
  padding: 0 14px 96px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 252, 0.94) 210px),
    var(--page);
  scrollbar-width: thin;
  scrollbar-color: rgba(36, 120, 255, 0.35) transparent;
}

.screen.active {
  display: block;
}

.screen.detail {
  padding-bottom: 126px;
}

.wx-title {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 72px 1fr 118px;
  align-items: center;
  min-height: 64px;
  margin: 0 -14px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(233, 239, 247, 0.72);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.wx-title h1 {
  margin: 0;
  color: #111827;
  text-align: center;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: 0;
}

.capsule {
  justify-self: end;
  width: 106px;
  height: 38px;
  border: 1px solid rgba(18, 24, 38, 0.12);
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 14px rgba(28, 42, 70, 0.07);
  font-size: 16px;
  letter-spacing: 2px;
}

.back {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: transparent;
}

.back::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 12px;
  width: 14px;
  height: 14px;
  border-bottom: 3px solid #151922;
  border-left: 3px solid #151922;
  transform: rotate(45deg);
}

.ask-card,
.sniper-panel,
.answer-card,
.tool-section,
.ticker-card,
.news-card,
.compare-sheet,
.member-help,
.detail-card {
  border: 1px solid rgba(232, 238, 247, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.ask-card {
  position: relative;
  overflow: hidden;
  margin: 12px 0 14px;
  padding: 16px;
  border-radius: 18px;
}

.ask-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--orange));
}

.ask-head,
.ticker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ask-head b {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.35;
}

.ask-head button,
.ticker-head button {
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 6px 10px;
  font-size: 12px;
}

.question-list {
  display: grid;
  gap: 9px;
}

.question-list button {
  width: fit-content;
  max-width: 100%;
  border: 1px solid #dce5f2;
  border-radius: 999px;
  color: #445268;
  background: linear-gradient(180deg, #fff, #f8fbff);
  padding: 8px 13px;
  text-align: left;
  font-size: 14px;
  line-height: 1.25;
  box-shadow: 0 4px 10px rgba(20, 44, 82, 0.05);
}

.sniper-panel,
.answer-card {
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.sniper-panel {
  margin-top: 0;
  background:
    linear-gradient(145deg, rgba(234, 243, 255, 0.94), rgba(255, 255, 255, 0.96) 45%),
    #fff;
}

.sniper-panel strong,
.answer-meta b {
  display: block;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.25;
}

.sniper-panel span,
.answer-meta span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sniper-panel textarea {
  width: 100%;
  min-height: 92px;
  margin-top: 14px;
  padding: 13px;
  resize: none;
  outline: 0;
  border: 1px solid #dce5f2;
  border-radius: 14px;
  color: #313a4c;
  background: #fff;
  line-height: 1.55;
  box-shadow: inset 0 1px 2px rgba(21, 38, 66, 0.04);
}

.quick-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 13px 0;
}

.quick-tags button {
  min-height: 38px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: #eef6ff;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 650;
}

.danger-btn,
.primary-btn,
.generate,
.dual-actions button {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(214, 70, 79, 0.22);
}

.danger-btn {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  font-size: 17px;
}

.primary-btn {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 12px 24px rgba(36, 120, 255, 0.2);
}

.answer-card {
  display: none;
  margin-top: 14px;
}

.answer-card.show {
  display: block;
}

#scriptOutput p {
  margin: 12px 0 0;
  color: #3d4859;
  font-size: 14px;
  line-height: 1.68;
}

#scriptOutput small {
  display: block;
  margin-top: 12px;
  border-radius: 12px;
  color: #758094;
  background: #f6f9fd;
  padding: 10px;
  line-height: 1.4;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.action-row button {
  min-height: 40px;
  border-radius: 12px;
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 700;
}

.entry-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 14px 0 18px;
}

.entry-strip button {
  min-height: 70px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f7fbff);
  padding: 11px 10px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.entry-strip b {
  display: block;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.25;
}

.entry-strip span {
  display: block;
  margin-top: 5px;
  color: #8792a3;
  font-size: 11px;
  line-height: 1.25;
}

.banner-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.brand-banner {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px 16px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.brand-banner::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.brand-banner b {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1.18;
}

.brand-banner span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.35;
}

.brand-banner.warm {
  background: linear-gradient(135deg, #ff553f, #ff8f43);
}

.brand-banner.pale {
  background: linear-gradient(135deg, #eff4ff, #fff7ec);
}

.brand-banner.pale b {
  color: #14243d;
}

.brand-banner.pale span {
  color: #7d8796;
}

.plan-list {
  display: grid;
  gap: 13px;
  padding: 0 0 16px;
}

.plan-card {
  display: grid;
  grid-template-columns: 76px 1fr 20px;
  align-items: center;
  min-height: 116px;
  border: 1px solid rgba(232, 238, 247, 0.95);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.plan-card::after {
  content: "";
  width: 13px;
  height: 13px;
  border-top: 2px solid #a4acba;
  border-right: 2px solid #a4acba;
  transform: rotate(45deg);
}

.plan-card b {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-size: 22px;
  line-height: 1.2;
}

.plan-card span {
  display: -webkit-box;
  overflow: hidden;
  color: #8a93a3;
  font-size: 15px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.icon {
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #eff6ff, #fff);
  box-shadow: inset 0 0 0 1px #e9f0fa;
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
}

.icon-bars::before {
  left: 17px;
  bottom: 16px;
  width: 7px;
  height: 20px;
  border-radius: 4px;
  background: var(--blue);
  box-shadow: 11px -10px 0 var(--cyan), 22px -19px 0 var(--orange);
}

.icon-bars::after {
  left: 15px;
  top: 18px;
  width: 34px;
  height: 18px;
  border-top: 3px solid var(--orange);
  border-right: 3px solid var(--orange);
  transform: skewY(-24deg);
}

.icon-doc::before {
  width: 28px;
  height: 34px;
  border: 3px solid var(--blue);
  border-radius: 8px;
}

.icon-doc::after {
  width: 16px;
  height: 16px;
  right: 14px;
  bottom: 14px;
  border: 3px solid var(--orange);
  border-radius: 50%;
}

.icon-heart::before {
  width: 30px;
  height: 26px;
  border: 4px solid var(--orange);
  border-top: 0;
  border-radius: 0 0 18px 18px;
}

.icon-heart::after {
  width: 36px;
  height: 18px;
  border: 4px solid var(--blue);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  bottom: 11px;
}

.icon-compare::before {
  left: 17px;
  top: 16px;
  width: 30px;
  height: 4px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 12px 0 var(--blue), 0 24px 0 var(--blue);
}

.icon-compare::after {
  left: 14px;
  top: 13px;
  width: 4px;
  height: 36px;
  border-radius: 999px;
  background: var(--orange);
}

.tool-section {
  margin: 14px 0 18px;
  border-radius: 22px;
  padding: 18px 16px 20px;
  box-shadow: var(--shadow-sm);
}

.tool-section h2 {
  margin: 0 0 16px;
  color: #1a2333;
  font-size: 23px;
  line-height: 1.2;
}

.product-duel {
  background:
    linear-gradient(145deg, rgba(234, 243, 255, 0.96), rgba(255, 255, 255, 0.98) 42%),
    #fff;
}

.duel-selects {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.duel-selects label {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 8px;
  color: #5d6878;
  font-size: 14px;
}

.duel-selects select {
  min-width: 0;
  border: 1px solid #dce5f2;
  border-radius: 12px;
  color: #354052;
  background: #fff;
  padding: 10px;
  outline: 0;
}

.duel-result {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.duel-card,
.duel-copy {
  border-radius: 15px;
  padding: 13px;
  line-height: 1.55;
}

.duel-card.win {
  border: 1px solid #d6f0df;
  background: var(--green-soft);
}

.duel-card.risk {
  border: 1px solid #ffe0d1;
  background: #fff5ee;
}

.duel-card b,
.duel-copy b {
  display: block;
  color: #1e2c42;
}

.duel-card p,
.duel-copy span {
  margin: 7px 0;
  color: #505967;
  font-size: 14px;
}

.duel-card small {
  color: #8a929e;
}

.duel-copy {
  border: 1px solid #dbe9ff;
  background: #f4f8ff;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 12px;
}

.tool-grid.compact {
  gap: 14px 12px;
}

.tool-item,
.member-item {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  color: #202735;
  background: transparent;
  padding: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.18;
}

.tool-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  color: var(--blue);
  background: linear-gradient(145deg, #eff6ff, #fff);
  box-shadow: inset 0 0 0 1px #e9f0fa, 0 5px 14px rgba(36, 120, 255, 0.08);
  font-size: 20px;
  font-weight: 800;
}

.tool-item:nth-child(2n) .tool-icon,
.member-item:nth-child(2n) .tool-icon {
  color: var(--orange);
}

.tool-item b,
.member-item b {
  font-weight: 650;
}

#materials {
  background: #f4f6f9;
}

.news-hero {
  margin: 14px 0;
}

.news-live-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #dfe9f7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(39, 64, 96, 0.06);
}

.news-live-bar span {
  min-width: 0;
  color: #66758c;
  font-size: 12px;
  line-height: 1.35;
}

.news-live-bar span[data-state="ok"] {
  color: #176b4d;
}

.news-live-bar span[data-state="loading"] {
  color: #2166c2;
}

.news-live-bar span[data-state="error"] {
  color: #b25622;
}

.news-live-bar button {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #2478ff;
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}

.news-hero button {
  position: relative;
  width: 100%;
  min-height: 198px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 40, 77, 0.94), rgba(36, 120, 255, 0.9)),
    #10284d;
  padding: 22px;
  text-align: left;
  box-shadow: var(--shadow-md);
}

.news-hero button::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -46px;
  width: 170px;
  height: 170px;
  border: 28px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.news-hero span,
.news-card span,
.detail-tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  color: var(--blue);
  background: #edf5ff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.news-hero span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.news-hero b {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 18px;
  font-size: 24px;
  line-height: 1.25;
}

.news-hero p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.55;
}

.news-hero em {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 16px;
  color: #cfe2ff;
  font-size: 13px;
  font-style: normal;
}

.material-tabs {
  position: sticky;
  top: 64px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  margin: 0 -14px;
  padding: 10px 14px 14px;
  border-bottom: 1px solid #edf1f6;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.search-dot {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f3f7;
}

.search-dot::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 12px;
  width: 16px;
  height: 16px;
  border: 2px solid #1d2430;
  border-radius: 50%;
}

.search-dot::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 29px;
  width: 12px;
  height: 2px;
  background: #1d2430;
  transform: rotate(45deg);
}

.mat-tab {
  flex: 0 0 auto;
  color: #252b35;
  background: transparent;
  padding: 8px 0;
  font-size: 18px;
}

.mat-tab.active {
  color: var(--blue);
  border-bottom: 3px solid var(--blue);
  font-weight: 750;
}

.ticker-card {
  border-radius: 20px;
  padding: 16px;
}

.ticker-head b {
  color: var(--navy);
  font-size: 18px;
}

.ticker-list {
  display: grid;
  gap: 9px;
}

.ticker-list button {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f7f9fc;
  padding: 10px;
  text-align: left;
}

.ticker-list b {
  color: var(--red);
  font-size: 13px;
}

.ticker-list span {
  color: #384254;
  font-size: 14px;
  line-height: 1.35;
}

.news-feed {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.news-card {
  width: 100%;
  border-radius: 20px;
  padding: 16px;
  text-align: left;
}

.news-card b {
  display: block;
  margin-top: 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.news-card p {
  margin: 9px 0 0;
  color: #647084;
  font-size: 14px;
  line-height: 1.55;
}

.news-card small {
  display: block;
  margin-top: 10px;
  color: #a0a7b3;
}

.mine-bg {
  background: linear-gradient(#fff 0 208px, #ffe8b9 208px);
}

.profile-head {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 18px;
  padding: 30px 22px 26px;
}

.portrait {
  position: relative;
  width: 88px;
  height: 88px;
  border: 1px solid #f2dfbd;
  border-radius: 22px;
  background: linear-gradient(160deg, #ffe2b8, #fff8e8);
  box-shadow: var(--shadow-sm);
}

.portrait::before {
  content: "VIP";
  position: absolute;
  inset: 18px 10px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #c78816;
  background: #fff;
  font-size: 20px;
  font-weight: 900;
}

.profile-head h2 {
  margin: 0 0 14px;
  color: #1a2333;
  font-size: 26px;
  line-height: 1.2;
}

.profile-head p {
  display: inline-flex;
  margin: 0;
  border-radius: 999px;
  color: #b98413;
  background: #fff6df;
  padding: 7px 12px;
  font-size: 16px;
}

.member-panel {
  margin: 0 12px 24px;
  border: 1px solid rgba(255, 231, 185, 0.95);
  background: #fff;
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}

.pay-panel {
  margin: 0 12px 18px;
  padding: 18px;
  border: 1px solid rgba(255, 216, 151, 0.95);
  background: linear-gradient(180deg, #fff 0%, #fff8ea 100%);
  box-shadow: var(--shadow-sm);
}

.pay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.pay-head span {
  color: #b98413;
  font-size: 14px;
  font-weight: 800;
}

.pay-head h2 {
  margin: 6px 0;
  color: #172238;
  font-size: 21px;
  line-height: 1.25;
}

.pay-head p {
  margin: 0;
  color: #6f7888;
  font-size: 14px;
  line-height: 1.55;
}

.pay-head strong {
  flex: 0 0 auto;
  min-width: 58px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #d09a26, #b47b10);
  text-align: center;
  font-size: 14px;
}

.register-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.register-card label {
  display: grid;
  gap: 6px;
  color: #536072;
  font-size: 13px;
}

.register-card input {
  width: 100%;
  min-width: 0;
  border: 1px solid #dfe8f5;
  border-radius: 14px;
  background: #fff;
  padding: 11px 12px;
  color: #182235;
  font-size: 15px;
}

.register-card button {
  grid-column: 1 / -1;
  justify-self: stretch;
  border-radius: 14px;
  background: #2478ff;
  color: #fff;
  padding: 13px 14px;
  text-align: center;
  font-weight: 800;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.price-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  grid-template-areas:
    "top price"
    "desc price"
    "benefits action";
  align-items: center;
  gap: 10px 14px;
  border: 1px solid #e6edf7;
  border-radius: 20px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(39, 64, 96, 0.07);
}

.price-card.recommend {
  border-color: #ffbe60;
  background: linear-gradient(180deg, #fffaf1, #fff);
}

.price-top {
  grid-area: top;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.price-top b {
  color: #172238;
  font-size: 16px;
}

.price-top span {
  border-radius: 999px;
  background: #fff0d2;
  color: #b37200;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
}

.price-line {
  grid-area: price;
  justify-self: end;
  margin: 0;
  color: #cf434b;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.price-line em {
  font-style: normal;
  font-size: 16px;
}

.price-line small {
  margin-left: 4px;
  color: #7a8495;
  font-size: 12px;
  font-weight: 600;
}

.price-card p {
  grid-area: desc;
  min-height: 0;
  margin: 0;
  color: #697386;
  font-size: 13px;
  line-height: 1.5;
}

.price-card ul {
  grid-area: benefits;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  color: #40506a;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
}

.price-card li::before {
  content: "✓ ";
  color: #2478ff;
  font-weight: 900;
}

.price-card button {
  grid-area: action;
  justify-self: end;
  width: 118px;
  border-radius: 13px;
  background: #cf434b;
  color: #fff;
  padding: 12px 8px;
  text-align: center;
  font-weight: 900;
  line-height: 1.2;
}

.pay-note {
  margin-top: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #7d6a45;
  padding: 12px;
  font-size: 12px;
  line-height: 1.55;
}

.member-panel > span {
  color: #8c8c8c;
  font-size: 18px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 12px;
  margin-top: 22px;
}

.member-item {
  font-size: 14px;
}

.member-item .tool-icon {
  width: 54px;
  height: 54px;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.quick-actions button {
  min-height: 52px;
  border-radius: 14px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 17px;
  font-weight: 700;
}

.quick-actions button:nth-child(2) {
  color: var(--orange);
  background: var(--orange-soft);
}

.plan-form {
  margin: 0 -14px;
  border-top: 1px solid #edf1f6;
  background: rgba(255, 255, 255, 0.96);
}

.strict-rate-options small {
  display: block;
  margin-top: 8px;
  color: #b7791f;
  line-height: 1.45;
}

.plan-validation {
  margin: 14px 20px;
  padding: 14px 16px;
  border: 1px solid #f1b5b5;
  border-radius: 8px;
  background: #fff5f5;
  color: #a83232;
  font-weight: 700;
  line-height: 1.55;
}

.plan-form label {
  display: grid;
  grid-template-columns: 136px 1fr;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid #edf1f6;
  padding: 0 18px;
  color: #515b6d;
  font-size: 19px;
}

.plan-form label b {
  font-weight: 550;
}

.plan-form select,
.plan-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #9aa3b1;
  background: transparent;
  text-align: right;
  font-size: 17px;
}

.plan-form .combo-input {
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(234, 243, 255, 0.52), #fff);
  padding: 9px 34px 9px 12px;
  color: #707b8d;
  box-shadow: inset 0 0 0 1px #e2ebf7;
}

.age-combo {
  position: relative;
  display: block;
  min-width: 0;
}

.age-combo-toggle {
  position: absolute;
  right: 9px;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  transform: translateY(-50%);
}

.age-combo-toggle::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  border-top: 9px solid #6f7787;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}

.age-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: none;
  width: 168px;
  max-height: 238px;
  overflow-y: auto;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border: 1px solid #dfe8f5;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 18px 38px rgba(23, 42, 72, 0.18);
}

.age-combo.open .age-menu {
  display: grid;
}

.age-menu::before {
  content: "";
  position: absolute;
  right: 16px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-left: 1px solid #dfe8f5;
  border-top: 1px solid #dfe8f5;
  background: #fff;
  transform: rotate(45deg);
}

.age-menu button {
  min-height: 32px;
  border-radius: 10px;
  color: #526071;
  background: #f5f8fc;
  font-weight: 700;
}

.age-menu button:hover,
.age-menu button:focus-visible {
  color: #fff;
  background: var(--blue);
}

.plan-form input.field-error {
  border-radius: 10px;
  background: #fff0f0;
  color: var(--red);
  box-shadow: inset 0 0 0 2px rgba(214, 70, 79, 0.45);
}

.amount-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px 24px 130px;
  border-bottom: 1px solid #edf1f6;
}

.amount-chips button {
  border-radius: 10px;
  color: var(--blue);
  background: #eaf3ff;
  padding: 6px 13px;
  font-size: 16px;
  font-weight: 700;
}

.generate,
.dual-actions button {
  width: calc(100% - 28px);
  min-height: 58px;
  margin: 24px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #9dc8ff, #67a6ff);
  color: #fff;
  font-size: 21px;
  box-shadow: 0 14px 28px rgba(36, 120, 255, 0.2);
}

.dual-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 24px 14px;
}

.dual-actions button {
  width: 100%;
  margin: 0;
}

.dual-actions button:first-child {
  background: linear-gradient(135deg, #ffd5a5, #ffad55);
  box-shadow: 0 14px 28px rgba(255, 158, 47, 0.22);
}

.plan-custom-field {
  background: linear-gradient(90deg, #f8fbff, #fff);
}

.plan-output {
  margin: 18px 0 26px;
  scroll-margin-top: 78px;
  border: 3px solid #ffd34f;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 219, 74, 0.28), transparent 22%),
    #fffdf3;
  box-shadow: var(--shadow-md);
}

.proposal-cover {
  position: relative;
  overflow: hidden;
  padding: 14px 10px 10px;
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.18) 0 16px, transparent 16px 34px),
    linear-gradient(180deg, #ffde4b, #ffc22f);
}

.proposal-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 6px solid rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.proposal-ribbon {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  border: 4px solid #ffe8a0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #ff8f00, #ff6b00);
  padding: 10px 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 0 5px 0 rgba(181, 86, 0, 0.16);
}

.proposal-subtitle {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  border-radius: 12px;
  color: #ff7200;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
}

.proposal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 0;
  background: #fff;
}

.proposal-main {
  min-width: 0;
}

.plan-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: #f7faff;
}

.plan-metrics div {
  min-height: 76px;
  border: 1px solid #e5eefb;
  border-radius: 18px;
  background: #fff;
  padding: 13px;
}

.plan-metrics span {
  display: block;
  color: #7a8496;
  font-size: 12px;
}

.plan-metrics b {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.15;
}

.proposal-table-wrap {
  overflow-x: auto;
  border-top: 1px solid #ffd4a3;
  background: #fff;
}

.proposal-table {
  width: 760px;
  border-collapse: collapse;
  color: #4b5563;
  background: #fff;
  font-size: 12px;
  line-height: 1.2;
}

.proposal-table th,
.proposal-table td {
  border: 1px solid #e7e7e7;
  padding: 6px 5px;
  text-align: center;
  white-space: nowrap;
}

.proposal-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #fff;
  background: #ff7900;
  font-weight: 900;
}

.proposal-table tbody tr.milestone {
  background: #ffe1c7;
}

.proposal-table tbody tr:nth-child(even):not(.milestone) {
  background: #fffaf5;
}

.proposal-remarks {
  border-left: 2px solid #ffd4a3;
  background: #fffef7;
  padding: 12px 10px;
  color: #4a4a4a;
  text-align: center;
}

.proposal-remarks b {
  display: block;
  margin-bottom: 12px;
  color: #ff7200;
  font-size: 16px;
  font-weight: 900;
}

.proposal-remarks p {
  margin: 0 0 13px;
  font-size: 12px;
  line-height: 1.55;
}

.proposal-remarks p b {
  display: inline;
  margin: 0;
  color: #f00;
  font-size: 13px;
}

.proposal-warm {
  margin-top: 22px !important;
  color: #333;
}

.plan-table {
  width: calc(100% - 28px);
  margin: 14px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #e7edf6;
  border-radius: 16px;
}

.plan-table th,
.plan-table td {
  border-bottom: 1px solid #e7edf6;
  padding: 12px;
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
}

.plan-table tr:last-child th,
.plan-table tr:last-child td {
  border-bottom: 0;
}

.plan-table th {
  width: 46%;
  color: #5f6b7d;
  background: #f8fbff;
  font-weight: 650;
}

.plan-table td {
  color: #1f2a3d;
  font-weight: 750;
}

.plan-copy-block {
  margin: 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff7eb, #ffffff);
  padding: 15px;
}

.plan-copy-block b,
.plan-columns b {
  display: block;
  color: #172033;
  font-size: 16px;
}

.plan-copy-block p {
  margin: 8px 0 0;
  color: #566174;
  font-size: 14px;
  line-height: 1.6;
}

.plan-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px;
}

.plan-columns article {
  border: 1px solid #e7edf6;
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}

.plan-columns ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.plan-columns li {
  margin: 6px 0;
  color: #647084;
  font-size: 13px;
  line-height: 1.45;
}

.plan-output small {
  display: block;
  margin: 0 14px 14px;
  border-radius: 14px;
  color: #7a8496;
  background: #f7f9fc;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.plan-output-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 14px 16px;
}

.plan-output-actions button {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  padding: 8px;
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
}

.copy-plan {
  background: linear-gradient(135deg, #374a68, #17233a);
}

.download-plan {
  background: linear-gradient(135deg, var(--blue), #2359d8);
}

.share-plan {
  background: linear-gradient(135deg, #12a86b, #07844f);
}

.plan-output-actions button:disabled {
  opacity: 0.66;
}

@media (max-width: 420px) {
  .plan-output-actions {
    grid-template-columns: 1fr;
  }
}

.compare-sheet,
.member-help,
.detail-card {
  margin: 18px 0;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.compare-sheet h2,
.member-help h2,
.detail-card h3 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 23px;
  line-height: 1.25;
}

.compare-sheet p,
.member-help p,
.member-help li,
.detail-card p,
.detail-card li {
  color: #626c7e;
  font-size: 16px;
  line-height: 1.62;
}

.compare-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.compare-list article {
  border: 1px solid #e2eaf6;
  border-radius: 16px;
  background: #f8fbff;
  padding: 13px;
}

.compare-list b,
.compare-list span,
.compare-list small {
  display: block;
}

.compare-list b {
  color: #1b2535;
}

.compare-list span {
  margin-top: 5px;
  color: var(--blue);
  font-size: 13px;
}

.compare-list p {
  margin: 8px 0;
  font-size: 14px;
}

.compare-list small {
  color: #8d949e;
  line-height: 1.45;
}

.detail-card h2 {
  margin: 16px 0 12px;
  color: #101827;
  font-size: 25px;
  line-height: 1.3;
}

.detail-card ul {
  padding-left: 20px;
}

.detail-card a {
  display: block;
  margin-top: 22px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 92px;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.86);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 -14px 30px rgba(23, 42, 72, 0.08);
  backdrop-filter: blur(18px);
}

.tab {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
  border-radius: 24px;
  color: #4f5663;
  background: transparent;
  font-family: "LiSu", "STLiti", "Microsoft YaHei", "PingFang SC", serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tab.active {
  color: var(--blue);
  background: linear-gradient(180deg, #eef6ff, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(36, 120, 255, 0.12), 0 8px 18px rgba(36, 120, 255, 0.12);
}

.tab i {
  position: relative;
  display: grid;
  width: 40px;
  height: 38px;
  place-items: center;
  border-radius: 18px;
  color: currentColor;
}

.tab.active i {
  background: linear-gradient(145deg, #ffffff, #eaf3ff);
  box-shadow: inset 0 0 0 1px rgba(36, 120, 255, 0.12);
}

.tab i::before,
.tab i::after {
  content: "";
  position: absolute;
}

.tab-chat::before {
  width: 25px;
  height: 19px;
  border-radius: 14px;
  background: currentColor;
  box-shadow: inset -6px -5px 0 rgba(255, 255, 255, 0.28);
}

.tab-chat::after {
  left: 12px;
  bottom: 6px;
  border-top: 8px solid currentColor;
  border-right: 8px solid transparent;
}

.tab-plan::before {
  left: 9px;
  bottom: 8px;
  width: 5px;
  height: 18px;
  border-radius: 4px;
  background: currentColor;
  box-shadow: 9px -8px 0 currentColor, 18px -16px 0 currentColor;
}

.tab-plan::after {
  left: 8px;
  top: 10px;
  width: 28px;
  height: 16px;
  border-top: 3px solid var(--orange);
  border-right: 3px solid var(--orange);
  border-radius: 4px 8px 0 0;
  transform: skewY(-24deg);
}

.tab-grid::before {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  border: 3px solid currentColor;
  background:
    linear-gradient(90deg, transparent 44%, currentColor 44% 56%, transparent 56%),
    linear-gradient(0deg, transparent 44%, currentColor 44% 56%, transparent 56%);
}

.tab-grid::after {
  right: 7px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: -12px 12px 0 rgba(255, 158, 47, 0.68);
}

.tab-lib::before {
  width: 25px;
  height: 27px;
  border: 3px solid currentColor;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255, 158, 47, 0.15), transparent);
}

.tab-lib::after {
  top: 11px;
  width: 15px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor, 0 14px 0 var(--orange);
}

.tab-user::before {
  top: 5px;
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
}

.tab-user::after {
  bottom: 5px;
  width: 26px;
  height: 15px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  box-shadow: inset 0 4px 0 rgba(255, 158, 47, 0.18);
}

@media (hover: hover) {
  button:hover {
    filter: brightness(0.99);
  }

  .plan-card:hover,
  .news-card:hover,
  .entry-strip button:hover,
  .tool-section:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 520px) {
  .phone {
    padding: 0;
  }

  .miniapp {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }
}

@media (max-width: 370px) {
  .plan-card {
    grid-template-columns: 66px 1fr 16px;
    padding: 14px;
  }

  .plan-card b {
    font-size: 19px;
  }

  .tool-grid,
  .member-grid {
    gap: 18px 8px;
  }

  .register-card,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .tool-icon {
    width: 50px;
    height: 50px;
  }
}
.workflow-entry {
  margin: 0 16px 14px;
  padding: 16px;
  border: 1px solid #dce7f5;
  border-radius: 18px;
  background: linear-gradient(135deg, #f4f8ff, #fff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.workflow-entry h2, .workflow-head h2 { margin: 4px 0; color: var(--navy); font-size: 18px; }
.workflow-entry p, .workflow-head p { margin: 0; color: #71809a; font-size: 12px; line-height: 1.6; }
.workflow-entry .primary-btn { width: auto; margin: 0; padding: 10px 13px; white-space: nowrap; }
.eyebrow { color: #6382b3; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.workflow-screen { background: #f7f9fc; }
.workflow-head { margin: 0 16px 12px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgba(33, 59, 103, .07); }
.workflow-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.status-pill { padding: 5px 9px; border-radius: 99px; background: #e9f7ef; color: #23814c; font-size: 11px; font-weight: 700; }
.workflow-stats { display: flex; gap: 18px; margin-top: 14px; color: #8995a8; font-size: 11px; }
.workflow-stats b { color: var(--navy); font-size: 16px; margin-right: 3px; }
.workflow-toolbar { display: flex; gap: 8px; padding: 0 16px 12px; overflow-x: auto; }
.workflow-filter { border: 1px solid #dce4ef; border-radius: 99px; background: #fff; color: #687892; padding: 7px 14px; font-size: 12px; }
.workflow-filter.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.workflow-node-list { padding: 0 16px 24px; }
.workflow-node { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start; padding: 13px 12px; margin-bottom: 8px; border: 1px solid #e3e9f1; border-radius: 14px; background: #fff; }
.workflow-node::after { content: ''; position: absolute; left: 28px; top: 48px; height: 16px; border-left: 1px dashed #c8d4e3; }
.workflow-node:last-child::after { display: none; }
.node-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #fff; font-size: 12px; font-weight: 800; }
.node-icon.start, .node-icon.end { background: #7187a8; }
.node-icon.llm { background: #7c63d4; }
.node-icon.plugin { background: #2e91a5; }
.node-icon.code { background: #d28b3d; }
.node-icon.condition { background: #d16b83; }
.workflow-node h3 { margin: 0; color: #243958; font-size: 13px; }
.workflow-node p { margin: 4px 0 0; color: #8a97aa; font-size: 11px; line-height: 1.5; }
.node-type { color: #91a0b6; font-size: 10px; text-transform: uppercase; }

/* ===== P0 compliance / IA ===== */
.wx-subtitle {
  margin: 2px 0 12px;
  color: #6b778c;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.home-hero-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0 14px;
}

.hero-cta {
  min-height: 78px;
  border-radius: 18px;
  padding: 14px 12px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.hero-cta b {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.hero-cta span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.3;
  opacity: 0.85;
}

.hero-cta-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff5a5a, #e11d2e);
  box-shadow: 0 12px 24px rgba(225, 29, 46, 0.22);
}

.hero-cta-secondary {
  color: var(--navy);
  background: linear-gradient(135deg, #e8f1ff, #d7e8ff);
  border: 1px solid rgba(36, 120, 255, 0.18);
}

.ask-card-secondary {
  margin-top: 12px;
  opacity: 0.96;
}

.more-fold {
  margin: 12px 0 20px;
  border: 1px dashed rgba(120, 140, 170, 0.35);
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.9);
  padding: 0 12px 10px;
}

.more-fold > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 4px;
  color: #5b6b82;
  font-size: 13px;
  font-weight: 650;
}

.more-fold > summary::-webkit-details-marker {
  display: none;
}

.more-fold > summary::after {
  content: " ▾";
  color: #9aa6b8;
}

.more-fold[open] > summary::after {
  content: " ▴";
}

.more-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.plan-list-more {
  margin-top: 10px;
}

.plan-card-muted {
  opacity: 0.88;
  border-style: dashed;
}

.demo-plan-banner {
  position: sticky;
  top: 64px;
  z-index: 7;
  margin: 0 0 12px;
  border-radius: 12px;
  color: #8a4b00;
  background: linear-gradient(90deg, #fff3cd, #ffe8a3);
  border: 1px solid #f0d48a;
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.shareable-surface {
  position: relative;
  overflow: hidden;
}

.compliance-watermark {
  pointer-events: none;
  position: absolute;
  inset: 12% 4% auto;
  z-index: 2;
  color: rgba(16, 40, 77, 0.12);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  transform: rotate(-18deg);
  user-select: none;
  white-space: nowrap;
}

.compliance-watermark::before,
.compliance-watermark::after {
  content: "仅供展业辅助 · 非正式保险结论";
  display: block;
  margin-top: 42px;
  opacity: 0.85;
}

.moderation-banner {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid #f5b5b5;
  background: #fff1f1;
  color: #b42318;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 650;
}

.moderation-banner[hidden] {
  display: none !important;
}

.answer-card.is-blocked .action-row button,
.plan-output.is-blocked .plan-output-actions button {
  opacity: 0.45;
  cursor: not-allowed;
}

.demo-amount {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.demo-tag {
  display: inline-block;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  font-style: normal;
}

.plan-metrics .demo-amount {
  width: 100%;
}

.plan-metrics .demo-tag,
.proposal-remarks .demo-tag {
  margin-top: 4px;
}

.proposal-table .demo-tag {
  display: block;
  margin-top: 2px;
  white-space: nowrap;
}

.compliance-footnote {
  margin-top: 12px;
  color: #6b778c;
  font-size: 12px;
  line-height: 1.55;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
}

.confirm-modal[hidden] {
  display: none !important;
}

.confirm-dialog {
  width: min(420px, 100%);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
  padding: 20px 18px 16px;
}

.confirm-dialog h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 18px;
}

.confirm-dialog p {
  margin: 0;
  color: #3d4859;
  font-size: 14px;
  line-height: 1.65;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  margin-top: 16px;
}

.confirm-actions button {
  min-height: 42px;
  border-radius: 12px;
  font-weight: 700;
}

#confirmCancelBtn {
  color: #4b5563;
  background: #eef2f7;
}

.confirm-ok {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.share-card-preview {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid #e5eefb;
  background: #f8fbff;
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.share-card-preview .compliance-watermark {
  font-size: 12px;
  inset: 20% 0 auto;
}

.age-input { width: 100%; }


/* ===== P0.5 ===== */
.demo-data-switch {
  margin: 0 16px 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff8ef;
  border: 1px solid #fde68a;
}

.demo-switch-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
}

.demo-switch-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #a16207;
}

.assist-footer {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f3f6fb;
  color: #334155;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-align: center;
  border: 1px dashed #cbd5e1;
}

.confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 4px;
  font-size: 13px;
  font-weight: 650;
  color: #1e293b;
  line-height: 1.45;
}

.confirm-check input {
  margin-top: 2px;
}

.confirm-ok:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.audit-panel {
  margin: 16px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.audit-panel > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
}

.audit-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.audit-panel button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  background: #0f4c81;
  color: #fff;
  font-weight: 700;
}

.audit-status {
  display: block;
  margin-top: 8px;
  color: #0f766e;
  font-size: 12px;
}

.demo-switch-refresh {
  margin: 10px 0 0;
  color: #b45309;
  font-size: 12px;
  font-weight: 650;
}

.onboarding-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.45);
  box-sizing: border-box;
}

.onboarding-mask[hidden] {
  display: none !important;
}

.onboarding-card {
  width: min(390px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}

.onboarding-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.onboarding-skip {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 0;
}

.onboarding-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #0f172a;
}

.onboarding-card p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.onboarding-actions {
  margin-top: 16px;
}

.onboarding-next {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #0f4c81, #1d4ed8);
  color: #fff;
  font-weight: 750;
  font-size: 15px;
}

body.demo-data-off .demo-data-switch {
  background: #f8fafc;
  border-color: #cbd5e1;
}

body.demo-data-off .demo-switch-label {
  color: #334155;
}
