/* ============================================================
   否极电竞 PIJI CLUB —— 展示站样式
   风格：新中式水墨电竞（深墨绿 · 鎏金 · 青绿 · 朱砂印章）
   ============================================================ */

:root {
  --bg: #0b1713;            /* 深墨绿底 */
  --bg-2: #0f201a;
  --panel: #13281f;         /* 卡片底 */
  --panel-2: #173025;
  --line: rgba(217, 185, 106, 0.28);   /* 金线 */
  --line-soft: rgba(217, 185, 106, 0.14);
  --gold: #d9b96a;
  --gold-bright: #f2d998;
  --jade: #7fd8c4;          /* 青绿 */
  --jade-dim: #57a08f;
  --seal-red: #b03a2e;      /* 印章朱红 */
  --ink: #e9e4d4;           /* 正文 */
  --ink-dim: #b9b4a3;
  --ink-faint: #8b8a7a;
  --font-head: "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", "Songti SC", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  /* 暗部祥云 / 山雾氛围 */
  background-image:
    radial-gradient(1200px 500px at 80% -5%, rgba(127, 216, 196, 0.07), transparent 60%),
    radial-gradient(900px 420px at 8% 12%, rgba(217, 185, 106, 0.06), transparent 55%),
    radial-gradient(1100px 600px at 50% 115%, rgba(127, 216, 196, 0.05), transparent 60%);
  background-attachment: fixed;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: var(--jade); text-decoration: none; }

/* ---------------- 顶部导航 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px clamp(14px, 4vw, 36px);
  background: rgba(9, 18, 14, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.seal {
  writing-mode: vertical-rl;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 2px;
  color: #f7f1e0;
  background: var(--seal-red);
  border-radius: 5px;
  padding: 6px 5px;
  line-height: 1.15;
  box-shadow: 0 0 0 1px rgba(247, 241, 224, 0.35) inset, 0 2px 8px rgba(176, 58, 46, 0.45);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-family: var(--font-head);
  font-size: 19px;
  color: var(--gold-bright);
  letter-spacing: 2px;
}
.brand-text em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--ink-faint);
}

.topbar-chip {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--gold-bright);
  border: 1px solid var(--line);
  background: rgba(217, 185, 106, 0.08);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
}

/* ---------------- 首页：紧凑首屏 + 目录卡片 ---------------- */
.home-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(24px, 4.5vh, 44px) 20px 4px;
}
/* 素材「卷轴山水」作氛围底图 */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("../assets/hero-art.jpg") center 30% / cover no-repeat;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 72%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 72%, transparent);
}
.home-hero > * { position: relative; }
.hero-kicker {
  font-size: 12px;
  letter-spacing: 8px;
  color: var(--jade);
  margin-bottom: 10px;
}
/* 店标原图为黑字透明底，反色适配深色站 */
.home-logo {
  width: min(330px, 60vw);
  margin: 2px auto 0;
  filter: invert(1) hue-rotate(180deg) drop-shadow(0 0 26px rgba(127, 216, 196, 0.28));
}
.hero-sub {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: clamp(14px, 2.2vw, 18px);
  letter-spacing: 3px;
  color: var(--ink);
}
/* 目录卡片网格 */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.dir-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(170deg, var(--panel), rgba(15, 32, 26, 0.55));
  color: var(--ink);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.dir-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.dir-card > img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line-soft);
}
.dir-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 14px 16px 15px;
}
.dir-body h3 {
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--gold-bright);
}
.dir-brief {
  flex: 1;
  font-size: 13px;
  color: var(--ink-dim);
}
.dir-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
.dir-from {
  font-size: 14px;
  font-weight: 700;
  color: var(--jade);
  font-variant-numeric: tabular-nums;
}
.dir-more {
  font-size: 12px;
  color: var(--ink-faint);
  transition: color 0.15s;
}
.dir-card:hover .dir-more { color: var(--gold-bright); }

/* ---------------- 板块 ---------------- */
main { max-width: 1120px; margin: 0 auto; padding: 10px clamp(14px, 4vw, 32px) 60px; }

.back {
  display: inline-block;
  margin-top: 26px;
  font-size: 14px;
  color: var(--jade);
  border: 1px solid rgba(127, 216, 196, 0.3);
  padding: 7px 18px;
  border-radius: 999px;
  transition: all 0.15s;
}
.back:hover {
  color: var(--gold-bright);
  border-color: var(--line);
  background: rgba(217, 185, 106, 0.08);
}

.section { margin-top: 10px; }

.section-from {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--jade);
  font-variant-numeric: tabular-nums;
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

.section-thumb {
  flex-shrink: 0;
  width: 108px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--panel);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}
.section-thumb:hover { transform: translateY(-3px); }
.section-thumb img { width: 100%; height: 150px; object-fit: cover; object-position: top; }
.section-thumb figcaption {
  font-size: 10.5px;
  text-align: center;
  color: var(--ink-faint);
  padding: 4px 2px;
  border-top: 1px solid var(--line-soft);
}

.plaque {
  position: relative;
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: 5px;
  color: #f4ecd6;
  padding: 6px 26px;
  background: linear-gradient(120deg, rgba(127, 216, 196, 0.16), rgba(217, 185, 106, 0.20));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line-soft);
}
.plaque::before, .plaque::after {
  content: "◆";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--gold);
}
.plaque::before { left: 8px; }
.plaque::after { right: 8px; }

.section-sub {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-dim);
}

/* ---------------- 内容块通用 ---------------- */
.block { margin-top: 26px; }

.block-title {
  font-family: var(--font-head);
  font-size: 19px;
  letter-spacing: 2px;
  color: var(--gold-bright);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--jade);
}

/* 价格卡片 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.price-card {
  position: relative;
  background: linear-gradient(165deg, var(--panel), rgba(15, 32, 26, 0.6));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 18px 15px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.price-card::before {
  content: "";
  position: absolute;
  top: 0; left: 14px; right: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}
.price-card .card-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: #fff;
  image-rendering: pixelated;
  margin-bottom: 10px;
}
.price-card .name {
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: 1px;
  color: var(--ink);
}
.price-card .price {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.price-card .price:empty { display: none; }
.price-card .sub {
  display: inline-block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--jade);
  border: 1px solid rgba(127, 216, 196, 0.35);
  border-radius: 999px;
  padding: 1px 10px;
}
.price-card .sub:empty { display: none; }
.price-card .desc {
  margin-top: 9px;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.65;
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(15, 32, 26, 0.55);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px;
}
thead th {
  font-family: var(--font-head);
  letter-spacing: 1px;
  font-weight: 600;
  color: #142018;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
}
tbody td {
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink);
}
tbody tr:nth-child(even) td { background: rgba(217, 185, 106, 0.045); }
tbody tr:hover td { background: rgba(127, 216, 196, 0.07); }
tbody td:first-child { color: var(--gold-bright); font-weight: 600; }
.table-foot {
  padding: 10px 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--jade);
}

/* 规则列表 */
.rules {
  list-style: none;
  background: rgba(15, 32, 26, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.rules li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 14px;
  color: var(--ink-dim);
}
.rules li::before {
  content: "◈";
  position: absolute;
  left: 2px;
  color: var(--jade-dim);
  font-size: 12px;
}

/* 提示条 */
.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--gold-bright);
  background: rgba(217, 185, 106, 0.08);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 11px 16px;
}
.note::before { content: "※"; flex-shrink: 0; color: var(--gold); }

/* 折叠 */
details.box {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(15, 32, 26, 0.4);
  overflow: hidden;
}
details.box summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  font-family: var(--font-head);
  font-size: 16px;
  letter-spacing: 1.5px;
  color: var(--jade);
  user-select: none;
  transition: background 0.15s;
}
details.box summary::-webkit-details-marker { display: none; }
details.box summary::before {
  content: "▸";
  color: var(--gold);
  transition: transform 0.2s;
}
details.box[open] summary::before { transform: rotate(90deg); }
details.box summary:hover { background: rgba(127, 216, 196, 0.06); }
details.box .details-inner { padding: 4px 18px 18px; }
details.box .details-inner .block:first-child { margin-top: 12px; }

/* 文本块 */
.text-block {
  font-size: 14px;
  color: var(--ink-dim);
  background: rgba(15, 32, 26, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
}

/* 配图 */
.figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
}
.figure img { width: 100%; }
.figure figcaption {
  padding: 9px 14px;
  font-size: 12.5px;
  color: var(--ink-faint);
  text-align: center;
  border-top: 1px solid var(--line-soft);
}

/* ---------------- 页脚 ---------------- */
.footer {
  margin-top: 90px;
  padding: 54px 20px 40px;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, transparent, rgba(9, 18, 14, 0.9));
}
.footer-logo {
  width: min(180px, 48vw);
  margin: 0 auto 14px;
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.92;
}
.footer-en {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 12px;
  text-indent: 12px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(127, 216, 196, 0.55);
}
.footer p { margin-top: 12px; font-size: 13px; color: var(--ink-dim); }
.footer .footer-note { margin-top: 6px; font-size: 12px; color: var(--ink-faint); }

/* ---------------- 灯箱 ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-mask {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 8, 0.9);
  backdrop-filter: blur(4px);
}
.lightbox-body {
  position: relative;
  z-index: 1;
  max-height: 92vh;
  max-width: min(94vw, 860px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-body img { width: 100%; }
.lightbox-body figcaption {
  position: sticky;
  bottom: 0;
  padding: 8px 14px;
  font-size: 12.5px;
  text-align: center;
  color: var(--ink-dim);
  background: rgba(9, 18, 14, 0.92);
  border-top: 1px solid var(--line-soft);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(15, 32, 26, 0.9);
  color: var(--gold-bright);
  font-size: 17px;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--seal-red); color: #fff; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 720px) {
  .topbar-chip { font-size: 11.5px; padding: 4px 10px; }
  .section-head { flex-direction: row; }
  .section-thumb { width: 84px; }
  .section-thumb img { height: 116px; }
  .price-card .price { font-size: 21px; }
}
