/* Homepage-only rules keep the existing inner-page theme unchanged. */
.home-page { --home-muted: #b7b7b7; --home-line: #383838; letter-spacing: 0; }
.home-page [hidden] { display: none !important; }
.home-page a { color: inherit; }
.home-page button { font: inherit; cursor: pointer; }
.home-page :is(a, button, summary, input):focus-visible { outline: 2px solid var(--accent-color); outline-offset: 5px; }
.home-page :is(section, article, main) { scroll-margin-top: 96px; }
.home-page h1, .home-page h2, .home-page h3 { font-family: 'Noto Serif TC', serif; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.home-page h1, .home-page h2 { text-wrap: balance; }
.home-page h1 { font-size: 38px; line-height: 1.55; }
.home-page h2 { font-size: 30px; margin-bottom: 32px; }
.home-page h3 { font-size: 21px; }
.home-page p { color: var(--home-muted); }
.home-wrap { width: min(100%, 1200px); margin-inline: auto; padding-inline: 32px; }
.home-section, .home-band { padding-block: 72px; }
.home-band { background: #1d1d1d; }
.home-header { position: sticky; top: 0; z-index: 100; background: #161616; border-bottom: 1px solid var(--home-line); }
.home-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.home-brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Noto Serif TC', serif; font-size: 20px; font-weight: 700; text-decoration: none; flex-shrink: 0; }
.home-brand img { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; }
.home-menu { display: flex; align-items: center; gap: 22px; }
.home-menu > a { text-decoration: none; font-size: 14px; }
.home-menu > a:not(.home-button) { padding-block: 14px; color: var(--home-muted); }
.home-menu > a:hover { color: var(--accent-color); }
.home-menu-toggle { display: none; width: 44px; height: 44px; border: 0; color: white; background: none; font-size: 24px !important; }
.home-page .home-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 12px 22px; background: var(--accent-color); border: 1px solid var(--accent-color); border-radius: 4px; color: #161616; font-weight: 700; font-size: 16px; line-height: 1.5; text-decoration: none; text-align: center; }
.home-page .home-button:hover { background: #edbc84; border-color: #edbc84; color: #161616; }
.home-page .home-button-outline { color: var(--accent-color); background: transparent; }
.home-page .home-text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent-color); text-decoration: underline; text-underline-offset: 5px; }
.home-page .home-text-link:hover { color: #f3ce9f; }
.home-skip { position: fixed; top: -100px; left: 20px; padding: 12px; background: #161616; z-index: 500; }
.home-skip:focus { top: 8px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: center; padding-block: 40px 48px; }
.home-questions { list-style: none; color: #c7c7c7; margin-block: 22px; font-size: 17px; line-height: 1.8; }
.home-questions li + li { margin-top: 5px; }
.home-position { font-size: 16px; }
.home-position strong { color: white; font-weight: 500; }
.home-hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 24px; }
.home-page .home-proof { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 18px; font-size: 14px; color: #bfbfbf; }
.home-proof > * + * { border-left: 1px solid #535353; padding-left: 14px; }
.home-proof a { text-underline-offset: 4px; }
.home-portrait { width: 100%; height: auto; max-height: 576px; object-fit: contain; border-radius: 4px; justify-self: end; }
.home-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-guide-card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border: 1px solid #414141; border-radius: 6px; text-decoration: none; }
.home-guide-card:hover { border-color: var(--accent-color); }
.home-guide-card p { margin-block: 18px 24px; }
.home-guide-card small { margin-top: auto; color: #d5b48f; font-size: 14px; font-weight: 500; }
.home-guide-card .home-text-link { margin-top: 8px; }
.home-philosophy { gap: 40px; }
.home-philosophy > div + div { border-left: 1px solid var(--home-line); padding-left: 28px; }
.home-philosophy-number { display: block; margin-bottom: 12px; color: var(--accent-color); font-size: 14px; }
.home-philosophy h3 { color: var(--accent-color); margin-bottom: 14px; }
.home-feedback-grid, .home-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.home-feedback { display: block; width: 100%; border: 0; border-radius: 4px; background: transparent; overflow: hidden; cursor: zoom-in !important; }
.home-feedback img { display: block; width: 100%; height: auto; }
.home-feedback:hover { outline: 2px solid var(--accent-color); outline-offset: 3px; }
.home-center { text-align: center; margin-top: 28px; }
.home-service-card { display: flex; flex-direction: column; padding: 28px 24px; border: 1px solid #414141; border-radius: 6px; }
.home-service-card h3 { color: var(--accent-color); margin-bottom: 12px; }
.home-service-card > p { font-size: 15px; }
.home-service-card ul { color: var(--home-muted); padding-left: 20px; margin-block: 24px; font-size: 15px; }
.home-service-card li { margin-block: 5px; }
.home-service-description { margin-block: 24px; }
.home-price { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 20px; padding-bottom: 20px; }
.home-price span { color: var(--home-muted); font-size: 14px; }
.home-price strong { font-size: 26px; font-weight: 500; }
.home-page details { background: none; border: 0; border-bottom: 1px solid var(--home-line); border-radius: 0; margin: 0; }
.home-page summary { padding: 20px 36px 20px 0; font-size: 18px; }
.home-page summary::after { right: 2px; }
.home-page details p { padding: 0 0 20px; text-align: left; color: var(--home-muted); }
.home-other { margin-top: 28px !important; }
.home-other summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; }
.home-other small { display: block; font-size: 14px; color: var(--home-muted); font-weight: 400; }
.home-other-label { font-size: 14px; color: var(--accent-color); flex-shrink: 0; }
.home-other-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-block: 20px; }
.home-other-list h3 { margin-bottom: 12px; }
.home-other > .home-text-link { margin-bottom: 24px; }
.home-process { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-bottom: 32px; }
.home-process li { position: relative; padding-top: 16px; border-top: 1px solid #555; font-size: 17px; }
.home-process li span { display: block; margin-bottom: 8px; color: var(--accent-color); font-size: 23px; }
.home-process-note { max-width: 740px; }
.home-process-note h3 { font-family: 'Noto Sans TC', sans-serif; font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.home-process-note .home-recording-note { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.home-faq { max-width: 960px; }
.home-faq details a { color: var(--accent-color); text-underline-offset: 4px; }
.home-faq > .home-text-link { margin-top: 24px; }
.home-course h2 { font-size: 26px; margin-bottom: 16px; }
.home-course .home-text-link { margin-top: 12px; }
.home-final { text-align: center; }
.home-final h2 { margin-bottom: 20px; }
.home-final .home-button { margin-top: 28px; }
.home-final small { display: block; color: var(--home-muted); font-size: 14px; margin-top: 16px; }
.home-footer { padding-block: 36px; border-top: 1px solid var(--home-line); }
.home-footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-block: 18px; }
.home-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--home-muted); text-underline-offset: 4px; }
.home-copyright { color: var(--home-muted); background: none; border: 0; text-align: left; font-size: 12px !important; }
.home-sticky { position: fixed; width: 264px; bottom: 22px; right: 24px; z-index: 90; box-shadow: 0 4px 20px #0008; }
.home-page.home-dialog-open { overflow: hidden; }
.home-dialog { position: fixed; inset: 0; margin: auto; width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0 24px 24px; color: white; background: #1d1d1d; border: 1px solid #555; border-radius: 6px; overscroll-behavior: contain; }
.home-dialog::backdrop { background: #000d; }
.home-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; padding-block: 12px; background: #1d1d1d; z-index: 1; }
.home-dialog-bar h2 { font-size: 22px; margin: 0; }
.home-icon-button { flex: 0 0 44px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 30px !important; border: 1px solid #555; border-radius: 4px; color: white; background: transparent; }
.home-lightbox { width: min(940px, calc(100% - 24px)); }
.home-lightbox > img { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; }
.home-admin { max-width: 480px; padding: 24px; }
.home-admin h2 { font-size: 24px; margin-bottom: 16px; }
.home-admin-actions { display: flex; gap: 12px; margin-top: 16px; }
.home-admin #announcement-text { font-size: 14px; margin-bottom: 20px; }
.home-admin label { display: block; margin-bottom: 8px; }
@media (max-width: 1000px) {
    .home-menu { gap: 14px; }
    .home-brand { font-size: 18px; }
    .home-brand img { width: 30px; height: 30px; }
    .home-wrap { padding-inline: 24px; }
    .home-page h1 { font-size: 32px; }
    .home-hero { gap: 24px; }
    .home-three { gap: 16px; }
    .home-guide-card, .home-service-card { padding: 22px 18px; }
}
@media (max-width: 800px) {
    .home-page :is(section, article, main) { scroll-margin-top: 80px; }
    .home-wrap { padding-inline: 20px; }
    .home-nav { height: 63px; min-height: 63px; }
    .home-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .home-menu { display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 16px 20px 24px; background: #161616; border-bottom: 1px solid #555; max-height: calc(100dvh - 64px); overflow-y: auto; }
    .home-menu.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    .home-menu > a { font-size: 16px; padding-block: 12px; }
    .home-menu .home-button { margin-top: 12px; }
    .home-hero { grid-template-columns: 1fr; padding-block: 28px 40px; gap: 14px; }
    .home-page h1 { font-size: 28px; }
    .home-page h2 { font-size: 26px; margin-bottom: 24px; }
    .home-page h3 { font-size: 20px; }
    .home-questions { font-size: 15px; margin-block: 18px; }
    .home-questions li + li { margin-top: 6px; }
    .home-position { font-size: 15px; }
    .home-desktop-break { display: none; }
    .home-hero-actions { margin-top: 20px; gap: 8px; align-items: stretch; }
    .home-hero-actions .home-text-link { justify-content: center; font-size: 15px; }
    .home-page .home-proof { font-size: 12px; gap: 4px 8px; margin-top: 14px; }
    .home-proof > * + * { padding-left: 8px; }
    .home-portrait { max-width: 300px; max-height: 270px; justify-self: center; }
    .home-section, .home-band { padding-block: 44px; }
    .home-three { grid-template-columns: 1fr; }
    .home-guide-card { padding: 22px; }
    .home-guide-card p { margin-block: 12px; }
    .home-guide-card small { margin-top: 0; }
    .home-philosophy { gap: 28px; }
    .home-philosophy > div + div { border-left: 0; padding-left: 0; }
    .home-philosophy h3 { margin-bottom: 10px; }
    .home-feedback-grid, .home-gallery-grid { grid-template-columns: 1fr; gap: 16px; }
    #featured-feedback > .home-feedback:nth-child(n + 4) { display: none; }
    .home-center .home-button { width: 100%; }
    .home-service-card { padding: 24px; }
    .home-service-card ul { margin-block: 16px; }
    .home-price { padding-block: 12px 20px; }
    .home-other summary { align-items: flex-start; flex-direction: column; gap: 4px; }
    .home-other-list { grid-template-columns: 1fr; gap: 16px; }
    .home-process { grid-template-columns: 1fr; gap: 0; padding-bottom: 24px; }
    .home-process li { display: flex; align-items: center; gap: 20px; padding: 12px 0; border-top: 0; }
    .home-process li span { margin: 0; font-size: 20px; }
    .home-process-note h3 { font-size: 17px; }
    .home-page summary { font-size: 17px; padding-block: 18px; }
    .home-page details p { font-size: 15px; }
    .home-course h2 { font-size: 24px; }
    .home-final .home-button { width: 100%; }
    .home-final-line { display: block; }
    .home-footer nav { gap: 4px 24px; }
    .home-sticky { width: auto; left: 16px; right: 16px; bottom: max(12px, env(safe-area-inset-bottom)); }
    .home-page .home-sticky { min-height: 44px; padding: 9px 18px; font-size: 15px; }
    .home-page main { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .home-dialog { padding-inline: 16px; }
    .home-dialog-bar h2 { font-size: 20px; }
}
