/* =========================================================
   GAI周延 REAL G 限定编码 LP 专辑互换登记站 —— 样式
   深色「唱片封套」质感：暖黑底 + 虹彩反光（薄荷/天蓝/紫/蜜桃）
   ========================================================= */

:root {
  --bg: #07070b;
  --bg-2: #0b0b11;
  --panel: rgba(255, 255, 255, 0.038);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);
  --text: #ecebf3;
  --muted: #a09dae;
  --dim: #6d6a7a;
  --mint: #9ef7d6;
  --blue: #7cc4ff;
  --violet: #c9a2ff;
  --peach: #ffb98a;
  --danger: #ff7d8a;
  --grad: linear-gradient(112deg, #64f0c2 0%, #58adff 34%, #b183ff 66%, #ff9d63 100%);
  --grad-soft: linear-gradient(112deg, rgba(158, 247, 214, 0.16), rgba(124, 196, 255, 0.14) 40%, rgba(201, 162, 255, 0.16));
  --radius: 18px;
  --radius-lg: 26px;
  --mono: 'SF Mono', 'JetBrains Mono', 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --shadow-lg: 0 30px 80px -40px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景光晕 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 10% -10%, rgba(124, 196, 255, 0.17), transparent 62%),
    radial-gradient(760px 560px at 92% 2%, rgba(201, 162, 255, 0.15), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(158, 247, 214, 0.08), transparent 62%),
    var(--bg);
}

/* 细颗粒 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

::selection {
  background: rgba(158, 247, 214, 0.26);
  color: #fff;
}

[hidden] {
  display: none !important;
}

.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;
}

.wrap {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------- 顶栏 */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 7, 11, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #9ef7d6, #7cc4ff, #c9a2ff, #ffb98a, #9ef7d6);
  box-shadow: 0 0 18px -4px rgba(158, 247, 214, 0.55);
  position: relative;
}
.brand__mark::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--bg);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.28;
}

.brand__text strong {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand__text em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav .nav__cta {
  color: #0a0f0d;
  background: var(--grad);
  font-weight: 650;
  margin-left: 6px;
}
.nav .nav__cta:hover {
  filter: brightness(1.07);
  color: #0a0f0d;
}

.pill {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 620;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s var(--ease), filter 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: translateY(1px) scale(0.995);
}

.btn--primary {
  background: var(--grad);
  color: #08110d;
  box-shadow: 0 14px 40px -22px rgba(124, 196, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--primary:hover {
  filter: brightness(1.08) saturate(1.05);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn--lg {
  height: 50px;
  padding: 0 28px;
  font-size: 16px;
  border-radius: 14px;
}

.btn--sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
  border-radius: 10px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.is-danger {
  border-color: rgba(255, 125, 138, 0.5);
  background: rgba(255, 125, 138, 0.14);
  color: #ffc3c9;
}

/* --------------------------------------------------------- Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 40px;
  padding: 78px 0 64px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px 1px rgba(158, 247, 214, 0.8);
  animation: breathe 3.4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.5; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5.1vw, 62px);
  line-height: 1.08;
  font-weight: 780;
  letter-spacing: -0.035em;
}

h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.lead {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.hero__copy {
  min-width: 0;
}

.hero__copy .lead {
  max-width: 44ch;
}

.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  max-width: 48ch;
  font-size: 12px;
  line-height: 1.65;
  color: #928f9e;
}

.disclaimer__tag {
  flex: 0 0 auto;
  margin-top: 1px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 185, 138, 0.4);
  background: rgba(255, 185, 138, 0.12);
  color: #ffd6b8;
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* 搜索框 */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 0;
  padding: 9px 9px 9px 18px;
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow-lg);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.search:focus-within {
  border-color: rgba(158, 247, 214, 0.45);
  box-shadow: 0 0 0 4px rgba(158, 247, 214, 0.08), var(--shadow-lg);
}

.search__prefix {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--dim);
  padding-top: 1px;
}

.search input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 19px;
  letter-spacing: 0.16em;
  outline: none;
}
.search input::placeholder {
  color: #55525f;
  letter-spacing: 0.1em;
  font-size: 16px;
}

/* 统计 */
.stats {
  display: flex;
  gap: 40px;
  margin-top: 34px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat strong {
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.stat span {
  font-size: 12.5px;
  color: var(--dim);
  letter-spacing: 0.06em;
}

/* 唱片 */
.hero__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 470px;
}

.hero__art::before {
  content: '';
  position: absolute;
  inset: 6% 2% 6%;
  background: radial-gradient(circle at 58% 50%, rgba(124, 196, 255, 0.24), transparent 66%);
  filter: blur(52px);
  z-index: 0;
}

.disc-wrap {
  position: absolute;
  z-index: 1;
  width: min(376px, 76%);
  right: -7%;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.6s var(--ease);
}

.hero__art:hover .disc-wrap {
  transform: translateY(-50%) translateX(24px) rotate(8deg);
}

/* 唱片封套 */
.sleeve {
  position: relative;
  z-index: 2;
  width: min(292px, 59%);
  margin: 0 0 0 -7%;
  transform: rotate(-1.4deg);
  transition: transform 0.5s var(--ease);
}

.hero__art:hover .sleeve {
  transform: rotate(-1.4deg) translateY(-6px);
}

.sleeve img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow:
    0 44px 90px -34px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 40px -12px rgba(124, 196, 255, 0.28);
}

.sleeve::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background: linear-gradient(104deg, transparent 34%, rgba(255, 255, 255, 0.13) 47%, transparent 58%);
  pointer-events: none;
}

.sleeve figcaption {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 16px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-align: center;
  color: var(--dim);
  white-space: nowrap;
}

.disc-wrap .disc__label {
  display: none;
}

.disc {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #101018 0 30%, transparent 30.5%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.055) 0 1px, rgba(255, 255, 255, 0.008) 1px 3px),
    conic-gradient(from 200deg, #171720, #232330, #131320, #262634, #14141e, #1d1d29, #171720);
  box-shadow:
    0 50px 90px -50px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 60px -14px rgba(124, 196, 255, 0.45),
    inset 0 0 70px rgba(0, 0, 0, 0.75);
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1.2deg); }
}

.disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0 26deg,
    rgba(158, 247, 214, 0.5) 52deg,
    rgba(124, 196, 255, 0.45) 74deg,
    transparent 104deg,
    transparent 196deg,
    rgba(201, 162, 255, 0.45) 232deg,
    rgba(255, 185, 138, 0.35) 250deg,
    transparent 276deg
  );
  -webkit-mask: radial-gradient(circle, transparent 0 31%, #000 32% 44%, transparent 45% 55%, #000 56% 66%, transparent 67% 77%, #000 78% 88%, transparent 89%);
  mask: radial-gradient(circle, transparent 0 31%, #000 32% 44%, transparent 45% 55%, #000 56% 66%, transparent 67% 77%, #000 78% 88%, transparent 89%);
  animation: spin 28s linear infinite;
  opacity: 0.9;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.disc__label {
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: linear-gradient(150deg, #f6f3ea, #dfe4dd 55%, #c7cfc9);
  color: #0a0a0e;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 2px 18px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.disc__label span {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  opacity: 0.6;
  padding-left: 0.24em;
}

.disc__label strong {
  font-family: var(--mono);
  font-size: clamp(26px, 4.4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

/* --------------------------------------------------------- 区块 */

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 80px;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.section__head .eyebrow {
  margin-bottom: 12px;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.2;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.section__head .lead {
  font-size: 15px;
  max-width: 56ch;
}

/* --------------------------------------------------------- 编号墙 */

.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
}

.swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}
.swatch--free {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.swatch--taken {
  background: linear-gradient(135deg, #9ef7d6, #7cc4ff);
}
.swatch--mutual {
  background: linear-gradient(135deg, #ffb98a, #ff7d8a);
}

.swatch--lock {
  background: linear-gradient(135deg, #d9b8ff, #9d7bff);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.chip:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.chip.is-active {
  color: #08110d;
  background: var(--grad);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 8px 24px -14px rgba(124, 196, 255, 0.9);
}

.wall-shell {
  position: relative;
}

.wall-shell::after {
  content: '';
  position: absolute;
  left: 0;
  right: 8px;
  bottom: 0;
  height: 96px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(to bottom, rgba(7, 7, 11, 0), rgba(7, 7, 11, 0.92) 78%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.wall-shell.is-capped::after {
  opacity: 1;
}

.wall-shell.is-capped .wall {
  max-height: 470px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.wall-shell.is-capped .wall::-webkit-scrollbar {
  width: 8px;
}

.wall-shell.is-capped .wall::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.wall-hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--dim);
}

.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(24px, 1fr));
  gap: 4px;
}

.wall.is-detail {
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}

.cell {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.022);
  color: #615e6d;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform 0.14s var(--ease), background 0.18s, color 0.18s, box-shadow 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.wall.is-detail .cell {
  border-radius: 10px;
  font-size: clamp(12px, 1.4vw, 16px);
  letter-spacing: 0.04em;
}

.cell:hover,
.cell:focus-visible {
  outline: none;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.cell.is-taken {
  background: linear-gradient(135deg, #a8f8dc, #7cc4ff);
  border-color: rgba(255, 255, 255, 0.55);
  color: #071310;
  font-weight: 700;
  box-shadow: 0 4px 14px -8px rgba(124, 196, 255, 0.8);
}

.cell.is-taken:hover {
  box-shadow: 0 0 0 3px rgba(158, 247, 214, 0.25), 0 6px 18px -6px rgba(124, 196, 255, 0.9);
  transform: translateY(-2px) scale(1.04);
}

.cell.is-mutual {
  background: linear-gradient(135deg, #ffd2ac, #ff9aa6);
  box-shadow: 0 4px 16px -8px rgba(255, 125, 138, 0.9);
}

/* 心意编号：锁定后不再参与互换 */
.cell.is-locked {
  background: linear-gradient(135deg, #d9b8ff, #9d7bff);
  color: #14081f;
  box-shadow: 0 4px 18px -8px rgba(157, 123, 255, 0.9);
}

/* 同一编号多人登记：右上角小点 */
.cell.is-multi::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(7, 19, 16, 0.55);
}

/* --------------------------------------------------------- 重复登记 */

.card__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.card__badge--late {
  border-color: rgba(255, 185, 138, 0.45);
  background: rgba(255, 185, 138, 0.13);
  color: #ffd6b8;
}

.card__badge--same {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.card__badge--lock {
  border-color: rgba(201, 162, 255, 0.45);
  background: rgba(201, 162, 255, 0.15);
  color: #e2ccff;
}

.card--locked {
  border-color: rgba(201, 162, 255, 0.26);
}

.locked-note {
  margin: 14px 0 4px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 255, 0.32);
  background: rgba(201, 162, 255, 0.1);
  color: #e6d6ff;
  font-size: 13px;
  line-height: 1.6;
}

.section__note {
  margin: -10px 0 22px;
  font-size: 13px;
  line-height: 1.6;
  color: #ffd0b0;
}

.section__note strong {
  font-family: var(--mono);
  color: #ffe0c8;
}

.notice {
  margin: 12px 0 4px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 185, 138, 0.08);
  border: 1px solid rgba(255, 185, 138, 0.26);
  color: #ffd0b0;
  font-size: 13px;
  line-height: 1.6;
}

.holder {
  padding-top: 14px;
}

.holder + .holder {
  margin-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.holder__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.holder__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.holder--recommended .holder__tag {
  color: #ffcfae;
}

.holder__pick {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 185, 138, 0.42);
  background: rgba(255, 185, 138, 0.14);
  color: #ffd6b8;
  white-space: nowrap;
}

.existing {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.existing__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  font-size: 13.5px;
}

.existing__row span {
  color: var(--dim);
  font-size: 12.5px;
  white-space: nowrap;
}

/* --------------------------------------------------------- 卡片 */

.filter input {
  width: min(280px, 60vw);
  height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.filter input::placeholder {
  color: #5f5c6b;
}
.filter input:focus {
  border-color: rgba(158, 247, 214, 0.45);
  box-shadow: 0 0 0 3px rgba(158, 247, 214, 0.09);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.card__number {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card__badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 125, 138, 0.4);
  background: rgba(255, 125, 138, 0.12);
  color: #ffc0c6;
  white-space: nowrap;
}

.card__who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  min-width: 0;
}

.card__who strong {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__who .sep {
  color: var(--dim);
}

.card__who .city {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.card__wanted {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.tag {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(124, 196, 255, 0.1);
  border: 1px solid rgba(124, 196, 255, 0.2);
  color: #bfe3ff;
  letter-spacing: 0.04em;
}

.tag--hit {
  background: rgba(158, 247, 214, 0.12);
  border-color: rgba(158, 247, 214, 0.32);
  color: #c9ffef;
}

.tag--muted {
  color: var(--dim);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-soft);
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.card__contact {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
  letter-spacing: 0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__go {
  font-size: 12.5px;
  color: var(--mint);
  white-space: nowrap;
}

.empty {
  text-align: center;
  padding: 64px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.015);
}

.empty__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 650;
}

.empty__text {
  margin: 0 0 20px;
  color: var(--dim);
  font-size: 14px;
}

/* --------------------------------------------------------- 发布表单 */

.publish {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.publish__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.photo-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #0a0a10;
}

.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 26%;
}

.photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7, 7, 11, 0.86), rgba(7, 7, 11, 0) 48%);
}

.photo-card figcaption {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 15px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-lg);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #cfccdb;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.field small {
  font-weight: 400;
  font-size: 11.5px;
  color: var(--dim);
}

.req {
  color: var(--mint);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 0 14px;
  height: 46px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  resize: vertical;
}

.field textarea {
  height: auto;
  padding: 11px 14px;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #57545f;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(158, 247, 214, 0.5);
  box-shadow: 0 0 0 3px rgba(158, 247, 214, 0.09);
  background: rgba(0, 0, 0, 0.4);
}

.field input.mono {
  font-size: 19px;
  letter-spacing: 0.18em;
}

.field input.is-invalid {
  border-color: rgba(255, 125, 138, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 125, 138, 0.1);
}

.field__row {
  display: flex;
  gap: 8px;
}

.field__row input {
  flex: 1;
  min-width: 0;
}

.hint {
  margin: 0;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.5;
}

.hint--count {
  text-align: right;
  font-family: var(--mono);
}

.hint.is-error {
  color: #ff9aa4;
}

.hint--panel {
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  color: #cbc8d6;
  font-size: 12.5px;
  line-height: 1.65;
}

.hint--panel b {
  color: #ffd6b8;
  font-weight: 600;
}

/* 类型选择 */
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seg {
  height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.seg:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.seg.is-active {
  background: rgba(158, 247, 214, 0.13);
  border-color: rgba(158, 247, 214, 0.5);
  color: #d6fff3;
  box-shadow: 0 0 0 1px rgba(158, 247, 214, 0.12) inset;
}

/* 心意编号开关 */
.lock-toggle {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(201, 162, 255, 0.05);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lock-toggle:hover {
  border-color: rgba(201, 162, 255, 0.35);
}

.lock-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.lock-toggle__box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  transition: background 0.18s, border-color 0.18s;
}

.lock-toggle input:checked + .lock-toggle__box {
  background: linear-gradient(135deg, #c9a2ff, #7cc4ff);
  border-color: transparent;
}

.lock-toggle input:checked + .lock-toggle__box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #08110d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.lock-toggle input:focus-visible + .lock-toggle__box {
  box-shadow: 0 0 0 3px rgba(201, 162, 255, 0.28);
}

.lock-toggle__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13.5px;
  line-height: 1.5;
}

.lock-toggle__text strong {
  font-weight: 600;
  color: #e6d6ff;
}

.lock-toggle__text small {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.55;
}

.form__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form__note {
  margin: 0;
  font-size: 12px;
  color: var(--dim);
  max-width: 30ch;
  line-height: 1.5;
}

.form__error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 125, 138, 0.1);
  border: 1px solid rgba(255, 125, 138, 0.3);
  color: #ffb3bb;
  font-size: 13.5px;
}

/* 提示栏 */
.tips {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(158, 247, 214, 0.055), rgba(255, 255, 255, 0.012));
}

.tips h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.tips ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.tips li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.tips li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0.7;
}

.tips li strong {
  color: var(--text);
  font-weight: 620;
}

.tips__foot {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--dim);
}

.tips__foot strong {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--text);
}

/* --------------------------------------------------------- 页脚 */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 36px 0 46px;
  margin-top: 20px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer__text {
  margin: 0;
  font-size: 13px;
  color: var(--dim);
}

.footer__meta {
  margin: 0;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.8;
  text-align: right;
}

.footer__admin {
  color: var(--dim);
  border-bottom: 1px solid var(--line);
}

.footer__admin:hover {
  color: var(--muted);
}

/* --------------------------------------------------------- 弹窗 */

.modal {
  width: min(540px, calc(100vw - 28px));
  max-height: min(86vh, 760px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: #0d0d14;
  color: var(--text);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 1);
  overflow: hidden;
}

.modal::backdrop {
  background: rgba(4, 4, 8, 0.72);
  backdrop-filter: blur(6px);
}

.modal[open] {
  animation: pop 0.24s var(--ease);
}

@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.modal__inner {
  position: relative;
  padding: 30px;
  max-height: inherit;
  overflow: auto;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
}
.modal__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

/* 详情 */
.detail__no {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.detail__no span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--dim);
}

.detail__no strong {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 650;
  letter-spacing: 0.05em;
  line-height: 1.05;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.detail h3 {
  margin: 10px 0 4px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.detail__meta {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--dim);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.badge--mutual {
  border-color: rgba(255, 125, 138, 0.45);
  background: rgba(255, 125, 138, 0.13);
  color: #ffc3c9;
}

.badge--match {
  border-color: rgba(158, 247, 214, 0.4);
  background: rgba(158, 247, 214, 0.11);
  color: #c6ffee;
}

.detail__row {
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
}

.detail__label {
  display: block;
  margin-bottom: 9px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-family: var(--mono);
}

.contact-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-box code {
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  color: var(--mint);
  word-break: break-all;
  flex: 1;
  min-width: 140px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail__note {
  margin: 0;
  font-size: 14px;
  color: #cbc8d6;
  white-space: pre-wrap;
  line-height: 1.7;
}

.detail__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.manage {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.manage summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--dim);
  list-style: none;
}
.manage summary::-webkit-details-marker {
  display: none;
}
.manage summary:hover {
  color: var(--muted);
}

.manage__body {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.manage__body input {
  flex: 1;
  min-width: 140px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  outline: none;
}
.manage__body input:focus {
  border-color: rgba(158, 247, 214, 0.45);
}

.manage__help {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--dim);
}

.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--mint);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(158, 247, 214, 0.4);
}

.linklike:hover {
  color: #d6fff3;
  text-decoration-color: rgba(158, 247, 214, 0.8);
}

.forgot-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 0 14px;
}

/* 管理码提示 */
.code {
  margin: 18px 0;
  padding: 20px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed rgba(158, 247, 214, 0.4);
  background: rgba(158, 247, 214, 0.07);
}

.code strong {
  display: block;
  font-family: var(--mono);
  font-size: 32px;
  letter-spacing: 0.22em;
  color: var(--mint);
  padding-left: 0.22em;
  margin: 6px 0 4px;
}

.code span {
  font-size: 12px;
  color: var(--dim);
}

/* --------------------------------------------------------- Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18, 18, 26, 0.96);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 1);
  transition: opacity 0.24s, transform 0.24s var(--ease);
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  border-color: rgba(255, 125, 138, 0.45);
  color: #ffc3c9;
}

/* --------------------------------------------------------- 响应式 */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 56px 0 48px;
    gap: 8px;
  }
  .hero__art {
    display: flex;
    min-height: 0;
    margin: 34px auto 10px;
    width: min(320px, 80%);
  }
  .sleeve {
    width: 62%;
  }
  .disc-wrap {
    width: 72%;
  }
  .sleeve figcaption {
    display: none;
  }
  .publish {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav a:not(.nav__cta) {
    display: none;
  }
  .section {
    padding: 60px 0;
  }
  .wall {
    grid-template-columns: repeat(auto-fill, minmax(22px, 1fr));
    gap: 3px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .topbar__inner {
    height: 58px;
    gap: 10px;
  }
  .nav a {
    white-space: nowrap;
  }
  .nav .nav__cta {
    margin-left: 0;
    padding: 7px 12px;
    font-size: 13.5px;
  }
  .brand__text strong {
    font-size: 12px;
  }
  .brand__text em {
    font-size: 9.5px;
  }
  .pill {
    display: none;
  }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .chips::-webkit-scrollbar {
    display: none;
  }
  .chip {
    flex: 0 0 auto;
  }
  h1 {
    font-size: 34px;
  }
  .hero .lead {
    font-size: 15px;
  }
  .search {
    flex-wrap: nowrap;
    padding-left: 14px;
  }
  .search .btn {
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }
  .stats {
    gap: 28px;
    margin-top: 26px;
  }
  .stat strong {
    font-size: 22px;
  }
  .form {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 18px;
  }
  .field--full,
  .form__error,
  .form__actions {
    grid-column: 1;
  }
  .wall {
    grid-template-columns: repeat(auto-fill, minmax(19px, 1fr));
    gap: 3px;
  }
  .cell {
    font-size: 7px;
    border-radius: 3px;
  }
  .wall.is-detail {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  }
  .wall.is-detail .cell {
    font-size: 12px;
  }
  .section__head {
    margin-bottom: 26px;
  }
  .modal__inner {
    padding: 24px 20px;
  }
  .footer__meta {
    text-align: left;
  }
  .legend {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
