@charset "utf-8";
/* ==========================================================================
   原點天堂 官方網站 - 主樣式表
   風格：暖褐炭底 + 金屬砂金 + 赤紅點綴（天堂系 MMO 官網語彙）
   ========================================================================== */

/* ---------- 1. 設計變數（改這裡就能換全站配色） ----------
   色票取自主視覺大圖（tools\palette.py 抽出）：
     暖黑 #100909 / 褐炭 #2b211e / 暖灰 #4b3e39 / 砂棕 #705e55
     金屬砂 #9a8475 / 淡砂 #ccaf93 / 奶金 #f3e1c5 / 赤紅 #6d1716
   全站以「暖褐炭底 + 金屬砂金 + 赤紅點綴」組成，與 LOGO 同一調性。
------------------------------------------------------------ */
:root {
  /* 底色：暖調近黑 */
  --bg-0: #070505;
  --bg-1: #1b1411;
  --bg-2: #2b211e;

  /* 面板：暖褐炭灰 */
  --panel: rgba(26, 20, 18, .86);
  --panel-solid: #16110f;
  --panel-hi: rgba(43, 33, 30, .92);

  /* 框線：暖砂 */
  --line: rgba(204, 175, 147, .22);
  --line-soft: rgba(204, 175, 147, .13);
  --line-strong: rgba(243, 225, 197, .5);

  /* 文字：暖白 */
  --text: #f2ebe0;
  --muted: #b3a494;
  --dim: #7d7065;

  /* 主色：金屬砂金（取自字面反光） */
  --gold: #c9a877;
  --gold-lt: #f3e1c5;
  --gold-md: #dcc199;
  --gold-dk: #7a5a34;

  /* 副色：赤紅（取自紅旗） */
  --ember: #a3231c;
  --ember-lt: #cf5140;

  /* 點綴：暖銅 */
  --arcane: #d9a05b;

  /* 尺寸 */
  --shell: 1700px;
  --radius: 4px;

  --shadow-panel: 0 0 34px rgba(0, 0, 0, .6);
  --shadow-gold: 0 0 18px rgba(201, 168, 119, .35);
}

/* ---------- 2. 基礎 ---------- */
* { box-sizing: border-box; }

html { background: var(--bg-0); scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 130% 62% at 50% -12%, rgba(201, 168, 119, .14), transparent 62%),
    radial-gradient(ellipse 90% 55% at 84% 6%, rgba(163, 35, 28, .11), transparent 58%),
    radial-gradient(ellipse 80% 45% at 50% 102%, rgba(122, 90, 52, .08), transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 52%, #040202 100%);
  background-attachment: fixed;
}

/* 細微顆粒質感，避免大片死黑 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 3px 3px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(201, 168, 119, .35); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0d0908; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-dk), #453320);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--gold), var(--gold-dk)); }

/* ---------- 3. 共用工具 ---------- */
.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sec-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--gold-lt);
  text-shadow: 0 0 14px rgba(201, 168, 119, .45);
}

.sec-title::before {
  content: "";
  width: 4px; height: 16px;
  background: linear-gradient(180deg, var(--gold-lt), var(--gold-dk));
  box-shadow: 0 0 10px rgba(201, 168, 119, .7);
}

.sec-title .en {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--dim);
  text-shadow: none;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(58, 44, 37, .78), rgba(20, 15, 13, .93));
  box-shadow: var(--shadow-panel), inset 0 1px 0 rgba(243, 225, 197, .07);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--line-strong);
  opacity: .8;
  pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(201, 168, 119, .14), rgba(201, 168, 119, .02));
}

.panel-body { padding: 14px 16px; }

.more-link {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .05em;
  transition: color .2s;
}
.more-link:hover { color: var(--gold-lt); }

/* 按鈕 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--gold-lt);
  background: linear-gradient(180deg, rgba(30, 24, 10, .9), rgba(12, 10, 4, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: .22s;
}

.btn:hover {
  color: #fff;
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(78, 58, 16, .95), rgba(30, 22, 6, .95));
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, .14);
  transform: translateY(-1px);
}

.btn-primary {
  color: #1a1204;
  border-color: var(--gold-lt);
  background: linear-gradient(180deg, var(--gold-lt), var(--gold) 45%, var(--gold-dk));
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

.btn-primary:hover {
  color: #120c02;
  background: linear-gradient(180deg, #fff4cf, var(--gold-md) 45%, var(--gold));
  box-shadow: 0 0 26px rgba(201, 168, 119, .6);
}

.btn-ember {
  color: #fff;
  border-color: rgba(207, 81, 64, .6);
  background: linear-gradient(180deg, var(--ember), #6d1714);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.btn-ember:hover {
  border-color: var(--ember-lt);
  background: linear-gradient(180deg, var(--ember-lt), var(--ember));
  box-shadow: 0 0 24px rgba(163, 35, 28, .6);
}

.btn-sm { height: 34px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- 4. 頂部導覽 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(20, 15, 13, .97), rgba(10, 7, 6, .92));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 26px rgba(0, 0, 0, .7);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--gold-lt) 50%, var(--line-strong) 80%, transparent);
  opacity: .65;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, .55));
  transition: filter .25s;
}

.brand:hover .brand-logo { filter: drop-shadow(0 0 22px rgba(201, 168, 119, .75)); }

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 66px;
  padding: 0 17px;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: .04em;
  color: #d8cbbb;
  transition: color .2s;
}

.main-nav a:hover { color: var(--gold-lt); }
.main-nav a.active { color: #fff; }

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 70%; height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold-lt), transparent);
  box-shadow: 0 0 14px var(--gold);
}

.topbar-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.nav-toggle {
  display: none;
  width: 42px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 18px;
  color: var(--gold-lt);
}

/* ---------- 5. 主視覺 ---------- */
.hero {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, .7);
  isolation: isolate;
}

.hero-keyvisual { position: relative; background: #0a0707; }

/* 填滿整個框，且完整不裁切：以欄寬等比展開（高度 = 寬度 / 2） */
.hero-keyvisual img { display: block; width: 100%; height: auto; }

.hero-keyvisual::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 24%;
  background: linear-gradient(180deg, transparent, rgba(8, 6, 5, .95));
  pointer-events: none;
}

.hero-bar {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 14px;
  padding: 13px 16px 14px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 16, 14, .96), rgba(8, 6, 5, .99));
}

/* 漂浮火星粒子 */
.embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }

.embers i {
  position: absolute;
  bottom: -12px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold-lt);
  box-shadow: 0 0 8px 2px rgba(201, 168, 119, .75);
  animation: ember-rise linear infinite;
  opacity: 0;
}

@keyframes ember-rise {
  0%   { transform: translateY(0) translateX(0) scale(.7); opacity: 0; }
  12%  { opacity: .95; }
  70%  { opacity: .7; }
  100% { transform: translateY(-460px) translateX(var(--dx, 18px)) scale(1.15); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .embers { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 6. 快速入口 ---------- */
.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.entry-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(38, 29, 25, .85), rgba(10, 7, 6, .92));
  box-shadow: var(--shadow-panel), inset 0 1px 0 rgba(243, 225, 197, .06);
  overflow: hidden;
  transition: .25s;
}

.entry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(201, 168, 119, .16) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .6s;
}

.entry-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6), var(--shadow-gold);
}

.entry-card:hover::after { transform: translateX(120%); }

.entry-icon {
  width: 46px; height: 46px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(201, 168, 119, .5));
}

.entry-copy { display: flex; flex-direction: column; min-width: 0; }
.entry-copy b { font-size: 16px; font-weight: 900; letter-spacing: .04em; color: #f5eee3; }
.entry-copy small { font-size: 10px; letter-spacing: .2em; color: var(--dim); }
.entry-card:hover .entry-copy b { color: var(--gold-lt); }

/* ---------- 7. 主內容格線 ---------- */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 16px;
  align-items: start;
  margin-top: 22px;
}

.col-main,
.col-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* ---------- 8. 公告 ---------- */
.news-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px 0;
  flex-wrap: wrap;
}

.news-tabs button {
  padding: 6px 14px;
  border: 1px solid var(--line-soft);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  font-size: 12.5px;
  font-weight: 900;
  color: var(--muted);
  background: rgba(26, 20, 18, .6);
  transition: .2s;
}

.news-tabs button:hover { color: var(--gold-lt); }

.news-tabs button.active {
  color: #1a1204;
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--gold-lt), var(--gold) 60%, var(--gold-dk));
}

.news-list { list-style: none; margin: 0; padding: 6px 0; }
.news-list li { border-bottom: 1px dashed rgba(204, 175, 147, .12); }
.news-list li:last-child { border-bottom: 0; }

.news-item {
  display: grid;
  grid-template-columns: 96px 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  transition: background .2s;
}

.news-item:hover { background: linear-gradient(90deg, rgba(201, 168, 119, .09), transparent 70%); }

.news-date { font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }

.news-tag {
  justify-self: start;
  padding: 2px 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  opacity: .95;
}

.news-tag[data-tag="活動"] { color: #e5a94e; }
.news-tag[data-tag="系統"] { color: #a8bcd0; }
.news-tag[data-tag="更新"] { color: #9ed08a; }
.news-tag[data-tag="重要"] { color: #e0554a; }
.news-tag[data-tag="商城"] { color: #c9a0d8; }

.news-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e6dccd;
  font-size: 14.5px;
}
.news-item:hover .news-title { color: var(--gold-lt); }

.news-arrow { color: var(--dim); font-size: 12px; }
.news-item:hover .news-arrow { color: var(--gold-lt); }

/* ---------- 9. 職業 ---------- */
.class-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

/* ★ 大圖卡片（2026-10-11 改版 ✓） */
.class-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(43, 33, 30, .75), rgba(14, 11, 10, .85));
  box-shadow: inset 0 1px 0 rgba(243, 225, 197, .05);
  text-align: center;
  text-decoration: none;
  transition: border-color .22s, background .22s, transform .22s, box-shadow .22s;
}

.class-thumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.02;
  overflow: hidden;
  background: #0a0807;
}
.class-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s ease, filter .35s ease;
}
.class-thumb::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 58%;
  background: linear-gradient(180deg, rgba(8, 6, 5, 0), rgba(8, 6, 5, .92));
  pointer-events: none;
}
.class-meta {
  display: block;
  padding: 10px 11px 13px;
  margin-top: -26px;
  position: relative;
  z-index: 1;
}
.class-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .58), 0 0 24px rgba(212, 175, 55, .14);
}
.class-card:hover .class-thumb img { transform: scale(1.06); filter: brightness(1.12); }
.class-card b { display: block; margin: 2px 0 5px; font-size: 16px; color: #f0e4d0; letter-spacing: .06em; }
.class-card p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.55; }

/* 卡片頂部金線：平時淡、hover 亮 */
.class-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 22%, var(--gold-lt) 50%, var(--line-strong) 78%, transparent);
  opacity: .3;
  transition: opacity .22s;
}

.class-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(62, 47, 26, .8), rgba(16, 12, 10, .9));
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5), 0 0 22px rgba(212, 175, 55, .1);
}

.class-card:hover::before { opacity: 1; }

/* 職業圖騰 */
.class-card .mark {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 7px;
  transition: filter .22s, transform .22s;
}

.class-card:hover .mark {
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, .5));
  transform: scale(1.06);
}

.class-card .role { font-size: 10px; letter-spacing: .2em; color: var(--dim); }

.class-card b {
  display: block;
  margin: 4px 0 6px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--gold-lt);
}

.class-card p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------- 10. 特色 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.feature-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: linear-gradient(120deg, rgba(48, 37, 32, .7), rgba(16, 12, 10, .8));
  box-shadow: inset 0 1px 0 rgba(243, 225, 197, .05);
}

.feature-item .mark {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--gold-lt);
  background: rgba(201, 168, 119, .12);
}

.feature-item b { display: block; font-size: 14px; color: #f2ebe0; }
.feature-item p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- 11. 右側欄 ---------- */
.stat-table { display: flex; flex-direction: column; gap: 0; }

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px dashed rgba(204, 175, 147, .14);
  font-size: 13.5px;
}
.stat-row:last-child { border-bottom: 0; }
.stat-row dt { color: var(--muted); }
.stat-row dd { margin: 0; font-weight: 900; color: var(--gold-lt); font-variant-numeric: tabular-nums; }
.stat-row dd.open { color: #9ed08a; }
.stat-row dd.building { color: #e8c46a; }   /* 內容建構中（金色 2026-10-15） */
.stat-row dd.closed { color: #e0554a; }

.side-links { display: flex; flex-direction: column; gap: 9px; }

.side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 900;
  color: var(--gold-lt);
  background: linear-gradient(180deg, rgba(30, 24, 10, .8), rgba(10, 9, 5, .9));
  transition: .22s;
}

.side-links a::after { content: "›"; color: var(--gold-dk); font-size: 18px; }

.side-links a:hover {
  color: #fff;
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(72, 54, 16, .9), rgba(26, 19, 6, .95));
  box-shadow: var(--shadow-gold);
  padding-left: 20px;
}

.download-card { text-align: center; }

.download-card .dl-meta {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 10px 0 14px;
  font-size: 12px;
  color: var(--dim);
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(204, 175, 147, .14);
}
.contact-row:last-child { border-bottom: 0; }

.contact-row .name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  color: #f2ebe0;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--arcane);
  box-shadow: 0 0 10px var(--arcane);
}
.dot.gold { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.dot.ember { background: var(--ember-lt); box-shadow: 0 0 10px var(--ember); }

.contact-row p { margin: 2px 0 0; font-size: 12px; color: var(--dim); }

/* ---------- 12. 頁尾 ---------- */
.site-footer {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 20, 18, .85), rgba(8, 6, 5, .95));
  box-shadow: var(--shadow-panel);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
  padding: 26px 24px;
}

.footer-main h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .16em; color: var(--gold-lt); }
.footer-main p, .footer-main li { font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main ul a:hover { color: var(--gold-lt); }

.footer-bottom {
  padding: 14px 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--dim);
  text-align: center;
  line-height: 1.9;
}

.footer-bottom .disclaimer { color: #6f6255; font-size: 11.5px; }

.friend-links {
  padding: 18px 24px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.friend-links h3 { margin: 0 0 12px; font-size: 12px; letter-spacing: .24em; color: var(--dim); }

.friend-links .slot {
  display: inline-grid;
  place-items: center;
  gap: 6px;
  width: 468px;
  max-width: 100%;
  height: 60px;
  border: 1px dashed var(--line);
  border-radius: 3px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--dim);
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(212, 175, 55, .07), transparent 70%),
    rgba(20, 15, 13, .6);
}

.friend-links .slot::before {
  content: "◇";
  font-size: 13px;
  color: var(--gold-dk);
  letter-spacing: 0;
}

.float-service {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-service a {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  line-height: 1.15;
  color: var(--gold-lt);
  background: radial-gradient(circle at 50% 30%, rgba(60, 46, 14, .95), rgba(8, 8, 6, .95));
  box-shadow: 0 6px 20px rgba(0, 0, 0, .6), var(--shadow-gold);
  transition: .22s;
}

.float-service a:hover { color: #fff; transform: scale(1.08); }

/* ---------- 13. 內頁共用 ---------- */
.page-hero {
  margin-top: 22px;
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 100% at 50% 0, rgba(201, 168, 119, .12), transparent 70%),
    linear-gradient(180deg, rgba(38, 29, 25, .88), rgba(10, 7, 6, .94));
  box-shadow: var(--shadow-panel);
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 900;
  letter-spacing: .1em;
  background: linear-gradient(180deg, #fffdf4 6%, var(--gold-lt) 45%, var(--gold) 72%, var(--gold-dk) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(201, 168, 119, .4));
}

.page-hero p { margin: 12px 0 0; color: var(--muted); font-size: 14px; letter-spacing: .04em; }

.crumb { margin: 14px 0 0; font-size: 12px; color: var(--dim); }
.crumb a:hover { color: var(--gold-lt); }

.stack { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }

.placeholder-note {
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 3px;
  background: rgba(201, 168, 119, .05);
  font-size: 13px;
  color: var(--muted);
}
.placeholder-note b { color: var(--gold-lt); }

.prose { padding: 16px 18px; font-size: 14px; color: #ddd2c2; line-height: 1.95; }
.prose h3 { margin: 18px 0 8px; font-size: 15.5px; color: var(--gold-lt); }
.prose h3:first-child { margin-top: 0; }
.prose ul { margin: 8px 0; padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose b { color: var(--gold-lt); }

/* ---------- 14. 內頁元件 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.card {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(43, 33, 30, .68), rgba(12, 9, 8, .8));
}

.card > b {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--gold-lt);
}

.card .btn { margin-top: 12px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(204, 175, 147, .14);
}
.steps li:last-child { border-bottom: 0; }

.steps li::before {
  counter-increment: step;
  content: counter(step);
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  color: var(--gold-lt);
  background: rgba(201, 168, 119, .12);
  box-shadow: 0 0 12px rgba(201, 168, 119, .25);
}

.steps li b { grid-column: 2; grid-row: 1; font-size: 14.5px; color: #f2ebe0; }
.steps li span { grid-column: 2; grid-row: 2; margin-top: 2px; font-size: 13px; color: var(--muted); }

code {
  padding: 1px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: rgba(217, 160, 91, .10);
  color: var(--arcane);
  font-family: Consolas, "Courier New", monospace;
  font-size: .92em;
  word-break: break-all;
}

/* ---------- 15. 響應式 ---------- */
@media (max-width: 1400px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 1180px) {
  .shell { width: calc(100% - 28px); }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .quick-entry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-logo { height: 46px; }
  .main-nav a { padding: 0 10px; font-size: 13.5px; white-space: nowrap; }
}

@media (max-width: 1020px) {
  .main-nav a { padding: 0 7px; font-size: 13px; letter-spacing: 0; }
  .topbar-actions .btn { height: 32px; padding: 0 12px; font-size: 12.5px; }
}

@media (max-width: 620px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  body { font-size: 14.5px; }

  .topbar-inner { height: 58px; }
  .brand-logo { height: 42px; }

  .nav-toggle { display: grid; place-items: center; }

  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
    background: rgba(18, 13, 11, .98);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { height: 46px; justify-content: center; }
  .main-nav a.active::after,
  .main-nav a:hover::after { display: none; }

  .topbar-actions .btn { display: none; }

  .quick-entry { grid-template-columns: minmax(0, 1fr); }

  .hero-bar { padding: 12px 12px 13px; gap: 10px; }
  .hero-bar .btn { flex: 1 1 100%; }

  /* 手機版同樣填滿且不裁切 */
  .hero-keyvisual img { width: 100%; height: auto; }

  .news-item { grid-template-columns: 82px 70px minmax(0, 1fr); }
  .news-arrow { display: none; }
  .news-title { white-space: normal; }

  .footer-main { grid-template-columns: 1fr; gap: 18px; }

  .float-service { right: 12px; bottom: 14px; }
  .float-service a { width: 48px; height: 48px; font-size: 10px; }

  .card-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 16. 無障礙與微互動 ---------- */
/* 只有鍵盤操作時才顯示外框（滑鼠點擊不出現框，維持乾淨） */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-lt);
  outline-offset: 2px;
  border-radius: 3px;
}

/* 選取文字用金色，維持整體調性 */
::selection { background: rgba(212, 175, 55, .28); color: #fff; }

/* 圖片不要被拖曳出瀏覽器預設的 Ghost 框 */
img { -webkit-user-drag: none; }

/* 尊重系統「減少動態」偏好：關掉卡片位移與縮放 */
@media (prefers-reduced-motion: reduce) {
  .class-card,
  .class-card .mark,
  .entry-card,
  .btn { transition: none; }
  .class-card:hover { transform: none; }
  .class-card:hover .mark { transform: none; }
}

/* ===== 贊助累儲徽章（2026-10-09）===== */
.vip-table td.vip-icon { width: 52px; text-align: center; padding: 4px 6px; }
.vip-table td.vip-icon img { width: 40px; height: 40px; image-rendering: pixelated; display: block; margin: 0 auto; }
.vip-table tr.vip-top td { background: rgba(255, 208, 64, .09); }
.vip-table tr.vip-top td.sig-lv { color: #ffe27a; font-weight: 700; }
.vip-table td.vip-use { color: #cfc4ab; font-size: 13px; }

/* ===== 友情連結（照零界天堂方式 ✓ 2026-10-09）===== */
/* 頁尾：長方形大 LOGO */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.friend-links h3 { margin: 0; flex: 0 0 auto; }
.friend-links .partner-main-link {
  display: block;
  width: 468px;
  max-width: 100%;
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 3px;
  background: #f1f1ef;
  box-shadow: 0 0 16px rgba(0, 0, 0, .5);
  overflow: hidden;
  line-height: 0;
  transition: border-color .18s ease, filter .18s ease, transform .18s ease;
}
.friend-links .partner-main-link:hover {
  border-color: rgba(255, 227, 148, .9);
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.friend-links .partner-main-link img { display: block; width: 100%; height: auto; }

/* 側邊：小 LOGO 跟著網頁滑動（position: fixed ✓）*/
.partner-corner-link {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: 118px;
  z-index: 80;
  display: block;
  width: 88px;
  height: 31px;
  border: 1px solid rgba(212, 175, 55, .58);
  border-radius: 3px;
  background: #080d10;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .68);
  line-height: 0;
  overflow: hidden;
  transition: filter .18s ease, transform .18s ease;
}
.partner-corner-link:hover { filter: brightness(1.12); transform: translateY(-2px); }
.partner-corner-link img { display: block; width: 88px; height: 31px; }

@media (max-width: 700px) {
  .friend-links { flex-direction: column; gap: 12px; }
  .partner-corner-link { width: 78px; height: 28px; bottom: 104px; }
  .partner-corner-link img { width: 78px; height: 28px; }
}

/* ===== 友情連結小 LOGO：移到左下角，避開右側客服（2026-10-09）===== */
.partner-corner-link {
  right: auto;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
}
@media (max-width: 700px) {
  .partner-corner-link {
    left: max(10px, env(safe-area-inset-left));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: 78px;
    height: 28px;
  }
  .partner-corner-link img { width: 78px; height: 28px; }
}

/* ===== 友情連結大 LOGO：PC 版被 flex 壓成 0 的修正（2026-10-09）===== */
.friend-links .partner-main-link {
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: 468px;
  width: 468px;
}
@media (max-width: 700px) {
  .friend-links .partner-main-link {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    max-width: 468px;
  }
}

/* ===== 手機版隱藏浮動小 LOGO（頁尾已有大 LOGO ✓ 畫面小不佔位 ✓ 2026-10-09）===== */
@media (max-width: 860px) {
  .partner-corner-link { display: none; }
}

/* ===== 職業大圖卡片：響應式（2026-10-11）===== */
@media (max-width: 1180px) {
  .class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .class-card b { font-size: 14.5px; }
  .class-card p { font-size: 11px; }
  .class-meta { padding: 8px 8px 10px; margin-top: -20px; }
}
