/* 肌膚檢測頁：Banner 照片版、各區塊照片、代理品牌卡、影片專區、小教室（2026-09-28）
   接在 home-lp.css 後面，沿用同一套色票。內容由 ERP 後台「肌膚檢測頁面」管理（js/skin-page.js）。 */

/* ---------- Banner：左文字、右照片或影片 ---------- */
#page-home .hl-hero--split { text-align: left; padding: 56px 20px 64px; }
#page-home .hl-hero--split .hl-hero-inner { max-width: 1080px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
#page-home .hl-hero--split .cover-title { font-size: 42px; line-height: 1.3; white-space: pre-line; }
#page-home .hl-hero--split .cover-subtitle { margin: 0; max-width: 28em; }
#page-home .hl-hero--split .hl-tags { justify-content: flex-start; }
#page-home .hl-hero--split .start-btn-wrapper { margin: 28px 0 0; max-width: 380px; }
#page-home .hl-hero--split .pick-entry-wrapper { max-width: 380px; }
#page-home .hl-hero-media { position: relative; }
#page-home .hl-hero-pic { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .06); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); border: 1px solid rgba(200, 169, 110, .35); }
#page-home .hl-hero-pic:empty { display: none; }
#page-home .hl-hero-pic img, #page-home .hl-hero-pic video { width: 100%; height: 100%; object-fit: cover; display: block; }
#page-home .hl-report { position: absolute; left: -22px; bottom: -22px; width: 210px; background: #fdfcf9; color: #1e3a2f; border-radius: 16px; padding: 14px 16px 16px; box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .55); }
#page-home .hl-report[hidden] { display: none; }
#page-home .hl-hero-pic:empty + .hl-report { position: static; width: auto; max-width: 320px; margin: 0 auto; }
#page-home .hl-report-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
#page-home .hl-report-h b { font-family: "Noto Serif TC", "Songti TC", serif; font-size: 15px; }
#page-home .hl-report-h span { font-size: 11px; color: #a8874a; }
#page-home .hl-report-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; margin-top: 8px; }
#page-home .hl-report-row i { display: block; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #c8a96e var(--v), #ece6d8 var(--v)); }
#page-home .hl-hero--nomedia .hl-hero-inner { grid-template-columns: 1fr; max-width: 720px; text-align: center; }
#page-home .hl-hero--nomedia .hl-hero-media { display: none; }

/* ---------- 區塊共用（首頁與小教室都用） ---------- */
.sk-edu { --ink: #1e3a2f; --ink-soft: #3a5a4c; --gold: #c8a96e; --gold-deep: #a8874a; --cream: #f5f0e8; --paper: #fdfcf9; --line: #e4ddce; background: #fdfcf9; color: #1e3a2f; }
.sk-edu .education-page { padding: 0; background: #fdfcf9; color: #1e3a2f; font-size: inherit; border-radius: 0; }
.sk-edu .hl-section { padding: 52px 20px; }
.sk-edu .hl-section--tint { background: #f5f0e8; }
.sk-edu .hl-wrap { max-width: 820px; margin: 0 auto; }
.sk-edu .hl-kicker { font-family: "Fraunces", Georgia, serif; font-size: 12px; font-weight: 600; letter-spacing: .28em; color: #a8874a; margin-bottom: 8px; }
.sk-edu .hl-title { font-family: "Noto Serif TC", "Songti TC", serif; font-weight: 900; font-size: 28px; line-height: 1.35; color: #1e3a2f; margin: 0; text-align: left; }
.sk-edu .hl-title::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 3px; background: #c8a96e; margin: 14px 0 26px; }
.sk-edu .hl-faq-more { text-align: center; margin-top: 22px; }
.sk-edu .hl-ghost { display: inline-block; border: 1.5px solid #1e3a2f; color: #1e3a2f; border-radius: 100px; padding: 13px 28px; font-size: 14.5px; font-weight: 900; cursor: pointer; background: transparent; font-family: inherit; }
.sk-edu-hero { background: radial-gradient(900px 420px at 85% -10%, rgba(200, 169, 110, .22), transparent 60%), linear-gradient(160deg, #1e3a2f 0%, #12241c 100%); color: #f3ecdf; text-align: center; padding: 44px 20px 40px; }
.sk-edu-hero .k { font-family: "Fraunces", Georgia, serif; font-size: 12px; font-weight: 600; letter-spacing: .28em; color: #c8a96e; margin-bottom: 12px; }
.sk-edu-hero h1 { font-family: "Noto Serif TC", "Songti TC", serif; font-weight: 900; font-size: 32px; letter-spacing: .04em; color: #c8a96e; margin: 0 0 10px; }
.sk-edu-hero p { font-size: 14.5px; line-height: 1.8; color: rgba(243, 236, 223, .86); margin: 0; }

#page-home .hl-wrap--wide, .sk-edu .hl-wrap--wide { max-width: 1080px; }

/* 三步驟：上面一張照片 */
#page-home .hl-steps--photo li { padding: 0 0 22px; overflow: hidden; }
#page-home .hl-steps--photo .ph { aspect-ratio: 4 / 3; background: #ece6d8; margin-bottom: 18px; }
#page-home .hl-steps--photo .ph[hidden] { display: none; }
#page-home .hl-steps--photo .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
#page-home .hl-steps--photo .n, #page-home .hl-steps--photo b, #page-home .hl-steps--photo p { padding: 0 20px; display: block; }
#page-home .hl-steps--photo .ph[hidden] + .n { padding-top: 22px; }

/* 左照片、右內容 */
.hl-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hl-split--top { align-items: start; }
.hl-split.hl-split--nopic { grid-template-columns: 1fr; max-width: 820px !important; }
.hl-split-pic { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -36px rgba(30, 58, 47, .55); }
.hl-split-pic--tall { aspect-ratio: 4 / 5; position: sticky; top: 60px; }
.hl-split-pic[hidden] { display: none; }
.hl-split-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-split-body { min-width: 0; }
.hl-split-cta { margin-top: 26px; }

/* 代理品牌卡 */
.sk-brand-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.sk-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: #fff; border: 1px solid #e4ddce; border-radius: 18px; padding: 14px 10px 16px; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.sk-brand:hover { border-color: #c8a96e; box-shadow: 0 12px 40px -18px rgba(30, 58, 47, .35); }
.sk-brand-pic { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: 8px; }
.sk-brand-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sk-brand-name { font-family: "Fraunces", Georgia, serif; font-weight: 900; font-size: 15px; letter-spacing: .04em; color: #1e3a2f; }
.sk-brand-desc { font-size: 12px; color: #3a5a4c; }

/* 影片專區 */
.sk-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sk-video { background: #fff; border: 1px solid #e4ddce; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.sk-video[hidden] { display: none; }
.sk-video-cover { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; }
.sk-video-cover img { width: 100%; height: 100%; object-fit: contain; padding: 8%; box-sizing: border-box; display: block; }
.sk-video-play { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(30, 58, 47, .88); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5); }
.sk-video-play::after { content: ""; position: absolute; left: 17px; top: 13px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #c8a96e; }
.sk-video-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px solid #f0ebe0; }
.sk-video-brand { font-family: "Fraunces", Georgia, serif; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; color: #a8874a; text-transform: uppercase; }
.sk-video-title { font-size: 14.5px; font-weight: 700; line-height: 1.5; color: #1e3a2f; text-decoration: none; }
.sk-video-prod { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: #a8874a; text-decoration: none; }

/* 站內播放器（YouTube 與上傳的影片） */
.sk-player { position: fixed; inset: 0; z-index: 100000; background: rgba(10, 20, 15, .86); display: flex; align-items: center; justify-content: center; padding: 20px; }
.sk-player-box { position: relative; width: min(420px, 100%); max-height: 88vh; aspect-ratio: 9 / 16; background: #000; border-radius: 18px; overflow: hidden; }
.sk-player-box iframe, .sk-player-box video { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: #000; }
.sk-player-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 16px; cursor: pointer; }

@media (max-width: 820px) {
    #page-home .hl-hero--split { padding: 0 0 44px; text-align: center; }
    #page-home .hl-hero--split .hl-hero-inner { grid-template-columns: 1fr; gap: 0; }
    #page-home .hl-hero-media { order: -1; margin-bottom: 30px; }
    #page-home .hl-hero-pic { border-radius: 0; border: 0; max-height: 300px; width: 100%; box-shadow: none; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
    #page-home .hl-report { left: auto; right: 16px; bottom: -6px; width: 178px; padding: 12px 14px 14px; }
    #page-home .hl-hero-pic:empty + .hl-report { margin-top: 30px; }
    #page-home .hl-hero-text { padding: 0 20px; }
    #page-home .hl-hero--split .cover-title { font-size: 30px; }
    #page-home .hl-hero--split .cover-subtitle { margin: 0 auto; }
    #page-home .hl-hero--split .hl-tags { justify-content: center; }
    #page-home .hl-hero--split .start-btn-wrapper, #page-home .hl-hero--split .pick-entry-wrapper { margin-left: auto; margin-right: auto; }
    .hl-split { grid-template-columns: 1fr; gap: 24px; }
    .hl-split-pic, .hl-split-pic--tall { aspect-ratio: 16 / 10; border-radius: 18px; position: static; }
}
@media (max-width: 640px) {
    .sk-edu .hl-section { padding: 40px 18px; }
    .sk-edu .hl-title { font-size: 24px; }
    .sk-edu-hero { padding: 36px 20px 32px; }
    .sk-edu-hero h1 { font-size: 28px; }
    #page-home .hl-steps--photo li { display: block; padding: 0 0 18px; }
    #page-home .hl-steps--photo .ph { aspect-ratio: 16 / 9; margin-bottom: 14px; }
    #page-home .hl-steps--photo .n { font-size: 24px; }
    #page-home .hl-steps--photo b { margin: 6px 0 4px; }
    .sk-brand-row { display: flex; overflow-x: auto; gap: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -18px; padding: 0 18px 6px; }
    .sk-brand-row::-webkit-scrollbar { display: none; }
    .sk-brand { flex: 0 0 132px; }
    .sk-video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sk-video-body { padding: 12px; }
    .sk-video-title { font-size: 13.5px; }
}

/* ---------- 後台模擬畫面（?admin_preview=1）：目前在改的區塊框起來 ---------- */
.sk-preview [data-skin-block] { cursor: pointer; }
.sk-preview .sk-focus { position: relative; outline: 3px solid #e0533d; outline-offset: 4px; border-radius: 12px; scroll-margin-top: 56px; }
.sk-preview .sk-focus::before { content: "正在編輯：" attr(data-skin-block-name); position: absolute; left: 8px; top: 8px; z-index: 5; background: #e0533d; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: 100px; font-family: -apple-system, "PingFang TC", "Noto Sans TC", sans-serif; letter-spacing: 0; white-space: nowrap; }
.sk-preview .hl-hero.sk-focus { outline-offset: -6px; border-radius: 0; }

/* ---------- 九種肌膚困擾：九張卡，上面一張照片（沒放照片顯示圖示） ---------- */
.sk-concerns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sk-concern { background: #fff; border: 1px solid #e4ddce; border-radius: 18px; overflow: hidden; padding: 0 0 18px; }
.sk-concern .ph { position: relative; aspect-ratio: 16 / 10; background: #f5f0e8; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.sk-concern .ph svg { width: 44px; height: 44px; fill: none; stroke: #1e3a2f; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: #c8a96e; }
.sk-concern .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sk-concern b { display: block; padding: 0 20px; font-family: "Noto Serif TC", "Songti TC", serif; font-weight: 900; font-size: 17px; line-height: 1.4; color: #1e3a2f; }
.sk-concern p { margin: 4px 0 0; padding: 0 20px; font-size: 13.5px; line-height: 1.6; color: #3a5a4c; }
@media (max-width: 640px) {
    .sk-concerns { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sk-concern { padding-bottom: 14px; border-radius: 14px; }
    .sk-concern .ph { margin-bottom: 12px; }
    .sk-concern .ph svg { width: 34px; height: 34px; }
    .sk-concern b { padding: 0 12px; font-size: 14.5px; }
    .sk-concern p { padding: 0 12px; font-size: 12px; }
}
/* 還沒放照片的卡：不留一大塊空白，改成小圓圖示的精簡卡；放了照片（.sk-concern--photo）才是上圖下文 */
.sk-concern:not(.sk-concern--photo) { padding: 20px 0 18px; }
.sk-concern:not(.sk-concern--photo) .ph { aspect-ratio: auto; width: 52px; height: 52px; border-radius: 50%; margin: 0 20px 14px; }
.sk-concern:not(.sk-concern--photo) .ph svg { width: 27px; height: 27px; }
@media (max-width: 640px) {
    .sk-concern:not(.sk-concern--photo) { padding: 14px 0 12px; }
    .sk-concern:not(.sk-concern--photo) .ph { width: 42px; height: 42px; margin: 0 12px 10px; }
    .sk-concern:not(.sk-concern--photo) .ph svg { width: 22px; height: 22px; }
}

/* ---------- 手機第一屏：「開始肌膚檢測」要在第一個畫面就看得到（2026-09-28） ----------
   原本照片太高＋標籤排在按鈕前面，按鈕被擠到畫面最下方、被底部選單蓋住。
   做法：照片壓矮、示意小卡縮小、標籤移到按鈕後面。 */
@media (max-width: 820px) {
    #page-home .hl-hero-media { margin-bottom: 18px; }
    #page-home .hl-hero-pic { aspect-ratio: auto; height: 210px; max-height: none; }
    #page-home .hl-hero-pic img, #page-home .hl-hero-pic video { object-position: 50% 30%; }
    #page-home .hl-report { width: 150px; padding: 9px 11px 11px; right: 14px; bottom: -4px; border-radius: 12px; }
    #page-home .hl-report-h { margin-bottom: 4px; }
    #page-home .hl-report-h b { font-size: 12.5px; }
    #page-home .hl-report-h span { font-size: 10px; }
    #page-home .hl-report-row { grid-template-columns: 50px 1fr; font-size: 11px; margin-top: 5px; gap: 6px; }
    #page-home .hl-report-row i { height: 5px; }
    #page-home .hl-hero-text { display: flex; flex-direction: column; align-items: center; }
    #page-home .hl-hero-text > * { order: 1; }
    #page-home .hl-hero--split .hl-eyebrow { margin-bottom: 8px; }
    #page-home .hl-hero--split .cover-title { margin-bottom: 10px; }
    #page-home .hl-hero--split .cover-subtitle { font-size: 14.5px; line-height: 1.7; }
    #page-home .hl-hero--split .start-btn-wrapper { margin-top: 20px; width: 100%; }
    #page-home .hl-hero--split .pick-entry-wrapper { width: 100%; }
    #page-home .hl-hero--split .hl-tags { order: 2; margin-top: 22px; }
}
