﻿/* AI 新秀計畫 UI v1：載入於 Porto custom.css 後，沿用 Bootstrap 4 與主題色。 */
.aistar-site {
    --aistar-ink: #16324b;
    --aistar-muted: #526779;
    --aistar-line: #dce7ef;
    background: #f6f9fc;
    color: var(--aistar-ink);
    font-family: "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
}
.aistar-site p { color: var(--aistar-muted); }
.aistar-site a:focus-visible, .aistar-site button:focus-visible, .aistar-site summary:focus-visible {
    outline: 3px solid #b45a00 !important;
    outline-offset: 4px;
}
.aistar-site #header .header-body { border-bottom: 1px solid var(--aistar-line) !important; box-shadow: 0 4px 24px rgba(22,50,75,.04); }
.aistar-site #header .header-top { background: #edf5fa; }
.aistar-site #header .header-nav-top a { color: #36556e; font-size: .85rem; }
.aistar-site #header .header-container { min-height: 100px; }
.aistar-brand { display: flex; align-items: center; gap: 18px; }
.aistar-site #header .header-logo { margin: 0; }
.aistar-brand-name { color: var(--aistar-ink); font-size: 1.65rem; font-weight: 800; line-height: 1.35; white-space: nowrap; }
.aistar-brand-name:hover { text-decoration: none; }
.aistar-brand-name small { display: block; color: var(--primary-300); font-size: .7rem; letter-spacing: .18em; font-weight: 700; }
.aistar-menu-icon { display: block; position: relative; width: 18px; height: 14px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.aistar-menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid currentColor; }
.aistar-site #header .header-nav-main nav > ul > li > a { font-size: 1rem; font-weight: 700; padding-left: 16px; padding-right: 16px; }
.aistar-site .main > .row { margin-left: 0; margin-right: 0; }
.aistar-site .page-header { background: linear-gradient(115deg, #163c59, var(--primary-300)) !important; border: 0; padding: 38px 0; }
.aistar-site .page-header .breadcrumb { background: transparent; margin: 0; }
.aistar-site .main > .container { padding-top: 32px; padding-bottom: 32px; }
.aistar-site .btn { border-radius: 6px; font-weight: 700; white-space: normal; }
.aistar-site .form-control { border-color: #c9d9e5; border-radius: 6px; }
.aistar-site .table { background: white; }
.aistar-site .table thead th { border-bottom-width: 1px; }
.aistar-site .aistar-info-page table.class-list-table thead th { background: #163c59; border-color: #2e607d; color: #fff; }
.aistar-site .aistar-info-page table.class-list-table a.btn.btn-primary { background: var(--primary-300); border-color: var(--primary-300); border-radius: 6px; box-shadow: none; color: #fff; }
.aistar-site .aistar-info-page table.class-list-table a.btn.btn-primary:hover,
.aistar-site .aistar-info-page table.class-list-table a.btn.btn-primary:focus { background: #00577d; border-color: #00577d; color: #fff; }
.aistar-site .aistar-info-page table.class-list-table a:not(.btn) { color: var(--primary-300); }
.aistar-site .achievement-card { border: 1px solid var(--aistar-line); border-radius: 12px; box-shadow: 0 6px 20px rgba(22,50,75,.05); }
.aistar-site #footer { margin-top: 0; border: 0; background: #eff6fa; }
.aistar-site #footer .aistar-footer-main { padding: 48px 0 42px; border-top: 1px solid #b8dce9; background: #e5f3f9 url('../img/_Global/Home/AIStar-footer-network.svg') center center / cover no-repeat; }
.aistar-footer-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(390px, 450px); gap: 30px; align-items: start; }
.aistar-footer-brand { display: block; padding-top: 8px; }
.aistar-footer-brand img { display: block; width: 160px; max-width: 100%; height: auto; }
.aistar-site #footer .aistar-footer-contact h2 { margin: 0 0 14px; color: var(--aistar-ink); font-size: 1.15rem; font-weight: 800; letter-spacing: 0; line-height: 1.5; }
.aistar-footer-contact p { margin: 0 0 7px; color: #355269; font-size: .9rem; line-height: 1.7; }
.aistar-footer-hours-label,.aistar-footer-hours-value { display: block; }
.aistar-site #footer .aistar-footer-contact a { color: var(--primary-300); text-decoration: underline; text-underline-offset: 2px; }
.aistar-footer-counter { margin-top: 16px !important; color: #597083 !important; font-size: .8rem !important; }
.aistar-footer-partner-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.aistar-footer-partner-row a { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 92px; padding: 9px; border: 1px solid #d5e3ec; border-radius: 8px; background: #fff; }
.aistar-footer-partner-row img { display: block; max-width: 100%; max-height: 70px; width: auto; height: auto; object-fit: contain; }
.aistar-footer-partner-row a:hover { border-color: var(--primary-300); box-shadow: 0 5px 14px rgba(22,50,75,.08); }
.aistar-footer-accessibility { display: inline-block; margin-top: 16px; }
.aistar-footer-accessibility img { display: block; width: 112px; max-width: 100%; height: auto; }
.aistar-site #footer .aistar-footer-bottom { padding: 21px 0; border-top: 0; background: #16324b; color: #e7f2f8; }
.aistar-footer-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.aistar-footer-legal { display: flex; flex-direction: column; gap: 3px; }
.aistar-site #footer .aistar-footer-legal span { color: #d4e6f0; font-size: .8rem; line-height: 1.55; }
.aistar-site #footer .aistar-footer-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; color: #fff; font-size: .95rem; font-weight: 700; white-space: nowrap; }
.aistar-site #footer .aistar-footer-nav a:hover { color: #9bdef4; }
.aistar-skip { position: absolute; left: 12px; top: -100px; z-index: 10000; background: white; padding: 12px 20px; }
.aistar-skip:focus { top: 12px; }
.aistar-hero { position: relative; overflow: hidden; background: linear-gradient(115deg, #edf7fd 0%, #f6f9fc 70%); border-bottom: 1px solid var(--aistar-line); padding: 64px 0; }
.aistar-application-hero { background-color: #c6e1ee; background-image: url('../img/_Global/Home/AIStar-hero-depth.svg'); background-position: center; background-size: cover; }
.aistar-eyebrow { display: block; color: var(--primary-300); font-size: .8rem; font-weight: 700; letter-spacing: .16em; margin-bottom: 16px; }
.aistar-hero h1 { color: var(--aistar-ink); font-size: 2.8rem; font-weight: 800; line-height: 1.4; letter-spacing: .02em; margin-bottom: 20px; }
.aistar-hero h1 em { color: var(--primary-300); font-style: normal; }
.aistar-hero p { font-size: 1.05rem; line-height: 1.9; max-width: 600px; }
.aistar-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.aistar-hero-actions .btn { padding: 13px 22px; }
.aistar-path { background: white; border: 1px solid var(--aistar-line); border-radius: 16px; padding: 30px; box-shadow: 0 16px 48px rgba(22,50,75,.07); }
.aistar-path h2 { font-size: 1.2rem; letter-spacing: 0; line-height: 1.5; font-weight: 700; margin-bottom: 24px; }
.aistar-path ol { list-style: none; margin: 0; padding: 0; }
.aistar-path li { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-top: 1px solid #e5edf3; }
.aistar-step { flex: 0 0 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: #edf7fc; color: var(--primary-300); border-radius: 50%; font-weight: 800; }
.aistar-path strong { display: block; font-size: 1rem; }
.aistar-path p { font-size: .875rem; margin: 4px 0 0; line-height: 1.7; }
.aistar-section { padding: 56px 0; }
.aistar-section h2 { color: var(--aistar-ink); font-size: 1.8rem; font-weight: 800; letter-spacing: 0; line-height: 1.5; }
.aistar-entry { display: block; height: 100%; background: white; border: 1px solid var(--aistar-line); border-radius: 10px; padding: 26px; color: var(--aistar-ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.aistar-site a.aistar-entry:hover, .aistar-site a.aistar-entry:focus { text-decoration: none; border-color: var(--primary); box-shadow: 0 8px 24px rgba(22,50,75,.07); }
.aistar-entry i { display: block; color: var(--primary-300); font-size: 1.5rem; margin-bottom: 18px; }
.aistar-entry h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.5; letter-spacing: 0; margin-bottom: 10px; }
.aistar-entry p { font-size: .9rem; line-height: 1.8; margin-bottom: 14px; }
.aistar-entry span { color: var(--primary-300); font-size: .875rem; font-weight: 700; }
.aistar-plan .plan-wrapper { padding: 40px 0 56px; }
.aistar-plan .plan-card { background: white; border: 1px solid var(--aistar-line); border-radius: 12px; padding: 32px; }
.aistar-plan .action-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; background: #f0f7fc; border: 1px solid var(--aistar-line); border-radius: 8px; padding: 24px; margin-bottom: 32px; }
.aistar-plan .action-box h2 { grid-column: 1 / -1; margin-bottom: 6px; font-size: 1.3rem; letter-spacing: 0; font-weight: 700; line-height: 1.5; }
.aistar-plan .action-box .btn { display: flex; align-items: center; justify-content: center; margin: 0; padding: 12px 18px; line-height: 1.5; }
.aistar-site .aistar-plan .action-box .aistar-resource-btn { border: 1px solid transparent; border-radius: 6px; box-shadow: none; color: #fff; font-weight: 700; }
.aistar-site .aistar-plan .action-box .aistar-resource-btn--form { background: #087b75; border-color: #087b75; }
.aistar-site .aistar-plan .action-box .aistar-resource-btn--zip { background: var(--primary-300); border-color: var(--primary-300); }
.aistar-site .aistar-plan .action-box .aistar-resource-btn--pdf { background: #a43d4d; border-color: #a43d4d; }
.aistar-site .aistar-plan .action-box .aistar-resource-btn:hover,
.aistar-site .aistar-plan .action-box .aistar-resource-btn:focus { color: #fff; filter: brightness(.88); }
.aistar-plan .section-title { display: block; scroll-margin-top: 110px; border-left: 4px solid var(--primary); padding: 12px 18px; margin: 32px 0 20px; background: #f0f7fc; font-size: 1.35rem; font-weight: 700; }
.aistar-plan .subsection-title { display: block; margin: 24px 0 12px; font-weight: 700; color: var(--primary-300) !important; }
.aistar-plan .plan-content-list { padding-left: 0; color: #354e62; line-height: 1.95; }
.aistar-plan .plan-content-list li { list-style: none; margin-bottom: 12px; }
.aistar-plan .plan-content-list ul { padding-left: 20px; }
.aistar-site .plan-nav { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--aistar-line); }
.aistar-site .plan-nav a { background: white; border: 1px solid var(--aistar-line); border-radius: 6px; padding: 8px 16px; color: var(--primary-300); font-weight: 700; }
.aistar-site #applicationDownloads, .aistar-site #planVideo { scroll-margin-top: 110px; }
.aistar-site .aistar-resource-drawer { position: fixed; top: 42%; right: 18px; z-index: 1050; }
.aistar-site .aistar-resource-drawer summary { display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 10px 14px; border: 1px solid #006699; border-radius: 8px; background: var(--primary-300); box-shadow: 0 7px 20px rgba(22,50,75,.2); color: #fff; cursor: pointer; font-size: .95rem; font-weight: 700; list-style: none; white-space: nowrap; }
.aistar-site .aistar-resource-drawer summary::-webkit-details-marker { display: none; }
.aistar-resource-symbol { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--primary-300); font-size: 1.1rem; font-weight: 800; }
.aistar-resource-chevron { display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(-135deg); transition: transform .2s; }
.aistar-resource-drawer[open] .aistar-resource-chevron { transform: rotate(45deg); }
.aistar-resource-panel { position: absolute; top: 0; right: calc(100% + 12px); width: 340px; max-height: min(80vh, 520px); overflow-y: auto; padding: 20px; border: 1px solid var(--aistar-line); border-radius: 12px; background: #fff; box-shadow: 0 14px 40px rgba(22,50,75,.18); }
.aistar-resource-panel h2 { margin: 0 0 4px; color: var(--aistar-ink); font-size: 1.1rem; font-weight: 800; letter-spacing: 0; line-height: 1.5; }
.aistar-resource-panel p { margin: 0 0 14px; font-size: .85rem; }
.aistar-resource-link { display: block; padding: 12px 10px; border-top: 1px solid var(--aistar-line); color: var(--primary-300); font-size: .9rem; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.aistar-resource-panel .aistar-resource-link--form { color: #087b75; }
.aistar-resource-panel .aistar-resource-link--zip { color: var(--primary-300); }
.aistar-resource-panel .aistar-resource-link--pdf { color: #a43d4d; }
.aistar-resource-link:hover { background: #f0f7fc; text-decoration: none; }
.aistar-resource-format { float: right; margin-left: 8px; color: var(--aistar-muted); font-size: .7rem; font-weight: 700; }
.aistar-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; background: #16324b; }
.aistar-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.aistar-diagram { background: white; border: 1px solid var(--aistar-line); border-radius: 12px; padding: 16px; overflow-x: auto; }
.aistar-diagram img { display: block; width: 100%; height: auto; }
.aistar-diagram-hint { display: none; }
.aistar-contact-section { padding: 52px 0 72px; }
.aistar-contact-card { padding: 36px; border: 1px solid var(--aistar-line); border-radius: 14px; background: #fff; box-shadow: 0 14px 38px rgba(22,50,75,.06); }
.aistar-contact-heading { margin-bottom: 28px; }
.aistar-contact-heading .aistar-eyebrow { margin-bottom: 6px; }
.aistar-contact-heading h2 { margin: 0 0 8px; color: var(--aistar-ink); font-size: 1.65rem; font-weight: 800; letter-spacing: 0; line-height: 1.4; }
.aistar-contact-heading p { margin: 0; }
.aistar-contact-content ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.aistar-contact-content > ul > li { min-width: 0; margin: 0; padding: 24px; border: 1px solid var(--aistar-line); border-left: 4px solid var(--primary); border-radius: 8px; background: #f8fbfd; }
.aistar-contact-content h4 { margin: 0; color: var(--aistar-ink); font-size: 1rem; font-weight: 700; letter-spacing: 0; line-height: 1.8; overflow-wrap: anywhere; }
.aistar-contact-content a { color: var(--primary-300); text-decoration: underline; text-underline-offset: 3px; }
.aistar-accesskey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.aistar-accesskey:focus { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
/* Shared content templates and controlled rich text formats. */
.aistar-site .page-header .aistar-page-title { display: inline-block; position: relative; margin: 0; color: #fff !important; font-size: 2rem; font-weight: 700; line-height: 1.45; letter-spacing: 0; }
.aistar-reading-width { max-width: 1040px; }
.aistar-lead { font-size: 1.05rem; line-height: 1.9; }
.aistar-muted { color: var(--aistar-muted); font-size: .9rem; }
.aistar-content-card { padding: 36px; border: 1px solid var(--aistar-line); border-radius: 14px; background: #fff; }
.aistar-detail-title { margin: 14px 0 20px; font-size: 1.8rem; font-weight: 800; line-height: 1.5; letter-spacing: 0; overflow-wrap: anywhere; }
.aistar-back { display: inline-flex; align-items: center; margin-bottom: 22px; color: var(--primary-300); font-weight: 700; }
.aistar-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding: 24px; border: 1px solid var(--aistar-line); border-radius: 12px; background: #fff; }
.aistar-filter > div { flex: 1 1 220px; }
.aistar-filter label { display: block; margin-bottom: 8px; font-weight: 700; }
.aistar-filter .btn { min-height: 40px; padding: 8px 16px; }
.aistar-result-count { margin: 26px 0 16px; font-weight: 700; }
.aistar-document-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.aistar-document-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--aistar-line); border-radius: 12px; background: #fff; }
.aistar-card-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--aistar-muted); font-size: .85rem; }
.aistar-card-meta span { color: var(--primary-300); }
.aistar-document-card h2 { margin: 14px 0; font-size: 1.25rem; font-weight: 700; line-height: 1.6; letter-spacing: 0; }
.aistar-document-card h2 a { color: var(--aistar-ink); }
.aistar-document-card p { font-size: .95rem; line-height: 1.8; }
.aistar-document-footer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; margin-bottom: 20px; font-size: .85rem; color: var(--aistar-muted); }
.aistar-empty { grid-column: 1/-1; width: 100%; padding: 48px 24px; border: 1px dashed #b8cedd; border-radius: 12px; background: #fff; text-align: center; }
.aistar-empty > i { margin-bottom: 18px; font-size: 2rem; color: var(--primary-300); }
.aistar-empty h2 { font-size: 1.2rem; letter-spacing: 0; }
.aistar-empty p { margin: 12px 0 0; }
.aistar-empty-inline { padding: 20px; border-radius: 8px; background: #f0f7fc; }
.aistar-current-version { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 24px; border: 1px solid #b9dbe8; border-radius: 10px; background: #edf7fc; }
.aistar-current-version > div { min-width: 0; }
.aistar-current-version strong { display: block; overflow-wrap: anywhere; }
.aistar-current-version p { margin: 10px 0 0; overflow-wrap: anywhere; }
.aistar-badge { display: inline-block; margin: 0 6px; padding: 3px 9px; border-radius: 20px; background: #d7eef7; color: #005b83; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.aistar-subtitle { margin: 32px 0 16px; font-size: 1.2rem; font-weight: 700; }
.aistar-version-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid var(--aistar-line); }
.aistar-version-row p { margin: 5px 0; font-size: .9rem; overflow-wrap: anywhere; }
.aistar-version-row .btn { flex-shrink: 0; }
.aistar-category-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0; }
.aistar-category-tabs a { padding: 8px 16px; border: 1px solid var(--aistar-line); border-radius: 24px; background: #fff; color: var(--primary-300); font-weight: 700; }
.aistar-category-tabs a.is-active { border-color: var(--primary-300); background: var(--primary-300); color: #fff; }
.aistar-faq { margin-bottom: 14px; border: 1px solid var(--aistar-line); border-radius: 12px; background: #fff; }
.aistar-faq summary { display: flex; align-items: center; gap: 14px; padding: 22px; list-style: none; font-weight: 700; cursor: pointer; }
.aistar-faq summary::-webkit-details-marker { display: none; }
.aistar-faq summary > span:nth-child(2) { flex: 1; }
.aistar-faq summary small { display: block; margin-bottom: 4px; color: var(--aistar-muted); font-size: .8rem; font-weight: 400; }
.aistar-faq summary i { color: var(--primary-300); transition: transform .2s; }
.aistar-faq[open] summary i { transform: rotate(180deg); }
.aistar-faq-symbol { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #e5f3f9; color: var(--primary-300); }
.aistar-faq-answer { margin: 0 22px; padding: 20px 0; border-top: 1px solid var(--aistar-line); }
.aistar-faq-contact { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 18px; border-radius: 8px; background: #f0f7fc; font-size: .9rem; }
.aistar-help-box { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 32px; padding: 24px; border: 1px solid var(--aistar-line); border-radius: 12px; background: #eaf5fb; }
.aistar-help-box h2 { margin: 0 0 6px; font-size: 1.15rem; letter-spacing: 0; }
.aistar-help-box p { margin: 0; font-size: .9rem; }
.aistar-help-box .btn { flex-shrink: 0; }
.aistar-contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.aistar-contact-card h3 { margin: 0 0 10px; font-size: 1.3rem; font-weight: 700; letter-spacing: 0; }
.aistar-contact-unit { margin-bottom: 24px; }
.aistar-contact-details { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 14px 18px; margin: 0; font-size: .95rem; }
.aistar-contact-details dt { color: var(--aistar-ink); }
.aistar-contact-details dt i { margin-right: 6px; color: var(--primary-300); }
.aistar-contact-details dd { margin: 0; overflow-wrap: anywhere; }
.aistar-footer-contact-item + .aistar-footer-contact-item { margin-top: 16px; }
.aistar-site #footer .aistar-footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.aistar-period-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); align-items: start; gap: 26px; }
.aistar-period-layout--single { grid-template-columns: minmax(0,1fr); max-width: 1120px; margin: 0 auto; }
.aistar-contact-grid--single { grid-template-columns: minmax(0,1fr); }
.aistar-plan-dates { margin-bottom: 22px; color: var(--aistar-muted); font-size: .95rem; }
.aistar-period-sidebar { padding: 20px; border: 1px solid var(--aistar-line); border-radius: 12px; background: #fff; }
.aistar-period-sidebar h2 { margin: 0 0 14px; font-size: 1rem; letter-spacing: 0; }
.aistar-period-sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.aistar-period-sidebar nav a { display: block; padding: 10px; border-radius: 6px; font-size: .9rem; }
.aistar-period-sidebar nav a.is-active { background: #e5f3f9; font-weight: 700; }
.aistar-period-sidebar dl { padding-top: 18px; margin: 18px 0 0; border-top: 1px solid var(--aistar-line); font-size: .85rem; }
.aistar-period-sidebar dt { color: var(--aistar-muted); }
.aistar-period-sidebar dd { margin-bottom: 14px; }
.aistar-period-section { margin: 30px 0; scroll-margin-top: 110px; }
.aistar-period-section > h2 { padding-bottom: 12px; border-bottom: 1px solid var(--aistar-line); font-size: 1.3rem; font-weight: 700; }
/* Third-wave clauses already include their own numbering in the content. */
.aistar-period-layout--single .aistar-period-section li { list-style: none; }
.aistar-plan .action-box .aistar-resource-link { display: flex; align-items: center; padding: 14px; border: 1px solid #b9dbe8; border-radius: 6px; background: #fff; text-decoration: none; }
.aistar-plan .action-box .aistar-resource-link--form { border-color: #bddbd5; color: #087b75; }
.aistar-plan .action-box .aistar-resource-link--pdf { border-color: #e3c8cf; color: #a43d4d; }
.aistar-plan .action-box .aistar-resource-format { margin-left: auto; padding-left: 10px; }
.aistar-richtext { color: #354e62; line-height: 1.95; overflow-wrap: anywhere; }
.aistar-richtext img { max-width: 100%; height: auto; }
.aistar-richtext table { display: block; max-width: 100%; overflow-x: auto; }
.aistar-richtext th,.aistar-richtext td { padding: 10px; border: 1px solid var(--aistar-line); }
.aistar-richtext h2,.aistar-richtext h3,.aistar-richtext h4 { color: var(--aistar-ink); letter-spacing: 0; line-height: 1.6; }
.rt-align-left { text-align: left; }.rt-align-center { text-align: center; }.rt-align-right { text-align: right; }.rt-align-justify { text-align: justify; }
.rt-emphasis { font-weight: 700; }.rt-color-primary { color: var(--primary-300) !important; }.rt-color-secondary { color: #087b75 !important; }.rt-color-muted { color: var(--aistar-muted) !important; }
.aistar-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.aistar-hero-title-multiline { white-space: pre-line; }
.aistar-hero-container { position: relative; }
.aistar-search-form { display: flex; gap: 12px; }
.aistar-search-form .form-control { height: auto; min-height: 48px; }
.aistar-search-form .btn { flex-shrink: 0; padding: 10px 20px; }
.aistar-search-result { padding: 24px 0; border-bottom: 1px solid var(--aistar-line); }
.aistar-search-result h2 { margin: 12px 0; font-size: 1.25rem; line-height: 1.6; }
.aistar-search-result h2 a { color: var(--aistar-ink); }
.aistar-search-result p { margin: 0; line-height: 1.85; }
.aistar-news-card { display: flex; align-items: flex-start; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--aistar-line); }
.aistar-news-date { flex: 0 0 70px; padding: 14px 8px; border-radius: 8px; background: #e5f3f9; color: var(--primary-300); text-align: center; }
.aistar-news-date strong { display: block; font-size: 1.7rem; line-height: 1.25; }.aistar-news-date span { font-size: .8rem; }
.aistar-news-content { flex: 1; min-width: 0; }.aistar-news-content h2 { margin: 10px 0; font-size: 1.25rem; line-height: 1.6; letter-spacing: 0; }.aistar-news-content h2 a { color: var(--aistar-ink); }.aistar-news-content p { margin-bottom: 12px; }
.aistar-news-more { flex: 0 0 30px; padding: 24px 0; color: var(--primary-300); }
.aistar-attachments { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--aistar-line); }.aistar-attachments h3 { font-size: 1.15rem; letter-spacing: 0; }.aistar-attachments ul { margin: 0; padding: 0; list-style: none; }.aistar-attachments li a { display: block; padding: 12px 0; }
.aistar-preview-banner { padding: 14px 18px; border: 1px solid #dfbf74; border-radius: 8px; background: #fff7df; color: #785915 !important; font-weight: 700; }
.aistar-site-preview-banner { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:18px 0; }
.aistar-site-preview-banner a { color:#785915; font-size:15px; text-decoration:underline; }
.aistar-site-preview-target { outline:3px solid #ce8c24 !important; outline-offset:4px; scroll-margin-top:150px; }
section.aistar-site-preview-target { outline-offset:-4px; }
.aistar-sitemap-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0; margin: 24px 0 36px; list-style: none; }
.aistar-sitemap-links a { display: block; padding: 12px 16px; border: 1px solid var(--aistar-line); border-radius: 6px; }
.aistar-keyboard-help { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 12px; }
.aistar-keyboard-help dt { font-weight: 700; color: var(--primary-300); }.aistar-keyboard-help dd { margin: 0; }
@media (max-width: 991px) { .aistar-period-layout { grid-template-columns: 1fr; }.aistar-period-sidebar nav { flex-direction: row; flex-wrap: wrap; }.aistar-period-sidebar dl { display: flex; gap: 12px; flex-wrap: wrap; } }
@media (max-width: 767px) { .aistar-document-grid,.aistar-contact-grid { grid-template-columns: 1fr; }.aistar-content-card { padding: 22px; }.aistar-version-row,.aistar-help-box { align-items: flex-start; flex-direction: column; }.aistar-site .page-header .aistar-page-title { font-size: 1.6rem; }.aistar-filter { padding: 18px; }.aistar-contact-details { grid-template-columns: 80px minmax(0,1fr); }.aistar-sitemap-links { grid-template-columns: 1fr; } }
@media (max-width: 575px) { .aistar-search-form { flex-wrap: wrap; }.aistar-search-form .btn { width: 100%; }.aistar-filter .btn { flex: 1; }.aistar-plan .action-box .aistar-resource-link { font-size: .85rem; }.aistar-detail-title { font-size: 1.4rem; } }
@media (max-width: 991px) {
    .aistar-footer-grid { grid-template-columns: 170px minmax(0, 1fr); gap: 24px; }
    .aistar-footer-partners { grid-column: 1 / -1; }
    .aistar-footer-partner-row { max-width: 570px; }
    .aistar-site #header .header-container { min-height: 82px; }
    .aistar-site #header .header-nav-main nav > ul > li > a { padding: 12px; }
    .aistar-hero { padding: 42px 0; }
    .aistar-hero h1 { font-size: 2.2rem; }
    .aistar-path { margin-top: 28px; }
}
@media (max-width: 767px) {
    .aistar-site .aistar-info-page table.class-list-table tr { border-color: var(--aistar-line); box-shadow: 0 3px 12px rgba(22,50,75,.05); }
    .aistar-site .aistar-info-page table.class-list-table td[data-label="專班名稱"] { color: var(--aistar-ink); }
    .aistar-site .aistar-info-page table.class-list-table .class-area-badge { background: var(--primary-300); }
    .aistar-site .aistar-info-page table.class-list-table td[data-label]:not([data-label=""])::before { color: var(--primary-300); }
    .aistar-site .aistar-info-page table.class-list-table .btn-toggle-detail { background: #edf7fc; border: 1px solid #c5dce9; color: var(--primary-300); }
}
@media (max-width: 575px) {
    .aistar-diagram-hint { display: block; width: max-content; margin: 0 0 10px; color: var(--aistar-muted); font-size: .875rem; }
    .aistar-diagram img { min-width: 900px; }
    .aistar-site #footer .aistar-footer-main { padding: 32px 0; }
    .aistar-footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .aistar-footer-brand { padding: 0; }
    .aistar-footer-brand img { width: 150px; }
    .aistar-footer-partners { grid-column: auto; }
    .aistar-footer-partner-row { gap: 6px; }
    .aistar-footer-partner-row a { min-height: 78px; padding: 5px; }
    .aistar-footer-partner-row img { max-height: 62px; }
    .aistar-footer-bottom-row { align-items: flex-start; flex-direction: column; gap: 12px; }
    .aistar-application-hero { background-position: 44% center; }
    .aistar-contact-section { padding: 28px 0 44px; }
    .aistar-contact-card { padding: 22px; }
    .aistar-contact-content ul { grid-template-columns: 1fr; gap: 12px; }
    .aistar-contact-content > ul > li { padding: 18px; }
    .aistar-site .aistar-resource-drawer { top: auto; right: 14px; bottom: 14px; }
    .aistar-resource-panel { top: auto; right: 0; bottom: calc(100% + 10px); width: min(340px, calc(100vw - 28px)); max-height: 62vh; }
    .aistar-brand { gap: 10px; }
    .aistar-site #header .header-logo img { width: 118px; height: auto; }
    .aistar-brand-name { font-size: 1.1rem; }
    .aistar-brand-name small { font-size: .6rem; letter-spacing: .06em; }
    .aistar-hero h1 { font-size: 1.85rem; }
    .aistar-section { padding: 36px 0; }
    .aistar-path, .aistar-plan .plan-card { padding: 20px; }
    .aistar-plan .plan-content-list ul { padding-left: 12px; }
    .aistar-plan .action-box { padding: 16px; }
    .aistar-plan .action-box { grid-template-columns: 1fr; }
    .aistar-plan .action-box .btn { margin: 0; }
    .aistar-site .page-header { padding: 26px 0; }
}
