/* 首頁 v5（2026-10-24，原型 02-UI雛形/home-v5.html）：只管 .h5 底下；頁首、頁尾、mega menu 用 site.css */
.h5 { padding-bottom: 8px; }
.h5 .kk { font-size: 13px; font-weight: 700; color: var(--brand-700); letter-spacing: .02em; }
.h5 .mt { font-size: 13px; color: var(--ink-3); }
.h5-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--brand-50), #f6f3ea); }

/* 首屏：頭條大圖＋右側最新文章 */
.h5-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; padding-top: 28px; padding-bottom: 8px; }
.h5-lead { display: block; color: inherit; }
.h5-lead .im { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--panel); }
.h5-lead .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.h5-lead:hover .im img { transform: scale(1.02); }
.h5-lead .tx { padding-top: 18px; }
.h5-lead .tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand-700); background: var(--brand-50); border-radius: 999px; padding: 2px 12px; }
.h5-lead h1 { font-size: 30px; font-weight: 700; line-height: 1.42; margin: 10px 0 8px; }
.h5-lead p { margin: 0 0 6px; font-size: 16px; color: var(--ink-2); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h5-side h2 { font-size: 14px; letter-spacing: .14em; color: var(--ink-3); font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin: 0 0 6px; }
.h5-sm { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line-2); color: inherit; }
.h5-sm:last-child { border-bottom: 0; }
.h5-sm .im { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--panel); }
.h5-sm .im img { width: 100%; height: 100%; object-fit: cover; }
.h5-sm b { display: block; font-size: 16px; line-height: 1.5; margin: 2px 0; }
.h5-sm:hover b { color: var(--brand-700); }
.h5-empty { padding-top: 48px; text-align: center; }
.h5-empty h1 { font-size: 34px; margin: 0 0 10px; }
.h5-empty p { color: var(--ink-2); max-width: 36em; margin: 0 auto; }

/* 數字條 */
.h5-stats { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h5-stats .wrap { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.h5-stats .wrap > div { padding: 18px 16px; border-left: 1px solid var(--line-2); }
.h5-stats .wrap > div:first-child { border-left: 0; padding-left: 0; }
.h5-stats b { display: block; font-size: 30px; font-weight: 700; color: var(--brand-700); line-height: 1.15; }
.h5-stats span { font-size: 14px; color: var(--ink-2); }

/* 區塊 */
.h5-sec { margin-top: 64px; }
.h5-sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.h5-sh h2 { font-size: 26px; font-weight: 700; margin: 0; }
.h5-sh p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-3); }
.h5-sh > a { font-size: 15px; font-weight: 700; color: var(--brand-700); white-space: nowrap; }
.h5-band { background: var(--panel); border-radius: 22px; padding: 28px 28px 30px; }

.h5-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 26px; }
.h5-g5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.h5-card { display: flex; flex-direction: column; gap: 8px; color: inherit; }
.h5-card .im { border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--panel); }
.h5-card .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.h5-card:hover .im img { transform: scale(1.03); }
.h5-card h3 { font-size: 18px; line-height: 1.5; margin: 0; }
.h5-g5 .h5-card h3 { font-size: 15.5px; }
.h5-card:hover h3 { color: var(--brand-700); }
.h5-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.h5-guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.h5-gd { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: inherit; }
.h5-gd:hover { border-color: var(--brand-100); }
.h5-gd i { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.h5-gd i svg { width: 28px; height: 28px; }
.h5-gd b { display: block; font-size: 16px; line-height: 1.45; }
.h5-gd span { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; margin-top: 4px; }
.h5-gd small { font-size: 12px; color: var(--ink-3); }

.h5-boards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.h5-boards.n1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.h5-board { border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 8px; background: #fff; }
.h5-board .bh { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.h5-board .bh b { font-size: 18px; }
.h5-board .bh small { font-size: 12.5px; color: var(--ink-3); }
.h5-board .it { display: grid; grid-template-columns: 26px 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); color: inherit; }
.h5-board .rk { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--panel); }
.h5-board .rk.r1 { background: #f2c94c; color: #4a3800; } .h5-board .rk.r2 { background: #c3cad1; } .h5-board .rk.r3 { background: #d9a274; color: #4a2a10; }
.h5-board .pi { width: 72px; height: 72px; border-radius: 10px; background: #f1f2f4; overflow: hidden; display: block; }
.h5-board .pi img { width: 100%; height: 100%; object-fit: contain; }
.h5-board .tx small { display: block; font-size: 12.5px; color: var(--ink-3); }
.h5-board .tx b { display: block; font-size: 15px; line-height: 1.35; word-break: break-word; }
.h5-board .tx em { display: block; font-style: normal; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin-top: 2px; }
.h5-board .it:hover b { color: var(--brand-700); }
.h5-board .bf { display: block; text-align: right; padding: 10px 0 6px; font-size: 14px; font-weight: 700; color: var(--brand-700); }

.h5-drops { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.h5-drop { display: flex; flex-direction: column; gap: 4px; color: inherit; border: 1px solid var(--line); border-radius: 16px; padding: 0 0 14px; overflow: hidden; }
.h5-drop .pi { position: relative; display: block; aspect-ratio: 1; background: #f1f2f4; }
.h5-drop .pi img { width: 100%; height: 100%; object-fit: contain; }
.h5-drop .pi i { position: absolute; left: 10px; top: 10px; font-style: normal; background: var(--price); color: #fff; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 1px 9px; }
.h5-drop small, .h5-drop b, .h5-drop .pr { padding: 0 12px; }
.h5-drop small { font-size: 12px; color: var(--ink-3); }
.h5-drop b { font-size: 14.5px; line-height: 1.35; }
.h5-drop .pr { font-weight: 700; color: var(--price); }
.h5-drop .pr s { color: var(--ink-3); font-weight: 400; font-size: 12.5px; }

.h5-cats { display: grid; grid-template-columns: repeat(var(--c, 3), minmax(0, 1fr)); gap: 18px; }
.h5-cats.n1 { --c: 2; } .h5-cats.n2 { --c: 2; } .h5-cats.n3 { --c: 3; } .h5-cats.n4 { --c: 4; }
.h5-cat { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; color: #fff; background: var(--panel); }
.h5-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.h5-cat:hover img { transform: scale(1.03); }
.h5-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.6)); }
.h5-cat span { position: absolute; z-index: 1; left: 20px; bottom: 14px; }
.h5-cat b { display: block; font-size: 24px; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.h5-cat small { font-size: 14px; opacity: .92; }

.h5-ev { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; }
.h5-ev.one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.h5-evc { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.h5-evc h3 { font-size: 18px; margin: 0; }
.h5-evs { margin: 2px 0 12px; font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }
.h5-evs a { color: var(--brand-700); }
.h5-spec { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; }
.h5-spec td { padding: 8px 6px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.h5-spec td:first-child { color: var(--ink-2); width: 32%; }
.h5-spec .src { display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 700; color: #1d5fa8; background: #e8f1fb; border-radius: 6px; padding: 0 7px; }
.h5-chart { width: 100%; height: 150px; display: block; }
.h5-chl { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-3); margin: 4px 0 0; }

.h5-note { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 32px; align-items: center; padding: 34px 40px; border-radius: 22px; background: var(--brand-50); }
.h5-note .sig { width: 120px; height: 120px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.h5-note .sig svg { width: 64px; height: 64px; }
.h5-note h2 { font-size: 24px; margin: 0 0 8px; }
.h5-note p { margin: 0 0 8px; font-size: 16px; color: var(--ink-2); line-height: 1.9; }
.h5-note a { font-weight: 700; color: var(--brand-700); }

@media (max-width: 1080px) {
  .h5-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .h5-g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .h5-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h5-boards, .h5-boards.n1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h5-drops { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .h5-ev { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .h5-hero { padding-top: 14px; }
  .h5-lead .im { border-radius: 14px; }
  .h5-lead h1 { font-size: 22px; }
  .h5-lead p { font-size: 15px; }
  .h5-sm { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
  .h5-sm b { font-size: 15px; }
  .h5-stats .wrap { grid-template-columns: 1fr 1fr; }
  .h5-stats b { font-size: 24px; }
  .h5-sec { margin-top: 44px; }
  .h5-sh { flex-wrap: wrap; } .h5-sh h2 { font-size: 21px; } .h5-sh p { font-size: 13.5px; }
  .h5-band { border-radius: 16px; padding: 20px 14px 22px; margin-left: -4px; margin-right: -4px; }
  .h5-g3 { grid-template-columns: 1fr; gap: 26px; }
  .h5-g5, .h5-drops { display: flex; overflow-x: auto; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .h5-g5::-webkit-scrollbar, .h5-drops::-webkit-scrollbar { display: none; }
  .h5-g5 .h5-card { flex: 0 0 64%; scroll-snap-align: start; }
  .h5-drop { flex: 0 0 44%; scroll-snap-align: start; }
  .h5-guides { grid-template-columns: 1fr; gap: 10px; }
  .h5-boards, .h5-boards.n1 { grid-template-columns: 1fr; }
  .h5-board .it { grid-template-columns: 24px 60px minmax(0, 1fr); }
  .h5-board .pi { width: 60px; height: 60px; }
  .h5-cats, .h5-cats.n3, .h5-cats.n4 { grid-template-columns: 1fr; gap: 12px; }
  .h5-cat b { font-size: 21px; }
  .h5-evc { padding: 16px 14px; }
  .h5-note { grid-template-columns: 1fr; gap: 14px; padding: 24px 18px; border-radius: 16px; }
  .h5-note .sig { width: 72px; height: 72px; } .h5-note .sig svg { width: 40px; height: 40px; }
  .h5-note h2 { font-size: 20px; } .h5-note p { font-size: 15px; }
}

/* 只有 1 篇評比時，右邊放那篇文章 */
.h5-bart { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--panel); color: inherit; }
.h5-bart .im { display: block; aspect-ratio: 16 / 9; }
.h5-bart .im img { width: 100%; height: 100%; object-fit: cover; }
.h5-bart .tx { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px; }
.h5-bart small { font-size: 13px; font-weight: 700; color: var(--brand-700); }
.h5-bart b { font-size: 20px; line-height: 1.45; }
.h5-bart .tx > span { font-size: 15px; color: var(--ink-2); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.h5-bart em { font-style: normal; font-weight: 700; color: var(--brand-700); }
.h5-bart:hover b { color: var(--brand-700); }
.h5-srcs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.h5-srcs div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.h5-srcs b { display: block; font-size: 15px; }
.h5-srcs span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 720px) { .h5-srcs { grid-template-columns: 1fr; } }

/* 當季特輯、最近改了什麼、品牌牆（2026-10-24，原型 home-v5 ⑤⑨⑩） */
.h5-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.h5-feats.n1 { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.h5-feats.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.h5-ft4 { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.h5-ft4 .ph { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--panel); }
.h5-ft4 .ph img { width: 100%; height: 100%; object-fit: cover; }
.h5-ft4 .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .66)); }
.h5-ft4 .ph span { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 12px; color: #fff; }
.h5-ft4 .ph small { display: block; font-size: 12.5px; font-weight: 700; opacity: .9; }
.h5-ft4 .ph b { display: block; font-size: 20px; line-height: 1.4; }
.h5-ft4 ul { list-style: none; margin: 0; padding: 8px 16px 12px; }
.h5-ft4 li a { display: flex; gap: 8px; padding: 8px 0; font-size: 14.5px; line-height: 1.55; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.h5-ft4 li:last-child a { border-bottom: 0; }
.h5-ft4 li a::before { content: "›"; color: var(--brand); font-weight: 700; }
.h5-ft4 li a:hover { color: var(--brand-700); }
.h5-feed { list-style: none; margin: 0; padding: 6px 22px; border: 1px solid var(--line); border-radius: 18px; }
.h5-feed li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.h5-feed li:last-child { border-bottom: 0; }
.h5-feed .tg { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 3px 0; text-align: center; }
.h5-feed .tg.down { background: #fdecec; color: #c0392b; } .h5-feed .tg.add { background: var(--brand-50); color: var(--brand-700); }
.h5-feed .tg.fix { background: #fff4d6; color: #8a6200; } .h5-feed .tg.data { background: #e8f1fb; color: #1d5fa8; }
.h5-feed b { display: block; font-size: 15px; line-height: 1.5; color: var(--ink); }
.h5-feed a:hover b { color: var(--brand-700); }
.h5-feed div span { font-size: 13px; color: var(--ink-3); }
.h5-feed time { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.h5-brands { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.h5-brands a { height: 76px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #fff; text-align: center; padding: 0 6px; }
.h5-brands a:hover { border-color: var(--brand-100); background: var(--brand-50); }
.h5-brands b { font-size: 15.5px; color: #2a3138; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.h5-brands span { font-size: 12px; color: var(--ink-3); }
@media (max-width: 1080px) { .h5-feats, .h5-feats.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .h5-brands { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .h5-feats, .h5-feats.n2 { grid-template-columns: 1fr; }
  .h5-feed { padding: 4px 14px; } .h5-feed li { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; } .h5-feed time { grid-column: 2; }
  .h5-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
