/* TwMu 公開內容頁（規章／介紹／指南／公告）— 獨立檔避免快取舊殼 */
.pc-page {
  --pc-max: 980px;
  color: var(--text-primary);
}

.pc-hero {
  position: relative;
  padding: 3.1rem 0 2.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  text-align: center;
}
.pc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(6, 7, 10, 0.94), rgba(6, 7, 10, 0.78)),
    url("/img/christmas_2026_banner.jpg") center / cover no-repeat;
  opacity: 0.55;
  z-index: 0;
}
.pc-hero .container { position: relative; z-index: 1; }
.pc-hero h1 {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  margin: 0 0 0.55rem;
  color: #f3f0e8 !important;
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
}
.pc-hero .pc-lead {
  margin: 0 auto;
  max-width: 38rem;
  color: #a39e92 !important;
  font-size: 0.95rem;
  line-height: 1.7;
}

.pc-wrap {
  max-width: var(--pc-max);
  margin: 0 auto 3.5rem;
  padding: 0 1rem;
}

.pc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 0 1.25rem;
}
.pc-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  background: rgba(16, 18, 24, 0.92);
  color: #cfc8b8 !important;
  font-size: 0.86rem;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.pc-nav a:hover,
.pc-nav a.is-active {
  color: #1a1408 !important;
  background: linear-gradient(135deg, #c9a227, #e8d48b);
  border-color: transparent;
}

.pc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.pc-search {
  flex: 1 1 260px;
  position: relative;
}
.pc-search i {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a39e92;
  pointer-events: none;
}
.pc-search input {
  width: 100%;
  border-radius: 999px !important;
  border: 1px solid rgba(201, 162, 39, 0.3) !important;
  background: rgba(16, 18, 24, 0.95) !important;
  color: #f3f0e8 !important;
  padding: 0.7rem 1rem 0.7rem 2.45rem !important;
  outline: none !important;
  box-shadow: none !important;
}
.pc-search input::placeholder { color: #7d776c !important; }
.pc-search input:focus {
  border-color: rgba(201, 162, 39, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.14) !important;
}
.pc-hint {
  color: #a39e92;
  font-size: 0.82rem;
}

.pc-stack {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.pc-card {
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: linear-gradient(160deg, rgba(20, 22, 28, 0.96), rgba(12, 13, 18, 0.96));
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  border-left: 3px solid #c9a227;
}
.pc-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1a1408;
  background: linear-gradient(135deg, #c9a227, #e8d48b);
  margin-bottom: 0.65rem;
}
.pc-card__title {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #e8d48b !important;
}
.pc-card__meta {
  display: none; /* 指南／規章不需每段重複日期 */
}

.pc-rich {
  color: #cfc8b8 !important;
  line-height: 1.8;
  word-break: break-word;
}
.pc-rich h1, .pc-rich h2, .pc-rich h3, .pc-rich h4, .pc-rich h5 {
  color: #e8d48b !important;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.pc-rich h1:first-child, .pc-rich h2:first-child, .pc-rich h3:first-child { margin-top: 0; }
.pc-rich p { margin-bottom: 0.7rem; color: #cfc8b8 !important; }
.pc-rich strong, .pc-rich b { color: #f3f0e8 !important; }
.pc-rich a { color: #e8d48b !important; }
.pc-rich ul, .pc-rich ol { padding-left: 1.2rem; margin-bottom: 0.75rem; }
.pc-rich li { margin-bottom: 0.3rem; color: #cfc8b8 !important; }
.pc-rich img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.25);
  margin: 0.45rem 0;
}
.pc-rich table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.7rem 0;
}
.pc-rich th, .pc-rich td {
  border: 1px solid rgba(201, 162, 39, 0.22);
  padding: 0.45rem 0.6rem;
  color: #cfc8b8;
}
.pc-rich th {
  background: rgba(201, 162, 39, 0.12);
  color: #e8d48b;
}
.pc-rich * { background-color: transparent !important; }

.pc-empty {
  text-align: center;
  padding: 3.2rem 1rem;
  border: 1px dashed rgba(201, 162, 39, 0.28);
  border-radius: 16px;
  color: #a39e92;
  background: rgba(16, 18, 24, 0.92);
}
.pc-hidden { display: none !important; }

.pc-list {
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(16, 18, 24, 0.94);
  border-radius: 16px;
  overflow: hidden;
}
.pc-list__head {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.pc-list__head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #e8d48b !important;
}
.pc-list__item {
  display: block;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
  color: inherit !important;
  text-decoration: none !important;
  transition: background 0.15s ease;
}
.pc-list__item:last-child { border-bottom: 0; }
.pc-list__item:hover { background: rgba(201, 162, 39, 0.08); }
.pc-list__item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #f3f0e8 !important;
}
.pc-list__item p {
  margin: 0;
  color: #a39e92 !important;
  font-size: 0.9rem;
}
.pc-list__meta {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #8f887c;
}
.pc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(201, 162, 39, 0.3);
  background: rgba(201, 162, 39, 0.12);
  color: #e8d48b;
}

.pc-timeline {
  position: relative;
  padding-left: 1.35rem;
}
.pc-timeline::before {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: rgba(201, 162, 39, 0.28);
}
.pc-timeline__item {
  position: relative;
  margin-bottom: 0.95rem;
}
.pc-timeline__item::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 1.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9a227;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}
.pc-timeline__ver {
  display: inline-flex;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(201, 162, 39, 0.14);
  color: #e8d48b;
  border: 1px solid rgba(201, 162, 39, 0.3);
  margin-bottom: 0.45rem;
}

/* 相容舊 class：轉成新卡片樣式 */
.pc-layout { display: block; }
.pc-toc { display: none !important; }
.pc-panel {
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: linear-gradient(160deg, rgba(20, 22, 28, 0.96), rgba(12, 13, 18, 0.96));
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  border-left: 3px solid #c9a227;
  margin-bottom: 0.95rem;
}
.pc-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
}
.pc-panel__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #e8d48b !important;
}
.pc-panel__meta { display: none; }
.pc-badge {
  margin-bottom: 0.55rem;
}

/* ===== 遊戲下載頁（橫向卡片） ===== */
.dl-page { --pc-max: 1080px; }
.dl-section {
  scroll-margin-top: 96px;
  margin-bottom: 2rem;
}
.dl-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.dl-section__head h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #e8d48b !important;
}
.dl-section__head h2 i { color: #e8d48b; }
.dl-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
@media (max-width: 767px) {
  .dl-section { scroll-margin-top: 84px; }
}

.dl-card {
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: linear-gradient(120deg, rgba(22, 24, 30, 0.98), rgba(10, 11, 15, 0.98));
  border-radius: 16px;
  border-left: 3px solid #c9a227;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.dl-card:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 162, 39, 0.5);
}
.dl-card__main {
  flex: 1 1 auto;
  min-width: 0;
}
.dl-card__main h3 {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
  color: #f3f0e8 !important;
}
.dl-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.dl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(201, 162, 39, 0.1);
  color: #e8d48b;
  white-space: nowrap;
}
.dl-card__desc {
  margin-top: 0.55rem;
  color: #cfc8b8 !important;
  font-size: 0.88rem;
  line-height: 1.6;
}
.dl-card__desc p { margin: 0 0 0.35rem; color: #cfc8b8 !important; }
.dl-card__actions {
  flex: 0 0 auto;
  width: 168px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none !important;
  background: linear-gradient(135deg, #c9a227, #e8d48b);
  color: #1a1408 !important;
  border: none;
  transition: filter 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.dl-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #1a1408 !important;
}
.dl-btn--ghost {
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: #e8d48b !important;
}
.dl-btn--ghost:hover {
  background: rgba(201, 162, 39, 0.12);
  color: #f3f0e8 !important;
  filter: none;
}
.dl-empty {
  text-align: center;
  padding: 2.2rem 1.25rem;
  border: 1px dashed rgba(201, 162, 39, 0.28);
  border-radius: 16px;
  background: rgba(16, 18, 24, 0.92);
  color: #a39e92;
}
.dl-empty i {
  color: rgba(201, 162, 39, 0.4);
  margin-bottom: 0.75rem;
}
.dl-empty strong {
  display: block;
  color: #e8d48b;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

@media (max-width: 767px) {
  .dl-card {
    flex-direction: column;
    align-items: stretch;
  }
  .dl-card__actions {
    width: 100%;
  }
}
