:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #637083;
  --line: #dde3ea;
  --paper: #fbfcfe;
  --soft: #eef5f1;
  --accent: #2d6f6f;
  --accent-2: #b64e3b;
  --gold: #b88a36;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 254, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: 2px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: #344255;
  font-size: 14px;
}

.nav a:hover { background: #edf2f7; }

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(56px, 8vw, 108px) clamp(20px, 6vw, 86px);
  background:
    linear-gradient(110deg, rgba(23,32,42,0.82), rgba(45,111,111,0.58)),
    url("../img/hero-placeholder.svg");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #d8e9e4;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: #eff7f5;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.7;
}

.lead.dark {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.hero-panel {
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 8px;
  background: rgba(255,255,255,0.13);
  box-shadow: 0 24px 70px rgba(0,0,0,0.22);
}

.hero-panel span { color: #d8e9e4; }
.hero-panel strong { display: block; margin: 8px 0; font-size: 28px; }
.hero-panel p { margin: 0; line-height: 1.7; color: #eff7f5; }

.banner-rotator {
  display: grid;
  gap: 12px;
}

.banner-slide {
  display: grid;
  gap: 10px;
  color: #fff;
}

.banner-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.banner-slide span {
  font-size: 22px;
  font-weight: 800;
}

.band {
  padding: clamp(38px, 6vw, 74px) clamp(20px, 6vw, 86px);
}

.band.alt { background: var(--soft); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: 0; }

.section-heading a, .section-heading span { color: var(--accent); font-weight: 700; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.card.compact { min-height: 130px; }
.game-card { min-height: 230px; }
.card time, .list-item time { color: var(--accent-2); font-size: 13px; font-weight: 700; }
.card h3, .list-item h2 { margin: 10px 0; }
.card p, .list-item p { margin: 0; color: var(--muted); line-height: 1.7; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

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

.tag-cloud span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.stats div {
  padding: 16px;
  border-left: 4px solid var(--gold);
  background: #fff;
}

.stats strong { display: block; font-size: 28px; }
.stats span { color: var(--muted); }

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  min-height: 116px;
  padding: 16px;
  border-top: 5px solid var(--line);
  background: #fff;
}

.timeline li.done { border-color: var(--accent); }
.timeline li.active { border-color: var(--accent-2); }
.timeline li.planned { border-color: var(--gold); }
.timeline strong, .timeline span { display: block; }
.timeline span { margin-top: 8px; color: var(--muted); }

.page-title {
  padding: clamp(44px, 7vw, 86px) clamp(20px, 6vw, 86px);
  background: #eaf0f3;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: 0;
}

.page-title p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.list {
  display: grid;
  gap: 14px;
}

.list-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.notice-band {
  padding-top: 22px;
  padding-bottom: 22px;
}

.event-cover {
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.form-band {
  max-width: 860px;
}

.form {
  display: grid;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 7px;
  color: #344255;
  font-weight: 700;
}

.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
}

.notice {
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
}

.admin-title { background: #eef0ea; }
.admin-stats { margin-bottom: 24px; }

.account-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.account-strip div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-strip strong,
.account-strip span {
  display: block;
}

.account-strip span {
  color: var(--muted);
  margin-top: 4px;
}

.compact-log h2 {
  font-size: 18px;
}

.community-post h2 a {
  color: var(--ink);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
}

.post-meta span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.user-profile {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.avatar-box {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent);
  font-size: 38px;
  font-weight: 800;
}

.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bind-center {
  margin-bottom: 24px;
}

.bind-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
}

.bind-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.bind-card.primary {
  border-color: #2d9f8d;
  box-shadow: 0 0 16px rgba(45, 159, 141, 0.22);
}

.bind-card strong,
.bind-card span,
.bind-card em {
  display: block;
}

.bind-card span {
  color: var(--muted);
  margin-top: 4px;
}

.bind-card em {
  color: var(--accent);
  margin-top: 6px;
  font-style: normal;
  font-weight: 800;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.admin-form {
  max-width: 860px;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-form h2 {
  font-size: 22px;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.meta {
  margin-top: 8px;
  color: var(--accent);
}

.upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-actions form { margin: 0; }

.inline-actions {
  margin-top: 14px;
}

.entry-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.button.danger {
  border-color: #c84d4d;
  color: #9d2f2f;
}

.trend-list {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.trend-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) repeat(4, minmax(90px, 0.5fr));
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trend-row span {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 6vw, 86px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header, .hero, .split, .site-footer { grid-template-columns: 1fr; }
  .site-header { align-items: flex-start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .upload-grid, .trend-row { grid-template-columns: 1fr; }
  .account-strip { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { min-height: 620px; }
  .grid, .stats, .timeline { grid-template-columns: 1fr; }
  .nav { justify-content: flex-start; }
}

.community-body {
  margin: 0;
  background: #0f1116;
  color: #e6eaf2;
}

.app-container {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 320px;
  min-height: 100vh;
}

.sidebar,
.right-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: #151822;
  border-color: #252b38;
}

.sidebar { border-right: 1px solid #252b38; }
.right-panel { border-left: 1px solid #252b38; overflow-y: auto; }

.community-logo {
  display: block;
  margin-bottom: 26px;
  color: #67f5d1;
  font-size: 24px;
  font-weight: 900;
}

.side-nav {
  display: grid;
  gap: 10px;
}

.side-nav a {
  padding: 12px 14px;
  border: 1px solid #252b38;
  border-radius: 8px;
  background: #10131b;
  color: #dce5ee;
  font-weight: 800;
}

.side-nav a:hover,
.neon-button:hover {
  border-color: #67f5d1;
  box-shadow: 0 0 20px rgba(103, 245, 209, 0.18);
}

.side-note {
  margin-top: 24px;
  color: #7d8ba1;
  line-height: 1.7;
}

.feed {
  padding: 24px;
  overflow-y: auto;
}

.feed-hero,
.profile-hero {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid #263044;
  border-radius: 8px;
  background: linear-gradient(135deg, #182030, #10131b);
}

.feed-hero p {
  margin: 0 0 8px;
  color: #67f5d1;
  font-weight: 900;
}

.feed-hero h1,
.profile-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
}

.feed-hero span,
.profile-hero p,
.side-card span,
.comment-card time {
  color: #90a0b8;
}

.feed-tabs,
.post-actions,
.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feed-tabs {
  margin-bottom: 18px;
}

.feed-tabs a,
.post-actions a,
.post-actions span,
.status-pill,
.profile-stats span {
  padding: 8px 10px;
  border: 1px solid #2b3447;
  border-radius: 7px;
  background: #151a25;
  color: #dce5ee;
}

.post-list {
  display: grid;
  gap: 14px;
}

.post-card,
.comment-card,
.publish-card,
.hot-box {
  padding: 18px;
  border: 1px solid #263044;
  border-radius: 8px;
  background: #151a25;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(103, 245, 209, 0.5);
  box-shadow: 0 0 24px rgba(103, 245, 209, 0.16);
}

.post-card h1,
.post-card h2,
.hot-box h3 {
  margin: 10px 0;
}

.post-card p,
.comment-card p {
  color: #c8d2df;
  line-height: 1.75;
}

.post-user,
.profile-hero {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #23433f;
  color: #67f5d1;
  font-weight: 900;
}

.profile-avatar {
  width: 86px;
  height: 86px;
  font-size: 34px;
}

.post-user span {
  display: block;
  margin-top: 3px;
  color: #8492a8;
  font-size: 13px;
}

.neon-button,
.publish-card button {
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #67f5d1;
  border-radius: 7px;
  background: #19312f;
  color: #dffff6;
  font-weight: 900;
  cursor: pointer;
}

.comment-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.comment-form,
.publish-card {
  display: grid;
  gap: 14px;
}

.publish-card input,
.publish-card select,
.publish-card textarea,
.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #2b3447;
  border-radius: 7px;
  background: #0f1116;
  color: #e6eaf2;
  font: inherit;
}

.hot-box {
  margin-bottom: 16px;
}

.side-card {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid #252b38;
}

.community-notice {
  padding: 12px 14px;
  border: 1px solid #67f5d1;
  border-radius: 8px;
  background: #142723;
  color: #dffff6;
}

.sponsor-top {
  border-color: #d7b56d;
  box-shadow: 0 0 22px rgba(215, 181, 109, 0.2);
}

@media (max-width: 1100px) {
  .app-container { grid-template-columns: 190px minmax(0, 1fr); }
  .right-panel { display: none; }
}

@media (max-width: 760px) {
  .app-container { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid #252b38; }
  .feed { padding: 16px; }
}
