:root {
  --bg: #0f1115;
  --bg-soft: #171a20;
  --card: #1a1e26;
  --card-strong: #141820;
  --line: rgba(216, 188, 120, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f4f1ea;
  --text-muted: #b8b1a2;
  --text-soft: #8f8a80;
  --gold: #e3c48a;
  --gold-deep: #b98b3f;
  --gold-soft: #f2dfb4;
  --danger: #d97f7f;
  --success: #8ac79f;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 20% -10%, rgba(227, 196, 138, 0.16), transparent 38%),
    radial-gradient(circle at 90% 110%, rgba(185, 139, 63, 0.18), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 14px 14px 88px;
  position: relative;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.top-nav h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: 0.2px;
}

.sub {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 12px;
}

.badge-chip {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(227, 196, 138, 0.12), rgba(185, 139, 63, 0.06));
  color: var(--gold-soft);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)), var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 12px;
}

.card.gold {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(227, 196, 138, 0.16), rgba(26, 30, 38, 0.5) 40%),
    var(--card-strong);
}

.card h2,
.card h3,
.section-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fbf7ed;
}

.row {
  display: flex;
  gap: 10px;
}

.row > * {
  flex: 1;
}

.price-big {
  font-size: 33px;
  font-weight: 680;
  letter-spacing: 0.2px;
}

.price-big small {
  font-size: 18px;
  color: var(--text-muted);
}

.delta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--danger);
}

.delta.up {
  color: var(--success);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
  margin-right: 6px;
}

.tag.gold {
  color: var(--gold-soft);
  border-color: var(--line);
  background: rgba(227, 196, 138, 0.08);
}

.tag.danger {
  color: #f0b6b6;
  border-color: rgba(217, 127, 127, 0.35);
  background: rgba(217, 127, 127, 0.12);
}

.tag.success {
  color: #bde6c8;
  border-color: rgba(138, 199, 159, 0.35);
  background: rgba(138, 199, 159, 0.12);
}

.ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ai-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-soft);
  font-weight: 620;
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6df, #d3a95d 70%);
  box-shadow: 0 0 10px rgba(227, 196, 138, 0.75);
}

.ai-summary {
  margin: 0 0 8px;
  line-height: 1.55;
  color: var(--text);
  font-size: 14px;
}

.list {
  margin: 0;
  padding-left: 16px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.btn {
  width: 100%;
  height: 46px;
  border-radius: 13px;
  border: 0;
  font-size: 15px;
  font-weight: 620;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(110deg, #f1ddb2, #d0a65d 55%, #b88034);
  color: #20180a;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  color: var(--gold-soft);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  color: var(--text);
}

.btn-stack {
  display: grid;
  gap: 8px;
}

.segment {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px;
  display: inline-flex;
  gap: 4px;
}

.segment span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-soft);
  cursor: pointer;
}

.segment .active {
  background: rgba(227, 196, 138, 0.16);
  color: var(--gold-soft);
}

.spark {
  margin-top: 10px;
  height: 84px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(227, 196, 138, 0.09), transparent 75%),
    rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(227, 196, 138, 0.08);
  position: relative;
  overflow: hidden;
}

.spark svg {
  width: 100%;
  height: 100%;
}

.chart-wrap {
  margin-top: 10px;
  height: 180px;
  border-radius: 12px;
  border: 1px solid rgba(227, 196, 138, 0.12);
  background:
    linear-gradient(180deg, rgba(227, 196, 138, 0.12), rgba(227, 196, 138, 0.02) 42%, transparent),
    rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.chart-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-info {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  border-radius: 15px;
  border: 1px solid rgba(227, 196, 138, 0.22);
  background: rgba(15, 17, 21, 0.62);
  backdrop-filter: blur(6px);
  padding: 8px 10px 9px;
  z-index: 3;
}

.chart-info-date {
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.2;
}

.chart-info-price {
  margin-top: 3px;
  color: #f2e4c6;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.2px;
  line-height: 1.25;
}

.chart-info-delta {
  margin-top: 2px;
  font-size: 12px;
  color: #d8d2c5;
}

.chart-tooltip {
  position: absolute;
  min-width: 128px;
  max-width: 170px;
  pointer-events: none;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(227, 196, 138, 0.3);
  background: rgba(15, 17, 21, 0.96);
  color: var(--text);
  font-size: 11px;
  line-height: 1.45;
  transform: translate(-50%, -110%);
  z-index: 3;
  display: none;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-soft);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quick {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.quick h4 {
  margin: 0;
  font-size: 13px;
}

.quick p {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--text-soft);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.metric {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 10px;
}

.metric .k {
  color: var(--text-soft);
  font-size: 11px;
}

.metric .v {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 620;
}

.table-like {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table-like td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.table-like tr:last-child td {
  border-bottom: 0;
}

.right {
  text-align: right;
}

.form-item {
  margin-bottom: 12px;
}

.label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  color: var(--text);
  padding: 11px 12px;
  font-size: 14px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
}

.option.active {
  border-color: var(--line);
  color: var(--gold-soft);
  background: rgba(227, 196, 138, 0.09);
}

.bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f0ddb2, #c99a4e);
}

.ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 4px auto 10px;
  background:
    conic-gradient(#e5c991 0 45%, #c79a56 45% 75%, #8f6a34 75% 100%);
  display: grid;
  place-items: center;
}

.ring::after {
  content: "预算结构";
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--text-muted);
  background: #11151b;
  border: 1px solid var(--line-soft);
}

.member-hero {
  text-align: left;
  padding: 16px;
  border-radius: var(--radius-xl);
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 0%, rgba(227, 196, 138, 0.25), transparent 42%),
    linear-gradient(140deg, #1f232b, #11151d 65%);
}

.member-hero h2 {
  margin: 0;
  font-size: 22px;
}

.member-hero p {
  margin: 8px 0 0;
  color: #d6ccb8;
  font-size: 13px;
}

.price-plan {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 9px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-plan.selectable {
  cursor: pointer;
}

.price-plan.active {
  border-color: var(--line);
  background: linear-gradient(140deg, rgba(227, 196, 138, 0.22), rgba(255, 255, 255, 0.01));
  box-shadow: 0 0 0 1px rgba(227, 196, 138, 0.18) inset;
  position: relative;
}

.price-plan.reco {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}

.price-plan.active::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f2dfb4;
  box-shadow: 0 0 0 4px rgba(227, 196, 138, 0.18);
}

.price-plan .left h4 {
  margin: 0 0 5px;
  font-size: 14px;
}

.price-plan .left p {
  margin: 0;
  font-size: 11px;
  color: var(--text-soft);
}

.price-plan .money {
  font-size: 20px;
  font-weight: 680;
}

.notice {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.6;
}

.bottom-tab {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  width: min(430px, calc(100vw - 16px));
  background: rgba(15, 17, 21, 0.92);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 7px 8px;
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.tab {
  text-align: center;
  padding: 7px 0;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 11px;
}

.tab.active {
  background: rgba(227, 196, 138, 0.15);
  color: var(--gold-soft);
}

.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ad-box {
  border: 1px dashed rgba(227, 196, 138, 0.5);
  border-radius: 12px;
  padding: 11px;
  color: #d8c39e;
  background: rgba(227, 196, 138, 0.06);
  font-size: 12px;
}

.list-card {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 9px;
  background: rgba(255, 255, 255, 0.02);
}

.list-card h4 {
  margin: 0;
  font-size: 14px;
}

.list-card h4[data-faq-q] {
  cursor: pointer;
}

.list-card .meta {
  color: var(--text-soft);
  margin-top: 6px;
  font-size: 12px;
}

.hit-head {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 14px;
  margin-bottom: 12px;
  background: linear-gradient(130deg, rgba(227, 196, 138, 0.18), rgba(185, 139, 63, 0.07), rgba(17, 21, 29, 0.9));
}

.hit-head h2 {
  margin: 0;
  font-size: 19px;
}

.hit-head p {
  margin: 6px 0 0;
  color: #eadfc7;
  font-size: 13px;
}

@media (max-width: 360px) {
  .price-big {
    font-size: 29px;
  }

  .page {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.profile-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  background:
    radial-gradient(circle at 95% 5%, rgba(227, 196, 138, 0.2), transparent 45%),
    linear-gradient(135deg, #1a1f28, #12161d 65%);
  margin-bottom: 12px;
}

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

.profile-hero p {
  margin: 6px 0 0;
  color: #d8cdb7;
  font-size: 13px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.kpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}

.kpi .n {
  font-size: 18px;
  font-weight: 650;
}

.kpi .t {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-soft);
}

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

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
}

.menu-item small {
  color: var(--text-soft);
  font-size: 12px;
}

.alert-item {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 8px;
}

.alert-item h4 {
  margin: 0;
  font-size: 14px;
}

.alert-meta {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 12px;
}

.alert-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.mini-btn {
  border: 1px solid var(--line-soft);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
}

.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  padding: 11px 0;
}

.switch-row:last-child {
  border-bottom: 0;
}

.toggle {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}

.toggle::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d2c4aa;
  position: absolute;
  left: 2px;
  top: 2px;
}

.toggle.on {
  border-color: var(--line);
  background: rgba(227, 196, 138, 0.18);
}

.toggle.on::after {
  left: 20px;
  background: #f2dfb4;
}

.timeline {
  position: relative;
  padding-left: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(227, 196, 138, 0.28);
}

.timeline-item {
  position: relative;
  margin-bottom: 12px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6ad63;
}

.timeline-item h4 {
  margin: 0;
  font-size: 13px;
}

.timeline-item p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.code-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-soft);
  background: rgba(227, 196, 138, 0.08);
}

.stat4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.test-banner {
  border: 1px solid rgba(227, 196, 138, 0.35);
  background: rgba(227, 196, 138, 0.1);
  color: var(--gold-soft);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 12px;
}

.status-card {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.status-card h4 {
  margin: 0;
  font-size: 14px;
}

.status-card p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-soft);
}

.inline-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.inline-btn {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.scene-item {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 10px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  line-height: 1.45;
}

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

.warn-line {
  font-size: 12px;
  color: #d6b98a;
  margin-top: 8px;
}

.form-help {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-soft);
}

.error-text {
  margin-top: 6px;
  color: #f0b6b6;
  font-size: 12px;
}

.history-card {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 9px;
}

.history-card h4 {
  margin: 0;
  font-size: 14px;
}

.history-card p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
}

.kv {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 13px;
  margin-bottom: 8px;
}

.kv .k {
  color: var(--text-soft);
}

.kv .v {
  color: var(--text);
}
