/* 岐黄拾遗 · Web 页面样式（由 7 个页面 wxss 自动转换合并：rpx -> rem） */

/* ==================== 首页 ==================== */
.idx {
  padding-top: 0.6rem;
}

/* ---------- 顶部题字 ---------- */
.hero {
  margin-bottom: 0.4rem;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-title {
  font-size: 0.68rem;
  letter-spacing: 0.16rem;
  font-weight: 600;
  color: #2b2118;
  text-shadow: 0.02rem 0.02rem 0 rgba(168, 50, 30, 0.12);
}

.mine-entry:active {
  opacity: 0.7;
}

.hero-sub {
  margin-top: 0.14rem;
  font-size: 0.26rem;
  letter-spacing: 0.06rem;
  color: #8a7963;
}

.hero-line {
  margin-top: 0.28rem;
  height: 0.03rem;
  background: linear-gradient(90deg, #a8321e, rgba(168, 50, 30, 0));
}

/* ---------- 节气条 ---------- */
.term-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 252, 243, 0.85);
  border: 0.02rem solid rgba(43, 33, 24, 0.28);
  border-left: 0.08rem solid #a8321e;
  border-radius: 0.06rem;
  padding: 0.24rem 0.28rem;
  margin-bottom: 0.4rem;
}

.term-bar:active {
  background: rgba(240, 230, 208, 0.95);
}

.term-left {
  padding-right: 0.24rem;
  border-right: 0.02rem dashed rgba(43, 33, 24, 0.2);
  text-align: center;
}

.term-name {
  font-size: 0.4rem;
  letter-spacing: 0.04rem;
  color: #a8321e;
  font-weight: 600;
  white-space: nowrap;
}

.term-date {
  font-size: 0.2rem;
  color: #8a7963;
  margin-top: 0.06rem;
  white-space: nowrap;
}

.term-right {
  flex: 1;
  padding-left: 0.24rem;
  overflow: hidden;
}

.term-classic {
  font-size: 0.26rem;
  color: #2b2118;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.term-from {
  font-size: 0.2rem;
  color: #8a7963;
  margin-top: 0.04rem;
}

.term-arrow {
  font-size: 0.4rem;
  color: #b7a68c;
  padding-left: 0.12rem;
}

/* ---------- 四宫格 ---------- */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.grid-item {
  width: 48%;
  box-sizing: border-box;
  background: rgba(255, 252, 243, 0.82);
  border: 0.02rem solid rgba(43, 33, 24, 0.3);
  border-radius: 0.08rem;
  padding: 0.34rem 0.26rem 0.3rem;
  margin-bottom: 0.26rem;
  position: relative;
  overflow: hidden;
}

.grid-item:active {
  transform: translateY(0.02rem);
  background: rgba(240, 230, 208, 0.95);
}

.grid-item::after {
  content: '';
  position: absolute;
  right: -0.4rem;
  bottom: -0.4rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 50, 30, 0.09), rgba(168, 50, 30, 0));
}

.grid-seal {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 0.06rem;
  background: #a8321e;
  color: #fdf8ec;
  font-size: 0.38rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.22rem;
}

.grid-name {
  font-size: 0.36rem;
  letter-spacing: 0.04rem;
  font-weight: 600;
  color: #2b2118;
}

.grid-desc {
  margin-top: 0.08rem;
  font-size: 0.22rem;
  color: #8a7963;
  line-height: 1.5;
}

/* ---------- 统计 ---------- */
.stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 0.2rem;
  padding: 0.28rem 0;
  border-top: 0.02rem solid rgba(43, 33, 24, 0.18);
  border-bottom: 0.02rem solid rgba(43, 33, 24, 0.18);
}

.stats:active {
  opacity: 0.7;
}

.stats-item {
  text-align: center;
  flex: 1;
}

.stats-num {
  font-size: 0.44rem;
  color: #a8321e;
  font-weight: 600;
  line-height: 1.2;
}

.stats-label {
  font-size: 0.22rem;
  color: #8a7963;
  margin-top: 0.04rem;
}

.stats-divider {
  width: 0.02rem;
  height: 0.56rem;
  background: rgba(43, 33, 24, 0.15);
}

.footer {
  margin-top: 0.44rem;
  text-align: center;
}

/* ==================== 名医馆 ==================== */
.docs {
  padding-top: 0.48rem;
}

.head {
  margin-bottom: 0.36rem;
}

.head-sub {
  margin-top: 0.12rem;
  font-size: 0.26rem;
  letter-spacing: 0.06rem;
  color: #8a7963;
}

.head .qh-divider {
  margin: 0.26rem 0 0.2rem;
}

.doc-card {
  background: rgba(255, 252, 243, 0.85);
  border: 0.02rem solid rgba(43, 33, 24, 0.32);
  border-radius: 0.1rem;
  padding: 0.34rem 0.32rem 0.3rem;
  margin-bottom: 0.32rem;
  position: relative;
  box-shadow: 0 0.08rem 0.24rem rgba(80, 60, 35, 0.09);
}

.doc-card:active {
  transform: translateY(0.02rem);
  background: rgba(245, 236, 216, 0.95);
}

.card-head {
  display: flex;
  align-items: center;
}

.doc-seal {
  width: 0.96rem;
  height: 0.96rem;
  flex-shrink: 0;
  border-radius: 0.08rem;
  background: #a8321e;
  color: #fdf8ec;
  font-size: 0.52rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.04rem 0.12rem rgba(168, 50, 30, 0.28);
}

.card-title {
  flex: 1;
  padding-left: 0.26rem;
}

.card-name {
  font-size: 0.44rem;
  letter-spacing: 0.08rem;
  font-weight: 600;
  color: #2b2118;
}

.card-meta {
  margin-top: 0.06rem;
  font-size: 0.24rem;
  color: #8a7963;
  letter-spacing: 0.02rem;
}

.card-arrow {
  font-size: 0.46rem;
  color: #c0b09a;
  padding-left: 0.12rem;
}

.card-tagline {
  margin-top: 0.26rem;
  font-size: 0.26rem;
  color: #a8321e;
  letter-spacing: 0.02rem;
}

.card-intro {
  margin-top: 0.12rem;
  font-size: 0.27rem;
  line-height: 1.8;
  color: #4a3d2e;
}

.card-ask {
  margin-top: 0.26rem;
  font-size: 0.22rem;
  color: #8a7963;
}

.card-chips {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.12rem;
}

.chip {
  font-size: 0.22rem;
  color: #4a3d2e;
  background: rgba(168, 50, 30, 0.07);
  border: 0.02rem solid rgba(168, 50, 30, 0.25);
  border-radius: 9.99rem;
  padding: 0.06rem 0.2rem;
  margin: 0 0.14rem 0.14rem 0;
}

.card-btn {
  margin-top: 0.2rem;
  height: 0.84rem;
  border-radius: 0.08rem;
  background: #2b2118;
  color: #f7f0dd;
  font-size: 0.3rem;
  letter-spacing: 0.08rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.docs-footer {
  text-align: center;
  margin-top: 0.2rem;
}

/* ==================== 名医对话 ==================== */
.chat-page {
  display: flex;
  flex-direction: column;
  height: 880px;
  box-sizing: border-box;
  overflow: hidden;
}

/* ========== 顶部名医条 ========== */
.doc-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0.18rem 0.32rem;
  background: rgba(255, 252, 243, 0.92);
  border-bottom: 0.02rem solid rgba(43, 33, 24, 0.18);
  z-index: 20;
}

.doc-seal {
  width: 0.68rem;
  height: 0.68rem;
  flex-shrink: 0;
  border-radius: 0.06rem;
  background: #a8321e;
  color: #fdf8ec;
  font-size: 0.38rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-info {
  flex: 1;
  padding-left: 0.2rem;
}

.doc-name {
  font-size: 0.31rem;
  letter-spacing: 0.04rem;
  font-weight: 600;
  color: #2b2118;
}

.doc-meta {
  font-size: 0.2rem;
  color: #8a7963;
  margin-top: 0.02rem;
}

.doc-reset {
  font-size: 0.23rem;
  color: #a8321e;
  border: 0.02rem solid rgba(168, 50, 30, 0.5);
  border-radius: 9.99rem;
  padding: 0.08rem 0.2rem;
}

.doc-reset:active {
  opacity: 0.6;
}

/* ========== 舞台 ========== */
.stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: #efe3cb;
  background-image:
    radial-gradient(circle at 50% 34%, rgba(255, 251, 238, 0.95) 0%, rgba(243, 232, 209, 0.4) 45%, rgba(230, 216, 190, 0.9) 100%),
    repeating-linear-gradient(0deg, rgba(150, 120, 80, 0.045) 0px, rgba(150, 120, 80, 0.045) 1px, transparent 1px, transparent 4px);
}

/* 人物脚下光影 */
.stage-glow {
  position: absolute;
  left: 50%;
  bottom: 1.58rem;
  width: 4.6rem;
  height: 0.9rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(43, 33, 24, 0.16), rgba(43, 33, 24, 0) 70%);
}

/* ========== 人物立绘 ========== */
.portrait {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  height: 66%;
  width: 6.4rem;
  animation: rise 0.9s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateX(-50%) translateY(0.5rem) scale(0.96); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.portrait-loading {
  position: absolute;
  bottom: 26%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.pl-seal {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0 auto 0.2rem;
  border-radius: 0.1rem;
  background: rgba(168, 50, 30, 0.25);
  color: #fdf8ec;
  font-size: 0.54rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pl-text {
  font-size: 0.24rem;
  color: #8a7963;
  letter-spacing: 0.04rem;
}


/* ========== 气泡通用 ========== */
.bubble {
  position: absolute;
  z-index: 10;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.bubble.active {
  opacity: 1;
  transform: scale(1);
}

.bubble.dim {
  opacity: 0.32;
  transform: scale(0.965);
}

.bubble-body {
  position: relative;
  padding: 0.22rem 0.26rem;
  font-size: 0.28rem;
  line-height: 1.75;
  letter-spacing: 0.01rem;
  border-radius: 0.14rem;
  word-break: break-all;
}

/* 名医气泡：宣纸白 + 墨边 */
.bubble-doctor {
  top: 2.5%;
  left: 6%;
  right: 12%;
  animation: popRight 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.bubble-doctor .bubble-body {
  background: rgba(255, 253, 246, 0.97);
  border: 0.02rem solid rgba(43, 33, 24, 0.35);
  color: #2b2118;
  box-shadow: 0 0.08rem 0.24rem rgba(80, 60, 35, 0.14);
}

@keyframes popRight {
  from { opacity: 0; transform: translate(0.16rem, 0.16rem) scale(0.94); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}

/* 用户气泡：舞台底部横条，位于人物下方 */
.bubble-user {
  left: 6%;
  right: 6%;
  bottom: 0.26rem;
  animation: popUp 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.bubble-user .bubble-body {
  display: flex;
  align-items: flex-start;
  background: rgba(255, 248, 236, 0.97);
  border: 0.02rem dashed rgba(168, 50, 30, 0.5);
  border-radius: 0.12rem;
  box-shadow: 0 0.06rem 0.18rem rgba(168, 50, 30, 0.1);
}

.who {
  flex-shrink: 0;
  margin-right: 0.16rem;
  font-size: 0.22rem;
  line-height: 1.6;
  color: #fdf8ec;
  background: #a8321e;
  border-radius: 0.06rem;
  padding: 0.02rem 0.12rem;
}

.bubble-text {
  flex: 1;
  font-size: 0.26rem;
  line-height: 1.7;
  color: #6b3a2a;
}

@keyframes popUp {
  from { opacity: 0; transform: translateY(0.2rem) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 气泡小尾巴 */
.tail {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.tail-doctor {
  left: 26%;
  bottom: -0.22rem;
  border-width: 0.22rem 0.14rem 0 0.14rem;
  border-color: rgba(43, 33, 24, 0.35) transparent transparent transparent;
}


.caret {
  color: #a8321e;
  animation: blink 0.9s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* ========== 快捷提问 ========== */
.quick-bar {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.16rem 0.3rem 0.1rem;
  background: rgba(255, 252, 243, 0.9);
}

.quick-item {
  display: inline-block;
  font-size: 0.24rem;
  color: #4a3d2e;
  background: rgba(168, 50, 30, 0.08);
  border: 0.02rem solid rgba(168, 50, 30, 0.3);
  border-radius: 9.99rem;
  padding: 0.12rem 0.26rem;
  margin-right: 0.18rem;
}

.quick-item:active {
  background: rgba(168, 50, 30, 0.2);
}

/* ========== 输入区 ========== */
.input-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0.14rem 0.3rem;
  background: rgba(255, 252, 243, 0.96);
  border-top: 0.02rem solid rgba(43, 33, 24, 0.18);
}

.input {
  flex: 1;
  height: 0.78rem;
  padding: 0 0.26rem;
  font-size: 0.29rem;
  color: #2b2118;
  background: #f4ebd8;
  border: 0.02rem solid rgba(43, 33, 24, 0.22);
  border-radius: 9.99rem;
  box-sizing: border-box;
}

.ph {
  color: #a89880;
  font-size: 0.28rem;
}

.send-btn {
  width: 0.88rem;
  height: 0.78rem;
  margin-left: 0.18rem;
  flex-shrink: 0;
  border-radius: 9.99rem;
  background: rgba(43, 33, 24, 0.25);
  color: #f7f0dd;
  font-size: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.send-btn.on {
  background: #a8321e;
}

.send-btn:active {
  opacity: 0.8;
}

.chat-note {
  flex-shrink: 0;
  text-align: center;
  font-size: 0.2rem;
  color: #9c8b73;
  padding: 0.08rem 0 0.12rem;
  padding-bottom: calc(0.12rem + env(safe-area-inset-bottom));
  background: rgba(255, 252, 243, 0.96);
}

.hidden-canvas {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 460px;
  height: 660px;
}

/* ==================== 医案剧本 ==================== */
.story-page {
  display: flex;
  flex-direction: column;
  height: 880px;
  box-sizing: border-box;
}

/* ========== 顶部 ========== */
.top-bar {
  flex-shrink: 0;
  padding: 0.22rem 0.34rem 0.18rem;
  background: rgba(255, 252, 243, 0.94);
  border-bottom: 0.02rem solid rgba(43, 33, 24, 0.18);
  position: relative;
}

.top-left {
  display: inline-block;
}

.story-title {
  font-size: 0.38rem;
  letter-spacing: 0.08rem;
  font-weight: 600;
  color: #2b2118;
}

.story-meta {
  font-size: 0.21rem;
  color: #8a7963;
  margin-top: 0.06rem;
  letter-spacing: 0.02rem;
}

.top-right {
  position: absolute;
  right: 0.34rem;
  top: 0.26rem;
}

.act-label {
  font-size: 0.22rem;
  color: #a8321e;
  border: 0.02rem solid rgba(168, 50, 30, 0.5);
  border-radius: 9.99rem;
  padding: 0.06rem 0.2rem;
  text-align: center;
}

.switch-btn {
  margin-top: 0.12rem;
  text-align: center;
  font-size: 0.21rem;
  color: #6b5a45;
  letter-spacing: 0.02rem;
  border: 0.02rem solid rgba(43, 33, 24, 0.28);
  border-radius: 9.99rem;
  padding: 0.06rem 0.18rem;
  background: rgba(255, 252, 243, 0.9);
}

.switch-btn:active {
  opacity: 0.6;
}

.progress {
  margin-top: 0.18rem;
  height: 0.06rem;
  border-radius: 9.99rem;
  background: rgba(43, 33, 24, 0.1);
  overflow: hidden;
}

.progress-inner {
  height: 100%;
  background: linear-gradient(90deg, #a8321e, #c96a4a);
  border-radius: 9.99rem;
  transition: width 0.45s ease;
}

/* ========== 舞台 ========== */
.stage {
  flex: 1;
  overflow: hidden;
}

.stage-list {
  padding: 0.34rem 0.34rem 0.2rem;
}

.stage-item {
  animation: fadeUp 0.42s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(0.18rem); }
  to { opacity: 1; transform: translateY(0); }
}

.narration {
  font-size: 0.27rem;
  line-height: 1.9;
  color: #6b5a45;
  letter-spacing: 0.02rem;
  text-align: center;
  padding: 0.22rem 0.2rem;
  margin-bottom: 0.3rem;
  border-top: 0.02rem solid rgba(43, 33, 24, 0.12);
  border-bottom: 0.02rem solid rgba(43, 33, 24, 0.12);
  white-space: pre-wrap;
}

.dialogue {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.34rem;
}

.dlg-avatar {
  width: 0.68rem;
  height: 0.68rem;
  flex-shrink: 0;
  border-radius: 0.06rem;
  background: #a8321e;
  color: #fdf8ec;
  font-size: 0.36rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dlg-body {
  flex: 1;
  padding-left: 0.2rem;
}

.dlg-speaker {
  font-size: 0.22rem;
  color: #a8321e;
  letter-spacing: 0.04rem;
  margin-bottom: 0.08rem;
}

.dlg-text {
  background: rgba(255, 253, 246, 0.95);
  border: 0.02rem solid rgba(43, 33, 24, 0.25);
  border-radius: 0.1rem;
  border-top-left-radius: 0.02rem;
  padding: 0.22rem 0.26rem;
  font-size: 0.29rem;
  line-height: 1.8;
  color: #2b2118;
  white-space: pre-wrap;
}

.know {
  background: rgba(255, 250, 236, 0.98);
  border: 0.02rem solid rgba(168, 50, 30, 0.4);
  border-radius: 0.1rem;
  padding: 0.3rem 0.28rem;
  margin-bottom: 0.34rem;
  position: relative;
  box-shadow: 0 0.06rem 0.2rem rgba(168, 50, 30, 0.08);
}

.know-head {
  display: flex;
  align-items: center;
  margin-bottom: 0.22rem;
}

.know-tag {
  font-size: 0.2rem;
  color: #fdf8ec;
  background: #a8321e;
  border-radius: 0.04rem;
  padding: 0.04rem 0.14rem;
  letter-spacing: 0.02rem;
}

.know-title {
  font-size: 0.27rem;
  color: #2b2118;
  letter-spacing: 0.03rem;
  padding-left: 0.16rem;
}

.know-classic {
  font-size: 0.32rem;
  line-height: 1.85;
  color: #2b2118;
  letter-spacing: 0.03rem;
  text-align: center;
  padding: 0 0.1rem;
}

.know-from {
  text-align: right;
  font-size: 0.22rem;
  color: #8a7963;
  margin-top: 0.1rem;
}

.know-divider {
  margin: 0.22rem 0;
}

.know-plain {
  font-size: 0.27rem;
  line-height: 1.85;
  color: #4a3d2e;
}

.know-tip {
  margin-top: 0.18rem;
  font-size: 0.25rem;
  color: #a8321e;
  line-height: 1.7;
}

.ending {
  margin-bottom: 0.34rem;
}

.ending-text {
  font-size: 0.29rem;
  line-height: 1.9;
  color: #2b2118;
  white-space: pre-wrap;
  padding: 0.26rem 0.28rem;
  background: rgba(255, 253, 246, 0.95);
  border: 0.02rem solid rgba(43, 33, 24, 0.3);
  border-radius: 0.1rem;
}

.ending-reward {
  margin-top: 0.24rem;
  text-align: center;
  font-size: 0.3rem;
  letter-spacing: 0.04rem;
  color: #a8321e;
}

.stage-bottom {
  height: 0.2rem;
}

/* ========== 操作区 ========== */
.action-bar {
  flex-shrink: 0;
  padding: 0.2rem 0.34rem 0.24rem;
  padding-bottom: calc(0.24rem + env(safe-area-inset-bottom));
  background: rgba(255, 252, 243, 0.96);
  border-top: 0.02rem solid rgba(43, 33, 24, 0.18);
}

.choice {
  display: flex;
  align-items: center;
  border: 0.02rem solid rgba(43, 33, 24, 0.35);
  border-radius: 0.1rem;
  background: rgba(255, 253, 246, 0.95);
  padding: 0.24rem 0.26rem;
  margin-bottom: 0.18rem;
}

.choice:last-child {
  margin-bottom: 0;
}

.choice:active {
  background: #efe3cb;
  transform: translateY(0.02rem);
}

.choice-idx {
  width: 0.46rem;
  height: 0.46rem;
  flex-shrink: 0;
  margin-right: 0.2rem;
  border-radius: 50%;
  background: #a8321e;
  color: #fdf8ec;
  font-size: 0.24rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-text {
  flex: 1;
  font-size: 0.28rem;
  color: #2b2118;
  line-height: 1.6;
}

.next-btn {
  width: 100%;
}

.finish-bar {
  display: flex;
  gap: 0.2rem;
}

.finish-btn {
  flex: 1;
}

.modal-note {
  text-align: center;
  margin-top: 0.18rem;
}

.share-canvas {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 620px;
  height: 496px;
}

/* ==================== 体质小测 ==================== */
.test-page {
  padding-top: 0.48rem;
}

/* ========== 答题 ========== */
.t-head {
  text-align: center;
  margin-bottom: 0.4rem;
}

.t-title {
  font-size: 0.52rem;
  letter-spacing: 0.12rem;
  font-weight: 600;
  color: #2b2118;
}

.t-sub {
  margin-top: 0.12rem;
  font-size: 0.25rem;
  letter-spacing: 0.04rem;
  color: #8a7963;
}

.dots {
  display: flex;
  justify-content: center;
  margin-top: 0.28rem;
}

.dot {
  width: 0.52rem;
  height: 0.06rem;
  border-radius: 9.99rem;
  background: rgba(43, 33, 24, 0.15);
  margin: 0 0.08rem;
  transition: background 0.3s;
}

.dot.on {
  background: #a8321e;
}

.q-card {
  background: rgba(255, 252, 243, 0.85);
  border: 0.02rem solid rgba(43, 33, 24, 0.3);
  border-radius: 0.1rem;
  padding: 0.36rem 0.3rem 0.3rem;
}

.q-idx {
  font-size: 0.22rem;
  color: #8a7963;
  letter-spacing: 0.02rem;
}

.q-title {
  margin-top: 0.14rem;
  font-size: 0.36rem;
  line-height: 1.6;
  letter-spacing: 0.02rem;
  color: #2b2118;
}

.q-options {
  margin-top: 0.32rem;
}

.opt {
  display: flex;
  align-items: center;
  border: 0.02rem solid rgba(43, 33, 24, 0.28);
  border-radius: 0.1rem;
  background: rgba(255, 253, 246, 0.9);
  padding: 0.24rem 0.24rem;
  margin-bottom: 0.2rem;
  transition: all 0.2s;
}

.opt:active {
  transform: translateY(0.02rem);
}

.opt.sel {
  border-color: #a8321e;
  background: rgba(168, 50, 30, 0.1);
}

.opt-mark {
  width: 0.52rem;
  height: 0.52rem;
  flex-shrink: 0;
  margin-right: 0.2rem;
  border-radius: 50%;
  border: 0.02rem solid rgba(168, 50, 30, 0.6);
  color: #a8321e;
  font-size: 0.26rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opt.sel .opt-mark {
  background: #a8321e;
  color: #fdf8ec;
}

.opt-text {
  flex: 1;
  font-size: 0.28rem;
  line-height: 1.6;
  color: #2b2118;
}

.t-note {
  margin-top: 0.32rem;
  text-align: center;
}

/* ========== 结果 ========== */
.r-head {
  text-align: center;
  padding: 0.12rem 0 0.36rem;
}

.r-label {
  font-size: 0.24rem;
  letter-spacing: 0.06rem;
  color: #8a7963;
}

.r-name {
  margin-top: 0.16rem;
  font-size: 0.6rem;
  letter-spacing: 0.12rem;
  font-weight: 600;
  color: #a8321e;
}

.r-source {
  margin-top: 0.1rem;
  font-size: 0.22rem;
  color: #8a7963;
  letter-spacing: 0.02rem;
}

.r-card {
  background: rgba(255, 252, 243, 0.9);
  border: 0.02rem solid rgba(43, 33, 24, 0.3);
  border-radius: 0.1rem;
  padding: 0.32rem 0.3rem;
}

.r-outline {
  font-size: 0.25rem;
  line-height: 1.85;
  color: #6b5a45;
}

.r-classic {
  font-size: 0.34rem;
  line-height: 1.9;
  letter-spacing: 0.04rem;
  text-align: center;
  color: #2b2118;
}

.r-from {
  text-align: right;
  font-size: 0.22rem;
  color: #8a7963;
  margin-top: 0.12rem;
}

.r-plain {
  font-size: 0.27rem;
  line-height: 1.85;
  color: #4a3d2e;
}

.r-tip {
  margin-top: 0.28rem;
  padding: 0.26rem 0.28rem;
  border-left: 0.08rem solid #a8321e;
  background: rgba(168, 50, 30, 0.06);
  border-radius: 0.06rem;
}

.r-tip-label {
  font-size: 0.22rem;
  color: #a8321e;
  letter-spacing: 0.04rem;
  margin-bottom: 0.08rem;
}

.r-tip-text {
  font-size: 0.28rem;
  line-height: 1.75;
  color: #2b2118;
}

.r-actions {
  display: flex;
  gap: 0.2rem;
  margin-top: 0.4rem;
}

.r-btn {
  flex: 1;
}

.modal-note {
  text-align: center;
  margin-top: 0.18rem;
}

.share-canvas {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 620px;
  height: 496px;
}

/* ==================== 节气打卡 ==================== */
.solar-page {
  padding-top: 0.4rem;
}

/* ========== 节气泡 ========== */
.term-hero {
  position: relative;
  text-align: center;
  padding: 0.44rem 0.3rem 0.4rem;
  background: rgba(255, 252, 243, 0.88);
  border: 0.02rem solid rgba(43, 33, 24, 0.3);
  border-radius: 0.1rem;
  overflow: hidden;
}

.term-name {
  font-size: 0.76rem;
  letter-spacing: 0.16rem;
  font-weight: 600;
  color: #2b2118;
  text-indent: 0.16rem;
}

.term-date {
  margin-top: 0.14rem;
  font-size: 0.26rem;
  color: #8a7963;
  letter-spacing: 0.02rem;
}

.term-next {
  margin-top: 0.1rem;
  font-size: 0.24rem;
  color: #a8321e;
  letter-spacing: 0.02rem;
}

.hero-seal {
  position: absolute;
  right: 0.26rem;
  top: 0.26rem;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 0.06rem;
  background: #a8321e;
  color: #fdf8ec;
  font-size: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== 内经卡 ========== */
.classic-card {
  margin-top: 0.3rem;
  padding: 0.34rem 0.3rem;
  background: rgba(255, 250, 236, 0.96);
  border: 0.02rem solid rgba(168, 50, 30, 0.35);
  border-radius: 0.1rem;
  box-shadow: 0 0.06rem 0.2rem rgba(168, 50, 30, 0.07);
}

.cc-tag {
  display: inline-block;
  font-size: 0.2rem;
  color: #fdf8ec;
  background: #a8321e;
  border-radius: 0.04rem;
  padding: 0.04rem 0.14rem;
  letter-spacing: 0.03rem;
}

.cc-text {
  margin-top: 0.24rem;
  font-size: 0.34rem;
  line-height: 1.9;
  letter-spacing: 0.04rem;
  text-align: center;
  color: #2b2118;
}

.cc-from {
  text-align: right;
  font-size: 0.22rem;
  color: #8a7963;
  margin-top: 0.12rem;
}

.cc-divider {
  margin: 0.24rem 0;
}

.cc-plain {
  font-size: 0.27rem;
  line-height: 1.85;
  color: #4a3d2e;
}

.cc-tip {
  margin-top: 0.18rem;
  font-size: 0.25rem;
  line-height: 1.7;
  color: #a8321e;
}

/* ========== 今日功课 ========== */
.task-card {
  margin-top: 0.3rem;
  padding: 0.32rem 0.3rem;
  background: rgba(255, 252, 243, 0.88);
  border: 0.02rem solid rgba(43, 33, 24, 0.3);
  border-radius: 0.1rem;
}

.task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.task-title {
  font-size: 0.3rem;
  letter-spacing: 0.04rem;
  color: #2b2118;
  font-weight: 600;
}

.task-status {
  font-size: 0.21rem;
  color: #8a7963;
  border: 0.02rem solid rgba(43, 33, 24, 0.25);
  border-radius: 9.99rem;
  padding: 0.04rem 0.18rem;
}

.task-status.done {
  color: #a8321e;
  border-color: rgba(168, 50, 30, 0.6);
  background: rgba(168, 50, 30, 0.08);
}

.task-copy {
  margin-top: 0.24rem;
  padding: 0.22rem 0.24rem;
  background: rgba(43, 33, 24, 0.04);
  border-left: 0.06rem solid rgba(43, 33, 24, 0.35);
  border-radius: 0.06rem;
  font-size: 0.3rem;
  line-height: 1.85;
  letter-spacing: 0.03rem;
  color: #2b2118;
}

.task-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 1.3rem;
  margin-top: 0.24rem;
  padding: 0.22rem 0.24rem;
  font-size: 0.3rem;
  line-height: 1.85;
  letter-spacing: 0.03rem;
  color: #2b2118;
  background: #f7f0dd;
  border: 0.02rem solid rgba(43, 33, 24, 0.28);
  border-radius: 0.08rem;
}

.ph {
  color: #a89880;
  font-size: 0.27rem;
  letter-spacing: 0.01rem;
}

.match-bar {
  margin-top: 0.22rem;
  height: 0.08rem;
  border-radius: 9.99rem;
  background: rgba(43, 33, 24, 0.1);
  overflow: hidden;
}

.match-inner {
  height: 100%;
  border-radius: 9.99rem;
  background: linear-gradient(90deg, #b7a68c, #a8321e);
  transition: width 0.25s ease;
}

.match-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.12rem;
  font-size: 0.24rem;
  color: #8a7963;
}

.match-text .ok {
  color: #a8321e;
}

.perfect {
  color: #a8321e;
  font-size: 0.24rem;
  letter-spacing: 0.02rem;
}

.submit-btn {
  margin-top: 0.26rem;
  width: 100%;
}

.done-box {
  margin-top: 0.24rem;
  padding: 0.26rem 0.24rem;
  background: rgba(168, 50, 30, 0.06);
  border-radius: 0.08rem;
}

.done-text {
  font-size: 0.3rem;
  line-height: 1.85;
  letter-spacing: 0.03rem;
  color: #2b2118;
}

.done-hint {
  margin-top: 0.14rem;
  font-size: 0.24rem;
  color: #8a7963;
}

/* ========== 节气一览 ========== */
.term-list {
  display: flex;
  flex-wrap: wrap;
}

.term-chip {
  width: 22%;
  box-sizing: border-box;
  text-align: center;
  font-size: 0.25rem;
  color: #6b5a45;
  padding: 0.14rem 0;
  margin: 0 1.5% 0.14rem;
  border: 0.02rem solid rgba(43, 33, 24, 0.18);
  border-radius: 0.08rem;
  background: rgba(255, 252, 243, 0.7);
}

.term-chip.on {
  color: #fdf8ec;
  background: #a8321e;
  border-color: #a8321e;
  font-weight: 600;
}

/* ========== 打卡记录 ========== */
.log-item {
  padding: 0.22rem 0.24rem;
  margin-bottom: 0.18rem;
  background: rgba(255, 252, 243, 0.85);
  border: 0.02rem solid rgba(43, 33, 24, 0.22);
  border-radius: 0.08rem;
}

.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.log-term {
  font-size: 0.26rem;
  color: #a8321e;
  letter-spacing: 0.03rem;
}

.log-time {
  font-size: 0.21rem;
  color: #9c8b73;
}

.log-text {
  margin-top: 0.1rem;
  font-size: 0.26rem;
  line-height: 1.7;
  color: #4a3d2e;
}

.footer-note {
  margin-top: 0.4rem;
  text-align: center;
}

.modal-note {
  text-align: center;
  margin-top: 0.18rem;
}

.share-canvas {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 620px;
  height: 496px;
}

/* ==================== 我的 ==================== */
.mine-page {
  padding-top: 0.48rem;
}

.mine-head {
  margin-bottom: 0.34rem;
}

.mine-sub {
  margin-top: 0.1rem;
  font-size: 0.25rem;
  letter-spacing: 0.06rem;
  color: #8a7963;
}

/* ========== 统计 ========== */
.stat-grid {
  display: flex;
  background: rgba(255, 252, 243, 0.85);
  border: 0.02rem solid rgba(43, 33, 24, 0.28);
  border-radius: 0.1rem;
  padding: 0.28rem 0;
}

.stat-cell {
  flex: 1;
  text-align: center;
  position: relative;
}

.stat-cell + .stat-cell::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.12rem;
  bottom: 0.12rem;
  width: 0.02rem;
  background: rgba(43, 33, 24, 0.12);
}

.stat-num {
  font-size: 0.48rem;
  font-weight: 600;
  color: #a8321e;
  line-height: 1.15;
}

.stat-label {
  margin-top: 0.06rem;
  font-size: 0.22rem;
  color: #8a7963;
  letter-spacing: 0.02rem;
}

/* ========== 徽章 ========== */
.badge-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.badge {
  width: 48%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0.22rem 0.2rem;
  margin-bottom: 0.22rem;
  background: rgba(255, 252, 243, 0.6);
  border: 0.02rem solid rgba(43, 33, 24, 0.16);
  border-radius: 0.1rem;
  opacity: 0.55;
}

.badge.on {
  opacity: 1;
  background: rgba(255, 250, 236, 0.95);
  border-color: rgba(168, 50, 30, 0.45);
  box-shadow: 0 0.04rem 0.14rem rgba(168, 50, 30, 0.1);
}

.badge-seal {
  width: 0.6rem;
  height: 0.6rem;
  flex-shrink: 0;
  border-radius: 0.06rem;
  background: rgba(43, 33, 24, 0.25);
  color: #fdf8ec;
  font-size: 0.28rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge.on .badge-seal {
  background: #a8321e;
}

.badge-info {
  flex: 1;
  padding-left: 0.18rem;
  overflow: hidden;
}

.badge-name {
  font-size: 0.27rem;
  color: #2b2118;
  letter-spacing: 0.02rem;
  font-weight: 600;
}

.badge-desc {
  margin-top: 0.04rem;
  font-size: 0.2rem;
  color: #8a7963;
  line-height: 1.4;
}

/* ========== 卡片列表 ========== */
.card-item {
  display: flex;
  align-items: center;
  padding: 0.26rem 0.24rem;
  margin-bottom: 0.2rem;
  background: rgba(255, 252, 243, 0.88);
  border: 0.02rem solid rgba(43, 33, 24, 0.25);
  border-radius: 0.1rem;
}

.card-item:active {
  background: #efe3cb;
  transform: translateY(0.02rem);
}

.card-type {
  width: 0.96rem;
  height: 0.96rem;
  flex-shrink: 0;
  border-radius: 0.08rem;
  color: #fdf8ec;
  font-size: 0.24rem;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 0.08rem;
  box-sizing: border-box;
}

.card-type.story { background: #2b2118; }
.card-type.test { background: #a8321e; }
.card-type.solar { background: #4a6b52; }

.card-main {
  flex: 1;
  padding-left: 0.24rem;
  overflow: hidden;
}

.card-title {
  font-size: 0.3rem;
  letter-spacing: 0.03rem;
  color: #2b2118;
  font-weight: 600;
}

.card-classic {
  margin-top: 0.08rem;
  font-size: 0.24rem;
  color: #6b5a45;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.card-time {
  margin-top: 0.08rem;
  font-size: 0.2rem;
  color: #9c8b73;
}

.card-arrow {
  font-size: 0.4rem;
  color: #c0b09a;
  padding-left: 0.12rem;
}

.tap-hint {
  text-align: center;
  margin-top: 0.08rem;
}

/* ========== 空态 ========== */
.empty {
  text-align: center;
  padding: 0.6rem 0.3rem;
  background: rgba(255, 252, 243, 0.7);
  border: 0.02rem dashed rgba(43, 33, 24, 0.25);
  border-radius: 0.1rem;
}

.empty-seal {
  width: 0.96rem;
  height: 0.96rem;
  margin: 0 auto 0.26rem;
  border-radius: 0.08rem;
  background: rgba(168, 50, 30, 0.15);
  color: #a8321e;
  font-size: 0.48rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-text {
  font-size: 0.3rem;
  color: #2b2118;
  letter-spacing: 0.03rem;
}

.empty-hint {
  margin-top: 0.14rem;
  font-size: 0.24rem;
  color: #8a7963;
  line-height: 1.7;
}

.empty-btn {
  margin-top: 0.34rem;
}

/* ========== 底部 ========== */
.footer-note {
  margin-top: 0.46rem;
  text-align: center;
}

.danger-btn {
  margin-top: 0.24rem;
  border-color: rgba(168, 50, 30, 0.5);
  color: #a8321e;
}

.share-canvas {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 620px;
  height: 496px;
}

