:root {
  --bg-top: #f7efe6;
  --bg-bottom: #f4e6dc;
  --ink: #1c1410;
  --ink-soft: #6a5850;
  --line: rgba(92, 54, 42, 0.12);
  --surface: rgba(255, 250, 246, 0.86);
  --surface-solid: #fffaf6;
  --accent: #8a4334;
  --accent-soft: #f3d9cf;
  --success: #2f6b4a;
  --danger: #9b3b3b;
  --gold: #c4a07a;
  --radius: 20px;
  --shadow: 0 16px 40px rgba(92, 54, 42, 0.08);
  --font-display: "Cormorant Garamond", "Songti SC", "STSong", "PingFang SC", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(90% 70% at 8% -8%, #f8dccb 0%, transparent 52%),
    radial-gradient(70% 50% at 100% 0%, #f0e4c9 0%, transparent 46%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.is-hidden {
  display: none !important;
}

.page {
  width: min(100%, 440px);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 20px calc(28px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero {
  padding-top: 10px;
  animation: rise 0.6s ease both;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 1px solid rgba(196, 160, 122, 0.5);
  border-radius: 999px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.brand {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  line-height: 1;
}

.title {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  animation: rise 0.7s ease both;
}

.step {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  background: rgba(20, 24, 28, 0.06);
}

.step-label {
  font-size: 12px;
  font-weight: 500;
}

.step.is-active,
.step.is-done {
  color: var(--ink);
}

.step.is-active .step-num {
  background: var(--accent);
  color: #fff;
}

.step.is-done .step-num {
  background: var(--accent-soft);
  color: var(--accent);
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--line);
  min-width: 8px;
}

.main {
  flex: 1;
  animation: rise 0.8s ease both;
}

.panel,
.block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.state-panel {
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-soft);
}

.state-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.state-desc {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
}

.loader {
  width: 28px;
  height: 28px;
  margin: 0 auto 16px;
  border: 2px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.block {
  padding: 18px 16px;
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.block h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hint,
.image-tip {
  font-size: 12px;
  color: var(--ink-soft);
}

.image-tip {
  margin: 12px 0 0;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.photo-text {
  margin: 0;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.review-text {
  padding: 18px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 242, 0.8));
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  min-height: 108px;
}

.image-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.image-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eadfd6;
  padding: 0;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.image-item:active img {
  transform: scale(1.03);
}

.image-item::after {
  content: "预览";
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 10px;
  color: #fff;
  background: rgba(20, 24, 28, 0.55);
  backdrop-filter: blur(4px);
}

.action-block h2 {
  margin-bottom: 6px;
}

.action-tip {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.platform-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  width: 100%;
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  min-height: 34px;
  padding: 0 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-platform {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 74px;
  padding: 14px 16px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  text-align: left;
}

.btn-platform.is-highlight {
  border-color: rgba(138, 67, 52, 0.35);
  background: linear-gradient(180deg, #fff8f3, #f8ebe3);
}

.platform-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.platform-desc {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 400;
}

.footer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
  animation: rise 0.9s ease both;
}

.footer p {
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + var(--safe-bottom));
  transform: translateX(-50%) translateY(8px);
  max-width: calc(100% - 40px);
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(20, 24, 28, 0.92);
  color: #fff;
  font-size: 14px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 18, 0.45);
}

.sheet-panel {
  position: relative;
  width: min(100%, 440px);
  padding: 18px 18px calc(18px + var(--safe-bottom));
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);
  animation: sheetUp 0.28s ease;
}

.sheet-panel img {
  width: 100%;
  max-height: 52vh;
  object-fit: contain;
  border-radius: 14px;
  background: #f0f3f5;
  display: block;
}

.sheet-tip {
  margin: 14px 0 16px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.sheet-actions {
  display: grid;
  gap: 10px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sheetUp {
  from {
    transform: translateY(24px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 480px) {
  .page {
    padding-top: 40px;
  }
}
