body { margin: 0; background: #fff; }
.mfs-home, .mfs-home * { box-sizing: border-box; font-family: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif; }
.mfs-home { color: #333; background: #fff; line-height: 1.7; }
.mfs-home a { color: inherit; text-decoration: none; }
.mfs-home h1, .mfs-home h2, .mfs-home h3, .mfs-home p, .mfs-home ul { margin: 0; }
.mfs-home ul { padding: 0; list-style: none; }
.mfs-wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.mfs-wrap-wide { width: min(1360px, calc(100% - 48px)); }
.mfs-home section { padding: 72px 0; scroll-margin-top: 88px; }
.mfs-tint { background: #f7f9fc; }
.mfs-home h2 { margin: 0 0 8px; text-align: center; color: #1a3a6b; font-size: clamp(28px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.mfs-home h3 { margin: 0 0 8px; color: #1a3a6b; font-size: 22px; font-weight: 800; }
.mfs-sub { margin: 0 0 36px; text-align: center; color: #666; }
.mfs-note { margin: 22px 0 0; text-align: center; color: #666; }
.mfs-notes { margin-top: 16px; color: #666; }
.mfs-notes p { margin: 0 0 6px; }

.mfs-nav {
    position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px;
    min-height: 72px; padding: 8px 20px; background: #fff; border-bottom: 1px solid #e6ebf1;
    overflow: visible;
    font-family: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
}
.mfs-nav, .mfs-nav * { box-sizing: border-box; font-family: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif; }
.mfs-nav ul { margin: 0; padding: 0; list-style: none; }
.mfs-nav a { color: inherit; text-decoration: none; }
.mfs-nav button { font-family: inherit; }
.mfs-nav-logo { display: flex; align-items: center; flex: 0 0 auto; order: 1; }
.mfs-nav-logo img { display: block; height: 48px; width: auto; }
.mfs-nav > nav { flex: 1 1 auto; min-width: 0; order: 2; }
.mfs-nav-toggle {
    display: none; flex: 0 0 auto; order: 4; min-height: 44px; padding: 8px 14px; border: 1px solid #1a3a6b;
    border-radius: 8px; background: #fff; color: #1a3a6b; font-weight: 800; cursor: pointer;
}
.mfs-nav-list { display: flex; align-items: center; justify-content: flex-end; gap: 2px; overflow: visible; }
.mfs-nav-list > li { position: relative; flex: 0 0 auto; }
.mfs-nav-list > li > a, .mfs-nav-group-btn {
    display: inline-flex; align-items: center; min-height: 40px; padding: 6px 10px;
    color: #1a3a6b; background: transparent; border: 0; font-weight: 700; font-size: 15px; cursor: pointer;
    white-space: nowrap;
}
.mfs-nav-group-btn::after {
    content: ""; width: 0; height: 0; margin-left: 6px;
    border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor;
}
.mfs-nav-list > li > a.mfs-nav-hot { background: #c2410c; color: #fff; border-radius: 8px; }
.mfs-nav-group > .mfs-sub {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; min-width: 240px;
    max-height: 70vh; overflow: auto; padding: 8px; background: #fff; border: 1px solid #e6ebf1; border-radius: 12px;
    box-shadow: 0 12px 32px rgba(18, 42, 82, .12);
}
.mfs-nav-group > .mfs-sub a, .mfs-nav-heading { display: block; padding: 8px 10px; color: #1a3a6b; font-size: 14px; white-space: normal; }
.mfs-nav-group > .mfs-sub a:hover { background: #f7f9fc; border-radius: 8px; }
.mfs-nav-heading { color: #66768a; font-size: 12px; font-weight: 800; }
.mfs-nav-group.is-open > .mfs-sub { display: block; }
.mfs-nav-social { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; order: 3; margin-left: 8px; }
.mfs-nav-social a {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    color: #111; border-radius: 8px;
}
.mfs-nav-social a:hover { background: #f3f4f6; }
.mfs-nav-social svg { width: 26px; height: 26px; display: block; }

.mfs-preview-note {
    margin: 0; padding: 8px 16px; text-align: center; background: #fff7ed; color: #9a3412; font-size: 13px; font-weight: 700;
}
.mfs-hero-swiper { position: relative; background: transparent; color: #fff; }
.mfs-hero-swiper .swiper-slide {
    position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; text-align: center;
}
.mfs-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mfs-hero-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.mfs-hero-copy { position: relative; z-index: 1; width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0; }
.mfs-spec { margin: 0 0 10px; color: #ffd2b8; font-weight: 700; }
.mfs-home .mfs-hero-swiper h1,
.mfs-home .mfs-hero-swiper .mfs-slide-title {
    margin: 0 0 16px; color: #fff; text-align: center; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.2; font-weight: 900;
}
.mfs-hero-copy p { max-width: 740px; margin: 0 auto 22px; font-size: 18px; }
.mfs-campaign { color: #ffe1cf; }
.mfs-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.mfs-about-actions { justify-content: flex-start; margin-top: 22px; }
.mfs-about-side { display: flex; flex-direction: column; justify-content: center; align-self: center; gap: 16px; min-width: 0; }
.mfs-about-side .mfs-btn { width: 100%; }
.mfs-home a.mfs-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 22px;
    border-radius: 10px; background: #c2410c; color: #fff; font-size: 17px; font-weight: 800;
}
.mfs-home a.mfs-btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.mfs-home a.mfs-btn-navy { background: #1a3a6b; color: #fff; }
.mfs-home a.mfs-btn-accent { background: #c2410c; color: #fff; }
.mfs-home .mfs-btn:focus-visible, .mfs-home .mfs-nav a:focus-visible, .mfs-home .mfs-nav button:focus-visible, .mfs-home .mfs-footer a:focus-visible, .mfs-wa:focus-visible {
    outline: 3px solid #ffb703; outline-offset: 2px;
}
.mfs-wa {
    position: fixed; right: 20px; bottom: 20px; z-index: 70;
    display: inline-flex; align-items: center; gap: 10px;
    height: 72px; padding: 0 22px; border-radius: 999px; box-sizing: border-box;
    background: #128C7E; color: #fff; font-size: 23px; font-weight: 800; line-height: 1;
    font-family: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
    text-decoration: none; white-space: nowrap; box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}
.mfs-wa svg { display: block; width: 26px; height: 26px; flex: 0 0 auto; }
@media (max-width: 799px) {
    .mfs-wa { right: 12px; bottom: 12px; height: 58px; padding: 0 17px; font-size: 21px; }
}
.mfs-stats { display: flex; justify-content: center; gap: 42px; margin-top: 42px; flex-wrap: wrap; }
.mfs-stat strong { display: block; color: #ffb703; font-size: 36px; font-weight: 800; line-height: 1.1; }
.mfs-stat span { font-size: 15px; }
.mfs-hero-swiper .swiper-button-next, .mfs-hero-swiper .swiper-button-prev {
    color: #fff; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, .35);
}
.mfs-hero-swiper .swiper-button-next:after, .mfs-hero-swiper .swiper-button-prev:after { font-size: 18px; }
.mfs-hero-swiper .swiper-pagination-bullet { background: #fff; opacity: .6; }
.mfs-hero-swiper .swiper-pagination-bullet-active { background: #ffb703; opacity: 1; }

.mfs-about { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; row-gap: 28px; align-items: center; text-align: left; }
.mfs-about img { width: 100%; height: auto; object-fit: contain; border-radius: 16px; background: #fff; }
.mfs-about-text { margin: 0 0 8px; }
.mfs-about-copy p, .mfs-about-text { margin: 0; }
.mfs-about-text { line-height: 1.8; }

.mfs-table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.05); }
.mfs-table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
.mfs-table th, .mfs-table td { padding: 16px; text-align: center; }
.mfs-table th { background: #1a3a6b; color: #fff; font-weight: 700; }
.mfs-table tr:nth-child(even) { background: #f8fafc; }
.mfs-table td:last-child { text-align: left; }

.mfs-home .hp { background: transparent; color: #142033; }
.mfs-home .cb-card-actions a:last-child { background: #c2410c; border-color: #c2410c; color: #fff; }
.mfs-home .cb-enroll, .mfs-home .cb-empty a, .mfs-home .cb-more-inline { color: #c2410c; }
.mfs-home a.cb-apply { color: #fff; }

.mfs-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mfs-service {
    display: flex; flex-direction: column; min-height: 240px; padding: 0 0 22px; background: #fff;
    border: 1px solid #e6ebf1; border-radius: 16px; overflow: hidden;
}
.mfs-service img { width: 100%; height: 150px; object-fit: cover; background: #eef2f6; }
.mfs-service h3, .mfs-service p, .mfs-home a.mfs-service-link { padding-left: 18px; padding-right: 18px; }
.mfs-service h3 { margin-top: 16px; }
.mfs-service p { margin: 0; color: #444; }
.mfs-home a.mfs-service-link { margin-top: auto; padding-top: 18px; color: #c2410c; font-weight: 800; }

.mfs-faq { max-width: 820px; margin: 0 auto; }
.mfs-faq details { background: #fff; margin: 12px 0; border-radius: 12px; padding: 18px 20px; border: 1px solid #eee; }
.mfs-faq summary { cursor: pointer; color: #1a3a6b; font-weight: 700; }
.mfs-faq p { margin: 10px 0 0; color: #444; white-space: pre-line; }

.mfs-footer { position: relative; padding: 56px 0 28px; background: #1c1c1c center / cover no-repeat; color: #fff; }
.mfs-footer.has-photo::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); }
.mfs-footer .mfs-wrap { position: relative; z-index: 1; }
.mfs-footer h2 { margin: 0 0 24px; color: #fff; text-align: left; font-size: 28px; }
.mfs-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 22px; }
.mfs-footer-title { margin: 0 0 8px; color: #ffb703; font-weight: 800; }
.mfs-footer a { color: #fff; }
.mfs-footer a:hover { text-decoration: underline; }
.mfs-footer li { margin: 6px 0; font-size: 14px; }
.mfs-footer-contact { margin-top: 28px; font-size: 14px; line-height: 1.8; }
.mfs-footer-contact p { margin: 0; }
.mfs-footer-copy { margin-top: 28px; font-size: 13px; color: rgba(255,255,255,.75); }

@media (max-width: 980px) {
    .mfs-services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1399px) {
    .mfs-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
    .mfs-nav-toggle { display: inline-flex; margin-left: 0; }
    .mfs-nav-social { margin-left: 0; justify-self: end; }
    .mfs-nav > nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 72px); overflow: auto; background: #fff; border-bottom: 1px solid #e6ebf1; box-shadow: 0 16px 32px rgba(18, 42, 82, .08); }
    .mfs-nav.is-open > nav { display: block; }
    .mfs-nav-list { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 8px 12px 16px; }
    .mfs-nav-list > li > a, .mfs-nav-group-btn { justify-content: space-between; width: 100%; font-size: 16px; }
    .mfs-nav-group.is-open > .mfs-sub { display: block; }
    .mfs-nav-group > .mfs-sub { position: static; width: 100%; min-width: 0; max-height: none; padding: 0 0 8px 12px; border: 0; box-shadow: none; }
}
@media (max-width: 799px) {
    .mfs-wrap, .mfs-wrap-wide, .mfs-hero-copy { width: min(1120px, calc(100% - 32px)); }
    .mfs-nav { gap: 4px; padding: 8px 10px; }
    .mfs-nav-logo { min-width: 0; }
    .mfs-nav-logo img { height: 36px; max-width: 118px; object-fit: contain; object-position: left center; }
    .mfs-nav-social { gap: 0; margin-left: auto; }
    .mfs-nav-social a { width: 32px; height: 36px; }
    .mfs-nav-social svg { width: 20px; height: 20px; }
    .mfs-nav-toggle { padding: 6px 10px; }
    .mfs-hero-swiper .swiper-slide { min-height: 560px; align-items: flex-end; }
    .mfs-hero-copy { padding: 36px 0 48px; }
    .mfs-about { grid-template-columns: 1fr; }
    .mfs-services { grid-template-columns: 1fr; }
    .mfs-stats { gap: 22px; }
}
