/* ===== 職業介紹頁（2026-10-11 新增）===== */

/* 職業互通導覽（5 職業切換 ✓） */
.class-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 2px;
}
.class-switch a {
  flex: 1 1 0;
  min-width: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 11px 10px 12px;
  border: 1px solid rgba(201, 168, 119, .3);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(26, 20, 18, .82), rgba(8, 6, 5, .92));
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.class-switch a span {
  font-size: 10.5px;
  letter-spacing: .16em;
  color: #8b8177;
}
.class-switch a b {
  font-size: 15px;
  font-weight: 600;
  color: #d9cfc4;
  letter-spacing: .06em;
}
.class-switch a:hover {
  border-color: rgba(212, 175, 55, .72);
  transform: translateY(-2px);
}
.class-switch a:hover b { color: #fff; }
.class-switch a.active {
  border-color: #d4af37;
  background: linear-gradient(180deg, rgba(58, 44, 26, .92), rgba(20, 14, 8, .96));
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .26) inset;
}
.class-switch a.active span { color: #d4af37; }
.class-switch a.active b { color: #ffd76a; }

.class-layout {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 14px;
}

/* 左側：職業大型展覽圖（黏性吸附、黃金比例） */
.class-portrait {
  position: sticky;
  top: 96px;
  border: 1px solid rgba(201, 168, 119, .38);
  border-radius: var(--radius, 6px);
  background: linear-gradient(180deg, rgba(26, 20, 18, .9), rgba(8, 6, 5, .96));
  box-shadow: var(--shadow-panel, 0 8px 28px rgba(0, 0, 0, .5));
  overflow: hidden;
  line-height: 0;
}
.class-portrait img {
  display: block;
  width: 100%;
  height: auto;
}
.class-portrait::after {
  /* 底部漸層，讓圖跟面板融合 */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(8, 6, 5, 0), rgba(8, 6, 5, .9));
  pointer-events: none;
}

/* 右側：技能說明 */
.class-skills {
  border: 1px solid var(--line, rgba(201, 168, 119, .22));
  border-radius: var(--radius, 6px);
  background: linear-gradient(180deg, rgba(26, 20, 18, .85), rgba(8, 6, 5, .95));
  box-shadow: var(--shadow-panel, 0 8px 28px rgba(0, 0, 0, .5));
  min-height: 320px;
}
.class-skills .panel-body { padding: 18px 20px 22px; }
.class-desc {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text, #d9cfc4);
}
.class-todo {
  margin: 0;
  font-size: 13.5px;
  color: var(--dim, #8b8177);
}

/* 技能分類標題 */
.skill-group {
  margin: 20px 0 10px;
  padding: 0 0 6px 11px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #d4af37;
  border-left: 3px solid rgba(212, 175, 55, .8);
  border-bottom: 1px solid rgba(201, 168, 119, .16);
}
.skill-group:first-of-type { margin-top: 6px; }

/* 技能清單（雙欄緊湊網格，單一技能全寬自動適配） */
.skill-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.skill-item:only-child {
  grid-column: 1 / -1;
}
@media (max-width: 700px) {
  .skill-list {
    grid-template-columns: 1fr;
  }
}
.skill-item {
  padding: 11px 14px 12px;
  border: 1px solid rgba(201, 168, 119, .2);
  border-left: 3px solid rgba(201, 168, 119, .55);
  border-radius: 4px;
  background: rgba(255, 255, 255, .022);
}
.skill-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffd76a;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.skill-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}
.skill-lines li {
  position: relative;
  padding: 2px 0 2px 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #cfc5ba;
}
.skill-lines li::before {
  content: "‧";
  position: absolute;
  left: 2px;
  color: #8b8177;
}

/* 法師負面魔法說明 */
.skill-note {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.skill-note li {
  position: relative;
  padding: 2px 0 2px 15px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #9fb8cf;
}
.skill-note li::before {
  content: "※";
  position: absolute;
  left: 0;
  color: #5a8bb0;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.skill-tags span {
  padding: 5px 11px 6px;
  font-size: 13px;
  color: #dcc9a8;
  border: 1px solid rgba(201, 168, 119, .34);
  border-radius: 3px;
  background: rgba(201, 168, 119, .07);
}

/* 平板 / 手機：改上下排列 */
@media (max-width: 860px) {
  .class-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .class-portrait { position: static; max-width: 520px; margin: 0 auto; }
  .class-skills { min-height: 0; }
  .class-skills .panel-body { padding: 14px 15px 18px; }
  .class-desc { font-size: 13.5px; }
}

/* ===== 金技介紹（未開放）===== */
.gold-skill { margin-top: 22px; }
.gold-skill .panel-head { display: flex; align-items: center; gap: 10px; }
.gs-soon {
  background: rgba(201, 168, 119, 0.15);
  border: 1px solid rgba(201, 168, 119, 0.4);
  color: #ffd479;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: .08em;
}
.gs-note {
  font-size: 13px;
  color: #9a8f80;
  margin: 0 0 16px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid rgba(201, 168, 119, 0.4);
  border-radius: 2px;
}

/* 金技殿堂級卡片排版 */
.cp-gold-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
@media (max-width: 700px) {
  .cp-gold-grid { grid-template-columns: 1fr; }
}

.cp-gold-grid-4col {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1200px) {
  .cp-gold-grid-4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cp-gold-grid-4col { grid-template-columns: 1fr; }
}

.gi-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(201, 168, 119, 0.15);
}
.gi-tab-btn {
  padding: 6px 14px;
  border-radius: 3px;
  border: 1px solid rgba(201, 168, 119, 0.25);
  background: rgba(26, 20, 18, 0.7);
  color: #a89f91;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.gi-tab-btn:hover {
  color: #ffd479;
  border-color: rgba(201, 168, 119, 0.5);
}
.gi-tab-btn.active {
  color: #1a1204;
  background: linear-gradient(180deg, #ffd479, #c9a877);
  border-color: #ffd479;
  box-shadow: 0 0 10px rgba(201, 168, 119, 0.3);
}


.cp-gold-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(34, 26, 20, 0.95), rgba(16, 12, 10, 0.98));
  border: 1px solid rgba(201, 168, 119, 0.25);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  transition: all 0.24s ease;
  overflow: hidden;
}
.cp-gold-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd479, transparent);
  opacity: 0.6;
}
.cp-gold-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 212, 121, 0.65);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7), 0 0 18px rgba(201, 168, 119, 0.18);
}
.cp-gold-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 168, 119, 0.18);
}
.cp-gold-name {
  font-size: 17px;
  font-weight: 900;
  color: #ffd479;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cp-gold-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(201, 168, 119, 0.14);
  border: 1px solid rgba(201, 168, 119, 0.35);
  color: #ffd479;
}
.cp-gold-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.cp-gold-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(201, 168, 119, 0.2);
  color: #dcd2c4;
}
.cp-gold-effect {
  font-size: 13px;
  color: #b5a999;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.gs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gs-table th, .gs-table td { border: 1px solid rgba(201,168,119,.22); padding: 10px 12px;
  text-align: left; vertical-align: top; }
.gs-table th { background: #241c18; color: #d4af37; font-weight: 600; white-space: nowrap; }
.gs-table td { color: #cfc3b1; line-height: 1.7; }
.gs-name { color: #ffe9b0; font-weight: 600; white-space: nowrap; width: 150px; }
.gs-tag { display: inline-block; margin-left: 7px; font-size: 11px; font-weight: 400;
  color: #ffb9ad; background: rgba(224,90,74,.14); border: 1px solid rgba(224,90,74,.4);
  border-radius: 3px; padding: 0 6px; vertical-align: 1px; }
.gs-dur, .gs-cd { white-space: nowrap; width: 74px; color: #e6dccd; }
@media (max-width: 700px) {
  .gs-table { font-size: 13px; }
  .gs-table th, .gs-table td { padding: 8px 9px; }
  .gs-name { white-space: normal; width: auto; }
}

/* ===== 金技跳轉按鈕（顯眼版 ✓）===== */
.panel-head.has-jump { display: flex; align-items: center; gap: 12px; }
.gs-jump { margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #f0d264 0%, #d4af37 45%, #a8801d 100%);
  border: 1px solid #ffe9a8; color: #2a1e0c; font-weight: 700;
  font-size: 14px; padding: 8px 20px; border-radius: 999px;
  text-decoration: none; letter-spacing: .08em; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
  animation: gsPulse 2.2s ease-in-out infinite;
  transition: transform .18s, filter .18s; }
.gs-jump:hover { transform: translateY(-1px); filter: brightness(1.12); color: #1a1206; }
.gs-jump-ar { font-size: 12px; line-height: 1; font-weight: 700; }
@keyframes gsPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,.60), 0 3px 12px rgba(0,0,0,.40); }
  50%      { box-shadow: 0 0 16px 3px rgba(255,215,106,.55), 0 3px 12px rgba(0,0,0,.40); }
}
#goldskill { scroll-margin-top: 96px; }
#goldskill:target { animation: gsFlash 1.4s ease-out; }
@keyframes gsFlash {
  0%   { box-shadow: 0 0 0 0 rgba(212,175,55,.55); }
  100% { box-shadow: 0 0 0 16px rgba(212,175,55,0); }
}
@media (max-width: 700px) {
  .panel-head.has-jump { flex-wrap: wrap; }
  .gs-jump { margin-left: 0; font-size: 13px; padding: 7px 16px; }
}
