/*
 * 光靚數位行銷購物站 - 前台 CSS
 * 規格 §2 Style Lock v1 + §20
 *
 * 設計原則：
 *   - 70% 白/淺色 / 20% 金色 / 10% 紫色
 *   - 高留白、聚焦視覺、精緻質感
 *   - 與 Bootstrap 5 共存，僅覆寫品牌色彩
 */

:root {
  /* 品牌色 */
  --gl-gold: #D9A24A;
  --gl-gold-light: #E8BD75;
  --gl-gold-dark: #B5832E;
  --gl-purple: #7E5BCF;
  --gl-purple-light: #9F84DC;
  --gl-purple-dark: #5E3FA8;
  --gl-cream: #FAF8F5;
  --gl-text: #2B2B2B;
  --gl-text-soft: #5A5A5A;
  --gl-text-muted: #8C8C8C;

  /* 結構 */
  --gl-radius-sm: 8px;
  --gl-radius-md: 12px;
  --gl-radius-lg: 16px;

  /* 陰影 */
  --gl-shadow-card: 0 4px 24px rgba(43, 43, 43, 0.06);
  --gl-shadow-cta: 0 4px 16px rgba(217, 162, 74, 0.3);
  --gl-shadow-cta-purple: 0 4px 16px rgba(126, 91, 207, 0.25);

  /* 間距 */
  --gl-section-gap: 48px;
  --gl-card-padding: 32px;
}

/* ─────────────────────────────────────────
   全頁背景（Style Lock 光源實作 §20.3）
   光源方向：右上 → 左下
   ───────────────────────────────────────── */
body {
  background-color: var(--gl-cream);
  background-image:
    radial-gradient(circle at 90% 10%, rgba(217, 162, 74, 0.12), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(126, 91, 207, 0.08), transparent 40%);
  background-attachment: fixed;
  color: var(--gl-text);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  min-height: 100vh;
}

/* 表單頁等以閱讀為優先的頁面，移除背景光暈 */
.gl-clean-bg {
  background-image: none !important;
  background-color: white;
}

/* ─────────────────────────────────────────
   Header / Footer
   ───────────────────────────────────────── */
.gl-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43, 43, 43, 0.06);
  position: sticky;
  top: 0;
  z-index: 1020;
  padding: 16px 0;
}
.gl-brand {
  font-weight: 700;
  font-size: 22px;
  color: var(--gl-text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.gl-brand:hover { color: var(--gl-gold-dark); }
.gl-brand-mark {
  color: var(--gl-gold);
  margin-right: 6px;
}

.gl-nav-link {
  color: var(--gl-text-soft);
  text-decoration: none;
  margin: 0 12px;
  font-size: 15px;
  transition: color 0.2s ease;
}
.gl-nav-link:hover { color: var(--gl-purple); }
.gl-nav-link.active { color: var(--gl-gold-dark); font-weight: 600; }

.gl-cart-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--gl-gold);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.gl-cart-badge:hover { background: var(--gl-gold-dark); color: white; }
.gl-cart-count {
  background: white;
  color: var(--gl-gold-dark);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
}

.gl-footer {
  background: white;
  border-top: 1px solid rgba(43, 43, 43, 0.06);
  padding: 48px 0 32px;
  margin-top: 80px;
}
.gl-footer-title {
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gl-text);
}
.gl-footer a {
  color: var(--gl-text-soft);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 14px;
}
.gl-footer a:hover { color: var(--gl-purple); }
.gl-footer-bottom {
  border-top: 1px solid rgba(43, 43, 43, 0.06);
  padding-top: 24px;
  margin-top: 32px;
  text-align: center;
  color: var(--gl-text-muted);
  font-size: 13px;
}

/* ─────────────────────────────────────────
   按鈕（規格 §20.4）
   ───────────────────────────────────────── */
.gl-btn-primary {
  background: var(--gl-gold);
  color: white;
  padding: 12px 32px;
  border-radius: var(--gl-radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 15px;
}
.gl-btn-primary:hover {
  background: var(--gl-gold-dark);
  box-shadow: var(--gl-shadow-cta);
  transform: translateY(-1px);
  color: white;
}
.gl-btn-primary:disabled,
.gl-btn-primary.disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.gl-btn-secondary {
  background: white;
  color: var(--gl-purple);
  border: 1.5px solid var(--gl-purple);
  padding: 11px 30px;
  border-radius: var(--gl-radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 15px;
}
.gl-btn-secondary:hover {
  background: var(--gl-purple);
  color: white;
  box-shadow: var(--gl-shadow-cta-purple);
}

.gl-btn-ghost {
  background: transparent;
  color: var(--gl-text-soft);
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}
.gl-btn-ghost:hover { color: var(--gl-purple); }

/* ─────────────────────────────────────────
   Hero / 區塊
   ───────────────────────────────────────── */
.gl-hero {
  padding: 80px 0 48px;
  text-align: center;
}
.gl-hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.gl-hero h1 .gl-accent {
  color: var(--gl-gold-dark);
}
.gl-hero p {
  font-size: 18px;
  color: var(--gl-text-soft);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.gl-section {
  padding: var(--gl-section-gap) 0;
}
.gl-section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.gl-section-subtitle {
  color: var(--gl-text-soft);
  margin-bottom: 32px;
  font-size: 16px;
}

/* ─────────────────────────────────────────
   商品卡片（§20.5）
   ───────────────────────────────────────── */
.gl-product-card {
  background: white;
  border-radius: var(--gl-radius-lg);
  padding: var(--gl-card-padding);
  box-shadow: var(--gl-shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(43, 43, 43, 0.04);
}
.gl-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(43, 43, 43, 0.1);
}
.gl-product-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gl-text);
}
.gl-product-summary {
  color: var(--gl-text-soft);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
  min-height: 44px;
}
.gl-product-price {
  color: var(--gl-gold-dark);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.gl-product-price-period {
  font-size: 14px;
  font-weight: 400;
  color: var(--gl-text-muted);
}
.gl-product-target {
  font-size: 13px;
  color: var(--gl-text-muted);
  margin-bottom: 16px;
}
.gl-service-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  flex: 1;
}
.gl-service-list li {
  position: relative;
  padding-left: 24px;
  padding-bottom: 8px;
  font-size: 14px;
  color: var(--gl-text-soft);
  line-height: 1.6;
}
.gl-service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  background: rgba(217, 162, 74, 0.15);
  border-radius: 50%;
}
.gl-service-list li::after {
  content: '✓';
  position: absolute;
  left: 2px;
  top: 4px;
  color: var(--gl-gold-dark);
  font-size: 11px;
  font-weight: 700;
}
.gl-product-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.gl-product-actions .gl-btn-primary,
.gl-product-actions .gl-btn-secondary {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  text-align: center;
}

/* ─────────────────────────────────────────
   分期標籤（紫色 10% §20.6）
   ───────────────────────────────────────── */
.gl-installment-badge {
  display: inline-block;
  background: rgba(126, 91, 207, 0.12);
  color: var(--gl-purple-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.gl-no-installment {
  display: inline-block;
  background: rgba(140, 140, 140, 0.12);
  color: var(--gl-text-muted);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 8px;
}

/* ─────────────────────────────────────────
   訂單狀態 badge（§20.7）
   ───────────────────────────────────────── */
.gl-status-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}
.gl-status-pending    { background: rgba(140, 140, 140, 0.15); color: var(--gl-text-soft); }
.gl-status-paid       { background: rgba(126, 91, 207, 0.12); color: var(--gl-purple-dark); }
.gl-status-failed     { background: rgba(244, 67, 54, 0.12);   color: #C62828; }
.gl-status-refunded   { background: rgba(255, 152, 0, 0.15);    color: #E65100; }
.gl-status-cancelled  { background: rgba(244, 67, 54, 0.1);    color: #C62828; }
.gl-status-new        { background: rgba(140, 140, 140, 0.15); color: var(--gl-text-soft); }
.gl-status-contacting { background: rgba(126, 91, 207, 0.12); color: var(--gl-purple-dark); }
.gl-status-processing { background: rgba(217, 162, 74, 0.15); color: var(--gl-gold-dark); }
.gl-status-completed  { background: rgba(76, 175, 80, 0.12);   color: #2E7D32; }

/* ─────────────────────────────────────────
   表單（Bootstrap 強化）
   ───────────────────────────────────────── */
.form-control, .form-select {
  border: 1.5px solid #E5E5E5;
  border-radius: var(--gl-radius-sm);
  padding: 10px 14px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gl-gold);
  box-shadow: 0 0 0 3px rgba(217, 162, 74, 0.15);
}
.form-label {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gl-text);
}
.form-label.required::after {
  content: ' *';
  color: #C62828;
}
.gl-form-help {
  color: var(--gl-text-muted);
  font-size: 13px;
  margin-top: 4px;
}
.gl-form-error {
  color: #C62828;
  font-size: 13px;
  margin-top: 4px;
}

/* radio / checkbox 美化 */
.gl-radio-card {
  display: block;
  padding: 16px;
  border: 1.5px solid #E5E5E5;
  border-radius: var(--gl-radius-sm);
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.gl-radio-card:hover { border-color: var(--gl-purple-light); }
.gl-radio-card input[type="radio"]:checked + span { color: var(--gl-purple-dark); }
.gl-radio-card.selected {
  border-color: var(--gl-gold);
  background: rgba(217, 162, 74, 0.05);
}

/* ─────────────────────────────────────────
   購物車 / 結帳
   ───────────────────────────────────────── */
.gl-cart-item {
  background: white;
  border-radius: var(--gl-radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--gl-shadow-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.gl-cart-item-info { flex: 1; min-width: 240px; }
.gl-cart-item-name { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.gl-cart-item-price { color: var(--gl-gold-dark); font-weight: 700; font-size: 18px; }

.gl-cart-summary {
  background: white;
  border-radius: var(--gl-radius-md);
  padding: 24px;
  box-shadow: var(--gl-shadow-card);
}
.gl-cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 22px;
  font-weight: 700;
  padding-top: 16px;
  border-top: 2px solid rgba(43, 43, 43, 0.08);
}
.gl-cart-total .gl-amount { color: var(--gl-gold-dark); }

.gl-checkout-section {
  background: white;
  border-radius: var(--gl-radius-md);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--gl-shadow-card);
}
.gl-checkout-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gl-gold);
}

/* ─────────────────────────────────────────
   條款頁（§20.8）
   ───────────────────────────────────────── */
.gl-policy {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.85;
  background: white;
  padding: 56px;
  border-radius: var(--gl-radius-md);
  box-shadow: var(--gl-shadow-card);
}
.gl-policy h1 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 32px;
}
.gl-policy h2 {
  font-size: 22px;
  border-bottom: 2px solid var(--gl-purple);
  padding-bottom: 8px;
  margin-top: 48px;
  margin-bottom: 20px;
}
.gl-policy p { color: var(--gl-text-soft); }
.gl-policy ol, .gl-policy ul { color: var(--gl-text-soft); margin: 16px 0; padding-left: 24px; }
.gl-policy li { margin-bottom: 8px; }
.gl-policy-updated {
  color: var(--gl-text-muted);
  font-size: 14px;
  text-align: right;
  margin-top: 64px;
  padding-top: 16px;
  border-top: 1px solid rgba(43, 43, 43, 0.08);
}

/* ─────────────────────────────────────────
   Flash 訊息
   ───────────────────────────────────────── */
.gl-flash {
  padding: 14px 20px;
  border-radius: var(--gl-radius-sm);
  margin-bottom: 24px;
  font-size: 15px;
  border-left: 4px solid;
}
.gl-flash-success {
  background: rgba(76, 175, 80, 0.08);
  color: #2E7D32;
  border-left-color: #2E7D32;
}
.gl-flash-error {
  background: rgba(244, 67, 54, 0.08);
  color: #C62828;
  border-left-color: #C62828;
}

/* ─────────────────────────────────────────
   感謝頁
   ───────────────────────────────────────── */
.gl-thankyou-card {
  background: white;
  border-radius: var(--gl-radius-lg);
  padding: 56px 48px;
  box-shadow: var(--gl-shadow-card);
  max-width: 720px;
  margin: 32px auto;
}
.gl-thankyou-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(217, 162, 74, 0.15);
  color: var(--gl-gold-dark);
  font-size: 40px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gl-thankyou-card h1 { text-align: center; font-size: 28px; margin-bottom: 8px; }
.gl-thankyou-card .order-no {
  text-align: center;
  font-size: 18px;
  color: var(--gl-text-muted);
  margin-bottom: 32px;
  font-family: monospace;
}
.gl-thankyou-section {
  border-top: 1px solid rgba(43, 43, 43, 0.08);
  padding: 24px 0;
}
.gl-thankyou-section:first-of-type { border-top: none; }
.gl-thankyou-section h3 { font-size: 17px; margin-bottom: 12px; }

/* 防詐提醒區塊 */
.gl-anti-fraud {
  background: rgba(244, 67, 54, 0.06);
  border-left: 4px solid #C62828;
  border-radius: var(--gl-radius-sm);
  padding: 16px 20px;
  font-size: 14px;
  color: #5A2C2C;
  margin: 24px 0;
  line-height: 1.7;
}

/* 防詐文字小區塊（條款頁中可重用） */
.gl-fraud-block {
  background: rgba(217, 162, 74, 0.08);
  border-left: 4px solid var(--gl-gold);
  padding: 14px 18px;
  border-radius: var(--gl-radius-sm);
  margin: 16px 0;
  font-size: 15px;
}

/* ─────────────────────────────────────────
   首頁 hero / 特色區塊
   ───────────────────────────────────────── */
.gl-feature {
  text-align: center;
  padding: 24px;
}
.gl-feature-icon {
  font-size: 36px;
  color: var(--gl-purple);
  margin-bottom: 12px;
}
.gl-feature h4 { font-weight: 700; margin-bottom: 8px; }
.gl-feature p { color: var(--gl-text-soft); font-size: 14px; }

/* ─────────────────────────────────────────
   響應式
   ───────────────────────────────────────── */
@media (max-width: 768px) {
  .gl-hero { padding: 48px 0 32px; }
  .gl-hero h1 { font-size: 32px; }
  .gl-hero p { font-size: 16px; }
  .gl-policy { padding: 32px 20px; }
  .gl-thankyou-card { padding: 32px 20px; }
  .gl-section-title { font-size: 22px; }
  .gl-checkout-section { padding: 20px; }
}

/* ═════════════════════════════════════════════════════════════
   Service Portal — 服務入口架構(guang-liang-service-portal-spec)
   ═════════════════════════════════════════════════════════════ */

/* ─── 首頁 Hero ─── */
.gl-portal-hero {
  padding: 64px 0 48px;
  text-align: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 162, 74, 0.15), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(126, 91, 207, 0.08), transparent 55%),
    var(--gl-bg-soft, #fdfaf3);
}
.gl-portal-hero-title {
  font-size: 56px;
  font-weight: 800;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--gl-gold) 0%, #b88846 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.04em;
}
.gl-portal-hero-sub {
  font-size: 18px;
  color: var(--gl-text-soft);
  margin: 0 0 24px;
}
.gl-portal-hero-question {
  font-size: 20px;
  color: var(--gl-purple);
  font-weight: 600;
  margin: 0;
}

/* ─── 三大入口卡 ─── */
.gl-portal-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #ece6d8;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  height: 100%;
}
.gl-portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(217, 162, 74, 0.18);
  border-color: var(--gl-gold);
  text-decoration: none;
  color: inherit;
}
.gl-portal-card-visual {
  background: linear-gradient(135deg, #fdfaf3 0%, #fff 100%);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.gl-portal-card-visual svg { width: 100%; height: auto; max-height: 160px; }
.gl-portal-card-body { padding: 24px; }
.gl-portal-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gl-purple);
  margin: 0 0 8px;
}
.gl-portal-card-summary {
  font-size: 14px;
  color: var(--gl-text-soft);
  line-height: 1.7;
  margin: 0 0 16px;
}
.gl-portal-card-cta {
  display: inline-block;
  font-weight: 600;
  color: var(--gl-gold);
  font-size: 15px;
}
.gl-portal-card:hover .gl-portal-card-cta { color: #b88846; }

/* ─── 子分類入口卡(/tongxing, /accessories) ─── */
.gl-subcat-card {
  display: block;
  background: #fff;
  border: 1px solid #ece6d8;
  border-radius: 10px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  height: 100%;
}
.gl-subcat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(126, 91, 207, 0.14);
  border-color: var(--gl-purple);
  text-decoration: none;
  color: inherit;
}
.gl-subcat-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gl-purple);
  margin: 0 0 8px;
}
.gl-subcat-summary {
  font-size: 14px;
  color: var(--gl-text-soft);
  margin: 0 0 12px;
  line-height: 1.7;
}
.gl-subcat-cta {
  font-weight: 600;
  color: var(--gl-gold);
}

/* ─── 成果示意區(規格 §11 §12) ─── */
.gl-result-grid { margin-top: 8px; }
.gl-result-placeholder {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  border: 1px solid #ece6d8;
}
.gl-result-placeholder svg { width: 100%; height: auto; display: block; }
.gl-result-placeholder-tag {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(217, 162, 74, 0.92);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 600;
  z-index: 2;
}

/* ─── 商品圖示意佔位 ─── */
.gl-product-thumb-placeholder {
  background: #fdfaf3;
  border-bottom: 1px solid #ece6d8;
}
.gl-product-thumb-placeholder svg { width: 100%; height: auto; display: block; }

/* ─── 響應式 ─── */
@media (max-width: 768px) {
  .gl-portal-hero { padding: 40px 0 32px; }
  .gl-portal-hero-title { font-size: 40px; }
  .gl-portal-hero-sub { font-size: 16px; }
  .gl-portal-hero-question { font-size: 16px; }
  .gl-portal-card-title { font-size: 18px; }
}

/* ═════════════════════════════════════════════════════════════
   Guang-Liang v2 refinement — clean URL homepage + Style Lock colors
   2026-05-22
   ═════════════════════════════════════════════════════════════ */

:root {
  --gl-bg-warm: #FAF8F5;
  --gl-line-soft: rgba(217, 162, 74, 0.18);
  --gl-link: #7A5AB8;
  --gl-link-hover: #B98538;
  --gl-gold-gradient: linear-gradient(135deg, #D9A24A 0%, #E8BD75 48%, #C68A3D 100%);
  --gl-purple-gradient: linear-gradient(135deg, #7E5BCF 0%, #B69AE8 100%);
}

/* 全站連結去除 Bootstrap 預設藍，改成光靚 Style Lock 金紫系 */
a {
  color: var(--gl-link);
  text-decoration-color: rgba(126, 91, 207, 0.28);
  text-underline-offset: 0.18em;
  transition: color .2s ease, text-decoration-color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a:hover,
a:focus {
  color: var(--gl-link-hover);
  text-decoration-color: rgba(217, 162, 74, 0.46);
}

.gl-site-header,
.gl-navbar {
  background: rgba(250, 248, 245, 0.88);
  border-bottom: 1px solid var(--gl-line-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.gl-navbar {
  padding: 18px 0;
}
.gl-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--gl-text) !important;
  letter-spacing: .08em;
  text-decoration: none;
}
.gl-brand-mark {
  color: var(--gl-gold-dark);
  font-size: 22px;
  font-weight: 800;
}
.gl-brand-name {
  color: var(--gl-text-soft);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .12em;
}
.gl-main-nav {
  gap: 10px;
}
.gl-main-nav .nav-link {
  position: relative;
  color: rgba(43, 43, 43, 0.72) !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 10px 14px !important;
  border-radius: 999px;
  text-decoration: none;
}
.gl-main-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, rgba(217,162,74,0), rgba(217,162,74,.7), rgba(126,91,207,.45), rgba(126,91,207,0));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}
.gl-main-nav .nav-link:hover,
.gl-main-nav .nav-link:focus,
.gl-main-nav .nav-link.active {
  color: var(--gl-gold-dark) !important;
  background: rgba(255, 255, 255, 0.66);
}
.gl-main-nav .nav-link:hover::after,
.gl-main-nav .nav-link:focus::after,
.gl-main-nav .nav-link.active::after {
  opacity: 1;
  transform: translateY(0);
}
.gl-navbar-toggler {
  border-color: rgba(217, 162, 74, .32);
}
.gl-navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(217, 162, 74, .18);
}

/* 首頁：只有三大入口，不再顯示舊版 Hero / 卡片 / 關於區 */
.gl-home-minimal main {
  min-height: clamp(420px, 62vh, 720px);
  display: flex;
  align-items: center;
}
.gl-home-gateway {
  width: 100%;
  padding: clamp(56px, 8vw, 110px) 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(217, 162, 74, 0.18), transparent 32%),
    radial-gradient(circle at 12% 88%, rgba(126, 91, 207, 0.10), transparent 38%);
}
.gl-home-gateway-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gl-home-gateway-link {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: var(--gl-text) !important;
  text-decoration: none;
  border: 1px solid rgba(217, 162, 74, .20);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.66)),
    radial-gradient(circle at 80% 20%, rgba(217,162,74,.20), transparent 36%),
    radial-gradient(circle at 20% 100%, rgba(126,91,207,.14), transparent 38%);
  box-shadow: 0 18px 50px rgba(43, 43, 43, 0.06);
}
.gl-home-gateway-link::before {
  content: '';
  position: absolute;
  inset: auto -20% -32% -20%;
  height: 120px;
  background:
    linear-gradient(115deg, rgba(217,162,74,0), rgba(217,162,74,.36), rgba(126,91,207,.22), rgba(126,91,207,0));
  filter: blur(18px);
  transform: rotate(-4deg);
  opacity: .72;
}
.gl-home-gateway-link:hover,
.gl-home-gateway-link:focus {
  transform: translateY(-5px);
  border-color: rgba(217, 162, 74, .42);
  box-shadow: 0 26px 70px rgba(126, 91, 207, 0.14), 0 10px 30px rgba(217, 162, 74, 0.12);
}
.gl-home-gateway-kicker {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gl-gold-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.gl-home-gateway-title {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.45;
}
.gl-home-gateway-link-primary .gl-home-gateway-title {
  background: linear-gradient(135deg, #2B2B2B 0%, #B98538 55%, #7E5BCF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Footer 也同步清掉過硬的 A link 感 */
.gl-footer {
  background: rgba(255, 255, 255, 0.86);
  border-top: 1px solid var(--gl-line-soft);
}
.gl-footer-link,
.gl-footer a {
  color: rgba(43, 43, 43, .68) !important;
  text-decoration: none;
}
.gl-footer-link:hover,
.gl-footer a:hover {
  color: var(--gl-gold-dark) !important;
}
.breadcrumb a,
.gl-policy a,
.gl-checkout-section a {
  color: var(--gl-link) !important;
}
.breadcrumb a:hover,
.gl-policy a:hover,
.gl-checkout-section a:hover {
  color: var(--gl-link-hover) !important;
}

@media (max-width: 991px) {
  .gl-main-nav {
    gap: 4px;
    padding-top: 16px;
  }
  .gl-main-nav .nav-link {
    padding: 12px 4px !important;
  }
}
@media (max-width: 768px) {
  .gl-home-minimal main {
    min-height: auto;
  }
  .gl-home-gateway-inner {
    grid-template-columns: 1fr;
  }
  .gl-home-gateway-link {
    min-height: 150px;
    padding: 24px;
  }
}

/* ═════════════════════════════════════════════════════════════
   Guang-Liang Portal Homepage v3 — Hero + 3 vertical entry cards
   覆蓋檔更新：Header 固定、首頁 Hero、PC 三欄、手機單欄、圖片圓角
   ═════════════════════════════════════════════════════════════ */

/* Header：加高、固定上方、滑動後底色更明確 */
.gl-site-header-v3 {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(250, 248, 245, 0.72);
  border-bottom: 1px solid rgba(217, 162, 74, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gl-site-header-v3.is-scrolled {
  background: rgba(250, 248, 245, 0.94);
  border-bottom-color: rgba(217, 162, 74, 0.24);
  box-shadow: 0 14px 36px rgba(43, 43, 43, 0.08);
}
.gl-navbar-v3 {
  min-height: 86px;
  padding: 14px 0;
  background: transparent !important;
  border-bottom: 0 !important;
}
.gl-header-container-v3 {
  width: min(1380px, calc(100% - 40px));
  padding-left: 0;
  padding-right: 0;
}
.gl-brand-v3 {
  gap: 10px;
  margin-right: 24px;
  text-decoration: none !important;
}
.gl-brand-v3 .gl-brand-mark {
  color: var(--gl-gold-dark);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .08em;
}
.gl-brand-v3 .gl-brand-name {
  color: var(--gl-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .10em;
}
.gl-main-nav-v3 {
  align-items: center;
  gap: 8px;
}
.gl-main-nav-v3 .nav-link {
  color: rgba(43, 43, 43, 0.76) !important;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 11px 15px !important;
  text-decoration: none !important;
}
.gl-main-nav-v3 .nav-link:hover,
.gl-main-nav-v3 .nav-link:focus,
.gl-main-nav-v3 .nav-link.active {
  color: var(--gl-gold-dark) !important;
  background: rgba(255, 255, 255, 0.72);
}

/* 取消舊首頁 minimal 對 main 的 flex 限制，避免三張圖被擠成窄欄 */
.gl-home-v3 main,
.gl-home-minimal.gl-home-v3 main {
  display: block !important;
  min-height: auto !important;
  align-items: initial !important;
}

/* Hero：輕量品牌開場，不搶三張入口圖 */
.gl-portal-hero-v3 {
  padding: clamp(72px, 8vw, 112px) 20px clamp(36px, 5vw, 64px);
  text-align: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(217, 162, 74, .16), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(126, 91, 207, .12), transparent 34%),
    linear-gradient(180deg, rgba(250, 248, 245, .96) 0%, rgba(255, 255, 255, .86) 100%);
}
.gl-portal-hero-v3-inner {
  width: min(920px, 100%);
  margin: 0 auto;
}
.gl-portal-hero-v3-kicker {
  margin: 0 0 16px;
  color: var(--gl-gold-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.gl-portal-hero-v3 h1 {
  margin: 0;
  color: var(--gl-text);
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.28;
  letter-spacing: .08em;
  font-weight: 800;
}
.gl-portal-hero-v3-subtitle {
  width: min(720px, 100%);
  margin: 24px auto 0;
  color: rgba(43, 43, 43, .68);
  font-size: 16px;
  line-height: 2;
  letter-spacing: .05em;
}

/* 三入口：PC 三欄，手機單欄 */
.gl-home-entry-v3 {
  padding: clamp(30px, 5vw, 56px) 20px clamp(72px, 7vw, 104px);
  background:
    radial-gradient(circle at bottom left, rgba(126, 91, 207, .08), transparent 34%),
    radial-gradient(circle at top right, rgba(217, 162, 74, .10), transparent 36%),
    var(--gl-cream);
}
.gl-home-entry-v3-inner {
  width: min(1380px, 100%);
  margin: 0 auto;
}
.gl-entry-grid-v3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
  align-items: stretch;
}
.gl-entry-card-v3 {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(43, 43, 43, .12);
  text-decoration: none !important;
  transform: translateY(0);
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
}
.gl-entry-card-v3::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72), inset 0 0 0 2px rgba(217, 162, 74, .08);
}
.gl-entry-card-v3:hover,
.gl-entry-card-v3:focus {
  transform: translateY(-8px);
  box-shadow: 0 32px 82px rgba(43, 43, 43, .18);
  filter: saturate(1.04);
}
.gl-entry-card-v3 img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (max-width: 1199px) {
  .gl-main-nav-v3 .nav-link {
    font-size: 14px;
    padding: 10px 11px !important;
  }
}
@media (max-width: 991px) {
  .gl-navbar-v3 {
    min-height: 76px;
  }
  .gl-header-container-v3 {
    width: min(100% - 28px, 720px);
  }
  .gl-main-nav-v3 {
    gap: 4px;
    padding: 14px 0 4px;
  }
  .gl-main-nav-v3 .nav-link {
    text-align: center;
    padding: 12px 10px !important;
  }
  .gl-entry-grid-v3 {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  .gl-entry-card-v3 {
    border-radius: 26px;
  }
}
@media (max-width: 576px) {
  .gl-brand-v3 .gl-brand-mark {
    font-size: 21px;
  }
  .gl-brand-v3 .gl-brand-name {
    font-size: 16px;
  }
  .gl-portal-hero-v3 {
    padding-top: 54px;
  }
  .gl-portal-hero-v3 h1 {
    font-size: 34px;
    letter-spacing: .04em;
  }
  .gl-portal-hero-v3-subtitle {
    font-size: 15px;
    line-height: 1.9;
  }
  .gl-home-entry-v3 {
    padding-left: 16px;
    padding-right: 16px;
  }
  .gl-entry-card-v3 {
    border-radius: 22px;
  }
}
