/* 清明上河豚 Blox Fruits 道具／材料攻略共用樣式（原本散落在多個 guide_item_*.php 中） */
/* === 樣式優化 (與其他攻略頁面統一) === */
    /* 詳細頁面放大 ICON（道具） */
    .guide-detail-card .item-icon {
      width: 80px;
      height: 80px;
    }


    .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;
    }
    .guide-subnav-label { font-weight: bold; color: #555; }
    .guide-subnav a {
      display: inline-block;
      padding: 6px 14px;
      background: #f1f3f5;
      color: #333;
      border-radius: 20px;
      text-decoration: none;
      font-size: 0.9rem;
      transition: 0.2s;
    }
    .guide-subnav a:hover, .guide-subnav a.active {
      background: #007bff;
      color: #fff;
    }

    .guide-detail-card {
      background: #fff;
      border-radius: 12px;
      padding: 25px;
      margin-bottom: 25px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
      border: 1px solid #eee;
    }
    .guide-detail-card h2 {
      display: flex;
      align-items: center;
      color: #2c3e50;
      border-bottom: 2px solid #f0f0f0;
      padding-bottom: 10px;
      margin-bottom: 15px;
    }
    .h2-emoji { margin-right: 10px; font-size: 1.5rem; }

    /* === 道具列表表格 === */
    .item-table {
      width: 100%;
      border-collapse: collapse;
      margin: 15px 0;
      font-size: 0.9rem;
    }
    .item-table th, .item-table td {
      border: 1px solid #eee;
      padding: 10px;
      vertical-align: middle;
    }
    .item-table th {
      background: #f8f9fa;
      color: #333;
      font-weight: bold;
      text-align: left;
      white-space: nowrap;
    }
    
    /* 道具排版 */
    .item-row {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: bold;
      color: #2c3e50;
    }
    .item-icon {
      width: 40px;
      height: 40px;
      background: #f9f9f9; 
      border-radius: 6px;
      object-fit: cover;
      border: 1px solid #eee;
      flex-shrink: 0;
    }

    /* 標籤 */
    .tag {
      display: inline-block;
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 0.7rem;
      margin-top: 2px;
      font-weight: normal;
      line-height: 1.2;
    }
    .tag-common { background: #f8f9fa; color: #6c757d; border: 1px solid #dee2e6; } /* 普通 灰 */
    .tag-uncommon { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; } /* 不凡 綠 */
    .tag-rare { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; } /* 稀有 藍 */
    .tag-legendary { background: #f3e5f5; color: #7b1fa2; border: 1px solid #e1bee7; } /* 傳說 紫 */
    .tag-mythical { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; } /* 神話 紅 */
    .tag-event { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; } /* 活動 黃 */

    .highlight-box {
      background: #eef7ff;
      border-left: 4px solid #007bff;
      padding: 15px;
      border-radius: 4px;
      margin: 15px 0;
      color: #444;
    }
    
    /* 內文超連結樣式 */
    .guide-detail-card a, .highlight-box a, .section-desc a {
      color: #007bff;
      text-decoration: none;
      font-weight: bold;
      border-bottom: 1px dotted #007bff;
    }
    .guide-detail-card a:hover, .highlight-box a:hover, .section-desc a:hover {
      color: #0056b3;
      border-bottom: 1px solid #0056b3;
    }
    
    /* 按鈕樣式 (與其他檔案統一) */
    .related-buttons-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
      gap: 15px;
      margin-top: 20px;
    }
    .related-button {
      display: flex; 
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 15px;
      background: #fdfd96; 
      border: 2px solid #ffaa00; 
      border-radius: 10px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      text-decoration: none;
      font-weight: bold;
      color: #333;
      transition: transform 0.1s, box-shadow 0.1s;
      text-align: center;
    }
    .related-button:hover {
      transform: translateY(-2px); 
      box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
      background: #ffec80; 
    }
    .button-title {
      font-size: 1.1rem;
      margin-bottom: 5px;
      color: #c0392b; 
    }
    .button-desc {
      font-size: 0.85rem;
      color: #555;
      font-weight: normal;
    }

    /* Filter Controls CSS */
    .filter-controls {
      padding: 0 20px; 
      margin-bottom: 25px;
      background: #f8f9fa; 
      border: 1px solid #e9ecef;
      border-radius: 12px;
    }
    .collapsible-header {
      margin: 0;
      padding: 15px 0;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #007bff;
      font-size: 1.1rem;
      border-bottom: 1px solid transparent;
      user-select: none; 
      font-weight: bold;
    }
    .filter-controls.expanded .collapsible-header {
      border-bottom: 1px solid #e9ecef;
    }
    .toggle-icon {
      transition: transform 0.3s ease;
      font-size: 0.9rem;
    }
    .filter-content-wrapper {
      overflow: hidden;
      transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
      opacity: 1;
    }
    .filter-content-wrapper.collapsed {
      max-height: 0 !important;
      opacity: 0;
      visibility: hidden;
    }
    
    .filter-group { padding: 15px 0; }
    .filter-label {
      font-weight: bold;
      color: #2c3e50;
      display: block;
      margin-bottom: 8px;
      font-size: 0.95rem;
    }
    .filter-btn {
      padding: 6px 12px;
      border: 1px solid #ccc;
      border-radius: 20px;
      background: #fff;
      cursor: pointer;
      margin-right: 6px;
      margin-bottom: 6px;
      transition: 0.2s;
      font-size: 0.85rem;
      color: #555;
    }
    .filter-btn:hover { background: #e9ecef; }
    .filter-btn.active {
      background: #007bff;
      color: #fff;
      border-color: #007bff;
      font-weight: bold;
    }
    .search-input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-sizing: border-box;
        font-size: 0.95rem;
    }
