/*
 * 檔案名稱：/supplier/supplier.css
 * 修改日期：2026/02/22 15:45 (UTC+8)
 * 檔案用途：Kevin推薦 (供應商頁面) - 專屬獨立樣式，加入頁尾與懸浮按鈕樣式
 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;700;900&display=swap');

:root {
  --primary: #ff6b3d;
  --primary-dark: #e2572c;
  --bg-dark: #0f172a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f9fafb; 
  color: #333333;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: 0.3s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.page { min-height: 100vh; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* =========================
   Header 懸浮列
   ========================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7), transparent);
  border-bottom: 1px solid rgba(55, 65, 81, 0.6);
}

.nav { display: flex; align-items: center; justify-content: flex-start; padding: 12px 0; }
.nav-left { display: flex; align-items: center; gap: 10px; margin-right: auto; }

.logo-circle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 32px;
  color: #ef4444;
  background: transparent;
  text-shadow: 0 2px 15px rgba(239, 68, 68, 0.4);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text span { font-size: 15px; font-weight: 700; letter-spacing: 0.05em; color: #fff; white-space: nowrap; }
.logo-mobile-br { display: none; }

.nav-links { display: flex; gap: 10px; font-size: 14px; }
.nav-links a { padding: 6px 12px; border-radius: 20px; color: #9ca3af; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.05); }

.nav-cta-btn {
  padding: 8px 18px; border-radius: 999px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(248, 113, 22, 0.4);
  transition: 0.2s;
  white-space: nowrap;
}
.nav-cta-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }

.nav-cta-blue {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.nav-cta-group { display: flex; gap: 12px; align-items: center; }
.nav-cta-blue.nav-cta-desktop { margin-right: 12px; }

@media (min-width: 769px) {
  .nav-cta-blue.nav-cta-desktop { margin-left: -8px; }
}

.nav-cta-desktop { display: inline-flex; }
.nav-cta-mobile  { display: none; }
.menu-toggle { display: none; font-size: 24px; color: #fff; cursor: pointer; }

/* 隱藏邏輯 (絕對保留) */
.nav-links { display: none !important; } 
.nav-links a { display: none !important; } 

/* =========================
   白底區域：空狀態 / 輪播 / 廠商
   ========================= */
.supplier-main {
  padding-top: 100px;
  padding-bottom: 80px;
}

.supplier-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.supplier-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #555;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* --- 尋寶空狀態 --- */
.empty-treasure-state { text-align: center; padding: 80px 20px; }
.empty-text { font-size: 20px; color: #6b7280; margin-bottom: 30px; font-weight: 700; line-height: 1.5; }
.empty-mobile-br { display: none; }

.treasure-img-box {
  width: 300px; height: 300px; margin: 0 auto;
  border: 3px dashed #cbd5e1; border-radius: 16px; background-color: #f1f5f9;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}

.treasure-anim-img {
  width: 100%; height: 100%; object-fit: contain;
  animation: floatTreasure 3s ease-in-out infinite;
}

@keyframes floatTreasure {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* --- 商品輪播 --- */
.carousel-section { margin-bottom: 60px; }
.carousel-wrapper { width: 100%; overflow: hidden; position: relative; }
.carousel-track { display: flex; width: 100%; }
.carousel-item { flex: 0 0 20%; padding: 0 10px; }

.carousel-img-box {
  display: block; width: 100%; aspect-ratio: 1 / 1; 
  border: 1px solid #e5e7eb; border-radius: 8px; background: #ffffff;
  overflow: hidden; transition: transform 0.3s;
}
.carousel-img-box:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.carousel-img-box img { width: 100%; height: 100%; object-fit: contain; }

/* --- 廠商介紹 --- */
.supplier-section { margin-top: 40px; }
.supplier-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }

.supplier-card {
  background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px;
  overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  display: flex; flex-direction: column;
}

.supplier-img { width: 100%; height: 250px; background: #f8fafc; border-bottom: 1px solid #e5e7eb; overflow: hidden; }
.supplier-img a { display: block; width: 100%; height: 100%; }
.supplier-img img { width: 100%; height: 100%; object-fit: contain; }

.supplier-info { padding: 20px; display: flex; flex-direction: column; }
.supplier-name { font-size: 22px; font-weight: 800; color: #111827; margin-bottom: 12px; }
.supplier-name a:hover { color: var(--primary); }
.supplier-desc { font-size: 15px; color: #4b5563; line-height: 1.8; }

/* =========================
   Footer 頁尾 (適應白底)
   ========================= */
footer {
  border-top: 1px solid #e5e7eb;
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-top: 60px;
}

/* =========================
   Floating Buttons 懸浮按鈕
   ========================= */
.float-stack { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 999; }
.float-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); transition: 0.2s; }
.float-btn:hover { transform: translateY(-3px); }
.float-line { background: #06C755; }
.float-fb { background: #1877F2; }
.float-yt { background: #FF0000; }
.float-member { background: #7c3aed; }   /* 紫色：會員 */
.float-logout { background: #64748b; }   /* 灰色：登出 */


/* =========================
   RWD 手機版設定
   ========================= */
@media (max-width: 768px) {
  .nav { flex-wrap: wrap; justify-content: flex-start; }
  .nav-left { flex: 0 0 100%; margin-bottom: 6px; margin-right: 0; justify-content: flex-start; gap: 6px; }

  .logo-mobile-br { display: block; }
  .menu-toggle { display: none !important; }

  .nav-links {
    width: 100%; position: static; display: flex !important; flex-direction: row;        
    flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0; margin: 0; padding: 0; background: transparent; font-size: 13px;
  }
  .nav-links a { flex: 0 0 33.33%; text-align: center; padding: 6px 0; border-radius: 0; }
  .nav-cta-desktop { display: none !important; }

  .nav-cta-mobile {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    font-size: 12px;
  }

  .nav-cta-blue.nav-cta-mobile { margin-left: auto; margin-right: 8px; }
  .nav-cta-mobile:last-child { margin-right: 10px; }

  .empty-mobile-br { display: block; }

  .carousel-item { flex: 0 0 33.333%; padding: 0 5px; }
  .supplier-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* =========================
   其他隱藏防呆 (絕對保留)
   ========================= */
#about, #curriculum, #news, #reviews, #contact { display: none !important; }
.hero-cta-row { display: none !important; }

.price-card > div:first-of-type { font-size: 16px; font-weight: 700; color: #e5e7eb; }

@media (max-width: 768px) {
  .price-card > div:first-of-type,
  .price-card .price-title + div { font-size: 19px; font-weight: 800; line-height: 1.4; }
  .price-card .price-title + div { font-size: 18px !important; font-weight: 800 !important; line-height: 1.4 !important; }
}

.member-wrap{ width: 100%; max-width: 520px; margin: 90px auto 40px; padding: 0 16px; }
.member-card{ background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: 18px; backdrop-filter: blur(14px); padding: 18px; }
.member-title{ font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.member-field{ margin: 12px 0; }
.member-field label{ display:block; font-size: 13px; font-weight: 800; color: var(--text-muted); margin-bottom: 6px; }
.member-input{ width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.14); background: rgba(0,0,0,0.18); color: #fff; outline: none; }
.member-input:focus{ border-color: rgba(56,189,248,0.55); box-shadow: 0 0 0 3px rgba(56,189,248,0.15); }
.captcha-row{ display: flex; gap: 10px; align-items: center; }
.captcha-row .captcha-input{ flex: 1 1 auto; }
.captcha-img{ width: 180px; height: 56px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.14); background: #fff; object-fit: cover; cursor: pointer; }

@media (max-width: 520px){
  .captcha-row{ flex-direction: column; align-items: stretch; }
  .captcha-img{ width: 100%; height: 60px; }
}

.member-btn{ width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: none; cursor: pointer; font-weight: 900; color: #fff; background: linear-gradient(135deg, #111, #000); }
.member-links{ display:flex; gap:12px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.member-links a:hover{ color:#fff; }