/* ============================================================
   知遇 · 单人版 C 端
   个人主页 / 对话 / 会员 / 订单 / 我的
   ============================================================ */

.icon-btn.gold {
  color: var(--gold-deep);
}

.appbar-member {
  color: var(--gold-deep);
  font-weight: 700;
}

/* ---------------- 个人主页 ---------------- */

.profile-hero {
  position: relative;
  margin: 0 calc(var(--page-pad) * -1);
  padding: 18px var(--page-pad) 16px;
  overflow: hidden;
  border-radius: 0 0 26px 26px;
  background:
    radial-gradient(120% 95% at 92% 4%, rgba(176, 138, 79, 0.22), transparent 46%),
    radial-gradient(80% 70% at 6% 100%, rgba(79, 209, 224, 0.07), transparent 52%),
    linear-gradient(145deg, #1d4f44 0%, #143f37 46%, #0d2c27 100%);
  color: #f5edde;
  box-shadow: var(--shadow-lg);
}

.profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.55;
  pointer-events: none;
}

.ph-orbit {
  position: absolute;
  top: -58px;
  right: -38px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(176, 138, 79, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.ph-orbit::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.ph-kicker-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ph-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: #d9c49a;
}

.ph-kicker .gold-line {
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.ph-share {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f1e7d5;
}

.ph-share .ic {
  width: 16px;
  height: 16px;
}

.ph-main {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.ph-copy {
  min-width: 0;
  flex: 1;
}

.ph-copy h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ph-title {
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #c3b394;
}

.ph-tagline {
  max-width: 208px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.7;
  color: #e8deca;
}

.ph-portrait {
  position: relative;
  flex: 0 0 auto;
  padding-bottom: 4px;
}

.ph-portrait .portrait {
  box-shadow:
    0 0 0 1px rgba(176, 138, 79, 0.5),
    0 12px 32px rgba(0, 0, 0, 0.28);
}

.ph-socials {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 9px;
  color: #a9b9b0;
}

.ph-socials b {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: #f1e7d5;
  font-variant-numeric: tabular-nums;
}

.ph-actions {
  position: relative;
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.ph-actions .btn {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 11px;
  font-size: 12px;
  flex: 1;
}

.ph-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 9px;
  color: #a9b9b0;
}

/* ---------------- 分区 ---------------- */

.profile-section {
  margin-top: 26px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 12px;
}

.section-head h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.section-index {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

.bio-copy p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
}

.bio-copy p:first-child {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.profile-quote {
  position: relative;
  margin: 16px 0 0;
  padding: 12px 14px 12px 16px;
  border-left: 2px solid var(--gold);
  background: rgba(244, 236, 220, 0.5);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

/* ---------------- 履历 ---------------- */

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

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 8px;
  left: 5px;
  width: 1px;
  background: linear-gradient(var(--gold), var(--line));
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding-bottom: 16px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -16.5px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: var(--paper);
}

.tl-year {
  padding-top: 1px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

.tl-body b {
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.tl-body p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ---------------- 成绩 ---------------- */

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.profile-stat {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.profile-stat span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: var(--ink-3);
}

.award-list {
  margin-top: 12px;
  padding: 2px 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.award-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.award-item:last-child {
  border-bottom: 0;
}

.award-year {
  flex: 0 0 34px;
  padding-top: 1px;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

.award-main b {
  display: block;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.award-main span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: var(--ink-3);
}

/* ---------------- 故事 ---------------- */

.story-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  box-shadow: var(--shadow);
}

.story-card:active {
  background: var(--surface-2);
}

.story-no {
  flex: 0 0 auto;
  padding-top: 1px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

.story-main {
  flex: 1;
  min-width: 0;
}

.story-main b {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.story-main p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--ink-3);
}

.story-card > .ic {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--ink-3);
}

/* ---------------- 作品 / 问题 ---------------- */

.work-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.work-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
}

.work-item:last-child {
  border-bottom: 0;
}

.work-type {
  flex: 0 0 auto;
  width: 40px;
  padding: 3px 0;
  border-radius: 7px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 9px;
  font-weight: 650;
  text-align: center;
}

.work-main {
  flex: 1;
  min-width: 0;
}

.work-main b {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.work-main span {
  display: block;
  overflow: hidden;
  font-size: 10px;
  color: var(--ink-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-year {
  flex: 0 0 auto;
  font-size: 10px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.question-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.question-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
}

.question-item:last-child {
  border-bottom: 0;
}

.question-item:active {
  background: var(--surface-2);
}

.question-item .qi-index {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--gold-deep);
}

.question-item .ic {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: var(--ink-3);
}

/* ---------------- 会员卡 ---------------- */

.member-card {
  position: relative;
  margin-top: 26px;
  padding: 17px 16px 15px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(110% 90% at 92% 4%, rgba(176, 138, 79, 0.22), transparent 46%),
    linear-gradient(145deg, #1d4f44, #0e2f2a);
  color: #f5edde;
  box-shadow: var(--shadow-lg);
}

.member-card::after {
  content: "";
  position: absolute;
  top: -52px;
  right: -38px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(176, 138, 79, 0.24);
  border-radius: 50%;
  pointer-events: none;
}

.mc-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
}

.mc-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(176, 138, 79, 0.5);
  color: var(--gold);
}

.mc-icon .ic {
  width: 18px;
  height: 18px;
}

.mc-top h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.mc-top p {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.55;
  color: #b7c5bd;
}

.mc-price-row {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 13px;
}

.mc-price b {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: #f3ead8;
}

.mc-price span {
  font-size: 10px;
  color: #b7c5bd;
}

.mc-original {
  font-size: 10px;
  color: #8fa198;
  text-decoration: line-through;
}

.mc-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(176, 138, 79, 0.2);
  color: #e6cfa4;
  font-size: 9px;
  font-weight: 650;
}

.member-card .btn {
  position: relative;
  margin-top: 12px;
  min-height: 42px;
}

.mc-note {
  position: relative;
  margin-top: 8px;
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
  color: #8fa198;
}

/* ---------------- 智能体说明 ---------------- */

.agent-info {
  margin-top: 24px;
  padding: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(244, 236, 220, 0.4);
}

.ai-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 9px;
  color: var(--ink-3);
}

.agent-info p {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--ink-2);
}

.agent-info .text-link {
  margin-top: 6px;
  color: var(--danger);
  font-size: 10px;
}

.page-note {
  margin: 24px 6px 4px;
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
  color: var(--ink-3);
}

.page-note b {
  color: var(--ink-2);
  font-weight: 600;
}

/* ---------------- 对话 ---------------- */

.chat-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 16px 10px;
  scrollbar-width: none;
}

.chat-scroll::-webkit-scrollbar {
  display: none;
}

.chat-intro {
  position: relative;
  margin-bottom: 18px;
  padding: 17px 16px 15px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(110% 90% at 92% 4%, rgba(176, 138, 79, 0.2), transparent 46%),
    linear-gradient(150deg, #1d4f44, #0e2f2a);
  color: #f5edde;
}

.chat-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
}

.chat-intro .ci-ai {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #d9c49a;
}

.chat-intro .ci-ai .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--jade);
}

.chat-intro h2 {
  position: relative;
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.chat-intro > p {
  position: relative;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.75;
  color: #cfdbd4;
}

.intro-qs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.intro-q {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #f1e7d5;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
}

.intro-q .ic {
  width: 14px;
  height: 14px;
  margin-left: auto;
  opacity: 0.6;
}

.ci-member {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 9px;
  color: #c9b892;
}

.msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.msg .portrait {
  margin-top: 2px;
}

.msg-main {
  min-width: 0;
  max-width: calc(100% - 38px);
}

.msg-bubble {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px 15px 15px 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.msg-text {
  font-size: 13px;
  line-height: 1.72;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-user {
  justify-content: flex-end;
}

.msg-user .msg-main {
  max-width: 82%;
}

.msg-user .msg-bubble {
  border: 0;
  border-radius: 15px 4px 15px 15px;
  background: var(--pine);
  box-shadow: none;
}

.msg-user .msg-text {
  color: #fdfaf2;
}

.msg-time {
  margin-top: 4px;
  font-size: 9px;
  color: var(--ink-3);
}

.msg-user .msg-time {
  text-align: right;
}

.typing-bubble {
  padding: 12px 14px;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 10px;
}

.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-3);
  animation: typing 1.2s infinite ease-in-out;
}

.typing i:nth-child(2) {
  animation-delay: 0.16s;
}

.typing i:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes typing {
  0%,
  70%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  35% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.cite {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin-top: 9px;
  padding: 5px 8px;
  border: 1px solid rgba(176, 138, 79, 0.28);
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 9px;
  font-weight: 600;
  text-align: left;
}

.cite .ic {
  width: 12px;
  height: 12px;
}

.cite span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 5px;
}

.msg-tool {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink-3);
}

.msg-tool .ic {
  width: 15px;
  height: 15px;
}

.msg-tool.active {
  background: var(--pine-soft);
  color: var(--pine);
}

.msg-tools .msg-time {
  margin: 0 0 0 auto;
  padding-right: 2px;
}

.followups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.followup {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.4;
  text-align: left;
}

.followup:active {
  background: var(--pine-soft);
  border-color: var(--pine-soft);
}

.tool-card {
  margin-top: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
}

.tool-card-head {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.tool-card-head .ic {
  width: 12px;
  height: 12px;
}

.tool-work {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px dashed var(--line);
  font-size: 11px;
}

.tool-work:first-of-type {
  border-top: 0;
}

.tool-work b {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

.tool-work span {
  color: var(--ink-3);
  font-size: 9px;
  white-space: nowrap;
}

.lead-card {
  margin-top: 9px;
  padding: 10px;
  border: 1px dashed rgba(176, 138, 79, 0.5);
  border-radius: 11px;
  background: var(--gold-soft);
}

.lead-card p {
  font-size: 10px;
  line-height: 1.6;
  color: var(--gold-deep);
}

.lead-card .btn {
  margin-top: 7px;
}

.error-bubble {
  border-color: rgba(178, 59, 59, 0.25);
  background: var(--danger-soft);
}

.error-bubble .msg-text {
  color: var(--danger);
}

.error-actions {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}

.paywall-card {
  margin: 18px 0 6px;
  padding: 17px 16px 15px;
  border: 1px solid rgba(176, 138, 79, 0.35);
  border-radius: 18px;
  background:
    radial-gradient(110% 90% at 92% 4%, rgba(176, 138, 79, 0.18), transparent 46%),
    linear-gradient(150deg, #1d4f44, #0e2f2a);
  color: #f5edde;
  text-align: center;
}

.paywall-card .pw-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0 auto 9px;
  border-radius: 50%;
  border: 1px solid rgba(176, 138, 79, 0.5);
  color: var(--gold);
}

.paywall-card .pw-icon .ic {
  width: 20px;
  height: 20px;
}

.paywall-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.paywall-card > p {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.7;
  color: #cfdbd4;
}

.pw-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-top: 11px;
}

.pw-price b {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  color: #f3ead8;
}

.pw-price span {
  font-size: 10px;
  color: #b7c5bd;
}

.pw-price em {
  font-style: normal;
  font-size: 9px;
  color: #c9b892;
}

.paywall-card .btn {
  margin-top: 11px;
  min-height: 42px;
}

.pw-note {
  margin-top: 7px;
  font-size: 8px;
  color: #8fa198;
}

.login-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
}

.login-card .ic {
  width: 24px;
  height: 24px;
  margin: 0 auto 8px;
  color: var(--pine);
}

.login-card b {
  display: block;
  font-size: 14px;
  font-weight: 680;
}

.login-card p {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink-3);
}

.login-card .btn {
  margin-top: 11px;
}

.composer {
  flex: 0 0 auto;
  padding: 7px 12px calc(9px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.98);
}

.quota-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 3px 5px;
  font-size: 9px;
  color: var(--ink-3);
}

.quota-line b {
  color: var(--pine);
  font-weight: 650;
}

.quota-line.low b {
  color: var(--warning);
}

.quota-line.out b {
  color: var(--danger);
}

.quota-line.member b {
  color: var(--gold-deep);
}

.quick-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.quick-row::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 10px;
  white-space: nowrap;
}

.composer-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.composer textarea {
  flex: 1;
  min-height: 44px;
  max-height: 108px;
  padding: 11px 13px;
  resize: none;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  font-size: 16px;
  line-height: 1.4;
  outline: none;
}

.composer textarea:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(23, 76, 67, 0.1);
}

.composer textarea:disabled {
  background: var(--paper-deep);
  color: var(--ink-3);
}

.send-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pine);
  color: #fdfaf2;
}

.send-btn .ic {
  width: 19px;
  height: 19px;
}

.send-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.send-btn:not(:disabled):active {
  background: var(--pine-deep);
}

.composer-note {
  margin-top: 5px;
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-3);
}

/* ---------------- 会员页 ---------------- */

.member-hero {
  padding: 4px 2px 0;
}

.mh-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
}

.member-hero h1 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
}

.member-hero > p {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-3);
}

.mh-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
}

.mh-status.active {
  background: var(--jade-soft);
  color: var(--jade-deep);
}

.mh-status.expired {
  background: var(--warning-soft);
  color: var(--warning);
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.plan-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  box-shadow: var(--shadow);
}

.plan-card.on {
  border-color: var(--pine);
  background: var(--pine-soft);
}

.pc-radio {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
}

.plan-card.on .pc-radio {
  border-color: var(--pine);
}

.plan-card.on .pc-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pine);
}

.pc-main {
  flex: 1;
  min-width: 0;
}

.pc-main b {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.pc-main span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: var(--ink-3);
}

.pc-price {
  flex: 0 0 auto;
  text-align: right;
}

.pc-price b {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.pc-price s {
  display: block;
  font-size: 9px;
  color: var(--ink-3);
}

.pc-badge {
  position: absolute;
  top: -1px;
  right: 11px;
  padding: 2px 7px;
  border-radius: 0 0 7px 7px;
  background: var(--gold);
  color: #241a0d;
  font-size: 8px;
  font-weight: 700;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-2);
}

.benefit-item .ic {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--jade-deep);
}

.member-cta {
  margin-top: 14px;
}

.member-note {
  margin-top: 8px;
  font-size: 9px;
  line-height: 1.65;
  text-align: center;
  color: var(--ink-3);
}

.member-orders-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 12px;
  text-align: left;
}

.member-orders-link .ic {
  width: 15px;
  height: 15px;
  color: var(--ink-3);
}

/* ---------------- 我的 ---------------- */

.me-card {
  position: relative;
  padding: 18px 16px 14px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(110% 90% at 92% 4%, rgba(176, 138, 79, 0.2), transparent 46%),
    linear-gradient(150deg, #1d4f44, #0e2f2a);
  color: #f5edde;
}

.me-card::after {
  content: "";
  position: absolute;
  top: -64px;
  right: -46px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(176, 138, 79, 0.24);
  border-radius: 50%;
}

.me-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.me-top .portrait {
  box-shadow: 0 0 0 1px rgba(176, 138, 79, 0.5);
}

.me-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

.me-note {
  margin-top: 3px;
  font-size: 9px;
  color: #b7c5bd;
}

.me-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.me-stat {
  padding: 9px 4px;
  text-align: center;
}

.me-stat + .me-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.me-stat b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.me-stat span {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  color: #b7c5bd;
}

.member-status-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ms-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.ms-icon .ic {
  width: 18px;
  height: 18px;
}

.ms-main {
  flex: 1;
  min-width: 0;
}

.ms-main b {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.ms-main span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--ink-3);
}

.menu-group {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: left;
}

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

.menu-row:active {
  background: var(--surface-2);
}

.menu-row > .ic:first-child {
  width: 18px;
  height: 18px;
  color: var(--pine);
}

.menu-row .mr-main {
  flex: 1;
  min-width: 0;
}

.menu-row .mr-main b {
  display: block;
  font-weight: 600;
}

.menu-row .mr-main span {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  color: var(--ink-3);
}

.menu-row .mr-meta {
  font-size: 10px;
  color: var(--ink-3);
}

.menu-row > .ic:last-child {
  width: 15px;
  height: 15px;
  color: var(--ink-3);
}

.menu-row.danger .mr-main b,
.menu-row.danger > .ic:first-child {
  color: var(--danger);
}

/* ---------------- 订单 ---------------- */

.orders-head {
  padding: 4px 2px 0;
}

.orders-head h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.orders-head p {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--ink-3);
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.order-card {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  box-shadow: var(--shadow);
}

.order-card:active {
  background: var(--surface-2);
}

.oc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.oc-top b {
  font-size: 14px;
  font-weight: 650;
}

.oc-no {
  margin-top: 4px;
  font-size: 9px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.oc-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}

.oc-amount {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.oc-expire {
  font-size: 9px;
  color: var(--ink-3);
}

.order-empty {
  margin-top: 18px;
}

/* ---------------- 设置 / 帮助 ---------------- */

.setting-group {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.setting-group-title {
  padding: 13px 14px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

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

.setting-row .sr-main {
  flex: 1;
  min-width: 0;
}

.setting-row .sr-main b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.setting-row .sr-main span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.55;
  color: var(--ink-3);
}

.setting-row .ic {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
}

.setting-row.danger .sr-main b {
  color: var(--danger);
}

.faq {
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .ic {
  width: 15px;
  height: 15px;
  color: var(--ink-3);
  transition: transform 0.18s ease;
}

.faq[open] summary .ic {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 14px 13px;
  font-size: 11px;
  line-height: 1.75;
  color: var(--ink-2);
}

.agent-source-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgba(244, 236, 220, 0.45);
  font-size: 10px;
  line-height: 1.65;
  color: var(--ink-2);
}

.agent-source-note .ic {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--gold-deep);
}

/* ---------------- 弹层内容 ---------------- */

.share-card {
  margin-bottom: 14px;
  padding: 15px;
  border-radius: 14px;
  background:
    radial-gradient(100% 90% at 90% 4%, rgba(176, 138, 79, 0.22), transparent 46%),
    linear-gradient(145deg, #1d4f44, #0e2f2a);
  color: #f5edde;
}

.share-card .sc-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-card .sc-top .portrait {
  --p-size: 40px;
}

.share-card .sc-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.share-card .sc-role {
  font-size: 9px;
  color: #c3b394;
}

.share-card .sc-quote {
  margin-top: 11px;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.7;
  color: #e8deca;
}

.share-card .sc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 8px;
  color: #a9b9b0;
}

.report-reasons {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.report-reason {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  font-size: 12px;
  text-align: left;
}

.report-reason.on {
  border-color: var(--pine);
  background: var(--pine-soft);
}

.report-reason .radio {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
}

.report-reason.on .radio {
  border-color: var(--pine);
}

.report-reason.on .radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pine);
}

.source-box {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.source-box h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.source-box p {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre-wrap;
}

.source-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 9px;
  color: var(--ink-3);
}

.source-meta .ic {
  width: 12px;
  height: 12px;
}

.story-sheet-head {
  padding: 2px 2px 12px;
}

.ss-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
}

.story-sheet-head h2 {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}

.story-sheet-head p {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink-3);
}

.story-sheet-body p {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
}

.pay-summary {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
}

.pay-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 11px;
}

.pay-row:last-of-type {
  border-bottom: 0;
}

.pay-row span {
  color: var(--ink-3);
}

.pay-row b {
  max-width: 68%;
  font-weight: 600;
  text-align: right;
}

.pay-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.pay-total span {
  font-size: 11px;
  color: var(--ink-3);
}

.pay-total b {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
}

.pay-agreement {
  margin: 13px 0;
}

.pay-demo {
  margin-top: 8px;
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
  color: var(--ink-3);
}

.pay-success {
  padding: 8px 4px 12px;
  text-align: center;
}

.ps-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--jade-soft);
  color: var(--jade-deep);
}

.ps-icon .ic {
  width: 26px;
  height: 26px;
}

.pay-success h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.pay-success p {
  margin-top: 5px;
  font-size: 11px;
  color: var(--ink-2);
}

.ps-order {
  margin: 10px auto 0;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 9px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.pay-success .btn {
  margin-top: 12px;
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 360px) {
  .ph-copy h1 {
    font-size: 28px;
  }

  .ph-tagline {
    font-size: 12px;
  }

  .profile-hero {
    padding-left: 15px;
    padding-right: 15px;
  }

  .member-hero h1 {
    font-size: 23px;
  }

  .pc-price b {
    font-size: 18px;
  }
}
