.hp, .hp * { font-family: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif; }
.hp {
    --hp-ink: #142033;
    --hp-muted: #5c6b7a;
    --hp-line: #e6ebf1;
    --hp-card: #fff;
    --hp-bg: #fff;
    --hp-brand: #142033;
    --hp-accent: #f06f2e;
    position: relative;
    color: var(--hp-ink);
    background: var(--hp-bg);
}
.hp a { color: inherit; }
.hp-wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

.hp-switch {
    position: relative;
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px;
    min-height: 46px;
    margin: 90px 0 0;
    padding: 6px 16px;
    background: #fff;
    color: #66768a;
    border-bottom: 1px solid #eceff3;
    font-size: 13px;
}
.hp-switch span { margin-right: 8px; }
.hp-switch a { color: #142033; text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.hp-switch a[aria-current="page"] { background: #142033; color: #fff; font-weight: 700; }

.hp-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background: #142033;
}
.hp-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hp-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,14,26,.82) 0%, rgba(8,14,26,.55) 36%, rgba(8,14,26,.18) 68%, rgba(8,14,26,.28) 100%);
}
.hp-hero-copy { position: relative; z-index: 2; padding: 72px 0; }
.hp-hero-copy h1,
.hp-hero-copy .hp-lead,
.hp-hero-copy .hp-actions,
.hp-hero-copy .hp-comp { max-width: 680px; }
.hp-kicker { margin: 0 0 12px; color: #f06f2e; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.hp-hero .hp-kicker { color: #ffd2b8; }
.hp h1 { margin: 0 0 16px; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.12; font-weight: 900; letter-spacing: -0.03em; }
.hp h2 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; font-weight: 900; letter-spacing: -0.03em; }
.hp h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.hp-lead, .hp-answer, .hp-campaign, .hp-section-head p { font-size: 17px; line-height: 1.75; }
.hp-lead { margin: 0 0 22px; color: rgba(255,255,255,.92); }
.hp-campaign { margin: 0 0 14px; color: #ffe1cf; max-width: 40em; }
.hp-answer { margin: 0; color: var(--hp-muted); max-width: 42em; }
.hp-spec { margin: 0 0 8px; color: #ffd2b8; font-weight: 700; }

.hp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hp-btn, .cb-card-actions a, .hp-dock a {
    display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
    padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 16px;
}
.hp-hero .hp-btn { color: #142033; background: #fff; border: 0; }
.hp-hero .hp-btn-solid { background: #f06f2e; color: #fff; }

.hp-intro { padding: 72px 0 28px; }
.hp-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.hp-proof li { color: var(--hp-muted); font-size: 14px; }
.hp-proof strong { color: var(--hp-ink); font-size: 18px; font-weight: 900; margin-right: 4px; }
.hp-contact { background: #f6f7f9; }
.hp-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 22px 0; }
.hp-doors a {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    min-height: 0; padding: 18px 20px; border-radius: 16px;
    background: #fff; color: var(--hp-ink); text-decoration: none;
    border: 1px solid var(--hp-line);
}
.hp-doors span { color: var(--hp-muted); font-size: 13px; font-weight: 500; }
.hp-doors strong { font-size: 20px; font-weight: 800; }
.hp-places { display: grid; gap: 14px; }
.hp-places article { background: #f6f7f9; border-radius: 18px; padding: 22px 24px; }
.hp-places p, .hp-notes p { margin: 0 0 6px; color: var(--hp-muted); line-height: 1.6; }
.hp-block { padding: 64px 0 8px; }
.hp-section-head { margin: 0 0 20px; }
.hp-section-head p { margin: 0; color: var(--hp-muted); }
.hp-where { padding: 48px 0 8px; }

.hp-steps, .hp-fee-grid, .hp-news, .cb-grid { display: grid; gap: 14px; }
.hp-step { position: relative; min-height: 320px; border-radius: 18px; overflow: hidden; color: #fff; display: flex; align-items: flex-end; }
.hp-step img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-step div { position: relative; z-index: 1; width: 100%; padding: 72px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.hp-step h3, .hp-step p { color: #fff; }
.hp-step p { margin: 0; font-size: 13px; line-height: 1.45; }
.hp-step div > p:first-child { color: #ffd2b8; font-weight: 700; letter-spacing: .04em; margin-bottom: 2px; }
.hp-step h3 { margin: 2px 0 4px; font-size: 20px; }

.hp-fee-grid article, .hp-news a, .hp-faq details {
    background: #fff; border: 1px solid var(--hp-line); border-radius: 18px; padding: 18px 20px;
}
.hp-price { margin: 8px 0; font-size: 20px; font-weight: 800; }
.hp-news a { display: block; text-decoration: none; color: inherit; }
.hp-news img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; background: #f3f4f6; }
.hp-news h3 { font-size: 18px; }
.hp-section-head a { color: #f06f2e; font-weight: 700; text-decoration: none; }
.hp-faq { display: grid; gap: 10px; }
.hp-faq summary { cursor: pointer; font-weight: 800; }
.hp-faq p { margin: 10px 0 0; color: var(--hp-muted); line-height: 1.7; white-space: pre-line; }

.cb-areas, .cb-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.cb-areas button, .cb-filters select {
    border: 1px solid var(--hp-line); background: #fff; color: var(--hp-ink);
    border-radius: 999px; min-height: 42px; padding: 8px 14px; font: inherit;
}
.cb-areas button { display: inline-flex; align-items: baseline; gap: 6px; cursor: pointer; }
.cb-areas small { color: var(--hp-muted); font-size: 12px; }
.cb-areas button[aria-pressed="true"] { background: var(--hp-brand); color: #fff; border-color: var(--hp-brand); }
.cb-areas button[aria-pressed="true"] small { color: rgba(255,255,255,.8); }
.cb-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cb-filters label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--hp-muted); }
.cb-filters select { width: 100%; border-radius: 12px; }
.cb-countline { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.cb-count { color: var(--hp-muted); font-size: 14px; }
.cb-enroll { color: #f06f2e; font-weight: 700; text-decoration: none; }
.cb-grid { margin-top: 8px; }
.cb-card {
    position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--hp-line); color: inherit;
}
.cb-card-link { display: flex; flex-direction: column; flex: 1 1 auto; color: inherit; text-decoration: none; }
.cb-apply {
    display: flex; align-items: center; justify-content: center; margin: 0 12px 12px; min-height: 40px;
    border-radius: 10px; background: #1a3a6b; color: #fff; font-size: 15px; font-weight: 800; text-decoration: none;
}
.cb-apply:hover { background: #142c52; }
.cb-more-inline {
    margin-left: auto; border: 0; background: transparent; color: #c2410c; font: inherit; font-weight: 800;
    cursor: pointer; padding: 0;
}
.cb-more-inline[hidden] { display: none; }
.cb-card:hover { border-color: #1a3a6b; }
.cb-name { color: var(--hp-ink); font-size: 15px; line-height: 1.35; font-weight: 800; }
.cb-kind { color: var(--hp-muted); font-size: 12px; font-weight: 700; }
.cb-card-main .cb-badge { align-self: flex-start; margin-bottom: 4px; }
.cb-card-more { display: none !important; }
.cb-more { display: flex; margin: 16px 0 0; }
.cb-more button {
    width: 100%; min-height: 48px; border: 0; border-radius: 10px; cursor: pointer;
    background: #1a3a6b; color: #fff; font: inherit; font-size: 16px; font-weight: 800;
}
.cb-more button[hidden] { display: none; }
.cb-thumb { position: relative; display: block; height: 112px; background: #eef2f6; }
.cb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-card-main { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.cb-when { color: var(--hp-muted); font-size: 13px; }
.cb-time { color: var(--hp-ink); font-size: 16px; line-height: 1.25; font-weight: 800; }
.cb-line {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    color: var(--hp-ink); font-size: 13px; line-height: 1.4;
}
.cb-line em { margin-right: 6px; color: var(--hp-muted); font-style: normal; font-weight: 700; }
.cb-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.cb-badge { border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 700; }
.cb-badge-open { background: #e8f7ee; color: #0f7a3a; }
.cb-badge-low { background: #fff4d6; color: #8a5a00; }
.cb-badge-full { background: #eee; color: #555; }
.cb-thumb .cb-badge { position: absolute; top: 8px; left: 8px; }
.cb-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 14px 18px 18px; }
.cb-card-actions a { background: #fff; color: var(--hp-brand); border: 1px solid var(--hp-line); min-height: 44px; font-size: 15px; }
.cb-card-actions a:last-child { background: #f06f2e; color: #fff; border-color: #f06f2e; }
.cb-empty[hidden], [data-class-card][hidden] { display: none !important; }
.cb-empty a { color: #f06f2e; font-weight: 700; }

.hp-trust { --hp-brand: #142033; }
.hp-trust .hp-hero-photo { object-position: 62% 28%; }

.hp-near { --hp-brand: #9a3412; --hp-bg: #fff7f3; padding-bottom: 28px; }
.hp-near .hp-hero { min-height: 520px; }
.hp-near .hp-hero-photo { object-position: 72% 40%; }
.hp-near .cb-areas {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
    margin: 28px 0 22px;
}
.hp-near .cb-areas button {
    min-height: 88px; border-radius: 16px; align-items: flex-start; flex-direction: column; justify-content: center;
    padding: 14px 16px; background: #fff; color: var(--hp-ink); box-shadow: 0 10px 28px rgba(90,40,10,.06);
}
.hp-near .cb-areas button[aria-pressed="true"] { background: #9a3412; color: #fff; border-color: #9a3412; }
.hp-near .cb-areas button[aria-pressed="true"] small { color: rgba(255,255,255,.82); }
.hp-near .cb-areas strong { font-size: 20px; }
#timetable { scroll-margin-top: 108px; }
.hp-intro-plain { padding: 36px 0 0; }

.hp-squad { --hp-brand: #f06f2e; --hp-bg: #10141c; color: #f6f3ee; }
.hp-squad .hp-hero { min-height: 680px; }
.hp-squad .hp-hero-photo { object-position: center 42%; }
.hp-squad .hp-section-head p { color: #d5cdc3; }
.hp-squad .hp-kicker { color: #ffd2b8; }
.hp-comp { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; }
.hp-comp a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.hp-light {
    background: #f7f4ef; color: #142033; margin-top: 28px; padding: 8px 0 36px;
    --hp-ink: #142033; --hp-muted: #5c6b7a; --hp-bg: #f7f4ef; --hp-card: #fff; --hp-line: #e6ebf1; --hp-brand: #142033;
}
.hp-squad .hp-light .hp-kicker { color: #f06f2e; }

.hp-dock { display: none; }
@media (min-width: 800px) {
    .hp-places { grid-template-columns: 1fr 1fr; }
    .hp-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .hp-fee-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hp-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 799px) {
    .hp-wrap { width: min(1120px, calc(100% - 32px)); }
    .hp-switch { margin-top: 90px; }
    .hp-hero, .hp-squad .hp-hero { min-height: 560px; align-items: flex-end; }
    .hp-near .hp-hero { min-height: 400px; align-items: flex-start; }
    .hp-hero-copy { padding: 32px 0 28px; }
    .hp-near .hp-hero-copy { padding-top: 28px; }
    .hp-hero-shade, .hp-squad .hp-hero-shade {
        background: linear-gradient(180deg, rgba(8,14,26,.2) 0%, rgba(8,14,26,.28) 36%, rgba(8,14,26,.82) 100%);
    }
    .hp-near .hp-hero-shade {
        background: linear-gradient(180deg, rgba(8,14,26,.78) 0%, rgba(8,14,26,.42) 52%, rgba(8,14,26,.15) 100%);
    }
    .hp h1 { font-size: 34px; }
    .hp-doors { grid-template-columns: 1fr; }
    .hp-steps { grid-template-columns: 1fr 1fr; }
    .hp-step { min-height: 210px; }
    .cb-filters { grid-template-columns: 1fr 1fr; }
    .hp-near .cb-areas { grid-template-columns: 1fr 1fr; margin-top: 20px; }
    .hp-near { padding-bottom: 96px; }
    .hp-dock {
        position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: grid;
        grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 18px;
        background: rgba(255,247,243,.96); box-shadow: 0 10px 30px rgba(90,40,10,.18);
    }
    .hp-dock a { background: #9a3412; color: #fff; }
}
@media (min-width: 800px) {
    .hp-near .hp-dock { display: none; }
}
