@charset "UTF-8";
/*
Theme Name: 當家地產客製化子主題
Theme URI: https://dangjia.com.tw
Description: 當家地產官網客製化子主題，基於 Houzez 主題。前台頁面（首頁、物件詳細頁等）改用客製化 HTML/CSS/JS，透過 REST API 動態渲染資料；WordPress 僅作為後端資料庫與 API 提供者。
Author: 當家地產技術團隊
Template: houzez
Version: 1.0.0
Text Domain: dangjia-child
*/

/* ============================================================
   以下為當家地產黑金風格全站樣式，從原本的靜態 HTML 檔案原封不動搬過來。
   之後如果要調整顏色、間距、字體，直接改這裡即可，全站共用。
============================================================ */

  html { scroll-behavior: smooth; background-color: #0B0E14 !important; }
  body { background-color: #0B0E14 !important; margin: 0; }
  #dangjia-site * { box-sizing: border-box; }
  #dangjia-site {
    font-family: 'Noto Sans TC', sans-serif;
    width: 100%;
    min-height: 100vh;
    background-color: #0B0E14 !important;
  }

  /* 錨點捲動偏移量：等於 Navbar 高度(h-20=80px)，避免固定導覽列遮住區塊頂部 */
  #hero, #search, #search-results, #featured, #brand, #about, #locations {
    scroll-margin-top: 80px;
  }
  #dangjia-site h1, #dangjia-site h2, #dangjia-site .font-serif { font-family: 'Noto Serif TC', serif; }

  /* Logo 品牌名稱字體：王漢細黑體繁（需另行安裝 Web Font，
     若使用者電腦未安裝該字型，會自動回退至極細的 Noto Sans TC 呈現相近質感） */
  #dangjia-site .navbar-brand-name {
    font-family: 'WangsSF', 'Noto Sans TC', sans-serif;
    font-weight: 300;
    letter-spacing: 0.05em;
  }

  #dangjia-site .glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  #dangjia-site .navbar-panel {
    background: rgba(8, 14, 31, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  #dangjia-site .logo-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  #dangjia-site .gold-btn {
    background: linear-gradient(135deg, #e8cf8a 0%, #d4af37 50%, #b8942c 100%);
    color: #080e1f;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  #dangjia-site .gold-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5); }

  /* 黑金外框按鈕：用於較低調但仍精緻的次要 CTA（例如 Navbar 專人服務按鈕） */
  #dangjia-site .outline-gold-btn {
    background: rgba(8, 14, 31, 0.6);
    color: #e8cf8a;
    border: 1px solid #d4af37;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  }
  #dangjia-site .outline-gold-btn:hover {
    background: #d4af37;
    color: #080e1f;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
  }
  #dangjia-site .gold-text {
    background: linear-gradient(135deg, #f3e2ad 0%, #d4af37 55%, #b8942c 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  #dangjia-site .text-shadow-lg { text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5); }
  #dangjia-site .text-shadow-gold { text-shadow: 0 4px 20px rgba(212, 175, 55, 0.35); }
  #dangjia-site .bg-grid {
    background-image:
      linear-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(212, 175, 55, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
  }

  /* 金藍色漸層光暈：統一套用在各深色區塊，讓整頁下滑視覺連貫 */
  #dangjia-site .section-glow {
    background:
      radial-gradient(ellipse 60% 55% at 15% 0%, rgba(212, 175, 55, 0.10), transparent 70%),
      radial-gradient(ellipse 55% 50% at 100% 100%, rgba(70, 110, 200, 0.12), transparent 70%);
  }
  @keyframes djFadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes djFadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes djFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
  #dangjia-site .animate-fade-in { animation: djFadeIn 0.9s ease forwards; }
  #dangjia-site .animate-fade-in-up { animation: djFadeInUp 0.9s ease forwards; }
  #dangjia-site .animate-float { animation: djFloat 2.4s ease-in-out infinite; }

  #dangjia-site select { color-scheme: dark; }
  #dangjia-site select option { background-color: #0d1730; color: #ffffff; }
  /* 下拉選單的分組標題（例如主要承辦人依分店分組）：原本是白底白字，看起來像空白列 */
  #dangjia-site select optgroup { background-color: #0B0E14; color: #e8cf8a; font-style: normal; font-weight: 700; }

  #dangjia-site .store-card,
  #dangjia-site .brand-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.25s ease, transform 0.25s ease;
  }
  #dangjia-site .store-card:hover,
  #dangjia-site .brand-card:hover { border-color: rgba(212, 175, 55, 0.5); transform: translateY(-4px); }

  /* 員工控制台頁籤 */
  #dj-staff-console .dj-console-tab-btn {
    color: rgba(255,255,255,0.5);
    border-bottom: 2px solid transparent;
  }
  #dj-staff-console .dj-console-tab-btn.active {
    color: #e8cf8a;
    border-bottom: 2px solid #d4af37;
  }

  /* 精選物件／搜尋結果卡片 */
  #dangjia-site .property-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.25s ease, transform 0.25s ease;
    overflow: hidden;
  }
  #dangjia-site .property-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-4px);
  }

  /* 分頁按鈕 */
  #dangjia-site .dj-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    transition: all 0.2s ease;
  }
  #dangjia-site .dj-page-btn:hover:not(:disabled) {
    border-color: rgba(212, 175, 55, 0.5);
    color: #e8cf8a;
  }
  #dangjia-site .dj-page-btn.active {
    background: #d4af37;
    border-color: #d4af37;
    color: #080e1f;
    font-weight: 700;
  }
  #dangjia-site .dj-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }

  /* 安防：一般房仲視角停用文字選取，降低整批複製客戶名單的風險 */
  #dangjia-site .dj-no-copy {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
  }

  /* 審核日誌：高風險警報列 */
  #dangjia-site .dj-audit-row-alert {
    background: #dc2626 !important;
    color: #0B0E14 !important;
  }
  #dangjia-site .dj-audit-row-alert td { color: #0B0E14 !important; }
  #dangjia-site .dj-audit-row-warning td { color: #fbbf24 !important; }

  /* 關於我們輪播圓點 */
  #dangjia-site .dj-about-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.4);
    transition: all 0.2s ease;
    cursor: pointer;
  }
  #dangjia-site .dj-about-dot.active {
    background: #d4af37;
    width: 20px;
  }

  /* 專人服務表單：我是... 角色切換按鈕 / 選項標籤按鈕（用途、車位等） */
  #dangjia-site .dj-role-btn,
  #dangjia-site .dj-pill-btn {
    padding: 8px 4px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
  }
  #dangjia-site .dj-role-btn.active,
  #dangjia-site .dj-pill-btn.active {
    background: linear-gradient(135deg, #e8cf8a 0%, #d4af37 60%, #b8942c 100%);
    border-color: #d4af37;
    color: #080e1f;
    font-weight: 700;
  }

  /* 物件表單：多圖上傳縮圖網格 */
  #dangjia-site .dj-image-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
  }
  #dangjia-site .dj-image-thumb.is-cover {
    border-color: #d4af37;
  }
  #dangjia-site .dj-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  #dangjia-site .dj-image-thumb .dj-cover-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #d4af37;
    color: #080e1f;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
  }
  #dangjia-site .dj-image-thumb .dj-thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
  }
  #dangjia-site .dj-image-thumb .dj-thumb-set-cover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.65);
    color: #e8cf8a;
    font-size: 10px;
    text-align: center;
    padding: 3px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  #dangjia-site .dj-image-thumb:hover .dj-thumb-set-cover {
    opacity: 1;
  }

  #dangjia-site .section-eyebrow {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    color: #e8cf8a; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  }
  #dangjia-site .section-eyebrow .line { width: 32px; height: 1px; background: #d4af37; }

  /* Fallback：若外部圖片載入失敗，顯示深色底 + 圖示，避免死圖破圖 */
  #dangjia-site img { background-color: #0B0E14; }
  /* Logo 是刻意做成透明背景的 PNG，不需要（也不應該）套用上面那條給一般
     物件照片用的深色底色 fallback，否則透明的地方會被填滿深色，變成一個
     方形深色底框，把去背的效果整個蓋掉。這裡用 ID 選擇器把它排除掉。 */
  #dangjia-site #dj-header-logo { background-color: transparent !important; }
