
    /* --- 紫色頂端導覽列 樣式--- */
    #nav {
      background: linear-gradient(to bottom, #6a1b9a 0%, #4a148c 100%) !important;
      border-bottom: 2px solid #FFD700; /* 金色細線呼應下方 */
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      margin-bottom: 10px;
      padding: 0.3rem 0;
    }

    #nav .nav-link {
      color: #ffffff !important;
      font-weight: 500;
      transition: all 0.3s ease;
      padding: 0.8rem 1.2rem !important;
    }

    #nav .nav-link i {
      color: #FFD700; /* 金色圖示 */
      margin-right: 5px;
    }

    #nav .nav-link:hover {
      color: #FFD700 !important;
      background: rgba(255,255,255,0.15);
      transform: translateY(-2px);
    }


    /* --- 橘色主目錄區塊 樣式 --- */
    .guide-menu {
      background: #ff4500;
      border-top: 1px solid rgba(255,255,255,0.4);
      border-bottom: 1px solid rgba(255,255,255,0.4);
      overflow: hidden;
    }

    .guide-menu .container-fluid {
      padding: 0;
    }

    .menu-item {
      /* 每一格都帶左線與底線，確保封口 */
      border-left: 1px solid rgba(255,255,255,0.35);
      border-bottom: 1px solid rgba(255,255,255,0.35);
      background: #ff4500;
      transition: all 0.3s ease;
      text-align: center;
    }

    /* 修正：滑鼠移入變深色，文字才清晰 */
    .menu-item:hover {
      background: #c63600 !important; /* 深磚紅 */
      box-shadow: inset 0 0 15px rgba(0,0,0,0.2);
    }

    .menu-item a {
      color: #ffffff !important;
      font-weight: bold;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none !important;
      padding: 15px 0;
    }

    .menu-item i {
      margin-right: 8px;
      font-size: 1.2rem;
      color: #ffd700; /* 圖示金色 */
      display: inline-block !important;
    }

    /* 電腦版：最右側一格補上右邊線 */
    @media (min-width: 768px) {
      .menu-item:nth-child(6n) {
        border-right: 1px solid rgba(255,255,255,0.35);
      }
    }

    /* 行動版：每排兩個，偶數格補上右邊線 */
    @media (max-width: 767px) {
      .menu-item:nth-child(2n) {
        border-right: 1px solid rgba(255,255,255,0.35);
      }
      .menu-item a {
        font-size: 1rem;
      }
    }
