:root {
  color-scheme: light;
  --ink: #512d18;
  --red: #b82b1d;
  --gold: #f7d270;
  --brown: #8a421d;
  --paper: #eac790;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: #eac790;
  color: var(--ink);
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

.phone-shell {
  position: relative;
  --h5w: min(100vw, 430px);
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--paper);
}

.notice-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 22px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.72);
  color: #fff3d6;
  font-size: 11px;
  line-height: 22px;
  white-space: nowrap;
}

.notice-bar span {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  animation: marquee 28s linear infinite;
}

[hidden] {
  display: none !important;
}

.home-view {
  padding-bottom: 20px;
  background: #eac790 url("./assets/calculate-ui/index_bg-COjJXnFS.png") top center / 100% auto no-repeat;
}

.hero {
  position: relative;
  height: 620px;
  padding-top: 32px;
}

.header-bg {
  height: 104px;
  background: url("./assets/calculate-ui/header_bg-WtVHq9YV.png") center / 100% 100% no-repeat;
}

.hero-book {
  position: absolute;
  top: 66px;
  left: 50%;
  z-index: 3;
  width: 70%;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
}

.hero-book img,
.navbar-image,
.image-button img,
.result-image,
.form-title,
.form-footer {
  display: block;
  width: 100%;
}

.hero-book img {
  width: auto;
  max-width: 100%;
  height: 350px;
  object-fit: contain;
}

.hero-cycle {
  position: absolute;
  top: 160px;
  z-index: 2;
  width: 23%;
  height: 280px;
}

.hero-cycle img {
  position: absolute;
  width: 100%;
  object-fit: contain;
  animation: fadeScale 2.1s ease both;
}

.hero-cycle-left {
  left: 14px;
}

.hero-cycle-right {
  right: 14px;
}

.navbar-image {
  position: absolute;
  top: 430px;
  left: 50%;
  width: 80%;
  transform: translateX(-50%);
}

.image-button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.image-button img {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.start-button {
  position: absolute;
  top: 475px;
  left: 50%;
  width: 80%;
  transform: translateX(-50%);
  animation: pulseCenteredButton 1s linear infinite;
}

.submit-btn,
.bottom-start,
.calc-button,
.unlock-button,
.pay-submit,
.advisor-button {
  animation: pulseButton 1s linear infinite;
}

.order-link {
  position: absolute;
  top: 575px;
  left: 50%;
  border: 0;
  background: transparent;
  color: #b60000;
  font-size: 15px;
  text-decoration: underline;
  transform: translateX(-50%);
}

.stage-panel {
  position: relative;
  height: 506px;
  margin-top: 12px;
  background: url("./assets/calculate-ui/stage_bg-C-PRobDw.png") center / 100% 100% no-repeat;
}

.person-frame {
  position: absolute;
  top: 143px;
  left: 45px;
  width: 174px;
  height: 282px;
  padding: 20px 26px;
  background: url("./assets/calculate-ui/stage_person_bg-D6sbhpHl.png") center / 100% 100% no-repeat;
}

.person-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stage-copy {
  position: absolute;
  top: 108px;
  right: 28px;
  width: 164px;
  text-align: center;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
}

.stage-copy p {
  margin: 3px 0 8px;
}

.stage-tag {
  display: inline-block;
  width: 112px;
  margin-top: 6px;
  min-height: 31px;
}

.stage-tag img {
  width: 100%;
}

.life-panel {
  position: relative;
  height: calc(var(--h5w) * 1250 / 750);
  margin-top: calc(var(--h5w) * 48 / 750);
  background: url("./assets/calculate-ui/life_bg-CUfNKoOV.png") center / 100% 100% no-repeat;
}

.life-active-image {
  position: absolute;
  top: calc(var(--h5w) * 240 / 750);
  left: calc(var(--h5w) * 143 / 750);
  z-index: 5;
  width: calc(var(--h5w) * 274 / 750);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 7px 9px rgba(87, 37, 14, 0.28));
}

.life-round-image {
  position: absolute;
  z-index: 4;
  width: calc(var(--h5w) * 134 / 750);
  height: calc(var(--h5w) * 90 / 750);
  object-fit: contain;
  animation: pulseButton 1.2s ease-in-out infinite;
}

.round-yinyuan {
  top: calc(var(--h5w) * 192 / 750);
  left: calc(var(--h5w) * 158 / 750);
}

.round-shiye {
  top: calc(var(--h5w) * 328 / 750);
  left: calc(var(--h5w) * 48 / 750);
}

.round-caiyun {
  top: calc(var(--h5w) * 260 / 750);
  right: calc(var(--h5w) * 50 / 750);
}

.life-grid {
  display: none;
}

.life-grid span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-right: 1px solid #c89440;
  border-bottom: 1px solid #c89440;
}

.life-grid .chosen {
  grid-column: span 2;
  color: transparent;
}

.long-art {
  position: relative;
  margin-top: calc(var(--h5w) * 48 / 750);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.progress-art {
  height: calc(var(--h5w) * 1380 / 750);
  background-image: url("./assets/calculate-ui/progress_bg-CfKja9kf.png");
}

.port-art {
  height: calc(var(--h5w) * 1020 / 750);
  background-image: url("./assets/calculate-ui/port_bg-JCv4BadY.png");
}

.open-art {
  height: calc(var(--h5w) * 900 / 750);
  background-image: url("./assets/calculate-ui/open_bg-BG8aSzxr.png");
}

.progress-point {
  position: absolute;
  left: calc(var(--h5w) * 80 / 750);
  width: calc(var(--h5w) * 96 / 750);
  height: calc(var(--h5w) * 96 / 750);
  object-fit: contain;
  filter: drop-shadow(0 5px 6px rgba(80, 35, 16, 0.2));
}

.point-1 { top: calc(var(--h5w) * 240 / 750); }
.point-2 { top: calc(var(--h5w) * 415 / 750); }
.point-3 { top: calc(var(--h5w) * 585 / 750); }
.point-4 { top: calc(var(--h5w) * 760 / 750); }
.point-5 { top: calc(var(--h5w) * 935 / 750); }

.port-line,
.port-word {
  position: absolute;
  object-fit: contain;
}

.port-line {
  left: calc(var(--h5w) * 250 / 750);
  width: calc(var(--h5w) * 64 / 750);
  height: calc(var(--h5w) * 64 / 750);
}

.line-1 { top: calc(var(--h5w) * 440 / 750); }
.line-2 { top: calc(var(--h5w) * 500 / 750); }
.line-3 { top: calc(var(--h5w) * 560 / 750); }
.line-4 { top: calc(var(--h5w) * 620 / 750); }
.line-5 { top: calc(var(--h5w) * 680 / 750); }

.port-word {
  width: calc(var(--h5w) * 180 / 750);
  height: calc(var(--h5w) * 34 / 750);
  filter: drop-shadow(0 7px 8px rgba(80, 35, 16, 0.28));
}

.word-1 { top: calc(var(--h5w) * 450 / 750); right: calc(var(--h5w) * 70 / 750); }
.word-2 { top: calc(var(--h5w) * 510 / 750); left: calc(var(--h5w) * 70 / 750); }
.word-3 { top: calc(var(--h5w) * 570 / 750); left: calc(var(--h5w) * 70 / 750); }
.word-4 { top: calc(var(--h5w) * 630 / 750); right: calc(var(--h5w) * 70 / 750); }
.word-5 { top: calc(var(--h5w) * 693 / 750); left: calc(var(--h5w) * 70 / 750); }

.open-rounds {
  position: absolute;
  top: calc(var(--h5w) * 560 / 750);
  left: calc(var(--h5w) * 40 / 750);
  right: calc(var(--h5w) * 40 / 750);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.open-rounds img {
  width: calc(var(--h5w) * 100 / 750);
  height: calc(var(--h5w) * 100 / 750);
  object-fit: contain;
  animation: floatUp 1.5s linear 1.2s infinite;
}

.open-rounds img:nth-child(2),
.open-rounds img:nth-child(3) {
  margin-top: calc(var(--h5w) * -100 / 750);
}

.open-rounds img:nth-child(1),
.open-rounds img:nth-child(4) {
  margin-top: calc(var(--h5w) * 40 / 750);
}

.bottom-start {
  position: absolute;
  left: calc(var(--h5w) * 24 / 750);
  right: calc(var(--h5w) * 24 / 750);
  bottom: calc(var(--h5w) * 20 / 750);
}

.site-footer {
  padding: 24px 18px 92px;
  color: #7a421e;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}

.site-footer p {
  margin: 0;
}

.side-rail {
  position: fixed;
  right: max(8px, calc((100vw - 430px) / 2 - 42px));
  top: 56%;
  z-index: 32;
  display: grid;
  transform: translateY(-50%);
}

.side-rail button {
  width: 34px;
  min-height: 70px;
  border: 1px solid rgba(255, 234, 184, 0.45);
  background: rgba(88, 43, 23, 0.86);
  color: #fff4d2;
  font-size: 12px;
  writing-mode: vertical-rl;
  letter-spacing: 0;
}

.modal-overlay,
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.64);
}

.book-modal {
  position: relative;
  width: min(92vw, 396px);
  height: 492px;
  perspective: 1200px;
  animation: bookEntrance 0.6s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.book-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("./assets/calculate-ui/2026_default_book_outside-CV9LyJRq.png") center / 100% 100% no-repeat;
  transform-origin: left center;
  animation: coverFlip 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.book-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 72px 46px 28px;
  background: url("./assets/calculate-ui/book_content_bg-DecdOc50.png") center / 100% 100% no-repeat;
}

.form-title {
  width: 80%;
  margin: 0 auto 20px;
}

.form-row {
  display: flex;
  align-items: center;
  height: 48px;
  margin-bottom: 16px;
  padding: 0 20px;
  border: 1px solid #cf9e5e;
  border-radius: 24px;
  background: #eedbad;
  color: #333;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
}

.form-row span {
  flex: 0 0 52px;
}

.form-row input[type="text"] {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #666;
  font-size: 15px;
}

.radio-row {
  display: flex;
  gap: 18px;
  font-weight: 500;
}

.radio-row input {
  accent-color: #eaaa5e;
}

.calc-button {
  width: 100%;
  margin-top: 5px;
}

.form-footer {
  width: 42%;
  margin: 14px auto 0;
}

.gearDate {
  left: 50% !important;
  width: min(100vw, 430px) !important;
  min-width: 320px;
  transform: translateX(-50%) translateZ(0) !important;
  background: rgba(0, 0, 0, 0.5) !important;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif !important;
}

.date_ctrl {
  top: 30% !important;
  width: 90% !important;
  max-width: 390px !important;
  border-radius: 3px !important;
  background: #fff !important;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.4) !important;
}

.date_btn_box {
  border-top: 1px solid #f6f6f6 !important;
}

.date_btn {
  color: #333 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.date_btn:last-child {
  color: #fe5b00 !important;
}

.date_class_box {
  padding: 10px 0 !important;
  border-bottom: 1px solid #f6f6f6 !important;
}

.date_class {
  width: 25% !important;
  padding: 2px 0 !important;
  border-color: #fe5b00 !important;
  color: #fe5b00 !important;
  font-size: 14px !important;
  line-height: 22px !important;
}

.date_class_box .active {
  background: #fe5b00 !important;
  color: #fff !important;
}

.date_roll {
  background: transparent !important;
}

.date_roll > div {
  height: 10em !important;
  font-size: 2em !important;
}

.date_grid {
  top: 4em !important;
  height: 2em !important;
  border-top: 2px solid #fe5b00 !important;
  border-bottom: 2px solid #fe5b00 !important;
  box-shadow: #fe5b00 0 0 4px !important;
  background: rgba(254, 91, 0, 0.08) !important;
  opacity: 0.3 !important;
}

.gear {
  margin-top: -4em !important;
}

.tooth {
  height: 2.8571em !important;
  line-height: 2.8571em !important;
  color: #333 !important;
  font-size: 0.7em !important;
}

.confirm_tit {
  color: #fe5b00 !important;
}

.confirm_p b {
  color: #fe5b00 !important;
}

.confirm_btn_finish {
  background-color: #fe5b00 !important;
}

@media (max-width: 430px) {
  .gearDate {
    left: 0 !important;
    width: 100% !important;
    min-width: 0;
    transform: translateZ(0) !important;
  }
}

.date-sheet,
.pay-sheet {
  align-self: end;
  width: min(100%, 430px);
  border-radius: 18px 18px 0 0;
  background: #fcf7e1;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.24);
}

.date-sheet header {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  height: 54px;
  border-bottom: 1px solid #eee5d4;
}

.date-sheet header button {
  height: 100%;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 15px;
  font-weight: 700;
}

.date-sheet header #dateConfirm {
  color: #e45b18;
}

.calendar-tabs {
  display: flex;
  justify-content: center;
}

.calendar-tabs button {
  width: 86px;
  height: 34px;
  border: 1px solid #e45b18;
  background: #fff8ea;
  color: #b1542a;
}

.calendar-tabs .active {
  background: #ff5b00;
  color: #fff;
}

.wheel-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.8fr 1.6fr;
  height: 198px;
  padding: 18px 14px;
}

.wheel-grid select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  appearance: auto;
  -webkit-appearance: menulist;
  background:
    linear-gradient(transparent 43%, rgba(255, 91, 0, 0.16) 44% 56%, transparent 57%),
    #fffaf0;
  color: #444;
  font-size: 16px;
  text-align: center;
  text-align-last: center;
  touch-action: manipulation;
}

.confirm-modal,
.app-dialog {
  width: min(90vw, 370px);
  padding: 18px 24px 26px;
  border-radius: 8px;
  background: #fff8e8;
  color: #512d18;
  text-align: center;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  animation: popIn 0.18s ease-out;
}

.confirm-modal h2,
.app-dialog h2 {
  margin: 0 0 16px;
  color: #b82b1d;
  font-size: 21px;
}

.confirm-modal p {
  margin: 10px 0;
  color: #333;
  font-size: 15px;
}

.confirm-modal strong {
  color: #d1571c;
}

.confirm-actions,
.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.confirm-actions button,
.dialog-actions button,
.dialog-body button,
.complaint-form button {
  min-height: 40px;
  border: 0;
  border-radius: 20px;
  background: #b82b1d;
  color: #fff;
  font-weight: 800;
}

#timeBack,
.dialog-actions .light-button {
  border: 1px solid #d7a75c;
  background: #fff5dd;
  color: #8a421d;
}

.dialog-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.analysis-view,
.report-view,
.success-view {
  min-height: calc(100vh - 22px);
  padding: 36px 28px 90px;
  background: #1e1610 url("./assets/calculate-ui/success_bg-Dn8w2-lb.jpg") center / 100% 100% no-repeat;
}

.analysis-card,
.report-card {
  min-height: 100vh;
  color: #fff;
}

.analysis-card h1,
.report-card h1 {
  margin: 0 0 26px;
  text-align: center;
  font-size: 26px;
  line-height: 1.45;
}

.analysis-card h1 span,
.report-card h1 span {
  color: #fbe587;
}

.analysis-stage {
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 16px;
}

.line {
  margin: 0;
  opacity: 0;
  animation: lineAppear 0.6s ease-out forwards;
}

.line:nth-child(2) { animation-delay: 0.2s; }
.line:nth-child(3) { animation-delay: 0.4s; }
.line:nth-child(4) { animation-delay: 0.6s; }

.sign-board {
  grid-template-columns: repeat(4, 1fr);
  place-items: center;
}

.sign-item {
  display: grid;
  place-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(16px);
  animation: itemAppear 0.28s ease-out forwards;
}

.sign-item strong {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #ae5c2a;
  font-size: 20px;
}

.sign-item span {
  writing-mode: vertical-rl;
  font-size: 16px;
}

.progress-box {
  min-height: 210px;
  padding: 18px;
  border: 6px solid #bf875d;
  border-radius: 8px;
  background: #ffefdd;
  color: #512d18;
}

.progress-tabs {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  color: #ae5c2a;
}

.progress-tabs button {
  border: 0;
  background: transparent;
  color: inherit;
}

.progress-tabs .active {
  font-weight: 800;
}

.progress-tabs .active::after {
  content: "";
  display: block;
  width: 40px;
  height: 8px;
  margin: 5px auto 0;
  border-radius: 4px;
  background: #914426;
}

.progress-item {
  margin-top: 28px;
}

.progress-item p {
  margin: 0 0 8px;
}

.bar {
  height: 6px;
  overflow: hidden;
  border-radius: 4px;
  background: #f0d05a;
}

.bar i {
  display: block;
  width: 0;
  height: 100%;
  background: #944528;
  transition: width 0.1s ease-in-out;
}

.report-summary {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  text-align: center;
  color: #fff;
  font-size: 18px;
}

.report-summary p {
  margin: 8px 0;
  line-height: 1.6;
}

.result-image {
  margin: 20px 0;
}

.report-tip {
  margin: 14px 0;
  color: #333;
  font-size: 16px;
  line-height: 1.7;
}

.report-tip span {
  color: #d50408;
}

.unlock-button {
  width: 100%;
}

.unlocked-report {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #dcb269;
  border-radius: 8px;
  background: #fff1d0;
  color: #542a16;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

.unlocked-report h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.pay-sheet {
  position: relative;
  padding: 18px 0 20px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.close-pay {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #8a421d;
  font-size: 24px;
}

.pay-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px 14px;
}

.avatar,
.success-avatar {
  flex: 0 0 92px;
  height: 92px;
  border-radius: 50%;
  background: url("./assets/calculate-ui/success_avatar-JBTV3wuS.png") center / cover no-repeat, linear-gradient(#f1d8a4, #b75a32);
}

.pay-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #222;
}

.pay-head p,
.pay-head strong {
  display: block;
  margin: 2px 0;
  color: #d50408;
  font-size: 14px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-top: 2px solid #efe67d;
  border-bottom: 2px solid #efe67d;
}

.price-row strong {
  display: block;
  padding: 8px;
  border-radius: 6px;
  background: #d50408;
  color: #fff;
}

.price-row del {
  display: block;
  margin-top: 8px;
  color: #999;
  font-size: 13px;
}

.price-row span {
  color: #d50408;
  font-weight: 800;
}

.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px 6px;
}

.pay-methods button {
  flex: 1 0 calc(50% - 10px);
  min-height: 46px;
  border: 1px solid #dfa168;
  border-radius: 8px;
  background: #fff8e9;
  color: #5a2d16;
}

.pay-methods .selected {
  border-width: 2px;
  background: #fff1cd;
  color: #d50408;
  font-weight: 800;
}

.pay-note {
  margin: 4px 18px 0;
  color: #d66d11;
  font-size: 13px;
}

.pay-submit {
  display: block;
  width: 84%;
  margin: 16px auto 0;
  border: 0;
  border-radius: 28px;
  padding: 13px 18px;
  background: #ec2323;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.pay-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.success-card {
  margin-top: 28px;
  padding: 22px 18px 26px;
  border-radius: 8px;
  background: rgba(255, 242, 210, 0.94);
  color: #512d18;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.success-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.success-avatar {
  flex-basis: 84px;
  height: 84px;
}

.success-head h1 {
  margin: 0 0 6px;
  color: #d50408;
  font-size: 26px;
}

.success-head p {
  margin: 0;
  color: #6d3a1c;
  font-weight: 700;
}

.success-info {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #d7a75c;
  border-radius: 6px;
  background: #fff8e8;
  line-height: 1.8;
}

.success-info p {
  margin: 0;
}

.advisor-button,
.secondary-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 24px;
  font-weight: 800;
}

.advisor-button {
  background: #ec2323;
  color: #fff;
  font-size: 18px;
}

.secondary-button {
  margin-top: 12px;
  border: 1px solid #d7a75c;
  background: #fff5dd;
  color: #8a421d;
}

.app-dialog {
  position: relative;
  max-height: min(82vh, 620px);
  overflow: auto;
  text-align: left;
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(138, 66, 29, 0.12);
  color: #8a421d;
  font-size: 22px;
}

.dialog-body {
  font-size: 14px;
  line-height: 1.65;
}

.dialog-body p {
  margin: 8px 0;
}

.dialog-card {
  padding: 12px;
  border: 1px solid #e3bf79;
  border-radius: 6px;
  background: #fff;
}

.status-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: #fff1cd;
  color: #d50408;
  font-weight: 800;
}

.complaint-form {
  display: grid;
  gap: 10px;
}

.complaint-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.complaint-form select,
.complaint-form textarea,
.complaint-form input {
  width: 100%;
  border: 1px solid #d7a75c;
  border-radius: 6px;
  padding: 9px 10px;
  background: #fff;
  color: #333;
  font-size: 14px;
}

.complaint-form textarea {
  min-height: 86px;
  resize: vertical;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 120;
  max-width: min(80vw, 320px);
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.74);
  color: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  transform: translateX(-50%);
}

@media (max-width: 430px) {
  .side-rail {
    right: 8px;
  }
}

@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes fadeScale { from { opacity: 0; transform: scale(0.65); } to { opacity: 1; transform: scale(1.1); } }
@keyframes pulseButton { 0% { transform: scale(1); } 25% { transform: scale(0.97); } 75% { transform: scale(1.03); } }
@keyframes pulseCenteredButton { 0%, 100% { transform: translateX(-50%) scale(1); } 25% { transform: translateX(-50%) scale(0.97); } 75% { transform: translateX(-50%) scale(1.03); } }
@keyframes floatUp { 25% { transform: translateY(10px); } 75% { transform: translateY(-10px); } }
@keyframes bookEntrance { from { transform: scale(0.6) translateZ(-400px); } to { transform: scale(1) translateZ(0); } }
@keyframes coverFlip { 0% { opacity: 1; transform: rotateY(0); } 50% { opacity: 1; transform: rotateY(-90deg); } 100% { opacity: 0; transform: rotateY(-180deg); } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes lineAppear { to { opacity: 1; transform: none; } }
@keyframes itemAppear { to { opacity: 1; transform: translateY(0); } }
