:root {
  --bg-0: #210804;
  --bg-1: #4a120c;
  --bg-2: #7f1d12;
  --bg-3: #b02d18;
  --panel: rgba(53, 14, 10, 0.8);
  --panel-strong: rgba(38, 10, 7, 0.9);
  --line: rgba(255, 173, 119, 0.36);
  --line-strong: rgba(255, 208, 150, 0.76);
  --text-main: #fff6ef;
  --text-sub: #ffd2bf;
  --brand: #ff7a38;
  --brand-2: #ffb057;
  --brand-3: #ffd792;
  --warn: #ffebba;
  --ok: #b8ffdd;
  --shadow: 0 18px 42px rgba(10, 2, 2, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--text-main);
  font-family: "Alibaba PuHuiTi", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(circle at 2% 4%, rgba(255, 170, 94, 0.26), transparent 28%),
    radial-gradient(circle at 96% 0%, rgba(255, 96, 62, 0.28), transparent 24%),
    linear-gradient(145deg, var(--bg-0) 0%, var(--bg-1) 35%, var(--bg-2) 72%, var(--bg-3) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    repeating-linear-gradient(
      -38deg,
      rgba(255, 208, 173, 0.08) 0,
      rgba(255, 208, 173, 0.08) 1px,
      transparent 1px,
      transparent 12px
    );
}

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

.page-shell {
  width: min(680px, 94vw);
  margin: 16px auto 44px;
  position: relative;
  z-index: 1;
}

.hero-card,
.panel-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--panel), var(--panel-strong));
  backdrop-filter: blur(6px);
  animation: fade-up 0.35s ease;
}

.hero-card {
  padding: 22px;
}

.panel-card {
  margin-top: 16px;
  padding: 18px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #ffe1d1;
}

h1 {
  margin: 6px 0 0;
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  letter-spacing: 0.02em;
}

.hero-text {
  margin: 8px 0 0;
  color: var(--text-sub);
  line-height: 1.72;
}

.hero-note-strip {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-note-strip span {
  border: 1px solid rgba(255, 201, 138, 0.6);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  color: #ffe8d8;
  background: rgba(92, 25, 17, 0.62);
}

.inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--line);
  background: rgba(87, 23, 16, 0.8);
  color: #fff3eb;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(17, 4, 3, 0.42);
}

.btn.primary {
  background: linear-gradient(130deg, var(--brand-2), var(--brand));
  color: #5a2100;
  border-color: rgba(255, 232, 178, 0.95);
  font-weight: 700;
}

.btn.ghost {
  background: rgba(65, 18, 13, 0.52);
}

.pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: #ffe4d0;
}

.notice-block {
  margin-top: 14px;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
}

.notice-block strong {
  display: block;
  margin-bottom: 6px;
}

.notice-block p {
  margin: 0;
  color: #ffe7d8;
  line-height: 1.65;
  font-size: 0.88rem;
}

.notice-warn {
  border-left: 5px solid var(--warn);
  background: rgba(88, 26, 18, 0.66);
}

.notice-info {
  border-left: 5px solid rgba(255, 206, 129, 0.85);
  background: rgba(76, 24, 18, 0.64);
}

.ad-placeholder {
  margin-top: 10px;
  border: 1px dashed rgba(255, 203, 150, 0.65);
  border-radius: 10px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffd5be;
  background: rgba(43, 12, 10, 0.5);
  overflow: hidden;
}

.sport-grid,
.event-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sport-card,
.event-card,
.match-card,
.news-card,
.metric-card,
.sub-card,
.vote-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(63, 18, 13, 0.82), rgba(46, 13, 9, 0.88));
}

.sport-card img,
.event-card img,
.news-card img {
  width: 100%;
  height: 158px;
  object-fit: cover;
  display: block;
}

.sport-info,
.event-body,
.news-body,
.match-body {
  padding: 12px;
}

.sport-info h3,
.event-body h3,
.news-body h4,
.match-body h3 {
  margin: 0;
}

.sport-info p,
.event-body p,
.news-body p,
.match-body p {
  margin: 7px 0 10px;
  color: var(--text-sub);
  line-height: 1.58;
  font-size: 0.86rem;
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag {
  border-radius: 999px;
  border: 1px solid rgba(255, 203, 141, 0.66);
  padding: 4px 8px;
  font-size: 0.74rem;
  color: #ffe1cd;
}

.cover-banner {
  margin-top: 12px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 230px;
  border: 1px solid var(--line-strong);
}

.cover-banner img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.cover-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(18, 6, 5, 0.9), rgba(18, 6, 5, 0.22) 62%);
}

.cover-content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
}

.cover-content h3 {
  margin: 0;
  font-size: 1.2rem;
}

.cover-content p {
  margin: 5px 0 0;
  color: #ffd9c6;
  line-height: 1.5;
  font-size: 0.9rem;
}

.hero-kpis {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kpi-pill {
  border: 1px solid rgba(255, 205, 142, 0.58);
  border-radius: 12px;
  padding: 10px;
  background: rgba(80, 22, 15, 0.62);
}

.kpi-pill .k {
  color: #ffd8c2;
  font-size: 0.76rem;
}

.kpi-pill .v {
  margin-top: 5px;
  font-size: 1.08rem;
  font-weight: 700;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.panel-head small {
  color: var(--text-sub);
}

.metric-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  padding: 10px;
  position: relative;
}

.metric-label {
  color: #ffd7c2;
  font-size: 0.8rem;
}

.metric-value {
  margin-top: 4px;
  font-size: 1.15rem;
  font-weight: 700;
}

.metric-progress {
  margin-top: 8px;
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 204, 150, 0.18);
}

.metric-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(130deg, #ffcf88, #ff7a3f);
}

.heat-board {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.heat-day {
  border: 1px solid rgba(255, 203, 141, 0.48);
  border-radius: 12px;
  padding: 10px 8px;
  background: rgba(84, 23, 16, 0.54);
  text-align: center;
}

.heat-day .date {
  font-size: 0.75rem;
  color: #ffd9c7;
}

.heat-day .count {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 700;
}

.heat-bar {
  margin-top: 8px;
  height: 52px;
  border-radius: 8px;
  background: rgba(255, 216, 168, 0.1);
  position: relative;
  overflow: hidden;
}

.heat-bar span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 213, 133, 0.8), rgba(255, 119, 60, 0.92));
}

.ai-brief {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.sub-card {
  padding: 12px;
}

.sub-card h3 {
  margin: 0 0 8px;
  font-size: 0.96rem;
}

.sub-card p {
  margin: 0;
  color: #ffe0cf;
  line-height: 1.65;
  font-size: 0.88rem;
}

.sub-card ul {
  margin: 0;
  padding-left: 18px;
  color: #ffe0cf;
  font-size: 0.85rem;
  line-height: 1.58;
}

.match-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.match-card .thumb {
  width: 100%;
  height: 174px;
  object-fit: cover;
  display: block;
}

.match-body h3 {
  margin: 6px 0;
  font-size: 1rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #ffd6be;
  font-size: 0.8rem;
}

.match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.match-tag {
  border: 1px solid rgba(255, 203, 141, 0.55);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.74rem;
  color: #ffe5d5;
}

.news-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.news-card img {
  height: 170px;
}

.news-body h4 {
  font-size: 0.92rem;
  line-height: 1.48;
}

.empty-box {
  border: 1px dashed rgba(255, 194, 138, 0.65);
  border-radius: 12px;
  padding: 12px;
  color: #ffd7c1;
  text-align: center;
  background: rgba(63, 17, 12, 0.55);
}

.detail-top img {
  height: 220px;
}

.quick-list {
  margin: 10px 0 0;
  padding-left: 18px;
  line-height: 1.7;
  color: #ffe2d1;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.board-lines p {
  margin: 0 0 8px;
  color: #ffe2d1;
  line-height: 1.63;
  font-size: 0.88rem;
}

.squad-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.squad-wrap h4 {
  margin: 0 0 6px;
  font-size: 0.86rem;
}

.squad-wrap ul {
  margin: 0;
  padding-left: 16px;
  color: #ffe2d1;
  font-size: 0.84rem;
  line-height: 1.55;
}

.squad-wrap .note {
  grid-column: 1 / -1;
  color: #ffd3bd;
  font-size: 0.8rem;
  margin-top: 2px;
}

.vote-wrap {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.vote-panel {
  padding: 12px;
}

.vote-panel h3 {
  margin: 0;
  font-size: 0.94rem;
}

.vote-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.vote-item {
  border: 1px solid rgba(255, 190, 132, 0.56);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(76, 22, 15, 0.72);
  color: #fff2e8;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

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

.vote-item.active {
  border-color: rgba(255, 221, 151, 0.92);
  background: linear-gradient(130deg, rgba(255, 195, 102, 0.45), rgba(255, 128, 72, 0.46));
}

.vote-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

.vote-item-row strong {
  font-size: 0.88rem;
}

.vote-progress {
  margin-top: 6px;
  height: 7px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 215, 168, 0.18);
}

.vote-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(120deg, #ffd894, #ff7b3c);
}

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

.chip {
  border: 1px solid rgba(255, 190, 132, 0.56);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(76, 22, 15, 0.72);
  color: #fff2e8;
  font-size: 0.82rem;
  cursor: pointer;
}

.chip.active {
  border-color: rgba(255, 221, 151, 0.92);
  background: linear-gradient(130deg, rgba(255, 195, 102, 0.45), rgba(255, 128, 72, 0.46));
}

.score-trend {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.score-row {
  display: grid;
  grid-template-columns: 74px 1fr 56px;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: #ffe3d0;
}

.score-row .bar {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 214, 168, 0.17);
  overflow: hidden;
}

.score-row .bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(120deg, #ffd894, #ff7b3c);
}

.foot-note {
  margin: 10px 0 0;
  color: #ffd4bf;
  line-height: 1.6;
  font-size: 0.8rem;
}

.admin-grid {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.admin-grid.one {
  grid-template-columns: 1fr;
}

.admin-grid.two {
  grid-template-columns: 1fr;
}

.admin-item,
.admin-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #ffe7d8;
  font-size: 0.85rem;
}

.admin-item input,
.admin-item textarea,
.admin-card input,
.admin-card textarea {
  border: 1px solid rgba(255, 190, 132, 0.56);
  border-radius: 10px;
  background: rgba(44, 13, 10, 0.82);
  color: #fff5ef;
  padding: 8px 10px;
  font-size: 0.84rem;
}

.admin-card {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.admin-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

.log-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.log-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: rgba(54, 15, 11, 0.7);
  color: #ffe7d8;
  line-height: 1.55;
  font-size: 0.83rem;
}

.log-item .meta {
  color: #ffd0b7;
  font-size: 0.8rem;
}

.log-item ul {
  margin: 8px 0 0;
  padding-left: 18px;
  line-height: 1.6;
}

@media (min-width: 860px) {
  .page-shell {
    width: min(1100px, 92vw);
    margin-top: 24px;
  }

  .sport-grid,
  .event-grid,
  .ai-brief,
  .match-grid,
  .news-grid,
  .two-col,
  .vote-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-kpis,
  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .heat-board {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .detail-top img {
    height: 280px;
  }

  .squad-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .hero-kpis,
  .metric-grid,
  .heat-board {
    grid-template-columns: 1fr;
  }

  .score-row {
    grid-template-columns: 62px 1fr 44px;
  }

  .admin-grid.two {
    grid-template-columns: 1fr;
  }
}
