:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #0f1222;
  --muted: #5f6579;
  --soft: #8b90a3;
  --line: #e5e8f1;
  --line-strong: #d4d8e6;
  --accent: #4f46e5;
  --accent-ink: #3730a3;
  --accent-soft: #eef0ff;
  --danger: #dc2626;
  --radius: 16px;
  --shadow-sm: 0 1px 4px rgba(18, 22, 50, 0.05);
  --shadow-lg: 0 24px 60px -28px rgba(20, 24, 60, 0.32);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.orb {
  position: fixed;
  z-index: -1;
  width: 620px;
  height: 620px;
  top: -300px;
  right: -160px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  background: radial-gradient(circle, #c7d2fe, transparent 68%);
  pointer-events: none;
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 58px;
  padding: 0 clamp(16px, 3vw, 40px);
  background: rgba(246, 247, 251, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(229, 232, 241, 0.9);
}

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}
.brand-text { display: flex; flex-direction: column; font-size: 14px; line-height: 1.2; }
.brand-text small { font-size: 7.5px; letter-spacing: 0.16em; color: var(--soft); font-weight: 600; }

.topbar-right { display: flex; align-items: center; gap: 14px; }
.qq { font-size: 12px; color: var(--soft); }
.qq b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.top-link { font-size: 13px; color: var(--muted); }
.top-link:hover { color: var(--ink); }

.nav-cta {
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(15, 18, 34, 0.6); }

.nav-ghost {
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.18s;
}
.nav-ghost:hover { color: var(--ink); border-color: #c9cdf0; }

/* ---------------- 紧凑标题区 ---------------- */
main { overflow: clip; }

.intro {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(18px, 2.4vw, 28px) clamp(16px, 3vw, 40px) 14px;
}
.intro-text { max-width: 760px; }
.eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.intro h1 {
  margin: 0;
  font-size: clamp(24px, 2.9vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.intro h1 span {
  background: linear-gradient(100deg, #4f46e5 8%, #0ea5e9 52%, #14b8a6 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intro-text > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.stats { display: flex; gap: 30px; margin: 0; padding: 0 0 4px; }
.stats div { margin: 0; }
.stats dt {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stats dd { margin: 0; font-size: 11px; color: var(--soft); letter-spacing: 0.08em; }

/* ---------------- 搜索与分类 ---------------- */
.gallery { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px) 64px; }

.searchbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  max-width: 520px;
  padding: 9px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search:focus-within { border-color: #c3c8ff; box-shadow: 0 0 0 4px #eef0ff; }
.search svg { width: 16px; height: 16px; color: var(--soft); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13.5px; }
.search input::placeholder { color: var(--soft); }
.result { font-size: 12px; color: var(--soft); white-space: nowrap; }

.filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.chip {
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 12.5px;
  color: var(--muted);
  transition: all 0.16s;
  white-space: nowrap;
}
.chip:hover { background: #fff; color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; font-weight: 600; }

/* ---------------- 卡片网格 ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.22s, border-color 0.22s;
  animation: rise 0.45s both;
}
.card:hover { transform: translateY(-4px); border-color: #d8dcf0; box-shadow: var(--shadow-lg); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0e1020; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1); }
.card:hover .card-cover img { transform: scale(1.035); }
.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 22, 0.32), transparent 40%);
  pointer-events: none;
}
.card-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  color: #23243a;
  font-size: 10px;
  font-weight: 650;
  backdrop-filter: blur(8px);
}
.card-shots {
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(10, 12, 24, 0.55);
  color: #fff;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(8px);
}

.card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 13px; }
.card-body h3 { margin: 0; font-size: 15px; letter-spacing: -0.01em; line-height: 1.35; }
.card-body p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.card-stack { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.card-stack span {
  padding: 2px 6px;
  border-radius: 5px;
  background: #f2f3f9;
  color: #555b73;
  font-size: 9.5px;
  font-weight: 600;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 10.5px;
  color: var(--soft);
}
.card-stats { white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}
.empty p { margin: 0 0 14px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 650;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px -14px rgba(79, 70, 229, 0.7); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -16px rgba(79, 70, 229, 0.8); }
.btn.ghost { background: rgba(255, 255, 255, 0.75); border-color: var(--line-strong); }
.btn.ghost:hover { background: #fff; }
.btn.danger { background: #fff; color: var(--danger); border-color: #f3c9c9; }
.btn.danger:hover { background: #fef2f2; }
.btn.block { width: 100%; }

/* ---------------- 关于 / 页脚 ---------------- */

footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px clamp(16px, 3vw, 40px) 36px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--soft);
}
footer b { color: var(--ink); }

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}
.footer-legal { font-size: 11px; color: #9aa0b2; }
.footer-legal a { color: #9aa0b2; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--accent-ink); }
.footer-disclaimer {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.65;
  color: #a8adbd;
}

/* ---------------- 弹层 ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12, 14, 28, 0.55); backdrop-filter: blur(6px); }
.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  transition: all 0.2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); transform: rotate(90deg); }

/* ---------------- 提交表单 ---------------- */
.submit-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(820px, 96vw);
  max-height: 92vh;
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(6, 8, 20, 0.6);
  transform: translateY(14px);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.modal.open .submit-panel { transform: translateY(0); }

.submit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--line);
}
.submit-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.submit-head .eyebrow { margin-bottom: 4px; }

.form-body { padding: 20px 26px 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 650; color: #2b3046; }
.field label i { color: var(--danger); font-style: normal; }
.field label span { margin-left: 6px; font-weight: 400; color: var(--soft); font-size: 11px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fbfbfe;
  outline: none;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 70px; line-height: 1.6; }
.field input:focus, .field textarea:focus { border-color: #a5aaf5; background: #fff; box-shadow: 0 0 0 4px #eef0ff; }
.field input::placeholder, .field textarea::placeholder { color: #a7abbd; }

.check-row { display: flex; flex-wrap: wrap; gap: 6px; }
.check-row label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.16s;
  white-space: nowrap;
  flex: none;
}
.check-row label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.check-row input { accent-color: var(--accent); margin: 0; }

.uploader {
  position: relative;
  padding: 14px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: #fbfbfe;
  transition: border-color 0.2s, background 0.2s;
}
.uploader.dragover { border-color: var(--accent); background: var(--accent-soft); }
.upload-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  padding: 14px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}
.upload-cta strong { font-size: 13px; color: var(--ink); font-weight: 650; }
.upload-cta span { font-size: 11px; color: var(--soft); }
.upload-cta:hover { background: #f4f5fa; }

.shot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.shot-grid:empty { display: none; }
.shot { position: relative; border-radius: 9px; overflow: hidden; background: #0d0f1c; aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 19px;
  height: 19px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 12, 24, 0.72);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}
.shot .tag {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 2px 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 12, 24, 0.72);
  color: #cfd3e6;
  font-size: 9px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.shot .tag.mobile { background: rgba(14, 165, 233, 0.88); color: #fff; }
.upload-count { position: absolute; right: 14px; bottom: 10px; font-size: 10.5px; color: var(--soft); font-variant-numeric: tabular-nums; }

.submit-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  background: #fcfcfe;
}
.submit-foot p { margin: 0; max-width: 430px; font-size: 11px; color: var(--soft); line-height: 1.5; }
.foot-actions { display: flex; gap: 9px; flex: none; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 18, 34, 0.94);
  color: #fff;
  font-size: 12.5px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .intro { align-items: flex-start; }
  .stats { gap: 22px; }
  .stats dt { font-size: 20px; }
}

@media (max-width: 720px) {
  .topbar { height: 54px; padding: 0 14px; gap: 10px; }
  .brand-text small { display: none; }
  .qq { display: none; }
  .top-link { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .intro { padding-top: 22px; gap: 16px; }
  .intro h1 { font-size: 26px; }
  .intro-text > p:last-child { font-size: 12.5px; }
  .searchbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .search { max-width: none; width: 100%; }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 12px;
    margin-right: calc(-1 * clamp(16px, 3vw, 40px));
    padding-right: clamp(16px, 3vw, 40px);
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip { padding: 5px 10px; font-size: 11.5px; }
  .card-body { padding: 10px 11px 11px; }
  .card-body h3 { font-size: 13.5px; }
  .card-body p { font-size: 11px; min-height: 34px; -webkit-line-clamp: 2; }
  .card-stack { display: none; }
  .card-foot { font-size: 9.5px; }
  .card-foot .date { display: none; }
  .card-stats { font-size: 9px; width: 100%; text-align: right; }
    .grid-2 { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal { padding: 0; }
  .submit-panel { width: 100vw; height: 100dvh; max-height: 100vh; border-radius: 0; }
  .submit-head { padding: 16px 16px 12px; }
  .form-body { padding: 16px; }
  .submit-foot { padding: 12px 16px; flex-direction: column; align-items: stretch; }
  .foot-actions { justify-content: flex-end; }
  footer { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 86px; }
}

/* ---------------- 分页 ---------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  transition: all 0.16s;
}
.page-btn:hover:not(:disabled):not(.active) { border-color: #c9cdf0; color: var(--ink); }
.page-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 650; }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------------- 手机悬浮上传 ---------------- */
.fab {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 60;
  display: none;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 14px 30px -10px rgba(79, 70, 229, 0.72);
  transition: transform 0.2s;
}
.fab:hover { transform: translateY(-2px) scale(1.03); }
@media (max-width: 720px) { .fab { display: grid; } }

/* ---------------- 公众号卡片 ---------------- */
.wechat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.wechat-label { font-size: 10px; letter-spacing: 0.14em; color: #7dd3a8; font-weight: 700; }
.wechat-card strong { font-size: 21px; letter-spacing: -0.02em; color: #fff; line-height: 1.3; }
.wechat-hint { font-size: 12px; color: #a9b0cc; line-height: 1.6; }

.card-foot .date { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

.wechat-mini {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #101223, #1d2140);
}
.wechat-mini .wechat-label { color: #7dd3a8; }
.wechat-mini strong { font-size: 18px; color: #fff; letter-spacing: -0.01em; line-height: 1.3; }
.wechat-mini .wechat-hint { font-size: 11.5px; color: #a9b0cc; line-height: 1.6; }


/* ---------------- 登录态 / 提示 ---------------- */
.user-slot { display: flex; align-items: center; gap: 10px; }

/* 顶栏用户信息 */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink);
  transition: border-color 0.2s;
}
.user-chip:hover { border-color: var(--line-strong); }
.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.user-name { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-btn { border: 0; background: transparent; padding: 0; cursor: pointer; }


.offline-banner {
  max-width: 1320px;
  margin: 14px auto 0;
  padding: 10px 16px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12.5px;
  width: calc(100% - 2 * clamp(16px, 3vw, 40px));
}
.offline-banner code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #fef3c7;
  font-size: 11.5px;
}

