/* ==========================================================
   home.css — 首頁專用(2026-07-12 首頁改版)
   只有 index.html 載入。全部 hp- 前綴,不與 style.css 撞名。
   磚紅 #C0432E 只當 CTA 色,不當主色。
   ========================================================== */

.hp {
    --hp-ink: #16191D;
    --hp-ink-2: #20252B;
    --hp-text: #23272C;
    --hp-text-mid: #5C646E;
    --hp-text-soft: #8B939D;
    --hp-line: #E4E7EA;
    --hp-bg-soft: #F5F6F7;
    --hp-cta: #C0432E;
    --hp-cta-dark: #9E3624;
}
.hp img { max-width: 100%; display: block; }
.hp a { text-decoration: none; color: inherit; }

/* ---------- Hero:深色(上方留白讓開 fixed navbar 72px) ---------- */
.hp-hero {
    background: linear-gradient(180deg, var(--hp-ink) 0%, var(--hp-ink-2) 100%);
    color: #fff;
    padding: 124px 0 48px;
    position: relative;
    overflow: hidden;
}
.hp-hero::after {
    content: "";
    position: absolute;
    right: -120px; top: -80px;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192,67,46,.16) 0%, transparent 65%);
}
.hp-hero-in {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 56px;
    align-items: center;
}
.hp-hero h1 {
    font-size: 38px; line-height: 1.3; font-weight: 900;
    letter-spacing: .5px; margin-bottom: 14px; color: #fff;
}
.hp-hero h1 em { font-style: normal; color: #E88A75; }
.hp-hero .hp-sub {
    font-size: 16.5px; line-height: 1.85;
    color: #AEB5BD; margin-bottom: 24px;
}
.hp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.hp-chip {
    font-size: 13px; color: #C6CBD1;
    border: 1px solid #3A414A;
    padding: 6px 13px; border-radius: 20px;
}
.hp-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hp-btn {
    padding: 14px 26px; border-radius: 4px;
    font-weight: 700; font-size: 15.5px;
    display: inline-block; transition: .15s;
    border: 1px solid transparent;
}
.hp-btn-cta { background: var(--hp-cta); color: #fff; }
.hp-btn-cta:hover { background: var(--hp-cta-dark); }
.hp-btn-line { background: #06C755; color: #fff; }
.hp-btn-line:hover { background: #05a948; }
.hp-btn-ghost { border-color: #4A525B; color: #fff; }
.hp-btn-ghost:hover { border-color: #8B939D; }

/* 門市資訊卡 */
.hp-shop {
    background: rgba(255,255,255,.05);
    border: 1px solid #333A43;
    border-radius: 6px;
    padding: 22px 24px;
}
.hp-shop-h {
    font-size: 12px; letter-spacing: 2px; color: #7C848E;
    padding-bottom: 12px; border-bottom: 1px solid #3A414A;
    margin-bottom: 4px; font-weight: 700;
}
.hp-shop-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 12px 0; border-bottom: 1px solid #2A3038; gap: 16px;
}
.hp-shop-row:last-child { border-bottom: 0; }
.hp-shop-row .hp-k { font-size: 13px; color: #7C848E; white-space: nowrap; }
.hp-shop-row .hp-v { font-size: 14.5px; color: #E8EBEE; text-align: right; line-height: 1.55; }
.hp-shop-row .hp-v.hp-big { font-size: 18px; font-weight: 700; color: #fff; }
.hp-shop-row a.hp-v:hover { color: #fff; text-decoration: underline; }

/* ---------- 信任條 ---------- */
.hp-trust { background: var(--hp-bg-soft); border-bottom: 1px solid var(--hp-line); }
.hp-trust-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.hp-trust-i {
    padding: 22px 20px; text-align: center;
    border-right: 1px solid var(--hp-line);
}
.hp-trust-i:last-child { border-right: 0; }
.hp-trust-i b { display: block; font-size: 16px; color: var(--hp-text); margin-bottom: 3px; }
.hp-trust-i span { font-size: 13px; color: var(--hp-text-soft); }

/* ---------- 版面 ---------- */
.hp-sec { padding: 66px 0; }
.hp-sec-h {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 8px; flex-wrap: wrap; gap: 12px;
}
.hp-sec-h h2 { font-size: 30px; font-weight: 900; letter-spacing: 1px; color: var(--hp-text); }
.hp-sec-h .hp-more {
    font-size: 14.5px; color: var(--hp-text-mid);
    border-bottom: 1px solid var(--hp-line); padding-bottom: 2px;
}
.hp-sec-h .hp-more:hover { color: var(--hp-cta); border-color: var(--hp-cta); }
.hp-sec-lead { font-size: 15.5px; color: var(--hp-text-mid); margin-bottom: 30px; }

/* ---------- 產品入口宮格 ---------- */
.hp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hp-grid > * { min-width: 0; }   /* 防內容撐爆欄位造成整頁橫向溢出 */

/* 分類磚:滿版照片 + 深色漸層 + 壓字(吸收各張照片背景差異) */
.hp-card {
    position: relative; display: block;
    aspect-ratio: 4 / 3;
    border-radius: 6px; overflow: hidden;
    background: var(--hp-ink-2);
    transition: .2s;
}
.hp-card:hover { box-shadow: 0 10px 26px rgba(20,25,30,.16); transform: translateY(-2px); }
.hp-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(.9) contrast(1.03);
    transition: transform .35s;
}
.hp-card:hover img { transform: scale(1.06); }
.hp-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(16,19,23,.06) 0%, rgba(16,19,23,.20) 45%, rgba(16,19,23,.86) 100%);
}
.hp-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 16px; z-index: 2; color: #fff;
}
.hp-cap h3 {
    font-size: 18px; font-weight: 700;
    display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
    text-shadow: 0 1px 6px rgba(0,0,0,.45);
    color: #fff;
}
.hp-cap p {
    font-size: 12.5px; color: rgba(255,255,255,.84);
    line-height: 1.5; margin-top: 3px;
    text-shadow: 0 1px 5px rgba(0,0,0,.5);
}
.hp-n {
    background: rgba(255,255,255,.22); color: #fff;
    font-size: 11.5px; font-weight: 700;
    padding: 2px 7px; border-radius: 10px; white-space: nowrap;
}
.hp-n.hp-hot { background: var(--hp-cta); }
.hp-noimg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #2C3238; color: #7C848E; font-size: 13px;
    padding-bottom: 56px;   /* 讓開底部壓字區,否則會跟標題疊在一起 */
}

/* ---------- 選購指南 ---------- */
.hp-guide { background: var(--hp-bg-soft); border-top: 1px solid var(--hp-line); }
.hp-gcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hp-gc {
    background: #fff; border: 1px solid var(--hp-line);
    border-radius: 6px; overflow: hidden; transition: .18s;
}
.hp-gc:hover { box-shadow: 0 8px 22px rgba(20,25,30,.09); transform: translateY(-2px); }
/* height:auto 不可省 —— HTML 的 height 屬性是 presentational hint,
   width/height 兩邊都非 auto 時瀏覽器會直接忽略 aspect-ratio,圖會被拉成方形。 */
.hp-gc img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hp-gc-tx { padding: 14px 15px 16px; }
.hp-gc h4 { font-size: 14.5px; line-height: 1.55; font-weight: 700; color: var(--hp-text); }
.hp-gc time { font-size: 12px; color: var(--hp-text-soft); display: block; margin-top: 7px; }

/* ---------- 結尾 CTA ---------- */
.hp-cta {
    background: var(--hp-ink); color: #fff; padding: 44px 0;
}
.hp-cta-in {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.hp-cta h2 { font-size: 25px; font-weight: 900; margin-bottom: 6px; color: #fff; }
.hp-cta p { color: #AEB5BD; font-size: 15px; }
.hp-cta-btns { display: flex; gap: 11px; flex-wrap: wrap; }

/* ---------- 手機 ---------- */
@media (max-width: 900px) {
    .hp-hero { padding: 100px 0 40px; }
    .hp-hero-in { grid-template-columns: 1fr; gap: 32px; }
    .hp-hero h1 { font-size: 27px; }
    .hp-hero .hp-sub { font-size: 15.5px; }
    .hp-trust-in { grid-template-columns: repeat(2, 1fr); }
    .hp-trust-i:nth-child(2) { border-right: 0; }
    .hp-trust-i:nth-child(1), .hp-trust-i:nth-child(2) { border-bottom: 1px solid var(--hp-line); }
    /* 2 欄窄格:4/3 太扁,壓字會塞滿整格 → 改方形給文字喘息空間 */
    .hp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hp-card { aspect-ratio: 1 / 1; }
    .hp-noimg { padding-bottom: 64px; }
    .hp-cap { padding: 12px; }
    .hp-cap h3 { font-size: 15.5px; gap: 5px; }
    .hp-cap p { font-size: 11.5px; }
    .hp-gcards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hp-sec { padding: 44px 0; }
    .hp-sec-h h2 { font-size: 24px; }
}
