:root {
  --blue: #1677ff;
  --blue-dark: #0759cf;
  --blue-soft: #eaf3ff;
  --yellow: #ffdf00;
  --orange: #ff641e;
  --red: #f04444;
  --ink: #17191e;
  --muted: #7e8490;
  --line: #e9ecf1;
  --page: #f3f5f8;
  --card: #fff;
  --shadow: 0 8px 28px rgba(30, 57, 94, .08);
}

* { box-sizing: border-box; }

html { background: #e9edf3; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #e9edf3;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.mobile-shell {
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 14px calc(112px + env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 3%, rgba(115, 205, 255, .33), transparent 18%),
    linear-gradient(180deg, #f4f8ff 0, var(--page) 350px);
  box-shadow: 0 0 44px rgba(30, 50, 80, .08);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 -14px;
  padding: calc(24px + env(safe-area-inset-top)) 22px 24px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #075ce7, #1489ff 68%, #30a9ff);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
}
.hero::before { width: 190px; height: 190px; right: -88px; top: -100px; }
.hero::after { width: 105px; height: 105px; right: 5px; bottom: -75px; }

.hero-mark {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 17px;
  background: rgba(255,255,255,.15);
  box-shadow: inset 0 1px rgba(255,255,255,.25);
  font-size: 27px;
  font-weight: 900;
}

.hero-title-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; min-width: 0; }
.hero-title-row > div:last-child { min-width: 0; }
.hero h1 { margin: 0; font-size: 27px; line-height: 1.2; letter-spacing: .5px; }
.hero-subtitle { margin: 6px 0 0; color: rgba(255,255,255,.76); font-size: 13px; }
.hero-warning { position: relative; z-index: 1; width: 100%; display: flex; align-items: flex-start; gap: 7px; margin: 14px 0 0; padding: 9px 11px; border: 1px solid rgba(255,196,196,.9); border-radius: 10px; color: #db2222; background: rgba(255,255,255,.96); box-shadow: 0 5px 14px rgba(69,19,40,.12); font-size: 12px; line-height: 1.55; font-weight: 750; }
.hero-warning .warning-mark { width: 18px; height: 18px; display: inline-grid; place-items: center; flex: 0 0 auto; margin-top: 1px; border-radius: 50%; color: #fff; background: #e52d2d; font-size: 11px; font-weight: 900; }
.hero-warning strong { color: #c90000; font-size: 12px; }

.share-card,
.notice,
.task-section {
  border: 1px solid rgba(225,229,236,.9);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.share-card { margin-top: 14px; padding: 17px 15px 15px; }
.section-heading { display: flex; align-items: center; gap: 11px; }
.heading-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #1584ff, #0965e5); font-size: 21px; font-weight: 800; }
.section-heading p, .task-heading p { margin: 0 0 2px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .8px; }
.section-heading h2, .task-heading h2 { margin: 0; font-size: 18px; line-height: 1.25; }

.share-text {
  width: 100%;
  margin: 14px 0 12px;
  padding: 13px 12px 11px;
  border: 1px dashed #bfcee4;
  border-radius: 12px;
  text-align: left;
  background: #f7f9fc;
}
.share-text span { display: -webkit-box; overflow: hidden; color: #424854; font-size: 12px; line-height: 1.65; word-break: break-all; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.share-actions { display: grid; grid-template-columns: .92fr 1.08fr; gap: 9px; }

.button {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 13px;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 750;
}
.button-secondary { color: var(--blue); background: var(--blue-soft); }
.button-primary { color: #171717; background: linear-gradient(135deg, #ffe600, #ffd400); box-shadow: 0 7px 16px rgba(255,205,0,.2); }
.button-primary span { font-size: 22px; line-height: 1; }
.copy-symbol { position: relative; width: 15px; height: 16px; border: 1.8px solid currentColor; border-radius: 3px; }
.copy-symbol::before { content: ""; position: absolute; width: 10px; height: 11px; top: -5px; left: -5px; border: 1.8px solid currentColor; border-radius: 3px; background: var(--blue-soft); }

.notice { margin: 13px 0; padding: 13px; display: flex; gap: 10px; border-color: #ffd9c9; background: #fff9f5; box-shadow: none; }
.notice-icon { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--orange); font-size: 14px; font-weight: 800; }
.notice p { margin: -2px 0 0; color: #6e4634; font-size: 12px; line-height: 1.65; }
.notice strong { display: block; color: #b74418; font-size: 13px; }

.task-section { padding: 18px 14px 7px; }
.task-heading { display: flex; align-items: flex-end; justify-content: space-between; }
.task-heading > span { padding: 5px 9px; border-radius: 8px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 800; }
.task-list { margin-top: 20px !important; }

.task-list { margin: 0; padding: 0; list-style: none; }
.task-card { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 10px; }
.step-line { display: flex; flex-direction: column; align-items: center; }
.step-number { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #36a2ff, #0869e8); box-shadow: 0 6px 12px rgba(22,119,255,.18); font-size: 15px; font-weight: 850; }
.step-line i { width: 2px; min-height: 35px; flex: 1; margin: 7px 0; background: linear-gradient(#bcd8ff, #edf3fb); }
.task-content { min-width: 0; margin-bottom: 13px; padding: 0 0 19px; border-bottom: 1px solid var(--line); }
.task-card.last .task-content { border-bottom: 0; }
.task-tag { display: inline-block; margin-bottom: 5px; padding: 3px 7px; border-radius: 6px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 750; }
.task-content h3 { margin: 0; font-size: 17px; line-height: 1.45; }
.task-content > p { margin: 7px 0 0; color: #5f6570; font-size: 13px; line-height: 1.75; }
.task-content mark { padding: 2px 6px; border-radius: 5px; background: #fff1a4; color: #5d4a00; font-weight: 750; }
.danger-text { color: var(--red); }

.substeps { margin: 10px 0 0; padding: 0; list-style: none; }
.substeps li { display: flex; align-items: center; gap: 8px; margin-top: 7px; color: #555c68; font-size: 12px; line-height: 1.45; }
.substeps b { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #8cbdf8; font-size: 10px; }

.image-preview { position: relative; width: 100%; height: 205px; margin: 12px 0 0; padding: 0; overflow: hidden; border: 1px solid #e1e5ec; border-radius: 13px; background: #f4f5f7; cursor: zoom-in; }
.image-preview::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(11,18,30,.62)); }
.image-preview img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; }
.image-preview span { position: absolute; z-index: 2; left: 0; right: 0; bottom: 12px; color: #fff; text-align: center; font-size: 12px; font-weight: 750; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.image-preview span b { display: inline-grid; width: 19px; height: 19px; margin-right: 3px; place-items: center; border-radius: 50%; color: #176fe4; background: #fff; text-shadow: none; font-size: 10px; }
.chat-preview { height: 220px; }
.chat-preview img { object-position: center 22%; }
.guide-pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.guide-pair .image-preview { height: 220px; margin: 0; }
.entry-preview img { object-position: center top; }
.profile-preview img { object-position: center 15%; }
.receipt-preview { height: 220px; }
.receipt-preview img { object-position: center 66%; }
.review-preview { height: 220px; }
.review-preview img { object-position: center 42%; }

.price-flow { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 11px; padding: 10px 8px; border-radius: 10px; background: #f7f9fc; color: #667080; font-size: 10px; }
.price-flow i { color: #b4bbc6; font-style: normal; }
.price-flow strong { color: var(--orange); font-size: 11px; }

.page-footer { padding: 20px 0 4px; color: #a0a5ae; text-align: center; font-size: 10px; }

.sticky-action {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 9px 13px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(215,220,228,.88);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -8px 28px rgba(28,43,67,.08);
}
.sticky-inner { width: 100%; max-width: 532px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.sticky-action button { height: 49px; flex: 1; border: 0; border-radius: 14px; color: #161616; background: linear-gradient(135deg, #ffe800, #ffd300); box-shadow: 0 7px 18px rgba(238,185,0,.22); cursor: pointer; font-size: 15px; font-weight: 800; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(91px + env(safe-area-inset-bottom)); max-width: calc(100% - 44px); padding: 11px 16px; border-radius: 10px; color: #fff; background: rgba(24,28,35,.92); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: .2s ease; white-space: nowrap; font-size: 12px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.image-modal { position: fixed; z-index: 80; inset: 0; display: none; background: rgba(4,8,16,.92); }
.image-modal.open { display: block; }
.modal-scroll { width: 100%; height: 100%; overflow: auto; padding: 60px 12px 25px; }
.modal-scroll img { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; border-radius: 12px; }
.modal-close { position: fixed; z-index: 2; top: calc(12px + env(safe-area-inset-top)); right: 15px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.18); font-size: 27px; line-height: 1; cursor: pointer; }

@media (min-width: 561px) {
  .mobile-shell { border-left: 1px solid #dde2e9; border-right: 1px solid #dde2e9; }
}

@media (max-width: 350px) {
  .hero { padding-left: 17px; padding-right: 17px; }
  .hero-mark { width: 49px; height: 49px; }
  .hero h1 { font-size: 24px; }
  .share-actions { grid-template-columns: 1fr; }
  .task-card { grid-template-columns: 39px minmax(0,1fr); gap: 8px; }
  .step-number { width: 37px; height: 37px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
