body {
  font-family: 'Segoe UI', system-ui, 'Microsoft JhengHei', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--wx-bg);
  color: var(--wx-text);
  /* 網點（halftone）動漫紋理 */
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

/* 頂部輪播（保留，目前未使用） */
.top-slider { position: relative; width: 100%; overflow: hidden; background: #111; }
.top-slider .slides { display: flex; width: 100%; transition: transform 0.6s ease; }
.top-slider .slide { flex: 0 0 100%; }
.top-slider .slide img { width: 100%; height: 220px; object-fit: cover; display: block; }
.top-slider .dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 6px; }
.top-slider .dot, .top-slider .dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; padding: 0; cursor: pointer; }
.top-slider .dot.active, .top-slider .dots button.active { background: var(--wx-accent); }

/* 佈告欄圖片輪播（含一頁文字） */
.notice-slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 300px;
  overflow: hidden;
  background: var(--wx-surface);
  border: 1px solid var(--wx-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
}
.notice-slider .slides { display: flex; width: 100%; height: 100%; transition: transform 0.6s ease; }
.notice-slider .slide { flex: 0 0 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; }
.notice-slider .img-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.notice-slider .text-slide { padding: 20px; background: var(--wx-surface); color: var(--wx-text); width: 100%; height: 100%; overflow-y: auto; }
.notice-slider .notice-content { max-width: 900px; width: 100%; line-height: 1.7; text-align: left; }
.notice-slider .notice-content h3 { color: var(--wx-accent); letter-spacing: 1px; }
.notice-slider .dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 6px; }
.notice-slider .dot, .notice-slider .dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); border: none; padding: 0; cursor: pointer; }
.notice-slider .dot.active, .notice-slider .dots button.active { background: var(--wx-accent); }

/* 輪播箭頭 */
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: rgba(0,0,0,0.5); color: #fff; border: none; font-size: 20px; cursor: pointer; z-index: 10; transition: background 0.3s; border-radius: 8px; }
.slider-arrow:hover { background: rgba(233,69,96,0.8); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* 頂部容器：logo + 選系列 + 佈告欄 */
.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  flex-wrap: wrap;
}
.top-right-image img { max-width: 110px; height: auto; border-radius: 10px; opacity: 0.9; }

.series-select-container { display: flex; align-items: center; gap: 12px; }
.series-select-container h1 { font-size: 1.3rem; font-weight: 800; color: #fff; margin: 0; white-space: nowrap; }
.series-select {
  padding: 11px 14px;
  font-size: 0.95rem;
  border: 1px solid var(--wx-border);
  border-radius: 10px;
  background: var(--wx-surface);
  color: var(--wx-text);
  flex: 1;
  max-width: 220px;
}
.series-select:focus { outline: none; border-color: var(--wx-accent); }
.series-select option { background: var(--wx-surface); }

/* 系列卡片網格（主視覺內容） */
.series-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 28px 20px 60px;
}
.series-card {
  background: var(--wx-surface);
  border: 1px solid var(--wx-border);
  border-radius: 14px;
  width: 300px;
  padding: 14px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.series-card:hover {
  transform: translateY(-6px);
  border-color: rgba(233, 69, 96, 0.5);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}
.series-card img { max-width: 100%; border-radius: 10px; display: block; }
.series-card h2 { font-size: 1.05rem; font-weight: 700; color: #f1f5f9; margin: 12px 0 4px; }

.logo-container { display: flex; align-items: center; gap: 10px; }
.server-name img { max-width: 150px; height: auto; }

@media (max-width: 768px) {
  body { font-size: 13px; }
  .notice-slider { height: 180px; }
  .top-slider .slide img, .notice-slider .slide, .notice-slider .img-slide img { height: 180px; }
  .notice-slider .text-slide { height: 180px; padding: 14px; font-size: 12px; }
  .notice-slider .dots { bottom: 8px; }
  .slider-arrow { width: 30px; height: 30px; font-size: 16px; }
  .slider-prev { left: 5px; }
  .slider-next { right: 5px; }
  .container { flex-direction: column; align-items: center; gap: 16px; padding: 16px 8px; }
  .series-select-container h1 { font-size: 1.1rem; }
  .series-container { gap: 10px; padding: 16px 8px 40px; }
  .series-card { width: calc(33% - 10px); max-width: 110px; padding: 6px; }
  .series-card h2 { font-size: 12px; margin: 8px 0 2px; }
}
