/* 清明上河豚 Blox Fruits 攻略頁共用樣式
   將原本分散在各 guide_* 頁面的內嵌 <style> 抽出整合於此。
   結構請盡量共用，個別頁只在自己的 <style> 中做少量覆蓋即可。 */

/* === 頁面專屬樣式 (局部隔離) === */
    /* 所有樣式皆限制在 .site-main 內部 */

    .site-main {
      --primary-color: #2c3e50; /* 暗夜黑藍 */
      --accent-color: #f1c40f;  /* 踢擊金 */
      --text-dark: #2d3436;
      --bg-card: #ffffff;
    }

    /* 上方快速導覽列 */
    .site-main .guide-subnav {
      display: flex;
      overflow-x: auto;
      white-space: nowrap;
      padding: 15px 10px;
      background: #fff;
      border-bottom: 1px solid #eee;
      margin-bottom: 20px;
      align-items: center;
      gap: 10px;
    }
    .site-main .guide-subnav-label {
      font-weight: bold;
      color: #555;
    }
    .site-main .guide-subnav a {
      display: inline-block;
      padding: 6px 14px;
      background: #f1f3f5;
      color: #333;
      border-radius: 20px;
      text-decoration: none;
      font-size: 0.9rem;
      transition: all 0.2s ease;
    }
    .site-main .guide-subnav a:hover,
    .site-main .guide-subnav a.active {
      background: var(--primary-color);
      color: #fff;
      box-shadow: 0 2px 4px rgba(44, 62, 80, 0.4);
    }

    /* 內容卡片樣式 */
    .site-main .guide-detail-card {
      background: var(--bg-card);
      border-radius: 12px;
      padding: 30px 25px;
      margin-bottom: 25px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      border: 1px solid #e9ecef;
    }

    /* 標題帶有 Emoji */
    .site-main .guide-detail-card h2 {
      display: flex;
      align-items: center;
      margin-top: 0;
      color: var(--text-dark);
      border-bottom: 3px solid #f0f0f0;
      padding-bottom: 15px;
      margin-bottom: 20px;
      font-size: 1.5rem;
    }
    .site-main .h2-emoji {
      margin-right: 12px;
      font-size: 1.8rem;
    }

    /* 列表優化 */
    .site-main ul, .site-main ol {
      padding-left: 20px;
      line-height: 1.8;
      color: #444;
    }
    .site-main ul li, .site-main ol li {
      margin-bottom: 8px;
    }

    /* 強調文字框 */
    .site-main .highlight-box {
      background: #fdfcf5; /* 淺金背景 */
      border-left: 4px solid var(--accent-color);
      padding: 15px;
      border-radius: 6px;
      margin: 15px 0;
      color: #333;
      font-weight: 500;
      line-height: 1.6;
    }
    .site-main .highlight-warning {
      background: #fff3cd;
      border-left: 4px solid #ffc107;
      color: #856404;
      font-weight: bold;
    }

    /* 拳法 Hero 區塊 (圖+文) */
    .site-main .fs-hero {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-bottom: 20px;
    }
    .site-main .fs-hero-icon {
      width: 80px;
      height: 80px;
      border-radius: 15px;
      object-fit: cover;
      border: 2px solid #eee;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      background: #fdfdfd;
    }
    .site-main .fs-hero-text h1 {
      margin: 0 0 5px 0;
      font-size: 1.8rem;
      color: var(--text-dark);
    }
    .site-main .fs-hero-sub {
      color: #666;
      font-size: 0.95rem;
    }
    .site-main .tag {
      display: inline-block;
      padding: 3px 8px;
      border-radius: 4px;
      font-size: 0.8rem;
      margin-right: 5px;
      font-weight: normal;
    }
    .site-main .tag-v1 { background: #e3f2fd; color: #2c3e50; border: 1px solid #b0bec5; }

    /* 表格樣式優化 */
    .site-main .table-responsive {
      overflow-x: auto;
      border-radius: 8px;
    }
    .site-main .skill-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 10px;
      font-size: 0.95rem;
      min-width: 500px;
    }
    .site-main .skill-table th {
      background: #f4f6f7;
      color: #2c3e50;
      padding: 12px;
      text-align: left;
      font-weight: bold;
      border: 1px solid #dcdde1;
    }
    .site-main .skill-table td {
      border: 1px solid #eee;
      padding: 12px;
      vertical-align: middle;
      color: #444;
    }
    .site-main .skill-key {
      display: inline-block;
      width: 28px;
      height: 28px;
      line-height: 28px;
      text-align: center;
      border-radius: 4px;
      background: var(--primary-color);
      color: #fff;
      font-weight: bold;
      font-size: 0.9rem;
    }

    /* 底部推薦按鈕網格 */
    .site-main .guide-buttons-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 15px;
      margin-top: 15px;
    }
    .site-main .guide-button {
      display: flex;
      flex-direction: column;
      text-align: left;
      padding: 15px;
      border-radius: 12px;
      border: 1px solid #ccc;
      text-decoration: none;
      color: #333;
      transition: transform 0.2s, box-shadow 0.2s;
      background: #fff;
    }
    .site-main .guide-button:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
      border-color: var(--primary-color);
    }
    .site-main .button-emoji { font-size: 1.6rem; margin-bottom: 5px; }
    .site-main .button-title { font-weight: bold; font-size: 1.1rem; margin-bottom: 4px; color: #2c3e50; }
    .site-main .button-desc { font-size: 0.85rem; color: #6c757d; line-height: 1.4; }

    /* 手機版適配 */
    @media (max-width: 600px) {
      .site-main .fs-hero {
        flex-direction: column;
        text-align: center;
      }
    }

    .site-main .highlight-blue {
      background: #e3f2fd;
      border-left: 4px solid #2196f3;
      color: #0d47a1;
    }
    /* 果實 Hero 區塊 (圖+文) */
    .site-main .tag-natural { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
    .site-main .tag-mythical { background: #f3e5f5; color: #7b1fa2; border: 1px solid #ce93d8; }
    .site-main .tag-premium { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
    /* 強調文字 */
    .site-main .text-red { color: #d63031; font-weight: bold; }
    .site-main .text-blue { color: #0984e3; font-weight: bold; }
    .site-main .text-orange { color: #e67e22; font-weight: bold; }
      background: #fff5eb; /* 淺橘背景 */
    /* Hero 區塊 (圖+文) */
      width: 90px;
      height: 90px;
      object-fit: contain;
      background: #2d3436; /* 深色背景襯托武器 */
    .site-main .tag-uncommon { background: #e8f5e9; color: #27ae60; border: 1px solid #a5d6a7; }
    .site-main .tag-sea1 { background: #81ecec; color: #00cec9; border: 1px solid #00cec9; }
      width: 36px;
      background: var(--accent-color);
      border-color: var(--accent-color);

/* === 攻略頁共用資訊條＋延伸閱讀區塊 === */
.site-main .guide-meta-block {
  margin: 8px 10px 20px;
  padding: 12px 14px 10px;
  background: #f9fafb;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.site-main .guide-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 6px;
}

.site-main .guide-meta-main {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-main .guide-meta-line {
  font-size: 0.9rem;
  color: #0f172a;
}

.site-main .guide-meta-label {
  font-size: 0.8rem;
  color: #64748b;
  margin-right: 4px;
}

.site-main .guide-meta-value {
  font-weight: 600;
  color: #0f172a;
}

.site-main .guide-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-main .guide-meta-tag {
  font-size: 0.8rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  white-space: nowrap;
}

.site-main .guide-meta-updated {
  width: 100%;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: right;
  margin-top: 2px;
}

.site-main .guide-related {
  margin-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.7);
  padding-top: 6px;
}

.site-main .guide-related-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.site-main .guide-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-main .guide-related-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease;
}

.site-main .guide-related-link:hover {
  background: #e0e7ff;
  box-shadow: 0 4px 10px rgba(129, 140, 248, 0.4);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .site-main .guide-meta-block {
    margin: 6px 6px 16px;
    padding: 10px 10px 8px;
  }
  .site-main .guide-meta-updated {
    text-align: left;
    margin-top: 4px;
  }
}


/* === 攻略快速整理模組（掉落來源 / 建議搭配 / 適合誰 / 常見問答） === */
.site-main .guide-blocks {
  margin: 14px 0 22px;
}
.site-main .guide-blocks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 820px) {
  .site-main .guide-blocks-grid { grid-template-columns: 1fr; }
}

.site-main .guide-block {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.site-main .guide-block-title {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 8px;
  color: #2d3436;
}
.site-main .guide-block-list {
  margin: 0;
  padding-left: 18px;
}
.site-main .guide-block-list li { margin: 6px 0; line-height: 1.55; }
.site-main .guide-block-list .lbl { font-weight: 700; }
.site-main .guide-block-list .desc { display: block; color: #555; font-size: 13px; margin-top: 2px; }

.site-main .guide-faq .guide-faq-item {
  border-top: 1px dashed #eee;
  padding-top: 8px;
  margin-top: 8px;
}
.site-main .guide-faq .guide-faq-item:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.site-main .guide-faq .q { font-weight: 800; margin-bottom: 4px; }
.site-main .guide-faq .a { color: #555; line-height: 1.55; }


/* FAQ（<details> 版本） */
.site-main .guide-faq .guide-faq-item summary{
  cursor: pointer;
  font-weight: 800;
  outline: none;
  list-style: none;
}
.site-main .guide-faq .guide-faq-item summary::-webkit-details-marker{
  display:none;
}
.site-main .guide-faq .guide-faq-item summary::before{
  content: "➤";
  display: inline-block;
  margin-right: 8px;
  transform: rotate(0deg);
  transition: transform .18s ease;
  opacity: .75;
}
.site-main .guide-faq .guide-faq-item[open] summary::before{
  transform: rotate(90deg);
}
.site-main .guide-faq .guide-faq-answer{
  margin-top: 6px;
  color: #555;
  line-height: 1.55;
  padding-left: 18px;
}


/* =========================================================
   Sidebar: 延伸閱讀 / 搭配工具（避免文字被擠成直立）
   - 側欄卡片若被壓太窄，中文會一字一行看起來像直立文字
   - 這裡強制水平排版 + 省空間的 ellipsis
   ========================================================= */
.guide-meta-block .guide-related-links{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.guide-meta-block .guide-related-link{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #fff;
  text-decoration: none;
  color: inherit;

  /* 關鍵：永遠用橫式排版，避免被誤套 vertical writing-mode */
  writing-mode: horizontal-tb;
  text-orientation: mixed;

  /* 關鍵：避免被擠到一字一行（看起來像直立） */
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* 若卡片內有獨立文字節點，也一起套用（避免 span/label 變形） */
.guide-meta-block .guide-related-link span,
.guide-meta-block .guide-related-link .label,
.guide-meta-block .guide-related-link .text{
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

@media (max-width: 520px){
  .guide-meta-block .guide-related-links{
    grid-template-columns: 1fr;
  }
  .guide-meta-block .guide-related-link{
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
}

