/* 木木日和 自訂樣式 — Phase 2（30→80 分）
   設計原則：圓潤、柔和留白、品牌色 #C4A882/#6B7D4A、克制特效、視覺一致
*/

/* ===== 基礎 ===== */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: Helvetica, Arial, "Noto Sans TC", "PingFang TC", 微軟正黑體, sans-serif; }
[data-aos] { transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }

/* ===== Hero 背景 + 漸層遮罩 ===== */
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(247,245,240,0.50) 0%, rgba(247,245,240,0.50) 100%); /* 白色浮水印 50%：照片可見度約50%，亮度100%原圖 */
}

/* ===== 區塊小標 eyebrow ===== */
.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.3em; font-weight: 700;
  color: #6B7D4A; margin-bottom: 12px;
}

/* ===== 大字英文水印（產品區） ===== */
.material-row { position: relative; }
.material-row .stamp {
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 900; letter-spacing: 0.02em;
  color: #EADFCB; line-height: 0.9;
}

/* ===== 漸層分隔線 ===== */
.hr-soft {
  border: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, #D4CFC7 50%, transparent 100%);
}

/* ===== Masonry 瀑布流 ===== */
.masonry { column-count: 3; column-gap: 1.25rem; }
.masonry > * { break-inside: avoid; margin-bottom: 1.25rem; display: block; }
@media (max-width: 1024px) { .masonry { column-count: 2; } }
@media (max-width: 640px)  { .masonry { column-count: 1; } }

/* ===== 合作品牌無限滾動 ===== */
@keyframes brand-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.brand-scroll { display: flex; gap: 4rem; width: max-content; animation: brand-scroll 34s linear infinite; }
.brand-scroll:hover { animation-play-state: paused; }

/* ===== 浮動 LINE 按鈕 ===== */
.fab-line {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  background: #06C755; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.38);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.fab-line:hover { transform: scale(1.08); }
@media (max-width: 1023px) { .fab-line { bottom: 84px; } } /* 避開手機黏性列 */

/* ===== 導覽列滾動變化 ===== */
.nav-scrolled { background: #ffffff; box-shadow: 0 2px 14px rgba(92,79,61,0.08); }

/* ============================================================
 * ★ 品牌佔位框 .ph-frame（Phase 2 圖片方針）
 * 缺真照（地板/壁紙/施工/丈量）一律用此框，不用 stock/AI 圖。
 * 用法：<div class="ph-frame" data-ph-label="超耐磨木地板"> ... 內含 .ph-icon </div>
 * 易抽換：業主拿到真照後，把整個 .ph-frame 換成 <img>，class 統一好搜尋。
 * ============================================================ */
.ph-frame {
  position: relative;
  width: 100%; height: 100%;
  min-height: 180px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 10px;
  padding: 24px;
  border-radius: inherit;
  background:
    radial-gradient(120% 120% at 50% 0%, #F6ECD8 0%, #EFE3CE 55%, #E7D9BF 100%);
  border: 1px solid rgba(196,168,130,0.45);
  overflow: hidden;
  color: #5C4F3D;
}
/* 柔和品牌斜紋裝飾，避免空白感 */
.ph-frame::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(196,168,130,0.10) 0 2px, transparent 2px 16px);
  pointer-events: none;
}
.ph-frame .ph-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(107,125,74,0.12);
  color: #6B7D4A;
  position: relative; z-index: 1;
}
.ph-frame .ph-icon svg { width: 28px; height: 28px; }
.ph-frame .ph-title {
  font-weight: 700; font-size: 15px; color: #5C4F3D;
  position: relative; z-index: 1; letter-spacing: 0.02em;
}
.ph-frame .ph-note {
  font-size: 11px; color: #8C7E66; letter-spacing: 0.04em;
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(196,168,130,0.4);
}
.ph-frame .ph-note::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #C4A882;
}
/* 深色情境（放在深色卡片上時用） */
.ph-frame.ph-dark {
  background: radial-gradient(120% 120% at 50% 0%, #6F6450 0%, #5C5240 60%, #4A3F30 100%);
  border-color: rgba(196,168,130,0.35);
  color: #F6ECD8;
}
.ph-frame.ph-dark .ph-icon { background: rgba(196,168,130,0.18); color: #D9C2A2; }
.ph-frame.ph-dark .ph-title { color: #F6ECD8; }
.ph-frame.ph-dark .ph-note { color: #E3DFDA; background: rgba(0,0,0,0.18); border-color: rgba(196,168,130,0.3); }

/* ===== 既有 .replace-tag（保留：用於仍存在的 <img> 暫代）===== */
.replace-tag {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  background: rgba(74,63,48,0.82); color: #fff;
  line-height: 1; padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.08em; pointer-events: none;
  font-weight: 700; backdrop-filter: blur(2px); font-size: 0;
}
.replace-tag::before { content: "實品照陸續更新"; font-size: 11px; letter-spacing: 0.06em; }

/* ===== 行動裝置選單抽屜 ===== */
.drawer { transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.drawer.open { transform: translateX(0); }
.drawer-overlay { opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ===== Phase 2 共用元件 ===== */
/* 圓潤膠囊標籤 */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #E3DFDA;
  font-size: 13px; font-weight: 700; color: #5C4F3D;
}
.chip-olive { background: #E4E9D6; border-color: #C9D4B0; color: #556339; }

/* 數據賣點卡 */
.stat-card {
  background: #fff; border-radius: 24px; padding: 28px 20px;
  box-shadow: 0 6px 24px rgba(92,79,61,0.06);
  border: 1px solid #F0E7D6; text-align: center;
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(92,79,61,0.12); }
.stat-num { font-size: 40px; line-height: 1; font-weight: 900; color: #6B7D4A; }

/* 痛點 / 解決 列 */
.pain-item, .solve-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: 16px;
}
.pain-item { background: #FBEDE9; }
.solve-item { background: #EAF0DD; }
.pain-mark, .solve-mark {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #fff;
}
.pain-mark { background: #C97A63; }
.solve-mark { background: #6B7D4A; }

/* 流程步驟連接線（桌面） */
.flow-step { position: relative; }

/* 評價卡星星 */
.stars { color: #C4A882; letter-spacing: 2px; }

/* 折疊 FAQ 統一外觀 */
details.faq { background: #FFFAF7; border: 1px solid #EFE3CE; border-radius: 16px; overflow: hidden; }
details.faq summary { cursor: pointer; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }

/* 按鈕統一微互動 */
.btn-press { transition: transform .15s ease; }
.btn-press:active { transform: scale(0.97); }


/* ============================================================
 * ★ 雜誌風升級層（concept 模式）— 全站套用
 *   襯線大標 · 暖奶油底 · 微縮放/線條伸展按鈕 · 編輯式手感
 * ============================================================ */
:root{ --mag-serif:"Noto Serif TC", Georgia, "Songti TC", serif; }

/* 暖奶油底（非純白基底） */
body{ background:#F7F5F0; }

/* 襯線大標：主要標題改襯線、加重、收緊行高 → 雜誌感 */
.font-display,
.text-display, .text-display-sm,
.text-h2-lg,
h1.font-display, h2.font-display{
  font-family:var(--mag-serif) !important;
  font-weight:900;
  letter-spacing:.012em;
  line-height:1.08;
}
/* 大字英文水印也走襯線 */
.material-row .stamp{ font-family:var(--mag-serif); letter-spacing:.04em; }

/* eyebrow 小標：更細緻的字距 */
.eyebrow{ letter-spacing:.34em; }

/* 按鈕：精緻微縮放 + 平滑過渡（取代生硬 hover） */
.btn-press{
  transition: transform .5s cubic-bezier(.7,0,.2,1), background-color .4s ease, color .4s ease, box-shadow .5s ease !important;
  will-change: transform;
}
.btn-press:hover{ transform: scale(1.035); }
.btn-press:active{ transform: scale(.99); }

/* 文字連結：底線由右收、hover 由左伸展（線條伸展） */
.link-line{ position:relative; display:inline-block; }
.link-line::after{
  content:""; position:absolute; left:0; bottom:-3px; width:100%; height:1px;
  background:currentColor; transform:scaleX(0); transform-origin:right;
  transition:transform .55s cubic-bezier(.7,0,.2,1);
}
.link-line:hover::after{ transform:scaleX(1); transform-origin:left; }

/* 案例/卡片圖片：懸停微放大，翻閱雜誌般的流暢 */
.group .relative.overflow-hidden img,
figure.gallery-item img{ transition: transform 1s cubic-bezier(.2,.6,.2,1); }
.group:hover img{ transform: scale(1.045); }

/* 區塊進場：與 AOS 並用的柔和位移（保險） */
[data-aos]{ transition-duration:.9s; }


/* ============================================================
 * ★ 字體：Open 粉圓（jf open-huninn，justfont 開源圓體，SIL OFL 可商用）
 *   全站主字體；font-display:swap 避免載入空白。正式上線建議子集化縮檔。
 * ============================================================ */
@font-face{
  font-family:'Open Huninn';
  src:url('https://cdn.jsdelivr.net/gh/justfont/open-huninn-font@master/font/jf-openhuninn-2.0.ttf') format('truetype');
  font-weight:400 900; font-style:normal; font-display:swap;
}
:root{ --mag-serif:'Open Huninn','Noto Sans TC',sans-serif; }
body,
.font-display, .text-display, .text-display-sm, .text-h2-lg,
h1,h2,h3,h4,h5,
.eyebrow, .stamp, .btn-press, button, input, select, textarea{
  font-family:'Open Huninn','Noto Sans TC','PingFang TC',system-ui,sans-serif !important;
}


/* ============================================================
 * ★ 導覽列下拉子選單（產品服務 → 木地板/窗簾/地毯/壁紙/戶外塑木）
 * ============================================================ */
.nav-item{ position:relative; }
.nav-item > .dropdown{
  position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(6px);
  padding-top:14px; opacity:0; visibility:hidden; transition:opacity .3s ease, transform .3s cubic-bezier(.7,0,.2,1); z-index:60;
}
.nav-item:hover > .dropdown{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.nav-item > .dropdown .dropdown-inner{
  background:#fff; border-radius:16px; box-shadow:0 18px 44px rgba(80,60,40,.16);
  padding:10px; min-width:176px; display:flex; flex-direction:column; gap:2px;
  border:1px solid #EDE7DA;
}
.nav-item > .dropdown a{
  padding:10px 18px; border-radius:10px; font-size:15px; font-weight:500; color:#332E28;
  white-space:nowrap; text-align:left; transition:.25s cubic-bezier(.7,0,.2,1);
}
.nav-item > .dropdown a:hover{ background:#EEF1E6; color:#6B7D4A; padding-left:24px; }
