:root {
    --primary: #164e63;
    --accent: #f59e0b;
    --soft: #f8fafc;
    --muted: #e0f2fe;
    --text: #1f2937;
    --line: #dbe4ea;
    --white: #fff;
    --shadow: 0 14px 35px rgba(15, 23, 42, .12)
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.7
}

a {
    color: inherit
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 5vw;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line)
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none
}

.logo {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--primary);
    color: white
}

.site-nav {
    display: flex;
    gap: 18px
}

.site-nav a {
    text-decoration: none;
    font-weight: 700;
    color: #475569
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--primary)
}

.nav-toggle {
    display: none;
    border: 0;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    padding: 8px 12px
}

.hero {
    min-height: 72vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 36px;
    padding: 70px 8vw;
    background: linear-gradient(135deg, #f0fdfa, #eff6ff)
}

.hero h1,
.page-title h1 {
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.2;
    margin: 0 0 18px
}

.hero p {
    font-size: 1.1rem
}

.hero-card img {
    width: 100%;
    filter: drop-shadow(0 18px 26px rgba(15, 23, 42, .18))
}

.eyebrow {
    color: var(--accent);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 800;
    border: 0;
    cursor: pointer
}

.btn.ghost {
    background: white;
    color: var(--primary);
    border: 1px solid var(--line)
}

.btn.small {
    padding: 8px 14px
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.section {
    padding: 58px 8vw
}

.section.muted {
    background: var(--soft)
}

.section-head {
    max-width: 760px;
    margin-bottom: 24px
}

.section h2 {
    font-size: 2rem;
    margin: 0 0 20px
}

.grid {
    display: grid;
    gap: 22px
}

.grid.three {
    grid-template-columns: repeat(3, 1fr)
}

.grid.four {
    grid-template-columns: repeat(4, 1fr)
}

.card,
.notice {
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow)
}

.card h3 {
    margin-top: 0;
    color: var(--primary)
}

.page {
    min-height: 74vh
}

.page-title {
    padding: 58px 8vw 28px;
    background: linear-gradient(135deg, #ecfeff, #fff7ed)
}

.slider {
    position: relative;
    max-width: 1040px;
    margin: auto
}

.slides {
    overflow: hidden;
    border-radius: 28px
}

.slide {
    display: none;
    grid-template-columns: 1.2fr .8fr;
    background: white;
    border: 1px solid var(--line);
    box-shadow: var(--shadow)
}

.slide.active {
    display: grid
}

.slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    background: #dff
}

.slide div {
    padding: 38px
}

.slider-btn {
    position: absolute;
    top: 45%;
    z-index: 2;
    border: 0;
    background: white;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: var(--shadow);
    font-size: 30px;
    cursor: pointer
}

.prev {
    left: -20px
}

.next {
    right: -20px
}

.dots {
    text-align: center;
    margin-top: 15px
}

.dots button {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    border: 0;
    margin: 5px;
    background: #cbd5e1
}

.dots button.active {
    background: var(--primary);
    width: 26px
}

.people-list {
    display: grid;
    gap: 18px
}

.person {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px
}

.person img,
.assistant-card img {
    width: 110px;
    height: 110px;
    border-radius: 22px;
    object-fit: cover;
    background: #eef
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.tag {
    background: var(--muted);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .9rem
}

.assistant-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 22px;
    align-items: center;
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--line)
}

.course-grid,
.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px
}

.field-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px
}

.course {
    padding: 12px 14px;
    border: 1px dashed #94a3b8;
    border-radius: 14px;
    background: #fff;
    cursor: grab;
    margin: 8px 0
}

.course.taken {
    opacity: .55
}

.course strong {
    color: var(--primary)
}

.calculator {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 22px
}

.taken-zone,
.result-panel {
    background: white;
    border: 2px dashed #bae6fd;
    border-radius: 24px;
    padding: 24px;
    min-height: 260px
}

.taken-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.taken-pill {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--primary);
    color: white;
    cursor: pointer
}

.status {
    padding: 12px;
    border-radius: 14px;
    background: #fef3c7;
    font-weight: 800
}

.status.ok {
    background: #dcfce7;
    color: #166534
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.timeline div {
    background: white;
    border-radius: 22px;
    padding: 20px;
    border: 1px solid var(--line)
}

.timeline span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 900
}

.resource-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px
}

.site-footer {
    text-align: center;
    padding: 26px;
    background: #0f172a;
    color: white;
    margin-top: 30px
}

@media(max-width:850px) {
    .nav-toggle {
        display: block
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 70px;
        background: white;
        padding: 16px 5vw;
        flex-direction: column;
        border-bottom: 1px solid var(--line)
    }

    .site-nav.open {
        display: flex
    }

    .hero,
    .slide,
    .calculator,
    .assistant-card,
    .resource-layout {
        grid-template-columns: 1fr
    }

    .grid.three,
    .grid.four,
    .timeline {
        grid-template-columns: 1fr
    }

    .slide img {
        height: 260px
    }

    .person {
        grid-template-columns: 80px 1fr
    }

    .person img {
        width: 80px;
        height: 80px
    }
}

.people-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.teacher-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.teacher-card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.teacher-title {
    margin: 6px 0 0;
    color: #0f766e;
    font-weight: 700;
}

.teacher-body {
    margin-top: 18px;
    color: #374151;
    line-height: 1.8;
}

.label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
}

.course-block {
    margin-top: 16px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.9rem;
    font-weight: 600;
}