:root {
  --primary: #941d24;
  --primary-deep: #74161c;
  --accent: #d8ae5d;
  --paper: #fff9ef;
  --ink: #30221e;
  --muted: #8a7669;
  --white: #fffdf9;
  --line: #eadfce;
  --danger: #b4232d;
  --success: #2b7a5d;
  --shadow: 0 14px 38px rgba(72, 28, 17, 0.13);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #e8e0d4;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.78), transparent 26rem),
    linear-gradient(135deg, #ded3c4, #f0e9df 46%, #ded4c7);
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  color: var(--ink);
  background: var(--primary);
  box-shadow: 0 0 80px rgba(52, 31, 22, 0.26);
}

.app-shell::before {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 50%;
  width: min(100%, 480px);
  height: env(safe-area-inset-top);
  content: "";
  transform: translateX(-50%);
  background: var(--primary);
  pointer-events: none;
}

.boot-screen {
  display: grid;
  min-height: 100dvh;
  place-content: center;
  justify-items: center;
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.08), transparent 18rem),
    var(--primary);
}

.boot-mark {
  display: grid;
  width: 78px;
  height: 78px;
  margin-bottom: 16px;
  border-radius: 28px;
  place-items: center;
  color: var(--primary);
  background: var(--paper);
  box-shadow: var(--shadow);
  font: 700 42px/1 "STKaiti", "KaiTi", serif;
}

.topbar {
  position: sticky;
  z-index: 25;
  top: 0;
  display: flex;
  height: calc(66px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--primary);
}

.topbar::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.1);
}

.nav-back,
.nav-action {
  display: grid;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: transparent;
}

.nav-back {
  margin-right: 5px;
  font-size: 38px;
  font-weight: 200;
  line-height: 1;
}

.nav-title {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  margin: 0;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-action {
  width: 39px;
  height: 39px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  font-size: 18px;
}

.nav-action.active {
  color: #ffe6a5;
}

.capsule {
  display: flex;
  width: 86px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 20px;
  align-items: center;
  justify-content: space-evenly;
  background: rgba(70, 0, 5, 0.42);
}

.capsule span {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}

.capsule .dots::before {
  position: absolute;
  top: 6px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: #fff;
  box-shadow: 6px 0 #fff, 12px 0 #fff;
}

.capsule .ring {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.capsule .ring::after {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  content: "";
  background: #fff;
}

.page {
  min-height: calc(100dvh - 66px);
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 105% 3%, rgba(255, 255, 255, 0.08), transparent 16rem),
    var(--primary);
}

.content {
  padding: 20px 14px 30px;
}

.page-heading {
  margin: 8px 4px 20px;
  color: #fff;
  text-align: center;
}

.page-heading h1 {
  margin: 0;
  color: #f5d691;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(28px, 8vw, 38px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.page-heading p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.hero {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: 34px 24px;
  border-radius: 22px;
  color: var(--primary-deep);
  background:
    linear-gradient(90deg, rgba(255, 248, 234, 0.98), rgba(255, 255, 255, 0.92)),
    var(--paper);
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  top: -70px;
  right: -54px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(148, 29, 36, 0.1);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 24px rgba(148, 29, 36, 0.025),
    0 0 0 54px rgba(148, 29, 36, 0.018);
}

.hero::after {
  position: absolute;
  right: 23px;
  bottom: -58px;
  width: 164px;
  height: 164px;
  border-radius: 48% 52% 45% 55%;
  content: "";
  transform: rotate(18deg);
  background: linear-gradient(145deg, rgba(196, 150, 77, 0.22), rgba(148, 29, 36, 0.05));
}

.hero.has-image {
  isolation: isolate;
  background:
    linear-gradient(90deg, #fffaf1 0%, #fffaf1 31%, rgba(255, 250, 241, 0.92) 48%, rgba(255, 250, 241, 0.06) 72%),
    var(--paper);
}

.hero.has-image::after {
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: 100%;
  border-radius: 0;
  transform: none;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.2), transparent 60%),
    linear-gradient(0deg, rgba(77, 29, 20, 0.16), transparent 42%);
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: 61%;
}

.hero-eyebrow {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgba(148, 29, 36, 0.2);
  border-radius: 999px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.hero h2 {
  margin: 24px 0 14px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(44px, 12.5vw, 60px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.04em;
  text-shadow: 0 1px rgba(255, 255, 255, 0.55);
}

.hero-subtitle {
  margin: 0;
  color: #725848;
  font-size: 14px;
  line-height: 1.7;
}

.hero-lines {
  display: grid;
  gap: 7px;
  margin-top: 24px;
}

.hero-lines span {
  display: flex;
  width: fit-content;
  padding: 6px 11px;
  border-radius: 4px;
  color: var(--primary);
  background: rgba(148, 29, 36, 0.07);
  font: 600 15px/1.2 "STKaiti", "KaiTi", serif;
}

.hero-art {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 18px;
  display: grid;
  width: 150px;
  height: 220px;
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 78px 78px 32px 32px;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(155deg, var(--accent), var(--primary));
  box-shadow: 0 16px 30px rgba(95, 40, 23, 0.2);
}

.hero-art .art-ring {
  position: absolute;
  top: 24px;
  left: 22px;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
}

.hero-art .art-glyph {
  position: relative;
  writing-mode: vertical-rl;
  color: #fff8e8;
  font: 800 45px/1.15 "STKaiti", "KaiTi", serif;
  letter-spacing: 0.08em;
  text-shadow: 0 3px 10px rgba(91, 25, 18, 0.2);
}

.hero-image {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 57%;
  height: 100%;
  border: 0;
  border-radius: 0 22px 22px 0;
  object-fit: cover;
  object-position: center 34%;
  box-shadow: none;
  filter: saturate(0.94) contrast(1.02);
}

.hero.has-image .hero-art {
  display: none;
}

.hero-vertical-calligraphy {
  position: absolute;
  z-index: 5;
  top: 23px;
  right: 17px;
  padding: 12px 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff9e9;
  background: rgba(108, 21, 23, 0.42);
  box-shadow: 0 9px 24px rgba(76, 20, 17, 0.14);
  font: 800 27px/1.08 "STKaiti", "KaiTi", serif;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 10px rgba(62, 22, 16, 0.36);
  writing-mode: vertical-rl;
  backdrop-filter: blur(3px);
}

.hero-image-seal {
  position: absolute;
  z-index: 5;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 245, 219, 0.7);
  border-radius: 9px;
  place-items: center;
  color: #fff5dc;
  background: rgba(137, 24, 31, 0.78);
  box-shadow: 0 8px 20px rgba(62, 19, 15, 0.2);
  font: 700 23px/1 "STKaiti", "KaiTi", serif;
  transform: rotate(-3deg);
}

.form-card,
.paper-card,
.order-card {
  position: relative;
  border: 1px solid rgba(132, 91, 62, 0.08);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.form-card {
  border: 1px solid rgba(208, 181, 145, 0.35);
}

.form-card {
  margin-top: 16px;
  padding: 20px 19px;
}

.card-badge {
  position: absolute;
  z-index: 2;
  top: -17px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 42px);
  padding: 8px 18px;
  border: 2px solid rgba(255, 235, 186, 0.6);
  border-radius: 999px;
  color: #fff8e7;
  background: linear-gradient(180deg, var(--primary-deep), var(--primary));
  box-shadow:
    0 8px 18px rgba(74, 19, 19, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.25);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  transform: translateX(-50%);
}

.card-badge::before,
.card-badge::after {
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: #f7d88e;
  transform: translateY(-50%);
}

.card-badge::before {
  left: 7px;
}

.card-badge::after {
  right: 7px;
}

.form-card .card-badge {
  top: -23px;
}

.form-rows {
  display: grid;
}

.form-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 72px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
  align-items: center;
}

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

.field-label {
  color: #15110f;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field-label::after {
  margin-left: 9px;
  color: #d3c4b4;
  content: "|";
  font-weight: 300;
}

.field-content {
  min-width: 0;
}

.text-input,
.date-input,
.select-input,
.textarea-input {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.text-input:focus,
.date-input:focus,
.select-input:focus,
.textarea-input:focus {
  border-color: var(--primary);
  background: #fff;
}

.text-input::placeholder,
.textarea-input::placeholder {
  color: #bcae9f;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  color: #44362d;
  font-size: 16px;
  gap: 7px;
  white-space: nowrap;
}

.radio-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-dot {
  display: inline-grid;
  width: 24px;
  height: 24px;
  border: 2px solid #c8bbb0;
  border-radius: 50%;
  place-items: center;
}

.radio-label input:checked + .radio-dot {
  border-color: var(--primary);
}

.radio-label input:checked + .radio-dot::after {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  content: "";
  background: var(--primary);
}

.date-shell {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px;
}

.date-mode {
  display: grid;
  min-height: 42px;
  border: 1px solid #d9cdbf;
  border-radius: 8px;
  place-items: center;
  color: #4a3a31;
  background: #fff;
  font-size: 15px;
}

.time-shell {
  display: grid;
  grid-template-columns: 1fr 18px 1fr 18px;
  align-items: center;
  gap: 5px;
}

.time-shell .select-input {
  padding-right: 4px;
}

.time-suffix {
  color: #5f5047;
  font-size: 15px;
}

.agreement-line {
  margin: 14px 0 0;
  color: #9e8e80;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.text-link {
  border: 0;
  padding: 0;
  color: var(--primary);
  background: transparent;
  font-size: inherit;
  text-decoration: underline;
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  margin-top: 15px;
  border: 0;
  border-radius: 13px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
    var(--primary);
  box-shadow: 0 9px 18px rgba(73, 22, 20, 0.18);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.primary-button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(73, 22, 20, 0.16);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.primary-button.gold {
  color: #5c3e13;
  background: linear-gradient(180deg, #f4dfa5, var(--accent));
  box-shadow: 0 9px 20px rgba(95, 66, 21, 0.16);
}

.quick-service-grid {
  display: grid;
  margin: 10px 0 4px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-service-card {
  display: flex;
  min-height: 66px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  align-items: center;
  color: #fff8ea;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(79, 9, 13, 0.16);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  text-align: left;
  gap: 9px;
}

.quick-service-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid rgba(255, 235, 192, 0.28);
  border-radius: 11px;
  place-items: center;
  color: #ffe0a1;
  background: rgba(255, 255, 255, 0.07);
  font-size: 20px;
}

.quick-service-card strong,
.quick-service-card small {
  display: block;
}

.quick-service-card strong {
  font-size: 14px;
  letter-spacing: 0.03em;
}

.quick-service-card small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  line-height: 1.35;
}

.section {
  margin-top: 28px;
}

.section-title {
  display: flex;
  margin: 0 0 18px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  gap: 12px;
}

.section-title::before,
.section-title::after {
  width: 48px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72));
}

.section-title::after {
  transform: rotate(180deg);
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.benefit-card {
  display: grid;
  min-height: 170px;
  padding: 24px 13px 16px;
  border-radius: 18px;
  place-items: center;
  align-content: center;
  background: var(--paper);
  text-align: center;
}

.benefit-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  min-height: 150px;
}

.benefit-glyph {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border-radius: 14px;
  place-items: center;
  color: #fff;
  background: var(--primary);
  font: 700 28px/1 "STKaiti", "KaiTi", serif;
}

.benefit-card:nth-child(2) .benefit-glyph {
  background: #4d927c;
}

.benefit-card:nth-child(3) .benefit-glyph {
  background: #c5a253;
}

.benefit-card h3 {
  margin: 0;
  color: #231a16;
  font-size: 20px;
}

.benefit-card p {
  margin: 7px 0 0;
  color: #a18f82;
  font-size: 13px;
}

.segmented {
  display: flex;
  padding: 6px;
  border-bottom: 1px solid rgba(120, 94, 76, 0.12);
  gap: 2px;
  background: var(--paper);
}

.segmented.rounded {
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.segment-button {
  flex: 1;
  padding: 11px 8px;
  border: 0;
  border-radius: 999px;
  color: #6d5d50;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.rounded .segment-button {
  color: rgba(255, 255, 255, 0.76);
}

.segment-button.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 5px 13px rgba(73, 22, 20, 0.14);
}

.rounded .segment-button.active {
  color: #5d4219;
  background: linear-gradient(180deg, #f0d895, var(--accent));
}

.case-tabs {
  display: flex;
  margin: -4px 0 13px;
  justify-content: center;
  gap: 32px;
}

.case-tab {
  border: 0;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.52);
  background: transparent;
  font-size: 17px;
  font-weight: 650;
}

.case-tab.active {
  color: #fff;
}

.case-list {
  display: grid;
  gap: 10px;
}

.case-card {
  display: grid;
  padding: 16px;
  border: 1px solid rgba(213, 188, 154, 0.38);
  border-radius: 19px;
  grid-template-columns: 88px 1fr;
  gap: 15px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(77, 34, 20, 0.08);
}

.case-photo {
  display: grid;
  width: 88px;
  height: 112px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  place-items: center;
  color: #fff8e6;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.38), transparent 24%),
    linear-gradient(145deg, #deb66d, var(--primary));
  background-position: center;
  background-size: cover;
  box-shadow: 0 6px 14px rgba(86, 47, 28, 0.13);
  font: 700 35px/1 "STKaiti", "KaiTi", serif;
}

.case-card h3 {
  margin: 1px 0 9px;
  color: #201814;
  font-size: 21px;
}

.case-analysis,
.case-idioms {
  margin: 5px 0 0;
  color: #473b33;
  font-size: 13px;
  line-height: 1.72;
}

.case-card strong {
  color: var(--primary);
  font-weight: 600;
}

.testimonial-scroll {
  display: flex;
  overflow-x: auto;
  margin: 0 -14px;
  padding: 0 34px 8px;
  gap: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.testimonial-card {
  width: min(86vw, 350px);
  min-width: min(86vw, 350px);
  min-height: 170px;
  padding: 23px 22px 18px;
  border-radius: 18px;
  background: var(--paper);
  scroll-snap-align: center;
}

.testimonial-card p {
  margin: 0;
  color: #3d3029;
  font-size: 16px;
  line-height: 1.75;
}

.testimonial-user {
  display: flex;
  margin-top: 18px;
  align-items: center;
  justify-content: flex-end;
  color: #604c3d;
  font-size: 14px;
  gap: 8px;
}

.user-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: var(--primary);
}

.footer {
  padding: 28px 0 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  z-index: 35;
  bottom: 0;
  left: 50%;
  display: grid;
  width: min(100%, 480px);
  min-height: calc(72px + env(safe-area-inset-bottom));
  padding: 7px 5px env(safe-area-inset-bottom);
  border-top: 1px solid #e5dbce;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 -8px 30px rgba(61, 31, 18, 0.1);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.tab-button {
  display: grid;
  border: 0;
  place-items: center;
  align-content: center;
  color: #9d9087;
  background: transparent;
  font-size: 11px;
  gap: 1px;
}

.tab-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
}

.tab-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.tab-button.active {
  color: var(--primary);
  font-weight: 650;
}

.custom-hero {
  position: relative;
  overflow: hidden;
  margin: -2px -14px 18px;
  padding: 38px 24px 30px;
  text-align: center;
}

.custom-hero::before {
  position: absolute;
  top: -84px;
  left: 50%;
  width: 310px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.custom-hero h1 {
  position: relative;
  max-width: 390px;
  margin: 0 auto 15px;
  color: #ffe4a9;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(27px, 7.8vw, 36px);
  line-height: 1.35;
}

.custom-hero p {
  position: relative;
  margin: 0;
  color: rgba(255, 235, 194, 0.75);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.outline-button {
  position: relative;
  min-width: 130px;
  margin-top: 24px;
  padding: 12px 28px;
  border: 2px solid var(--accent);
  border-radius: 13px;
  color: #ffe5aa;
  background: transparent;
  font-size: 22px;
  font-weight: 700;
}

.gold-pill-title {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 4px auto -10px;
  padding: 9px 28px;
  border: 1px solid rgba(255, 245, 211, 0.7);
  border-radius: 999px;
  color: #624617;
  background: linear-gradient(180deg, #f5dda3, #d4a950);
  box-shadow: 0 7px 17px rgba(92, 52, 19, 0.25);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.gold-pill-title::before,
.gold-pill-title::after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 12px 2px;
  border-radius: 50%;
  content: "";
  background: #fff3ce;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.paper-card {
  padding: 25px 20px 20px;
}

.paper-card p {
  margin: 0 0 12px;
  color: #514139;
  font-size: 15px;
  line-height: 1.85;
}

.paper-card p:last-child {
  margin-bottom: 0;
}

.packages-card {
  padding: 31px 13px 17px;
}

.package-list {
  display: grid;
  gap: 10px;
}

.package-card {
  position: relative;
  display: grid;
  width: 100%;
  padding: 17px;
  border: 1px solid #e8d7b9;
  border-radius: 14px;
  color: var(--ink);
  background: #fffdf8;
  grid-template-columns: minmax(0, 1fr) auto;
  text-align: left;
}

.package-card.active {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 2px rgba(124, 27, 33, 0.08);
}

.package-name {
  margin: 0 0 6px;
  color: #2a211d;
  font-size: 18px;
  font-weight: 750;
}

.package-meta {
  margin: 0;
  color: #a18b74;
  font-size: 13px;
  line-height: 1.65;
}

.package-price {
  align-self: center;
  color: var(--primary);
  font-size: 30px;
  font-weight: 800;
}

.package-features {
  display: flex;
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-chip {
  padding: 3px 8px;
  border-radius: 999px;
  color: #90724d;
  background: #f7edd9;
  font-size: 11px;
}

.faq-list {
  display: grid;
}

.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  padding-top: 0;
}

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

.faq-item h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 16px;
  line-height: 1.55;
}

.faq-item p {
  margin: 0;
  color: #55453a;
  font-size: 14px;
  line-height: 1.85;
}

.faq-prefix {
  color: #8c7665;
  font-weight: 650;
}

.process-list {
  display: grid;
  gap: 17px;
}

.process-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
}

.process-index {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: var(--primary);
  font-size: 16px;
  font-weight: 700;
}

.process-item h3 {
  margin: 3px 0 5px;
  font-size: 16px;
}

.process-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.rename-form-row {
  grid-template-columns: 86px minmax(0, 1fr);
}

.rename-form-row .text-input,
.rename-form-row .date-input {
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.profile-header {
  display: flex;
  padding: 14px 6px 22px;
  align-items: center;
  color: #fff;
  gap: 16px;
}

.profile-avatar {
  display: grid;
  width: 84px;
  height: 84px;
  border: 6px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  place-items: center;
  color: var(--primary);
  background: var(--paper);
  font: 800 43px/1 "STKaiti", "KaiTi", serif;
}

.profile-copy h2 {
  margin: 0 0 7px;
  font-size: 21px;
}

.profile-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.55;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shortcut-card {
  display: flex;
  min-height: 100px;
  padding: 17px;
  border: 0;
  border-radius: 16px;
  align-items: center;
  justify-content: space-between;
  color: #2d231e;
  background: var(--paper);
  text-align: left;
}

.shortcut-card h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

.shortcut-card p {
  margin: 0;
  color: #a59386;
  font-size: 12px;
}

.shortcut-icon {
  display: grid;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  place-items: center;
  background: #f5ead8;
  font-size: 25px;
}

.menu-card {
  overflow: hidden;
  margin-top: 16px;
  border-radius: 16px;
  background: var(--paper);
}

.menu-item {
  display: grid;
  width: 100%;
  min-height: 68px;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  color: #2a211d;
  background: transparent;
  grid-template-columns: 36px 1fr 22px;
  text-align: left;
}

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

.menu-icon {
  font-size: 21px;
}

.menu-title {
  font-size: 17px;
  font-weight: 600;
}

.menu-arrow {
  color: #c2b6a9;
  font-size: 22px;
}

.empty-state {
  display: grid;
  min-height: 420px;
  padding: 50px 20px;
  place-content: center;
  justify-items: center;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.13);
  border-radius: 25px;
  place-items: center;
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
  font-size: 42px;
}

.empty-state h2 {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 21px;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

.empty-state button {
  margin-top: 24px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  background: transparent;
}

.order-list {
  display: grid;
  gap: 11px;
}

.order-card {
  padding: 17px;
}

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

.order-type {
  color: #3d3029;
  font-size: 17px;
  font-weight: 700;
}

.status-badge {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--primary);
  background: #f7ece8;
  font-size: 11px;
  font-weight: 650;
}

.order-meta {
  display: grid;
  margin: 0;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.order-meta div {
  min-width: 0;
}

.order-meta dt {
  color: #a59689;
  font-size: 11px;
}

.order-meta dd {
  overflow: hidden;
  margin: 4px 0 0;
  color: #3d3029;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-foot {
  display: flex;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
}

.order-amount {
  color: var(--primary);
  font-size: 19px;
  font-weight: 750;
}

.text-button {
  border: 0;
  padding: 4px;
  color: var(--primary);
  background: transparent;
  font-size: 13px;
}

.refund-card {
  padding: 24px 19px;
}

.refund-section-title {
  margin: 0 0 12px;
  color: #332720;
  font-size: 17px;
}

.reason-list {
  display: grid;
  margin-bottom: 24px;
  gap: 9px;
}

.reason-label {
  display: flex;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid #eadfce;
  border-radius: 9px;
  align-items: center;
  color: #3f322b;
  background: #fffdfa;
  font-size: 14px;
  gap: 10px;
}

.reason-label input {
  position: absolute;
  opacity: 0;
}

.reason-check {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid #d5b97f;
  border-radius: 50%;
  place-items: center;
}

.reason-label input:checked + .reason-check {
  border-color: var(--primary);
}

.reason-label input:checked + .reason-check::after {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  content: "";
  background: var(--primary);
}

.field-block {
  margin-top: 19px;
}

.field-block > label {
  display: block;
  margin-bottom: 8px;
  color: #42342c;
  font-size: 16px;
  font-weight: 650;
}

.field-block .text-input,
.field-block .select-input,
.field-block .textarea-input {
  min-height: 50px;
  border: 1px solid #eadfce;
  background: #fffdfa;
}

.field-block .textarea-input {
  min-height: 105px;
  resize: vertical;
}

.refund-notice {
  margin: 23px 0 0;
  padding: 12px;
  border: 1px solid #eddfca;
  border-radius: 9px;
  color: #97816d;
  background: #fffbf3;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.agreement-card {
  padding: 24px 20px;
}

.agreement-meta {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: #9d8a78;
  font-size: 12px;
  line-height: 1.7;
}

.agreement-intro {
  color: #56463c;
  font-size: 14px;
  line-height: 1.85;
}

.agreement-section {
  margin-top: 23px;
}

.agreement-section h2 {
  margin: 0 0 9px;
  color: #2c211c;
  font-size: 17px;
}

.agreement-section p {
  margin: 0 0 10px;
  color: #5f4d42;
  font-size: 14px;
  line-height: 1.9;
}

.modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  padding: 30px 16px;
  align-items: flex-end;
  justify-content: center;
  background: rgba(33, 19, 14, 0.55);
  animation: fade-in 0.18s ease;
  backdrop-filter: blur(3px);
}

.sheet {
  width: min(100%, 448px);
  max-height: min(84dvh, 760px);
  overflow-y: auto;
  padding: 23px 19px calc(22px + env(safe-area-inset-bottom));
  border-radius: 25px 25px 18px 18px;
  background: var(--paper);
  animation: slide-up 0.23s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: -10px auto 17px;
  border-radius: 999px;
  background: #decfbe;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sheet-head h2 {
  margin: 0;
  color: #2a1f1a;
  font-size: 21px;
}

.sheet-close {
  display: grid;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  place-items: center;
  color: #8e7d70;
  background: #f2e8db;
  font-size: 20px;
}

.sheet-intro {
  margin: 10px 0 17px;
  color: #8a7768;
  font-size: 13px;
  line-height: 1.7;
}

.sheet-package {
  display: flex;
  padding: 12px 14px;
  border: 1px solid #ebd9b7;
  border-radius: 10px;
  align-items: center;
  justify-content: space-between;
  background: #fffaf0;
  color: #4a372d;
  font-size: 14px;
}

.sheet-package strong {
  color: var(--primary);
  font-size: 19px;
}

.sheet-form {
  margin-top: 15px;
}

.sheet-form .field-block {
  margin-top: 13px;
}

.contact-list {
  display: grid;
  margin-top: 17px;
  gap: 10px;
}

.contact-card {
  padding: 16px;
  border: 1px solid #e9dccb;
  border-radius: 13px;
  background: #fffdf9;
}

.contact-card h3 {
  margin: 0 0 6px;
  color: #342720;
  font-size: 17px;
}

.contact-card p {
  margin: 0;
  color: #957f6e;
  font-size: 13px;
  line-height: 1.65;
}

.contact-actions {
  display: flex;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.small-button {
  padding: 8px 13px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
  font-size: 13px;
}

.small-button.solid {
  color: #fff;
  background: var(--primary);
}

.notice-line {
  margin-top: 12px !important;
  padding: 9px 11px;
  border-radius: 8px;
  color: #a07b3c !important;
  background: #fbf3df;
  font-size: 11px !important;
}

.success-panel {
  display: grid;
  padding: 16px 2px 4px;
  justify-items: center;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 15px;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: var(--success);
  font-size: 32px;
}

.success-panel h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.success-panel p {
  margin: 0;
  color: #826e60;
  font-size: 14px;
  line-height: 1.65;
}

.success-order-no {
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #6f5848;
  background: #f2e7d7;
  font-size: 12px;
}

.button-row {
  display: grid;
  margin-top: 20px;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.button-row .primary-button {
  margin-top: 0;
  font-size: 15px;
}

.secondary-button {
  display: flex;
  min-height: 54px;
  border: 1px solid #dcccba;
  border-radius: 13px;
  align-items: center;
  justify-content: center;
  color: #6f5b4c;
  background: transparent;
  font-size: 15px;
  font-weight: 650;
}

.loading-block {
  display: grid;
  min-height: 55dvh;
  place-content: center;
  justify-items: center;
  color: rgba(255, 255, 255, 0.7);
}

.spinner {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.error-block {
  display: grid;
  min-height: 60dvh;
  padding: 30px;
  place-content: center;
  justify-items: center;
  color: #fff;
  text-align: center;
}

.error-block p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.toast {
  position: fixed;
  z-index: 150;
  bottom: calc(92px + env(safe-area-inset-bottom));
  left: 50%;
  max-width: min(86vw, 400px);
  padding: 11px 17px;
  border-radius: 10px;
  opacity: 0;
  color: #fff;
  background: rgba(37, 24, 19, 0.9);
  box-shadow: 0 8px 25px rgba(28, 14, 9, 0.18);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes slide-up {
  from {
    transform: translateY(36px);
  }
}

@media (max-width: 520px) {
  html,
  body {
    background: var(--primary);
  }

  .app-shell {
    box-shadow: none;
  }
}

@media (min-width: 521px) {
  .app-shell {
    margin: 22px auto;
    min-height: calc(100dvh - 44px);
    border-radius: 28px;
  }

  .topbar {
    border-radius: 28px 28px 0 0;
  }

  .bottom-nav {
    bottom: 22px;
    border-radius: 0 0 28px 28px;
  }

  .app-shell::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
