* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f3f4f6;
  color: #111;
}
body.feed-wall {
  background: #0c0d10;
  color: #f4f4f5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.wrap { min-height: 100vh; }
.feed-wall .wrap { max-width: 1680px; margin: 0 auto; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.feed-wall .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 12px;
  gap: 16px;
}
.top p { margin: 0; font-size: 14px; font-weight: 500; }
.feed-wall .top p {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: .18em;
  color: #fff;
  white-space: nowrap;
}
.top a { font-size: 14px; color: #555; }
.top a:hover { color: #000; }

.seek {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 220px;
  max-width: 560px;
  height: 42px;
  margin-left: auto;
  padding: 3px 3px 3px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.seek:focus-within {
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}
.seek input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #f4f4f5;
  outline: none;
}
.seek input::placeholder { color: rgba(255,255,255,.42); }
.seek button {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.seek button:hover { background: #e5e7eb; }
.seek-sug {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #14151a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
}
.seek-sug[hidden] { display: none; }
.seek-sug li { margin: 0; }
.seek-sug button {
  display: block;
  width: 100%;
  height: auto;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.seek-sug button:hover,
.seek-sug button.is-on { background: rgba(255,255,255,.08); color: #fff; }

.continue {
  margin: 0 16px 16px;
  display: grid;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.05);
}
.feed-wall .continue {
  background: #17181c;
  border-color: rgba(255,255,255,.08);
}
@media (min-width: 640px) {
  .continue { grid-template-columns: 1.2fr 1fr; }
}
.continue-pic { position: relative; min-height: 180px; }
.continue-pic img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 180px; }
.continue-body { padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.continue-body .k { font-size: 12px; letter-spacing: .2em; color: #888; }
.feed-wall .continue-body .k { color: #a1a1aa; }
.continue-body h1 { margin: 8px 0 0; font-size: 32px; font-family: "Noto Serif SC", "Songti SC", serif; font-weight: 600; }
.continue-body p { margin: 8px 0 0; color: #333; }
.feed-wall .continue-body p { color: #d4d4d8; }
.btn-black {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 14px;
  width: fit-content;
}
.recents { margin: 0 20px 8px; font-size: 14px; color: #777; }
.feed-wall .recents { color: #a1a1aa; }
.recents a { margin-right: 12px; color: #333; text-decoration: underline; text-underline-offset: 4px; }
.feed-wall .recents a { color: #e5e7eb; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 16px 32px;
}
.feed-wall .seek {
  flex: none;
  width: min(560px, 46vw);
  margin-left: auto;
}
.feed-wall .grid { gap: 14px; padding: 16px 22px 40px; }
@media (max-width: 719px) {
  .feed-wall .seek {
    width: 100%;
    max-width: none;
  }
}
@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; padding: 0 24px 32px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }

.card {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.feed-wall .card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #111;
  border: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  border-radius: 14px;
  isolation: isolate;
}
/* 首推占两格，高度跟右边两张对齐；图必须铺满整张卡，不许底下留黑。 */
.card.today-big { }
@media (min-width: 1200px) {
  .card.today-big { grid-column: span 2; }
  .card.today-big .pic { aspect-ratio: auto; height: 100%; }
}
.pic {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 2048 / 1152;
  overflow: hidden;
  background: #16171c;
}
.pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (min-width: 1200px) {
  .feed-wall .grid > .card:nth-child(n+8) {
    content-visibility: auto;
    contain-intrinsic-size: auto 220px;
  }
}
.pic .copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 16px 14px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
  pointer-events: none;
}
.pic .copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.82) 100%);
}
.pic .copy .tag { font-size: 11px; color: rgba(255,255,255,.78); }
.pic .copy h2 { margin: 4px 0 0; font-size: 20px; }
.card.today-big .pic .copy h2 { font-size: 28px; }
.pic .copy .slogan { margin: 4px 0 0; font-size: 14px; color: #fff; }
.feed-wall .pic .copy h2 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.feed-wall .pic .copy .slogan { font-size: 13px; color: rgba(255,255,255,.92); }

.feed-wall .card {
  transition: box-shadow .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .feed-wall .pic .copy {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .feed-wall .card:hover,
  .feed-wall .card:focus,
  .feed-wall .card:focus-visible {
    box-shadow: 0 0 0 2px #000;
  }
  .feed-wall .card:hover .pic .copy,
  .feed-wall .card:focus .pic .copy,
  .feed-wall .card:focus-visible .pic .copy {
    opacity: 1;
    transform: none;
  }
}

.foot { padding: 0 20px 24px; }
.feed-wall .foot { padding: 0 22px 36px; }
.foot a, .foot button {
  background: none;
  border: 0;
  padding: 0;
  color: #777;
  font-size: 14px;
  cursor: pointer;
}
.foot a:hover, .foot button:hover { color: #000; }
.feed-wall .foot a { color: #a1a1aa; }
.feed-wall .foot a:hover { color: #fff; }
.feed-wall .home-chip {
  background: #17181c;
  color: #e5e7eb;
  border-color: rgba(255,255,255,.1);
}

.dest { min-height: 100vh; background: #0c0b0a; color: #f6f1ea; }
.dest-hero { position: relative; height: 46vh; min-height: 280px; overflow: hidden; }
.dest-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dest-hero .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, #0c0b0a, rgba(12,11,10,.2), rgba(0,0,0,.1));
}
.dest-nav {
  position: absolute; inset: 0 auto auto 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 16px 20px;
}
.dest-nav a { color: rgba(255,255,255,.8); font-size: 14px; border-radius: 999px; padding: 6px 12px; }
.dest-nav a:hover { background: rgba(0,0,0,.3); }
.dest-body { max-width: 720px; margin: 0 auto; padding: 0 20px 80px; }
.dest-body .k { font-size: 14px; letter-spacing: .22em; color: rgba(255,255,255,.4); }
.dest-body h1 { margin: 12px 0 0; font-size: 48px; font-family: "Noto Serif SC", "Songti SC", serif; }
.dest-body .pitch { margin-top: 16px; font-size: 20px; color: rgba(255,255,255,.8); }
.dest-body .detail { margin-top: 16px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.55); }

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login form, .admin-box {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(0,0,0,.06);
}
.login h1, .admin h1 { margin: 0 0 8px; font-size: 28px; font-family: "Noto Serif SC", serif; }
.hint { color: #777; font-size: 13px; line-height: 1.6; }
label { display: block; font-size: 13px; margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=url], input[type=number], select {
  width: 100%;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
}
.err { color: #b91c1c; font-size: 13px; margin: 8px 0 0; }
.ok { color: #15803d; font-size: 13px; margin: 8px 0 0; }

.admin { padding: 20px 16px 48px; max-width: 1100px; margin: 0 auto; }
.admin-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  margin-bottom: 16px;
}
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-actions button, .admin-actions a, .login button, .slot .row button {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}
.admin-actions .primary, .login button, .slot .save-one {
  background: #111;
  color: #fff;
  border-color: #111;
}

.dash {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 700px) {
  .dash { grid-template-columns: 1fr 1fr 1fr; }
}
.dash div {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 16px 18px;
}
.dash b { display: block; font-size: 28px; line-height: 1.1; }
.dash span { display: block; margin-top: 6px; color: #777; font-size: 13px; }
.meter { margin: 0 0 8px; font-size: 13px; color: #444; }
.meter b { font-weight: 700; }
.warn { color: #b45309; margin-left: 8px; }
.slot.need-ip { box-shadow: inset 3px 0 0 #d97706; }

.size-guide {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.size-guide strong { display: block; margin-bottom: 6px; }
.size-frame {
  width: min(100%, 420px);
  aspect-ratio: 2048 / 1152;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    #f3f4f6;
  background-size: 24px 24px;
  border: 1px dashed #bbb;
  display: grid;
  place-items: center;
  color: #666;
  font-size: 13px;
  margin-top: 10px;
}

.slot {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  display: grid;
  gap: 14px;
}
@media (min-width: 800px) {
  .slot { grid-template-columns: 280px 1fr; }
}
.preview {
  aspect-ratio: 2048 / 1152;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  position: relative;
}
.preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview .empty { color: #aaa; display: grid; place-items: center; height: 100%; font-size: 13px; }
.fields { display: grid; gap: 4px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.grow { flex: 1; min-width: 140px; }

.homes { margin-top: 28px; }
.home-chip {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 8px 12px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.06);
  font-size: 13px;
}
