/* ============================================================
   EXIF·LAB — 照片信息改改 · 数字暗房
   深色电影质感 / 取景器 HUD / 实验性排版
   ============================================================ */

:root {
  --bg: #07080d;
  --bg-2: #0b0d15;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #F2F4FA;
  --ink-2: #9BA3B7;
  --ink-3: #5A6172;
  --acid: #D8FF3E;         /* 荧光强调色 */
  --acid-dim: rgba(216, 255, 62, 0.14);
  --violet: #8B7CFF;
  --cyan: #55E6FF;
  --danger: #FF6B6B;
  --danger-dim: rgba(255, 107, 107, 0.12);
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  /* iOS Safari 地址栏收放时用 dvh 得到真实可视高度 */
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
  /* 去掉 iOS 点击时的灰色高亮块 */
  -webkit-tap-highlight-color: transparent;
}

.mono { font-family: var(--mono); }

::selection { background: var(--acid); color: #0a0a0a; }

/* iOS 触控优化：可交互元素禁用长按呼出与文本选中，输入框恢复 */
button, a, .viewfinder, .spec-card, .magnetic {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
input, select, textarea { -webkit-user-select: text; user-select: text; }

/* ---------- 氛围层：极光 / 噪点 / 扫描线 ---------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  filter: blur(90px) saturate(120%);
  opacity: 0.5;
}
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.b1 {
  width: 55vmax; height: 55vmax; left: -18vmax; top: -22vmax;
  background: radial-gradient(circle at 40% 40%, #2b1f8f 0%, transparent 65%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.b2 {
  width: 42vmax; height: 42vmax; right: -14vmax; top: 8vmax;
  background: radial-gradient(circle at 60% 40%, #0e4d52 0%, transparent 65%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.b3 {
  width: 36vmax; height: 36vmax; left: 28vmax; bottom: -20vmax;
  background: radial-gradient(circle at 50% 50%, #43164f 0%, transparent 62%);
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(9vmax, 7vmax) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-7vmax, 9vmax) scale(0.92); } }
@keyframes drift3 { to { transform: translate(-8vmax, -6vmax) scale(1.08); } }

.noise {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.12) 3px 4px);
  opacity: 0.35;
}

/* ---------- 自定义光标 ---------- */

.cursor { position: fixed; z-index: 9999; pointer-events: none; left: 0; top: 0; }
.cursor-dot {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--acid); transform: translate(-50%, -50%);
}
.cursor-ring {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(216, 255, 62, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}
.cursor.is-hover .cursor-ring { width: 56px; height: 56px; border-color: var(--acid); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- 布局 ---------- */

.shell {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  /* 左右兜住横屏刘海安全区 */
  padding: 0 calc(22px + env(safe-area-inset-left)) 80px calc(22px + env(safe-area-inset-right));
}

.view { display: none; }
.view.active { display: block; animation: viewIn 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* 顶部兜住刘海 / 灵动岛安全区 */
  padding: calc(16px + env(safe-area-inset-top)) 2px 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.brand { color: var(--acid); font-weight: 700; letter-spacing: 0.18em; }
.topbar-note { font-size: 11px; }

/* ---------- 首页 Hero ---------- */

.hero { padding: 6vh 0 30px; }

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--acid);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(58px, 13vw, 108px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin-left: -4px;
}
.hero-title .ch {
  display: inline-block;
  animation: chIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.hero-title .ch:nth-child(odd) { color: var(--ink); }
.hero-title .ch:hover { color: var(--acid); transition: color 0.2s ease; }
@keyframes chIn {
  from { opacity: 0; transform: translateY(0.9em) rotate(6deg); filter: blur(8px); }
}

.hero-line { margin: 14px 0 26px; overflow: hidden; }
.hero-outline {
  font-family: var(--mono);
  font-size: clamp(17px, 3.6vw, 26px);
  font-weight: 800;
  letter-spacing: 0.34em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 244, 250, 0.42);
  white-space: nowrap;
}

.hero-sub {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 560px;
}
.hero-sub em {
  font-style: normal;
  color: var(--ink);
  border-bottom: 2px solid var(--acid);
  padding-bottom: 1px;
}

/* ---------- EXIF 跑马灯 ---------- */

.ticker {
  margin: 34px -22px 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  animation: ticker 40s linear infinite;
}
.ticker-track b { color: var(--acid); font-weight: 600; margin: 0 6px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 取景器拖放区 ---------- */

.viewfinder {
  position: relative;
  min-height: clamp(220px, 40vh, 300px);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 46%, rgba(216, 255, 62, 0.05), transparent 70%),
    var(--panel);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
  overflow: hidden;
  outline: none;
}
.viewfinder:hover, .viewfinder:focus-visible { border-color: rgba(216, 255, 62, 0.55); }
.viewfinder.dragging {
  border-color: var(--acid);
  background: radial-gradient(ellipse 70% 60% at 50% 46%, rgba(216, 255, 62, 0.12), transparent 72%), var(--panel-strong);
  transform: scale(1.008);
}

.vf-corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--acid);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.vf-corner.tl { left: 16px; top: 16px; border-right: 0; border-bottom: 0; }
.vf-corner.tr { right: 16px; top: 16px; border-left: 0; border-bottom: 0; }
.vf-corner.bl { left: 16px; bottom: 16px; border-right: 0; border-top: 0; }
.vf-corner.br { right: 16px; bottom: 16px; border-left: 0; border-top: 0; }
.viewfinder:hover .vf-corner.tl, .viewfinder.dragging .vf-corner.tl { left: 10px; top: 10px; }
.viewfinder:hover .vf-corner.tr, .viewfinder.dragging .vf-corner.tr { right: 10px; top: 10px; }
.viewfinder:hover .vf-corner.bl, .viewfinder.dragging .vf-corner.bl { left: 10px; bottom: 10px; }
.viewfinder:hover .vf-corner.br, .viewfinder.dragging .vf-corner.br { right: 10px; bottom: 10px; }

.vf-cross {
  position: absolute;
  color: rgba(216, 255, 62, 0.7);
  font-size: 18px;
  font-weight: 300;
  transform: translate(-50%, -50%);
  left: 50%; top: 46%;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.vf-rec {
  position: absolute;
  left: 20px; top: 18px;
  margin-left: 34px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 7px;
}
.rec-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--acid);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

.vf-meta {
  position: absolute;
  right: 20px; bottom: 18px;
  margin-right: 30px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}

.vf-center { text-align: center; padding: 46px 20px; }
.vf-icon { font-size: 42px; color: var(--acid); margin-bottom: 12px; line-height: 1; }
.vf-title { font-size: 21px; font-weight: 700; }
.vf-or { color: var(--ink-3); font-weight: 400; margin: 0 4px; }
.vf-sub { font-size: 11px; letter-spacing: 0.22em; color: var(--ink-3); margin-top: 10px; }

/* ---------- 按钮 ---------- */

.btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  padding: 17px 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-arrow { transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(5px); }

.btn-primary {
  background: var(--acid);
  color: #0a0c04;
  box-shadow: 0 0 0 rgba(216, 255, 62, 0);
}
.btn-primary:hover { box-shadow: 0 0 34px rgba(216, 255, 62, 0.35); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-outline:hover { border-color: var(--acid); color: var(--acid); }

.btn-success {
  background: linear-gradient(120deg, var(--acid), #9BFF5E);
  color: #0a0c04;
}
.btn-success:hover { box-shadow: 0 0 34px rgba(155, 255, 94, 0.35); }

.btn-ghost {
  background: var(--panel);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--line-strong); }

.btn-small { font-size: 13px; padding: 9px 16px; }
.btn-wide { width: 100%; }

.btn-chip {
  background: var(--acid-dim);
  color: var(--acid);
  font-size: 13.5px;
  padding: 10px 18px;
}
.chip-danger { background: var(--danger-dim); color: var(--danger); }

.home-actions { display: flex; gap: 14px; margin: 26px 0 0; flex-wrap: wrap; }
.home-actions .btn { flex: 1; min-width: 230px; }

/* ---------- 能力卡片 ---------- */

.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 56px;
}
@media (max-width: 640px) { .specs { grid-template-columns: 1fr; } }

.spec-card {
  position: relative;
  padding: 26px 22px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.25s ease, background 0.25s ease;
  transform-style: preserve-3d;
}
.spec-card:hover { border-color: var(--line-strong); background: var(--panel-strong); }

.spec-index {
  font-size: 12px;
  color: var(--acid);
  letter-spacing: 0.2em;
}
.spec-title { font-size: 18px; font-weight: 800; margin: 10px 0 8px; }
.spec-desc { font-size: 13.5px; color: var(--ink-2); }
.spec-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 4px 8px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.privacy-note {
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  margin-top: 44px;
}

/* ---------- 通用卡片 / 控制台 ---------- */

.card-glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.con-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 34px 2px 12px;
}
.con-num {
  font-size: 11px;
  color: var(--acid);
  letter-spacing: 0.2em;
  border: 1px solid rgba(216, 255, 62, 0.35);
  border-radius: 3px;
  padding: 2px 7px;
}
.con-line { flex: 1; height: 1px; background: var(--line); }

/* ---------- 编辑页 HUD ---------- */

.hud {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  margin-top: 22px;
  position: sticky;
  /* sticky 时避开顶部安全区 */
  top: calc(12px + env(safe-area-inset-top));
  z-index: 50;
  background: rgba(11, 13, 21, 0.82);
}

.hud-thumb {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--panel-strong);
  cursor: zoom-in;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.hud-body { flex: 1; min-width: 0; }

.hud-status {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
  display: flex; align-items: center;
}
.dot {
  width: 7px; height: 7px;
  background: var(--acid);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 8px rgba(216, 255, 62, 0.7);
  animation: blink 2s ease-in-out infinite;
}

.hud-readout {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--acid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.04em;
}

.warning-box {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 107, 0.25);
  border-radius: 4px;
  font-size: 13.5px;
}

/* ---------- 表单 ---------- */

.form-group { overflow: hidden; }

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 6px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.form-row:focus-within { background: rgba(216, 255, 62, 0.03); }
.form-group .form-row:last-child, .form-group .grid-row:last-child { border-bottom: none; }

.label { font-size: 14.5px; color: var(--ink-2); font-weight: 500; flex-shrink: 0; }

.input, .select {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: right;
  /* ≥16px：iOS Safari 聚焦时不会自动放大页面 */
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  padding: 10px 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.select { cursor: pointer; color: var(--acid); font-weight: 600; direction: rtl; }
.select option { direction: ltr; background: #12141e; color: var(--ink); }
.input::placeholder { color: var(--ink-3); }

input[type="date"], input[type="time"] { color-scheme: dark; }

.grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 15px 18px;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid var(--line);
}
.grid-row.two-col { grid-template-columns: repeat(2, 1fr); }

.grid-item { display: flex; flex-direction: column; gap: 7px; }
.grid-label { font-size: 10px; color: var(--ink-3); letter-spacing: 0.18em; }
.grid-input {
  width: 100%;
  /* ≥16px 防 iOS 聚焦缩放 */
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  padding: 11px 8px;
  border-radius: 3px;
  border: 1px solid var(--line);
  text-align: center;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.grid-input:focus {
  border-color: rgba(216, 255, 62, 0.6);
  box-shadow: 0 0 0 3px rgba(216, 255, 62, 0.08);
}

.location-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  color: var(--acid);
  font-size: 12px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--line);
  background: var(--acid-dim);
}

.location-actions { display: flex; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }

.raw-info { margin-top: 14px; padding: 8px 18px; }
.raw-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.raw-row:last-child { border-bottom: none; }
.raw-label { color: var(--ink-3); flex-shrink: 0; }
.raw-value { color: var(--ink-2); font-family: var(--mono); font-size: 12.5px; text-align: right; word-break: break-all; }
.raw-empty { text-align: center; color: var(--ink-3); font-size: 13.5px; padding: 24px; }

.bottom-bar {
  position: sticky;
  bottom: 0;
  margin: 30px -22px 0;
  /* 底部兜住 home 条，左右兜住横屏安全区 */
  padding: 16px calc(22px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(22px + env(safe-area-inset-left));
  background: linear-gradient(transparent, rgba(7, 8, 13, 0.92) 26%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.bottom-note {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  margin-top: 10px;
}

/* ---------- 结果页 ---------- */

.result-top { text-align: center; padding-top: 54px; }

.stamp {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--acid);
  border: 2px solid var(--acid);
  border-radius: 4px;
  padding: 7px 18px 7px 22px;
  transform: rotate(-4deg);
  animation: stampIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.4) backwards;
  box-shadow: 0 0 30px rgba(216, 255, 62, 0.2);
}
@keyframes stampIn {
  from { transform: rotate(-14deg) scale(2.2); opacity: 0; }
}

.result-title {
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 900;
  letter-spacing: 0.01em;
  margin: 22px 0 8px;
}
.result-title .ch { display: inline-block; animation: chIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; }

.result-subtitle { font-size: 14.5px; color: var(--ink-2); margin-bottom: 30px; }

.result-card { padding: 12px; }
.result-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  cursor: zoom-in;
  display: block;
}
.file-info {
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  margin-top: 13px;
}
.badge-row { display: flex; justify-content: center; gap: 10px; margin: 11px 0 6px; }
.badge {
  padding: 5px 13px;
  background: var(--acid-dim);
  color: var(--acid);
  border-radius: 3px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
}

.compare-list { padding: 6px 18px; }
.compare-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  animation: rowIn 0.5s ease backwards;
}
.compare-item:nth-child(1) { animation-delay: 0.05s; }
.compare-item:nth-child(2) { animation-delay: 0.1s; }
.compare-item:nth-child(3) { animation-delay: 0.15s; }
.compare-item:nth-child(4) { animation-delay: 0.2s; }
.compare-item:nth-child(5) { animation-delay: 0.25s; }
.compare-item:nth-child(6) { animation-delay: 0.3s; }
.compare-item:nth-child(7) { animation-delay: 0.35s; }
.compare-item:nth-child(8) { animation-delay: 0.4s; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-14px); } }
.compare-item:last-child { border-bottom: none; }
.compare-label { color: var(--ink-3); font-size: 13px; flex-shrink: 0; padding-top: 2px; }
.compare-values { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 0; }
.compare-from {
  color: var(--ink-3);
  font-size: 12px;
  font-family: var(--mono);
  text-decoration: line-through;
  text-align: right;
  word-break: break-all;
}
.compare-to {
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--acid);
  text-align: right;
  word-break: break-all;
}

.result-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }

.save-tip {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  padding: 12px 16px;
  margin-top: 4px;
}
.secondary-actions { display: flex; gap: 12px; }
.secondary-actions .btn { flex: 1; }

/* ---------- 其他 ---------- */

.footer {
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  margin-top: 70px;
}
.footer em { color: var(--acid); font-style: normal; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: rgba(18, 20, 30, 0.95);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 12px 24px;
  border-radius: 4px;
  z-index: 999;
  max-width: 86vw;
  text-align: center;
  animation: viewIn 0.3s ease;
}
.toast.ok { border-color: rgba(216, 255, 62, 0.5); color: var(--acid); }

/* ---------- 入场揭示 ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .noise { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
  .hero { padding-top: 4vh; }
  .home-actions { flex-direction: column; }
  .home-actions .btn { min-width: 100%; }
  .hud { top: calc(8px + env(safe-area-inset-top)); }

  /* iOS 触控目标：表单行、按钮、选项 ≥ 44px */
  .form-row { min-height: 52px; }
  .btn { padding: 16px 24px; }
  .btn-chip { padding: 13px 16px; min-height: 44px; }
  .location-actions .btn { flex: 1; }
  .btn-small { padding: 13px 16px; min-height: 44px; }

  /* 小屏下三列参数栏文字与内边距略收，避免换行拥挤 */
  .grid-row { gap: 8px; padding: 14px 14px; }
  .grid-input { padding: 11px 4px; }
  .con-title { margin-top: 28px; }
  .footer { margin-top: 54px; }
}

/* 触屏设备：悬停型装饰动效直接关掉，避免残留态 */
@media (hover: none) {
  .btn-arrow { display: none; }
  .spec-card:hover { border-color: var(--line); background: var(--panel); }
}
