/* CryptoKolTrack — shared styles */
:root {
  --bg: #0b0b0b;
  --bg-elevated: #141414;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --line: #2a2a2a;
  --gold: #c8962a;
  --gold-soft: #e2b45a;
  --danger: #c44;
  --radius: 10px;
  --max: 1080px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100%;
}

a {
  color: var(--gold-soft);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Top nav */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #111111;
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-links .ext {
  color: var(--gold);
}

/* Hero */
.hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(200, 150, 42, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 20%, rgba(200, 150, 42, 0.06), transparent 50%),
    linear-gradient(180deg, #141414 0%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid rgba(200, 150, 42, 0.55);
}

.hero-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-lead {
  margin: 0.85rem 0 0;
  max-width: 42rem;
  color: #e8e8e8;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.6;
}

.hero-lead-sub {
  margin: 0.5rem 0 0;
  color: var(--gold-soft);
  font-size: 1rem;
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.hero-pillars-sep {
  color: rgba(200, 150, 42, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #111;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--gold-soft);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Sections */
.section {
  padding: 2.25rem 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-family: var(--font-display);
}

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

/* Event board: table left, events right */
.event-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.25rem;
  align-items: start;
}

.event-panel {
  min-width: 0;
}

#events.section {
  padding-top: 1.5rem;
}

.event-panel-head,
.event-rail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  gap: 0.2rem 0.65rem;
  min-height: 2.75rem;
  margin-bottom: 0.55rem;
  box-sizing: border-box;
}

.event-panel-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-display);
  line-height: 1.3;
}

.event-panel-head p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

/* 表格可视约 10 行，超出纵向滚动 */
.event-panel .table-wrap {
  max-height: calc(2.5rem + 10 * 3.5rem);
  overflow: auto;
}

.event-panel table.data thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-elevated);
  box-shadow: inset 0 -1px 0 var(--line);
}

.event-panel .mobile-cards {
  max-height: calc(2.5rem + 10 * 5.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
}

.event-rail {
  display: flex;
  flex-direction: column;
  align-self: start;
}

.event-box {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 0.55rem 0.65rem 0.7rem;
  box-sizing: border-box;
}

.event-tabs {
  display: flex;
  gap: 0.25rem;
  width: 100%;
  padding: 0.15rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  box-sizing: border-box;
}

.event-tab {
  flex: 1;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0.4rem 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.event-tab:hover {
  color: var(--text);
}

.event-tab.is-active {
  color: var(--gold);
  border-color: rgba(200, 150, 42, 0.35);
  background: rgba(200, 150, 42, 0.1);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  /* 约 6 条事件可视，超出纵向滚动 */
  max-height: calc(6 * 3.85rem + 5 * 0.35rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.1rem;
}

.event-empty {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.event-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 0.65rem 0.7rem;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  font: inherit;
}

.event-item:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.event-item.is-active {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.event-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.event-pin {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  vertical-align: middle;
}

.event-desc {
  font-size: 0.8rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .event-board {
    grid-template-columns: 1fr;
  }

  .event-rail {
    order: -1;
  }
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
}

.chip:hover,
.chip.active {
  border-color: var(--gold);
  color: var(--gold);
}

/* Table / list */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

table.data th,
table.data td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  line-height: 1.4;
  font-size: 0.92rem;
}

table.data th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  white-space: nowrap;
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.expand-cell {
  width: 2.5rem;
  min-width: 2.5rem;
  max-width: 2.75rem;
  padding-left: 0.5rem;
  padding-right: 0.35rem;
  text-align: center;
}

.pred-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 1.85rem;
  height: 1.6rem;
  padding: 0 0.3rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  line-height: 1;
}

.pred-expand:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pred-expand-icon {
  display: inline-block;
  transition: transform 0.15s ease;
  font-size: 0.7rem;
}

.pred-expand.is-open .pred-expand-icon {
  transform: rotate(90deg);
}

.pred-expand-placeholder {
  display: inline-block;
  width: 1.85rem;
}

.pred-history-row > td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.88rem;
}

.pred-history-row.is-latest > td {
  background: rgba(200, 150, 42, 0.12);
  color: var(--text);
}

.pred-history-row:hover > td {
  background: rgba(255, 255, 255, 0.035);
}

.pred-history-row.is-latest:hover > td {
  background: rgba(200, 150, 42, 0.18);
}

.pred-hist-mark {
  font-size: 0.75rem;
  opacity: 0.7;
}

.pred-hist-kol {
  font-size: 0.8rem;
}

.pred-latest-tag {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #1a1408;
  background: var(--gold);
  border-radius: 3px;
  white-space: nowrap;
  font-weight: 600;
}

.card-row-hist.is-latest {
  border-color: rgba(200, 150, 42, 0.45);
}

.pred-expand-card {
  margin-top: 0.65rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.pred-expand-card:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pred-history-cards {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.card-row-hist {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.kol-cell {
  min-width: 9rem;
  max-width: 14rem;
}

.kol-name {
  display: inline-block;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
}

.kol-name:hover {
  color: var(--gold);
  text-decoration: underline;
}

.kol-bio {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shot-cell {
  width: 48px;
  min-width: 48px;
  max-width: 52px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.shot-thumb {
  display: block;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: #16181c;
  cursor: zoom-in;
}

.shot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shot-thumb:hover {
  border-color: var(--gold);
}

.shot-wrap {
  margin: 0.65rem 0;
}

.shot-wrap .shot-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

.shot-missing {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 5px;
  font-size: 0.65rem;
  text-align: center;
  line-height: 1.15;
}

.shot-wrap .shot-missing {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  font-size: 0.75rem;
}

body.lightbox-open {
  overflow: hidden;
}

.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.82);
  cursor: zoom-out;
}

.shot-lightbox[hidden] {
  display: none;
}

.shot-lightbox-img {
  max-width: min(920px, 96vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #16181c;
  cursor: default;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.shot-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 24, 28, 0.9);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.shot-lightbox-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}

.badge.open {
  border-color: rgba(200, 150, 42, 0.45);
  color: var(--gold);
}

.mobile-cards {
  display: none;
}

.card-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--bg-elevated);
  margin-bottom: 0.75rem;
}

.card-row .top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.card-row .meta {
  color: var(--muted);
  font-size: 0.9rem;
}

/* States */
.state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.state.error {
  color: #f0b0b0;
  border-color: rgba(196, 68, 68, 0.4);
}

/* KOL grid */
.kol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.kol-card {
  display: block;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
}

.kol-card:hover {
  border-color: var(--gold);
  text-decoration: none;
}

.kol-card .kol-avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 0.65rem;
  border: 1px solid var(--line);
  display: block;
}

.kol-card .handle {
  color: var(--gold);
  font-weight: 700;
}

.kol-card .count {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-head {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.profile-head h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}

.pred-groups {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pred-group-head {
  margin-bottom: 0.85rem;
}

.pred-group-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.pred-group-summary {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.pred-group-tag {
  margin-left: 0.4rem;
  font-size: 0.8rem;
  font-weight: 400;
  font-family: var(--font-body, inherit);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.pager-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.pager-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}

.pager-btn.is-active {
  border-color: var(--gold);
  color: var(--gold);
}

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

.pager-meta {
  margin-left: 0.35rem;
  font-size: 0.85rem;
}

/* About — left tabs / right content */
.about-board {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.about-rail {
  position: sticky;
  top: 1rem;
}

.about-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 0.85rem 0.75rem 1rem;
}

.about-rail-head {
  margin: 0 0 0.65rem;
  padding: 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.about-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.about-tab {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
}

.about-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.about-tab.is-active {
  color: var(--gold);
  border-color: rgba(200, 150, 42, 0.35);
  background: rgba(200, 150, 42, 0.1);
}

.about-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 1.5rem 1.6rem 1.75rem;
  min-height: 16rem;
}

.about-block h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
}

.about-block h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  font-family: var(--font-display);
}

.about-lead {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--gold-soft);
}

.about-block p {
  margin: 0 0 0.85rem;
  line-height: 1.7;
  color: #e0e0e0;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem !important;
}

@media (max-width: 720px) {
  .about-board {
    grid-template-columns: 1fr;
  }

  .about-rail {
    position: static;
  }

  .about-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .about-tab {
    width: auto;
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.35rem 0;
  max-width: 40rem;
}

@media (max-width: 720px) {
  .brand-name {
    font-size: 0.95rem;
  }

  .hero {
    padding: 2rem 0 1.75rem;
  }

  .desktop-only {
    display: none;
  }

  .mobile-cards {
    display: block;
  }
}
