/* =========================================================
   闪贴 CopyGo · 复刻样式表
   颜色: teal / emerald / amber 主调 */

:root {
  --bg: #f3f6ff;
  --bg-soft: #edf3ff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-muted: rgba(246, 249, 255, 0.92);
  --line: rgba(147, 162, 201, 0.22);
  --line-strong: rgba(117, 139, 193, 0.34);
  --text: #162033;
  --text-soft: #56647e;
  --text-faint: #8a96af;
  --brand: #555cf4;
  --brand-2: #20c5d7;
  --brand-3: #ff7a6b;
  --ok: #1493a4;
  --warn: #d65246;
  --shadow: 0 18px 48px -28px rgba(36, 49, 95, 0.32);
  --shadow-strong: 0 28px 64px -32px rgba(32, 45, 88, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(85, 92, 244, 0.16), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(32, 197, 215, 0.12), transparent 22%),
    radial-gradient(circle at 76% 78%, rgba(255, 122, 107, 0.1), transparent 20%),
    linear-gradient(180deg, var(--bg), var(--bg-soft) 46%, #f9fbff 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

code {
  padding: 0.08rem 0.4rem;
  border-radius: 0.45rem;
  background: rgba(85, 92, 244, 0.08);
  color: #4550d8;
  font-size: 0.92em;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-root {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.landing-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.landing-bg-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(92px);
  opacity: 0.74;
}

.landing-bg-blob--teal {
  top: -8%;
  left: -12%;
  width: min(72vw, 520px);
  height: min(72vw, 520px);
  background: radial-gradient(circle at 30% 30%, rgba(85, 92, 244, 0.44), transparent 62%);
}

.landing-bg-blob--emerald {
  right: -10%;
  bottom: 4%;
  width: min(62vw, 430px);
  height: min(62vw, 430px);
  background: radial-gradient(circle at 50% 50%, rgba(32, 197, 215, 0.34), transparent 64%);
}

.landing-bg-blob--amber {
  top: 38%;
  right: 16%;
  width: min(44vw, 300px);
  height: min(44vw, 300px);
  background: radial-gradient(circle at 50% 50%, rgba(255, 122, 107, 0.28), transparent 62%);
}

.landing-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(85, 92, 244, 0.05) 1px, transparent 0),
    linear-gradient(90deg, rgba(85, 92, 244, 0.05) 1px, transparent 0);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 82% 66% at 50% 34%, #000, transparent 100%);
  mask-image: radial-gradient(ellipse 82% 66% at 50% 34%, #000, transparent 100%);
}

.nav-root {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 250, 255, 0.76);
  border-bottom: 1px solid rgba(154, 169, 210, 0.2);
  box-shadow: 0 12px 36px -32px rgba(29, 43, 82, 0.58);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.nav-inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 4px 8px 4px 0;
  border-radius: 999px;
}

.nav-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  outline: 1px solid rgba(162, 174, 227, 0.34);
  box-shadow: 0 10px 24px -18px rgba(85, 92, 244, 0.55);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-brand-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.nav-brand-host {
  font-size: 11px;
  color: var(--text-faint);
}

.nav-list {
  display: none;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #4b5874;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nav-link:hover {
  background: rgba(85, 92, 244, 0.08);
  color: var(--brand);
}

.nav-link.is-active {
  background: linear-gradient(135deg, rgba(85, 92, 244, 0.14), rgba(32, 197, 215, 0.1));
  box-shadow: inset 0 0 0 1px rgba(85, 92, 244, 0.12);
  color: #4449d5;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.nav-badge--hot {
  background: rgba(255, 122, 107, 0.12);
  border-color: rgba(255, 122, 107, 0.24);
  color: #d65246;
}

.nav-mobile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid rgba(162, 174, 227, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #42506d;
  box-shadow: 0 12px 22px -18px rgba(42, 55, 102, 0.42);
}

.nav-mobile-btn svg {
  width: 20px;
  height: 20px;
}

.nav-drawer {
  display: none;
  background: rgba(250, 251, 255, 0.96);
  border-top: 1px solid rgba(162, 174, 227, 0.22);
  padding: 12px 16px;
}

.nav-drawer.is-open {
  display: grid;
  gap: 0.4rem;
}

.main,
.page {
  position: relative;
  z-index: 1;
  padding: 2.75rem 0 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow,
.page-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(85, 92, 244, 0.92);
}

.hero-title {
  margin-top: 0.55rem;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: #121a31;
}

.gradient-title {
  background: linear-gradient(120deg, #5056f2, #20c5d7 48%, #ff7a6b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead,
.page-lead {
  margin-top: 0.75rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-sub {
  margin-top: 0.75rem;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.emph {
  font-weight: 800;
}

.emph--pdd {
  color: #5056f2;
}

.emph--takeout {
  color: #d65246;
}

.spot-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.spot {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 248, 255, 0.94));
  border: 1px solid rgba(162, 174, 227, 0.24);
  border-left: 4px solid transparent;
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.spot:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -24px rgba(43, 58, 108, 0.3);
}

.spot--teal {
  border-left-color: #555cf4;
}

.spot--emerald {
  border-left-color: #20c5d7;
}

.spot--amber {
  border-left-color: #ff7a6b;
}

.spot--primary {
  border-left-width: 6px;
  box-shadow: 0 20px 40px -24px rgba(85, 92, 244, 0.42);
}

.spot-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
}

.spot--primary .spot-icon {
  width: 3.5rem;
  height: 3.5rem;
}

.spot--teal .spot-icon {
  background: linear-gradient(145deg, rgba(85, 92, 244, 0.16), rgba(85, 92, 244, 0.05));
  color: #4c51de;
}

.spot--emerald .spot-icon {
  background: linear-gradient(145deg, rgba(32, 197, 215, 0.16), rgba(32, 197, 215, 0.05));
  color: #1493a4;
}

.spot--amber .spot-icon {
  background: linear-gradient(145deg, rgba(255, 122, 107, 0.18), rgba(255, 122, 107, 0.05));
  color: #d65246;
}

.spot-logos {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.spot-logo {
  width: 1.38rem;
  height: 1.38rem;
  border-radius: 6px;
  object-fit: contain;
}

.spot-logo--single {
  width: 1.86rem;
  height: 1.86rem;
}

.spot-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.spot-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d89a4;
}

.spot-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.spot-desc {
  font-size: 0.82rem;
  line-height: 1.48;
  color: var(--text-soft);
}

.spot-metrics {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(85, 92, 244, 0.1);
  border: 1px solid rgba(85, 92, 244, 0.22);
  color: #474dd8;
  font-size: 10px;
  font-weight: 800;
}

.spot-arrow {
  flex-shrink: 0;
  color: #56647e;
  font-size: 0.875rem;
  font-weight: 700;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.foot-link {
  color: #56647e;
}

.foot-link:hover {
  color: #5056f2;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mock-wrap {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.mock-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.55;
  pointer-events: none;
}

.mock-glow--amber {
  right: 4%;
  bottom: 12%;
  width: 120px;
  height: 120px;
  background: rgba(255, 122, 107, 0.32);
}

.mock-glow--emerald {
  left: 0;
  bottom: 28%;
  width: 140px;
  height: 140px;
  background: rgba(32, 197, 215, 0.34);
}

.mock-browser {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  outline: 1px solid rgba(162, 174, 227, 0.18);
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(180deg, #f8faff, #eef3ff);
  border-bottom: 1px solid rgba(162, 174, 227, 0.18);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mock-dot--r { background: #fb7185; }
.mock-dot--y { background: #fbbf24; }
.mock-dot--g { background: #4ade80; }

.mock-url {
  flex: 1;
  margin-left: 0.35rem;
  text-align: center;
  color: #7a88a4;
  font-size: 11px;
  font-weight: 600;
}

.mock-body {
  padding: 1rem 1rem 1.25rem;
  background: linear-gradient(180deg, #f8faff, #f2f6ff);
}

.mock-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.mock-screen {
  padding: 0.7rem 0.8rem;
  border-radius: 0.8rem;
  box-shadow: 0 8px 18px -16px rgba(23, 36, 76, 0.3);
}

.mock-screen--teal {
  background: linear-gradient(135deg, rgba(85, 92, 244, 0.12), rgba(85, 92, 244, 0.04));
  border: 1px solid rgba(85, 92, 244, 0.18);
}

.mock-screen--emerald {
  background: linear-gradient(135deg, rgba(32, 197, 215, 0.14), rgba(32, 197, 215, 0.05));
  border: 1px solid rgba(32, 197, 215, 0.2);
}

.mock-screen--amber {
  background: linear-gradient(135deg, rgba(255, 122, 107, 0.14), rgba(255, 122, 107, 0.05));
  border: 1px solid rgba(255, 122, 107, 0.2);
}

.mock-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #67758f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-lines,
.mock-rows {
  display: grid;
  gap: 0.35rem;
}

.mock-lines span,
.mock-rows span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(147, 161, 199, 0.3);
}

.mock-rows span:nth-child(1),
.mock-lines span:nth-child(1) { width: 100%; }

.mock-rows span:nth-child(2),
.mock-lines span:nth-child(2) { width: 82%; }

.mock-rows span:nth-child(3),
.mock-lines span:nth-child(3) { width: 64%; }

.w-2-3 { width: 66% !important; }
.w-4-5 { width: 80% !important; }

.mock-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.6rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.mock-pill--amber {
  background: rgba(255, 122, 107, 0.12);
  color: #d65246;
}

.mock-pill--emerald {
  background: rgba(32, 197, 215, 0.12);
  color: #1493a4;
}

.mock-pill--teal {
  background: rgba(85, 92, 244, 0.12);
  color: #4c53e0;
}

.page-title {
  margin-top: 0.45rem;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}

.card {
  padding: 1.3rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 255, 0.92));
  border: 1px solid rgba(162, 174, 227, 0.2);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 1rem;
}

.card-title {
  margin-bottom: 0.5rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
}

.card-text {
  color: var(--text-soft);
  line-height: 1.72;
}

.card-text + .card-text {
  margin-top: 0.5rem;
}

.grid-2,
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.42rem;
  color: #43506b;
  font-size: 0.86rem;
  font-weight: 700;
}

.form-input,
.form-textarea,
.pdd-input {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(162, 174, 227, 0.28);
  border-radius: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-textarea:focus,
.pdd-input:focus {
  border-color: rgba(85, 92, 244, 0.46);
  box-shadow: 0 0 0 4px rgba(85, 92, 244, 0.12);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  margin-top: 0.42rem;
  color: var(--text-faint);
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.68rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  font-size: 0.95rem;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #5056f2, #20c5d7);
  color: #fff;
  box-shadow: 0 16px 28px -18px rgba(85, 92, 244, 0.58);
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  background: rgba(248, 250, 255, 0.66);
  border-top: 1px solid rgba(162, 174, 227, 0.22);
}

.footer-inner {
  padding: 2rem 0;
  text-align: center;
}

.footer-text {
  margin-bottom: 0.5rem;
  color: #5b6782;
  font-size: 0.9rem;
}

.footer-text-sm {
  margin-bottom: 0.75rem;
  color: #8895b0;
  font-size: 0.8rem;
}

.footer-link {
  padding: 4px 9px;
  border-radius: 999px;
  color: #5d6882;
  font-size: 0.9rem;
}

.footer-link:hover {
  background: rgba(85, 92, 244, 0.08);
  color: #5056f2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cg-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  max-width: min(88vw, 520px);
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(21, 28, 45, 0.94);
  color: #fff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 120;
}

.cg-toast.is-visible {
  opacity: 1;
}

.theme-teal .page-eyebrow,
.theme-blue .page-eyebrow {
  color: #5056f2;
}

.pdd-page,
.pdd-lucky-page {
  min-height: 100vh;
}

.pdd-page {
  background: radial-gradient(circle at top left, rgba(85, 92, 244, 0.1), transparent 24%), radial-gradient(circle at 88% 12%, rgba(32, 197, 215, 0.1), transparent 20%), linear-gradient(180deg, #f5f7ff, #eef4ff);
}

.pdd-lucky-page {
  background: radial-gradient(circle at top left, rgba(255, 122, 107, 0.08), transparent 24%), radial-gradient(circle at right bottom, rgba(85, 92, 244, 0.1), transparent 26%), linear-gradient(180deg, #fff9f7, #f6f7ff);
}

.pdd-page .landing-bg,
.pdd-lucky-page .landing-bg {
  display: none;
}

.koul-page-body {
  position: relative;
  width: 100%;
}

.pdd-container {
  max-width: 440px;
  margin: 0 auto;
  padding: 0.55rem 0.8rem;
}

.pdd-card {
  margin-bottom: 12px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.97));
  border: 1px solid rgba(162, 174, 227, 0.18);
  border-radius: 18px;
  box-shadow: 0 16px 36px -24px rgba(42, 58, 113, 0.3);
}

.pdd-lucky-page .pdd-card {
  border-color: rgba(255, 122, 107, 0.16);
}

.pdd-below-intro-wrap,
.pdd-submit-card,
.pdd-list-card {
  position: relative;
}

.koul-top-card {
  padding-bottom: 10px;
}

.pdd-intro-head,
.koul-used-head,
.pdd-intro-local-row,
.pdd-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pdd-intro-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.koul-intro-head--compact {
  margin-bottom: 6px;
}

.pdd-intro-lead,
.pdd-section-head-lead {
  flex: 1;
  min-width: 0;
}

.pdd-intro-actions,
.pdd-intro-local-actions,
.pdd-section-actions,
.pdd-smart-wrap,
.pdd-jump-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdd-title {
  color: #2f3d63;
  font-size: 22px;
  font-weight: 800;
}

.pdd-title--compact {
  font-size: 18px;
  line-height: 1.2;
}

.pdd-title-row,
.pdd-about-card-row,
.pdd-item-code-row,
.pdd-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdd-credit,
.pdd-about-credit,
.pdd-intro-local-label,
.pdd-entry-tip,
.koul-detect,
.pdd-empty-tip,
.koul-empty-tip,
.pdd-page-footer,
.pdd-page-footer__link {
  color: var(--text-faint);
}

.pdd-credit,
.pdd-about-credit {
  font-size: 12px;
  margin-top: 6px;
}

.pdd-credit--compact,
.pdd-about-credit--intro {
  margin-top: 4px;
  font-size: 11px;
}

.pdd-author-link,
.pdd-takeout-section-entry,
.pdd-entry-tip--takeout,
.pdd-fav-btn,
.pdd-about-btn,
.pdd-intro-local-btn,
.pdd-title-info-btn,
.pdd-jump-toggle-info,
.pdd-smart-info {
  color: #4854d8;
}

.pdd-fav-btn,
.pdd-about-btn,
.pdd-intro-local-btn,
.pdd-title-info-btn,
.pdd-jump-toggle-info,
.pdd-smart-info,
.pdd-about-card-copy {
  border: 1px solid rgba(162, 174, 227, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.pdd-fav-btn,
.pdd-about-btn {
  padding: 6px 12px;
  font-size: 11px;
}

.pdd-about-btn {
  background: rgba(32, 197, 215, 0.1);
  border-color: rgba(32, 197, 215, 0.22);
}

.pdd-about-btn--badged {
  box-shadow: 0 10px 22px -18px rgba(32, 197, 215, 0.58);
}

.pdd-title-info-btn,
.pdd-jump-toggle-info,
.pdd-smart-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
}

.pdd-title-info-btn__glyph {
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
}

.pdd-inline-info-icon {
  width: 14px;
  height: 14px;
}

.koul-details,
.pdd-entry-tip,
.pdd-share-toggle,
.pdd-jump-toggle,
.koul-unused-wechat-tip {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(162, 174, 227, 0.18);
  border-radius: 12px;
}

.koul-details-summary {
  list-style: none;
  padding: 8px 10px;
  color: #52607b;
  font-size: 12px;
  font-weight: 800;
}

.koul-details-summary::-webkit-details-marker {
  display: none;
}

.koul-details-summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 4px;
  color: #93a2bf;
  transition: transform 0.15s ease;
}

.koul-details[open] > .koul-details-summary::before {
  transform: rotate(90deg);
}

.koul-desc-in-details {
  padding: 0 10px 10px;
}

.koul-beta-notice {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 122, 107, 0.12), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(255, 122, 107, 0.24);
  color: #c25549;
  font-size: 12px;
  line-height: 1.55;
}

.koul-beta-notice--short {
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.45;
}

.pdd-desc {
  color: #536079;
  font-size: 13px;
  line-height: 1.65;
}

.koul-desc-in-details .pdd-desc-item {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
}

.koul-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.koul-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  min-width: 88px;
  padding: 8px 10px;
  border: 1px solid rgba(162, 174, 227, 0.18);
  border-radius: 12px;
  background: rgba(246, 248, 255, 0.9);
  color: #687797;
  font-size: 13px;
  font-weight: 700;
}

.koul-tab--active {
  background: linear-gradient(180deg, rgba(85, 92, 244, 0.12), rgba(255, 255, 255, 0.98));
  border-color: rgba(85, 92, 244, 0.28);
  box-shadow: 0 12px 22px -18px rgba(85, 92, 244, 0.5);
  color: #4449d5;
}

.koul-tab--disabled {
  background: #f1f5f9;
  color: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.75;
}

.koul-tab-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.koul-tab-logo,
.pdd-takeout-entry__ico {
  object-fit: contain;
}

.koul-tab-logo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.pdd-input-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdd-input--area {
  min-height: 80px;
  line-height: 1.5;
  resize: vertical;
}

.pdd-submit-btn,
.pdd-jump-btn,
.pdd-share-btn,
.pdd-modal-btn,
.koul-locked-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pdd-submit-btn {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #555cf4, #ff7a6b);
  box-shadow: 0 16px 26px -18px rgba(85, 92, 244, 0.56);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.koul-detect {
  font-size: 12px;
  line-height: 1.5;
}

.koul-detect--ok {
  color: #1493a4;
}

.koul-detect--warn {
  color: #d65246;
}

.pdd-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.pdd-section-title--ok {
  color: #4c53e0;
}

.pdd-section-title--used {
  color: #73809a;
}

.pdd-section-count,
.koul-used-total-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(85, 92, 244, 0.1);
  color: #4854d8;
  font-size: 12px;
  font-weight: 800;
}

.koul-step-flow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 12px;
}

.koul-step-flow__label {
  color: #8c97ac;
  font-size: 11.5px;
}

.koul-step-flow__arrow {
  color: #98a8c7;
  font-size: 11px;
}

.koul-step-flow__text {
  color: #4c53e0;
  font-size: 12px;
  font-weight: 700;
}

.koul-coupon-btn--step {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border: 1px solid rgba(85, 92, 244, 0.28);
  border-radius: 6px;
  color: #4854d8;
  font-size: 12px;
  font-weight: 800;
}

.koul-unused-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(162, 174, 227, 0.16);
}

.koul-refresh-at {
  display: inline-flex;
  align-items: center;
  color: #8d9bb4;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.koul-refresh-at--inline {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdd-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 86px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(162, 174, 227, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #42506b;
  font-size: 12px;
  font-weight: 800;
}

.pdd-refresh-icon {
  width: 13px;
  height: 13px;
  color: #55627d;
}

.pdd-refresh-icon--manual {
  animation: pdd-refresh-spin 0.7s linear infinite;
}

.pdd-smart-btn {
  min-width: 110px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #555cf4, #ff7a6b);
  box-shadow: 0 12px 22px -14px rgba(85, 92, 244, 0.56);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.pdd-smart-btn--active {
  background: linear-gradient(135deg, #555cf4, #20c5d7);
}

.pdd-smart-btn--upgrading,
.pdd-smart-btn:disabled,
.pdd-submit-btn:disabled,
.pdd-refresh-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.pdd-share-toggle-wrap,
.pdd-jump-toggle-wrap {
  margin-top: 10px;
}

.pdd-share-toggle {
  display: flex;
  gap: 8px;
  padding: 9px 10px;
  color: #56637d;
}

.pdd-share-toggle__input,
.pdd-jump-toggle input {
  margin-top: 2px;
  accent-color: #555cf4;
}

.pdd-share-toggle__stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pdd-share-toggle__main {
  color: #394762;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.pdd-share-toggle__hint-preview {
  color: #6f7d99;
  font-size: 11px;
}

.pdd-jump-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 8px;
  color: #596781;
  font-size: 12px;
  font-weight: 800;
}

.koul-unused-wechat-tip,
.pdd-entry-tip {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #5c6982;
}

.pdd-entry-tip--takeout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4854d8;
}

.pdd-takeout-entry__icons {
  display: inline-flex;
  margin-right: 8px;
}

.pdd-takeout-entry__ico {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  margin-right: -4px;
}

.pdd-takeout-entry__line {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}

.pdd-takeout-entry__sub {
  font-weight: 800;
}

.pdd-takeout-entry__chevron {
  color: #99a7c2;
  font-size: 20px;
}

.pdd-section-head-lead--with-takeout-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdd-section-head-meta-right {
  display: flex;
}

.pdd-takeout-section-entry {
  font-size: 12px;
  font-weight: 700;
}

.pdd-takeout-section-entry__badge {
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 122, 107, 0.12);
  color: #cf5649;
  font-size: 10px;
}

.pdd-list {
  list-style: none;
}

.pdd-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid rgba(162, 174, 227, 0.22);
  border-radius: 14px;
  overflow: hidden;
}

.pdd-item--mini {
  background: linear-gradient(180deg, rgba(32, 197, 215, 0.08), rgba(255, 255, 255, 0.96));
  border-color: rgba(32, 197, 215, 0.16);
}

.pdd-item--app {
  background: linear-gradient(180deg, rgba(85, 92, 244, 0.08), rgba(255, 255, 255, 0.96));
  border-color: rgba(85, 92, 244, 0.16);
}

.pdd-item--mini::before,
.pdd-item--app::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
}

.pdd-item--mini::before {
  background: linear-gradient(180deg, #20c5d7, #7ae8ef);
}

.pdd-item--app::before {
  background: linear-gradient(180deg, #555cf4, #8f96ff);
}

.pdd-item--official {
  box-shadow: inset 0 0 0 1px rgba(255, 122, 107, 0.16);
}

.koul-promo-official-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 2px 9px 3px;
  border-bottom-left-radius: 10px;
  background: linear-gradient(135deg, #ff8c7a, #ff7a6b 55%, #d65246);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.koul-promo-official-badge::before {
  content: "✓";
}

.pdd-item-main {
  flex: 1;
  min-width: 0;
}

.pdd-number {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1b2640;
  font-size: 15px;
  font-weight: 800;
}

.koul-promo-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.koul-promo-tag--red { background: rgba(255, 122, 107, 0.12); border: 1px solid rgba(255, 122, 107, 0.24); color: #cf5649; }
.koul-promo-tag--orange { background: rgba(255, 158, 122, 0.14); border: 1px solid rgba(255, 158, 122, 0.24); color: #d06a4d; }
.koul-promo-tag--amber { background: rgba(255, 208, 110, 0.16); border: 1px solid rgba(255, 208, 110, 0.28); color: #b77221; }
.koul-promo-tag--green { background: rgba(32, 197, 215, 0.12); border: 1px solid rgba(32, 197, 215, 0.24); color: #1493a4; }
.koul-promo-tag--blue,
.koul-promo-tag--slate { background: rgba(85, 92, 244, 0.12); border: 1px solid rgba(85, 92, 244, 0.24); color: #4c53e0; }
.koul-promo-tag--purple { background: rgba(155, 92, 244, 0.12); border: 1px solid rgba(155, 92, 244, 0.26); color: #7c3aed; }

/* ============ JD 提交卡：券型 / 自定义 / 可使用次数 chips ============ */
.koul-meta-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.koul-meta-section[hidden] { display: none; }

.koul-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.koul-meta-row__label {
  flex: 0 0 auto;
  min-width: 64px;
  font-size: 13px;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.koul-meta-row__hint {
  font-size: 12px;
  color: #9ca3af;
}
.koul-meta-row--custom { padding-left: 64px; }
@media (max-width: 480px) {
  .koul-meta-row--custom { padding-left: 0; }
}

.koul-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
}

.koul-meta-chip {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.4;
}
.koul-meta-chip:hover {
  border-color: #d4d4d8;
  color: #1f2937;
}
.koul-meta-chip--active,
.koul-meta-chip--accent {
  border-color: #f04444;
  color: #ef3838;
  background: #fff5f5;
}
.koul-meta-chip--accent:hover {
  border-color: #e63232;
  color: #e63232;
}
.koul-meta-chip--active {
  box-shadow: 0 1px 3px rgba(240, 68, 68, 0.18);
}

.koul-meta-input {
  flex: 1 1 160px;
  max-width: 220px;
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #1f2937;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.koul-meta-input::placeholder { color: #9ca3af; }
.koul-meta-input:focus {
  border-color: #f04444;
  background: #ffffff;
}

.koul-meta-info {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.koul-meta-info:hover {
  border-color: #9ca3af;
  color: #4b5563;
}

.pdd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 4px;
  color: #6c7893;
  font-size: 12px;
}

.pdd-meta-ip,
.koul-meta-usage {
  color: #6c7893;
}

.koul-meta-usage-sep {
  margin: 0 3px;
  color: #cbd5e1;
}

.pdd-jump-btn,
.pdd-share-btn {
  min-width: 60px;
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.pdd-jump-btn {
  border: 0;
  background: linear-gradient(135deg, #555cf4, #20c5d7);
  color: #fff;
}

.pdd-jump-btn--used,
.pdd-jump-btn:disabled {
  background: linear-gradient(135deg, #7b879b, #a5b0c3);
  color: #fff;
  cursor: default;
}

.pdd-share-btn {
  border: 1px solid rgba(162, 174, 227, 0.26);
  background: rgba(255, 255, 255, 0.92);
  color: #42506b;
}

/* 已使用 item 的「复制」按钮：浅色描边样式 */
.pdd-copy-btn {
  min-width: 60px;
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(162, 174, 227, 0.26);
  background: rgba(255, 255, 255, 0.92);
  color: #42506b;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pdd-copy-btn:hover {
  background: rgba(85, 92, 244, 0.06);
  border-color: rgba(85, 92, 244, 0.3);
  color: #4c53e0;
}
.pdd-copy-btn:active {
  background: rgba(85, 92, 244, 0.10);
}
.pdd-copy-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* 「✓已使用」状态标签：浅绿背景 + 绿色文字 + 对勾图标 */
.pdd-used-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.10);
  color: #047857;
  white-space: nowrap;
}
.pdd-used-tag__ico {
  flex-shrink: 0;
}

.koul-used-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(162, 174, 227, 0.14);
}

.koul-used-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.koul-used-stats__item {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.koul-used-stats__item--app {
  background: rgba(85, 92, 244, 0.12);
  color: #4c53e0;
}

.koul-used-stats__item--mini {
  background: rgba(32, 197, 215, 0.12);
  color: #1493a4;
}

.pdd-page-footer {
  padding: 12px 0 22px;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.pdd-page-footer__brand {
  color: #5f6c86;
  font-weight: 700;
}

.pdd-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(26, 34, 56, 0.42);
}

.pdd-modal-overlay[hidden] {
  display: none;
}

.pdd-modal {
  width: 100%;
  max-width: 380px;
  padding: 20px 18px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.98));
  box-shadow: 0 28px 56px -28px rgba(31, 42, 79, 0.5);
}

.pdd-modal-title {
  margin: 0 0 12px;
  color: #18223a;
  font-size: 1.15rem;
  font-weight: 800;
}

.pdd-about-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.pdd-about-card {
  padding: 10px 12px;
  background: rgba(246, 248, 255, 0.9);
  border: 1px solid rgba(162, 174, 227, 0.18);
  border-radius: 14px;
}

.pdd-about-card-title {
  flex: 0 0 38px;
  color: #73809a;
  font-size: 12px;
  font-weight: 800;
}

.pdd-about-card-text {
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-all;
  color: #1e2843;
  font-size: 15px;
  font-weight: 700;
}

.pdd-about-card-copy {
  padding: 4px 10px;
  border-radius: 10px;
  color: #43506b;
  font-size: 11px;
}

.pdd-modal-btn {
  width: 100%;
  padding: 10px 28px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #5056f2, #20c5d7);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.pdd-about-close {
  margin-top: 8px;
}

.koul-locked-modal {
  position: relative;
  max-width: 380px;
  padding: 22px 18px 16px;
}

.koul-locked-close {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border: none;
  background: none;
  color: #8794b0;
  font-size: 22px;
  line-height: 1;
}

.koul-locked-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
}

.koul-locked-hint strong {
  color: #1d2741;
}

.koul-locked-wechat-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.koul-locked-warn {
  margin: 0 0 12px;
  color: #d65246;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.koul-locked-raw-box {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(162, 174, 227, 0.18);
  border-radius: 10px;
  background: rgba(246, 248, 255, 0.9);
}

.koul-locked-raw-label {
  display: block;
  margin-bottom: 4px;
  color: #8794b0;
  font-size: 11px;
  font-weight: 700;
}

.koul-locked-raw-text {
  color: #41506c;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
}

.koul-locked-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.koul-locked-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.koul-locked-btn--outline {
  background: #fff;
  border: 1.5px solid rgba(162, 174, 227, 0.26);
  color: #43506b;
}

.koul-locked-btn--primary {
  border: none;
  background: linear-gradient(135deg, #5056f2, #ff7a6b);
  color: #fff;
}

.koul-locked-btn--unuse {
  background: rgba(255, 122, 107, 0.1);
  border: 1.5px solid rgba(255, 122, 107, 0.24);
  color: #d65246;
}

.koul-locked-btn--ghost {
  background: rgba(246, 248, 255, 0.84);
  border: 1.5px solid rgba(162, 174, 227, 0.22);
  color: #64748b;
}

/* 兜底：HTML 的 hidden 属性必须强制隐藏，
   防止后面的 .coupon-alert/.coupon-detect/.coupon-result 等
   设了 display:flex/grid 把它覆盖掉，导致初始状态就显示出来。 */
[hidden] { display: none !important; }

.coupon-query-card {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.coupon-query-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #5056f2, #20c5d7, #10b981);
  border-radius: 3px 3px 0 0;
}
.coupon-query-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(80, 86, 242, .18);
}

.coupon-query-textarea {
  min-height: 136px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}
.coupon-query-textarea:focus {
  border-color: #20c5d7;
  box-shadow: 0 0 0 3px rgba(32, 197, 215, .18);
  outline: none;
}

.form-hint code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
}

/* 实时检测提示 */
.coupon-detect {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .2s, color .2s, border-color .2s;
}
.coupon-detect__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #cbd5e1;
}
.coupon-detect--info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
}
.coupon-detect--ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}
.coupon-detect--ok .coupon-detect__dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
  animation: coupon-pulse 1.6s ease-in-out infinite;
}
.coupon-detect--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}
.coupon-detect--warn .coupon-detect__dot { background: #f59e0b; }

@keyframes coupon-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, .08); }
}

/* 提交按钮 + spinner */
.coupon-query-submit {
  min-height: 48px;
  padding: 10px 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s;
}
.coupon-query-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -6px rgba(80, 86, 242, .35);
}
.coupon-query-submit:active:not(:disabled) {
  transform: translateY(0);
}
.coupon-query-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}
.coupon-submit-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: pdd-refresh-spin .7s linear infinite;
}

/* 错误提示增强 */
.coupon-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.coupon-alert__ico {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: currentColor;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.coupon-alert--error {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  animation: coupon-shake .35s ease;
}
.coupon-alert--error .coupon-alert__ico { background: #dc2626; }
.coupon-alert--error > span:last-child { color: #991b1b; }

@keyframes coupon-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

/* 结果区 */
.coupon-result {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 197, 215, .08), rgba(80, 86, 242, .06));
  border: 1px solid rgba(32, 197, 215, .22);
  animation: coupon-fade-in .4s ease;
}
@keyframes coupon-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.coupon-result-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #047857;
}
.coupon-result-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .2);
}

/* 美团跳转按钮：黄橙渐变 + 呼吸 */
.coupon-jump-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFE066 0%, #FFC300 50%, #FF9500 100%);
  color: #4a2900;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 22px -6px rgba(255, 149, 0, .42);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.coupon-jump-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s;
}
.coupon-jump-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(255, 149, 0, .55);
}
.coupon-jump-btn:hover::before {
  transform: translateX(100%);
}
.coupon-jump-btn__arrow {
  font-size: 18px;
  transition: transform .2s;
}
.coupon-jump-btn:hover .coupon-jump-btn__arrow {
  transform: translateX(4px);
}

.coupon-poi {
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .65);
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  word-break: break-all;
}
.coupon-poi span {
  color: #0f766e;
  font-weight: 700;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* 一键清除按钮 */
.coupon-clear-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px 0;
  border: 1px dashed rgba(100, 116, 139, .35);
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.coupon-clear-btn:hover {
  background: rgba(239, 68, 68, .08);
  border-color: rgba(239, 68, 68, .35);
  color: #dc2626;
}

/* 第一家店金额预览 */
.coupon-amount {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, .12), rgba(34, 211, 238, .10));
  border: 1px solid rgba(16, 185, 129, .26);
}
.coupon-amount__tag {
  font-size: 22px;
  line-height: 1.1;
  flex-shrink: 0;
}
.coupon-amount__body { flex: 1; min-width: 0; }
.coupon-amount__shop {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: #0f766e;
  word-break: break-all;
}
.coupon-amount__num {
  margin: 0;
  font-size: 14px;
  color: #047857;
  line-height: 1.55;
}
.coupon-amount__num strong {
  font-size: 22px;
  font-weight: 900;
  color: #047857;
  margin: 0 2px;
}
.coupon-amount__limit {
  margin-left: 4px;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
}
@keyframes pdd-refresh-spin {
  from { transform: rotate(0); }
  to { transform: rotate(1turn); }
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
  .main,
  .page { padding: 3rem 0 6rem; }
  .hero-title { font-size: 3.15rem; }
  .page-title { font-size: 2.3rem; }
  .spot-list { margin-top: 3rem; }
  .card { padding: 1.55rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav-list { display: inline-flex; }
  .nav-mobile-btn,
  .nav-drawer { display: none !important; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
  .hero-grid { grid-template-columns: 1fr min(42%, 490px); gap: 4.25rem; }
  .mock-wrap { margin: 0; max-width: none; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 520px) {
  .koul-step-flow { gap: 4px; }
  .koul-step-flow__label,
  .koul-step-flow__arrow,
  .koul-step-flow__text,
  .koul-coupon-btn--step { font-size: 11px; }
  .koul-unused-toolbar { gap: 6px; }
  .pdd-refresh-btn { min-width: 76px; padding: 0 8px; }
  .pdd-smart-btn { min-width: 96px; padding: 0 10px; }

  /* 窄屏修复：列表 section 头部强制纵向布局，
     避免左侧"可用邀请码 0"被右侧 [仅复制][刷新][智能直达] 挤成竖排单字。 */
  .pdd-section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .pdd-section-head-lead {
    width: 100%;
  }
  /* 标题"可用邀请码"始终一行 */
  .pdd-section-title {
    white-space: nowrap;
    flex-shrink: 0;
  }
  /* 操作按钮组允许换行，避免在更窄屏（如 320px）超出 */
  .pdd-section-actions {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 8px;
    justify-content: flex-end;
  }
  /* "京东外卖 NEW"小入口横向排列，不再被压成竖排 */
  .pdd-takeout-section-entry {
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .spot { gap: 0.74rem; padding: 0.9rem 0.88rem; }
  .spot-icon { width: 2.8rem; height: 2.8rem; }
  .spot--primary .spot-icon { width: 3rem; height: 3rem; }
  .spot-title { font-size: 1rem; }
  .spot-desc { font-size: 12px; }
  .pdd-jump-btn,
  .pdd-share-btn,
  .pdd-copy-btn { min-width: 56px; padding: 0 10px; }
  .pdd-used-tag { padding: 0 8px; font-size: 12px; }
}

/* =========================================================
   饱了吗组队 · 二维码上传 + 组队列表样式
   独立于现有 koul/pdd 样式之外，避免污染其它页面 */

.bao-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  border: 2px dashed rgba(0, 153, 255, 0.36);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.06), rgba(85, 92, 244, 0.04));
  color: #2563eb;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  outline: none;
}

.bao-drop:hover,
.bao-drop:focus-visible {
  border-color: rgba(0, 153, 255, 0.7);
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.1), rgba(85, 92, 244, 0.06));
}

.bao-drop--hover {
  border-color: rgba(0, 153, 255, 0.85);
  background: rgba(0, 153, 255, 0.12);
  transform: translateY(-1px);
}

.bao-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.bao-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.bao-drop-ico {
  width: 28px;
  height: 28px;
  color: #0ea5e9;
}

.bao-drop-title {
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 800;
}

.bao-drop-sub {
  color: #6b7a99;
  font-size: 12px;
  line-height: 1.45;
}

/* 解析后的预览块（仅展示文本，不显示压缩图） */
.bao-preview {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 10px 30px 10px 12px;
  border: 1px solid rgba(85, 92, 244, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
}

.bao-preview-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bao-preview-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.bao-preview-label {
  flex: 0 0 auto;
  width: 56px;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.bao-preview-text {
  flex: 1;
  min-width: 0;
  color: #1e293b;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}

.bao-preview-text--mono {
  color: #0ea5e9;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11.5px;
  user-select: all;
}

.bao-preview-clear {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(162, 174, 227, 0.28);
  border-radius: 50%;
  background: #fff;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.bao-preview-clear:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* 组队列表 item：基于 .pdd-item 增强 */
.bao-list .pdd-item {
  align-items: stretch;
}

.bao-item {
  background: linear-gradient(180deg, rgba(0, 153, 255, 0.08), rgba(255, 255, 255, 0.96));
  border-color: rgba(0, 153, 255, 0.2);
}

.bao-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #38bdf8, #0099ff);
}

.bao-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bao-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bao-item-title {
  color: #1d2741;
  font-size: 14px;
  font-weight: 800;
}

.bao-item-count {
  color: #0284c7;
  font-size: 12px;
  font-weight: 800;
}

.bao-item-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.14);
  overflow: hidden;
}

.bao-item-bar__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #0099ff);
  transition: width 0.25s ease;
}

.bao-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6c7893;
  font-size: 12px;
}

.bao-item-time {
  color: #d65246;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bao-item-created {
  color: #94a3b8;
}

.bao-item-url {
  color: #475569;
  font-size: 11.5px;
  line-height: 1.45;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  word-break: break-all;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bao-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  justify-content: center;
}

.bao-item-actions .pdd-jump-btn,
.bao-item-actions .pdd-share-btn {
  min-width: 88px;
}

.bao-action-join {
  background: linear-gradient(135deg, #0099ff, #38bdf8) !important;
}

/* 已过期：盖一层灰色蒙板 */
.bao-item--expired {
  filter: grayscale(0.4);
  opacity: 0.86;
}

.bao-item--expired::before {
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
}

.bao-item-expired {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.bao-item-expired span {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.bao-item--expired .bao-item-time {
  color: #94a3b8;
}

.bao-item--expired .bao-item-bar__fill {
  background: linear-gradient(90deg, #cbd5e1, #94a3b8);
}

/* 移除按钮（仅过期时出现）允许点击穿透蒙板 */
.bao-action-remove {
  position: relative;
  z-index: 2;
}

/* 列表项 inline 标签：我发起 / 已满 */
.bao-item-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.bao-item-tag--mine {
  background: rgba(85, 92, 244, 0.12);
  color: #4c53e0;
  border: 1px solid rgba(85, 92, 244, 0.24);
}
.bao-item-tag--full {
  background: rgba(255, 122, 107, 0.14);
  color: #c25549;
  border: 1px solid rgba(255, 122, 107, 0.26);
}

.bao-item-from {
  color: #94a3b8;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
}

/* 已成团（与已过期共用蒙板，但配色偏蓝） */
.bao-item--full .bao-item-expired span {
  background: rgba(76, 83, 224, 0.92);
}

.bao-item--full {
  opacity: 0.95;
}

.bao-item-actions .pdd-jump-btn:disabled,
.bao-item-actions .pdd-share-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .bao-item-actions {
    flex-direction: row;
    align-items: stretch;
  }
  .bao-item-actions .pdd-jump-btn,
  .bao-item-actions .pdd-share-btn {
    min-width: 72px;
  }
  .bao-preview-label {
    width: 48px;
    font-size: 10px;
  }
}



/* =========================================================
   淘金币互助 (tb-link) · 红金配色 Tmall 风格
   主色: #e4393c (红) / #ffd700 (金) / #ff6b35 (橙)
   ========================================================= */

/* --- 页面级 --- */
.tb-page {
  background:
    radial-gradient(circle at top left, rgba(228, 57, 60, 0.1), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(255, 215, 0, 0.08), transparent 20%),
    linear-gradient(180deg, #fff8f8, #fff5f0);
}

.tb-page .landing-bg {
  display: none;
}

/* --- 标题区 --- */
.tb-title {
  color: #e4393c;
  font-size: 22px;
  font-weight: 800;
}

.tb-title--compact {
  font-size: 18px;
  line-height: 1.2;
}

.tb-credit {
  margin-top: 4px;
  color: #8a96af;
  font-size: 12px;
}

/* --- 统计条 --- */
.tb-stats-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.tb-stat {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tb-stat--teams {
  background: rgba(228, 57, 60, 0.1);
  color: #e4393c;
}

.tb-stat--assists {
  background: rgba(255, 215, 0, 0.14);
  color: #b8860b;
}

.tb-stat--recruiting {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

/* --- Tab 导航 --- */
.tb-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tb-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  min-width: 72px;
  padding: 9px 14px;
  border: 1px solid rgba(228, 57, 60, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #687797;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tb-tab:hover {
  background: rgba(228, 57, 60, 0.04);
  border-color: rgba(228, 57, 60, 0.28);
}

.tb-tab--active {
  background: linear-gradient(180deg, rgba(228, 57, 60, 0.1), rgba(255, 255, 255, 0.98));
  border-color: rgba(228, 57, 60, 0.32);
  box-shadow: 0 12px 22px -18px rgba(228, 57, 60, 0.5);
  color: #e4393c;
}

/* --- 智能直达按钮 --- */
.tb-smart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 120px;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #e4393c, #ff6b35);
  box-shadow: 0 12px 24px -14px rgba(228, 57, 60, 0.56);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tb-smart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -14px rgba(228, 57, 60, 0.65);
}

.tb-smart-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.tb-smart-btn--accent {
  background: linear-gradient(135deg, #ffd700, #ffb800);
  color: #7c3a00;
  box-shadow: 0 12px 24px -14px rgba(255, 215, 0, 0.56);
}

.tb-smart-btn--accent:hover {
  box-shadow: 0 16px 28px -14px rgba(255, 215, 0, 0.65);
}

/* --- 提交区 --- */
.tb-input-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tb-input {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem 0.95rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(228, 57, 60, 0.18);
  border-radius: 0.95rem;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tb-input:focus {
  border-color: rgba(228, 57, 60, 0.46);
  box-shadow: 0 0 0 4px rgba(228, 57, 60, 0.1);
}

.tb-input::placeholder {
  color: #b0b8c8;
}

.tb-submit-btn {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #e4393c, #ff6b35);
  box-shadow: 0 16px 26px -18px rgba(228, 57, 60, 0.56);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tb-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 30px -18px rgba(228, 57, 60, 0.65);
}

.tb-submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

/* --- 团队列表 item --- */
.tb-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid rgba(228, 57, 60, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(228, 57, 60, 0.04), rgba(255, 255, 255, 0.96));
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tb-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -12px rgba(228, 57, 60, 0.2);
}

.tb-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #e4393c, #ff6b35);
}

.tb-item--full {
  opacity: 0.85;
  border-color: rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.04), rgba(255, 255, 255, 0.96));
}

.tb-item--full::before {
  background: linear-gradient(180deg, #94a3b8, #cbd5e1);
}

.tb-item--expired {
  filter: grayscale(0.35);
  opacity: 0.7;
}

.tb-item--expired::before {
  background: linear-gradient(180deg, #cbd5e1, #e2e8f0);
}

.tb-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tb-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tb-item-code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1b2640;
  font-size: 14px;
  font-weight: 800;
}

.tb-item-count {
  flex-shrink: 0;
  color: #e4393c;
  font-size: 12px;
  font-weight: 800;
}

.tb-item--full .tb-item-count {
  color: #94a3b8;
}

/* --- 进度条 --- */
.tb-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(228, 57, 60, 0.1);
  overflow: hidden;
}

.tb-progress__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e4393c, #ff6b35);
  transition: width 0.3s ease;
}

.tb-item--full .tb-progress {
  background: rgba(148, 163, 184, 0.12);
}

.tb-item--full .tb-progress__fill {
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

.tb-item--expired .tb-progress__fill {
  background: linear-gradient(90deg, #cbd5e1, #e2e8f0);
}

/* --- 状态徽章 --- */
.tb-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tb-badge--recruiting {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: #047857;
}

.tb-badge--full {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #64748b;
}

.tb-badge--expired {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #94a3b8;
  text-decoration: line-through;
}

.tb-badge--mine {
  background: rgba(228, 57, 60, 0.1);
  border: 1px solid rgba(228, 57, 60, 0.22);
  color: #e4393c;
}

/* --- item 元信息行 --- */
.tb-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: #6c7893;
  font-size: 12px;
}

.tb-item-time {
  color: #94a3b8;
}

.tb-item-ip {
  color: #b0b8c8;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
}

/* --- item 操作按钮 --- */
.tb-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  justify-content: center;
}

.tb-join-btn {
  min-width: 72px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #e4393c, #ff6b35);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tb-join-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(228, 57, 60, 0.5);
}

.tb-join-btn:disabled {
  background: linear-gradient(135deg, #94a3b8, #cbd5e1);
  cursor: not-allowed;
  opacity: 0.7;
}

.tb-delete-btn {
  min-width: 56px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(228, 57, 60, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #e4393c;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tb-delete-btn:hover {
  background: rgba(228, 57, 60, 0.06);
  border-color: rgba(228, 57, 60, 0.4);
}

/* --- 工具栏（刷新 + 智能直达） --- */
.tb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(228, 57, 60, 0.1);
}

.tb-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.tb-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tb-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 72px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(228, 57, 60, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #42506b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tb-refresh-btn:hover {
  border-color: rgba(228, 57, 60, 0.4);
  background: rgba(228, 57, 60, 0.04);
}

.tb-refresh-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.tb-refresh-icon {
  width: 13px;
  height: 13px;
  color: #e4393c;
}

.tb-refresh-icon--spin {
  animation: pdd-refresh-spin 0.7s linear infinite;
}

.tb-refresh-at {
  color: #8d9bb4;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* --- 空状态 --- */
.tb-empty {
  padding: 32px 16px;
  text-align: center;
  color: #8a96af;
  font-size: 13px;
  line-height: 1.6;
}

.tb-empty-icon {
  display: block;
  margin: 0 auto 12px;
  font-size: 36px;
  opacity: 0.6;
}

/* --- 模态框 --- */
.tb-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(26, 34, 56, 0.48);
  animation: tb-modal-fade-in 0.2s ease;
}

.tb-modal-overlay[hidden] {
  display: none;
}

@keyframes tb-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tb-modal {
  width: 100%;
  max-width: 360px;
  padding: 22px 18px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 248, 0.98));
  box-shadow: 0 28px 56px -28px rgba(228, 57, 60, 0.3);
  animation: tb-modal-slide-up 0.25s ease;
}

@keyframes tb-modal-slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.tb-modal-title {
  margin: 0 0 14px;
  color: #e4393c;
  font-size: 1.1rem;
  font-weight: 800;
}

.tb-modal-body {
  margin-bottom: 16px;
}

.tb-modal-code {
  padding: 12px 14px;
  border: 1px solid rgba(228, 57, 60, 0.16);
  border-radius: 12px;
  background: rgba(255, 248, 248, 0.9);
  color: #1e293b;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-all;
  user-select: all;
}

.tb-modal-hint {
  margin-top: 10px;
  color: #8a96af;
  font-size: 12px;
  line-height: 1.5;
}

.tb-modal-actions {
  display: flex;
  gap: 10px;
}

.tb-modal-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tb-modal-btn:hover {
  transform: translateY(-1px);
}

.tb-modal-btn--primary {
  background: linear-gradient(135deg, #e4393c, #ff6b35);
  color: #fff;
  box-shadow: 0 12px 22px -14px rgba(228, 57, 60, 0.5);
}

.tb-modal-btn--copy {
  background: linear-gradient(135deg, #ffd700, #ffb800);
  color: #7c3a00;
  box-shadow: 0 12px 22px -14px rgba(255, 215, 0, 0.5);
}

.tb-modal-btn--close {
  background: rgba(246, 248, 255, 0.9);
  border: 1px solid rgba(162, 174, 227, 0.22);
  color: #64748b;
}

.tb-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(228, 57, 60, 0.08);
  color: #e4393c;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tb-modal-close:hover {
  background: rgba(228, 57, 60, 0.16);
}

/* --- 规则说明卡 --- */
.tb-rules {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 215, 0, 0.24);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 255, 255, 0.9));
}

.tb-rules-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #b8860b;
  font-size: 13px;
  font-weight: 800;
}

.tb-rules-list {
  color: #5c6982;
  font-size: 12px;
  line-height: 1.7;
}

.tb-rules-list li {
  position: relative;
  padding-left: 14px;
}

.tb-rules-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffd700;
  font-weight: 800;
}

/* --- 列表 section 头 --- */
.tb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.tb-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e4393c;
  font-size: 15px;
  font-weight: 800;
}

.tb-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(228, 57, 60, 0.1);
  color: #e4393c;
  font-size: 12px;
  font-weight: 800;
}

/* --- 过期蒙板 --- */
.tb-item-expired-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.tb-item-expired-overlay span {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* --- 已满蒙板 --- */
.tb-item--full .tb-item-expired-overlay span {
  background: rgba(228, 57, 60, 0.85);
}

/* --- 在线人数指示器 --- */
.tb-online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
  font-size: 11px;
  font-weight: 700;
  color: #047857;
}

.tb-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  animation: tb-online-pulse 2s ease-in-out infinite;
}

@keyframes tb-online-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.06); }
}

/* --- 过期倒计时 --- */
.tb-item-countdown {
  color: #e4393c;
  font-weight: 800;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.tb-item--expired .tb-item-countdown {
  color: #94a3b8;
}

/* --- 刷新过期提示 --- */
.tb-stale-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.28);
  color: #b8860b;
  font-size: 11px;
  font-weight: 700;
}

/* --- 响应式 --- */
@media (max-width: 520px) {
  .tb-tabs {
    gap: 6px;
  }

  .tb-tab {
    padding: 8px 10px;
    font-size: 12px;
    min-width: 60px;
  }

  .tb-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .tb-toolbar-left {
    justify-content: space-between;
  }

  .tb-toolbar-right {
    justify-content: flex-end;
  }

  .tb-item-actions {
    flex-direction: row;
    align-items: center;
  }

  .tb-join-btn {
    min-width: 64px;
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .tb-section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .tb-smart-btn {
    min-width: 100px;
    font-size: 12px;
    padding: 0 12px;
  }

  .tb-item {
    padding: 10px;
    gap: 8px;
  }

  .tb-item-code {
    font-size: 13px;
  }

  .tb-modal {
    padding: 18px 14px 14px;
  }

  .tb-stats-bar {
    gap: 6px;
  }

  .tb-stat {
    padding: 0 6px;
    font-size: 11px;
  }
}
