/* ============================================================
   疾速吃瓜网 公共样式（深色主题 · 移动端竖版优先）
   ============================================================ */
:root {
  --bg: #0d0d0f;
  --bg-elev: #16161a;
  --line: #232329;
  --text: #f2f2f4;
  --sub: #8a8a92;
  --accent: #ffb020;
  --danger: #ff3b30;
  --ok: #34c759;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

a { color: inherit; text-decoration: none; }

img { border: 0; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 14px;
  background: rgba(13, 13, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
}
.topbar .logo b { color: var(--accent); }
.topbar .back {
  font-size: 15px;
  color: var(--sub);
  padding: 6px 10px 6px 0;
  cursor: pointer;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--line);
  min-width: 44px;
  min-height: 44px;
}
.btn-primary {
  background: linear-gradient(135deg, #ffb020, #ff8a00);
  color: #1a1206;
  border: none;
}
.btn-block { width: 100%; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  z-index: 99;
  max-width: 86%;
  padding: 10px 18px;
  background: rgba(40, 40, 46, 0.95);
  color: #fff;
  font-size: 14px;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* ---------- 加载 / 空态 ---------- */
.load-state {
  text-align: center;
  color: var(--sub);
  font-size: 13px;
  padding: 22px 0 34px;
}
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: -4px;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   分享 ActionSheet（v1.1.7，深色主题 · 手机端底部弹层）
   ============================================================ */
.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity .18s;
}
.sheet-mask.show { opacity: 1; }
.sheet {
  width: 100%;
  max-width: 520px;
  background: var(--bg-elev);
  border-radius: 16px 16px 0 0;
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .22s ease;
}
.sheet-mask.show .sheet { transform: translateY(0); }
.sheet-title {
  text-align: center;
  font-size: 13px;
  color: var(--sub);
  padding: 10px 0 6px;
}
.sheet-item {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  text-align: left;
  cursor: pointer;
}
.sheet-item:last-of-type { border-bottom: 0; }
.sheet-item:active { opacity: .7; }
.sheet-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.sheet-desc {
  display: block;
  font-size: 12px;
  color: var(--sub);
  margin-top: 3px;
  line-height: 1.4;
}
.sheet-cancel {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  padding: 13px 0;
  cursor: pointer;
}
.sheet-cancel:active { opacity: .7; }
