.oi-page {
    --oi-ink: #112044;
    --oi-body: #203759;
    --oi-blue: #0b50da;
    --oi-border: #b6cdfd;
    --oi-tint: #e8f2fd;
    --oi-yellow: #ffbf15;
    background: #fff;
    color: var(--oi-ink);
    line-height: 1.65;
}

.shanghai-oi-page .header-actions .button { background: #1b59d8; color: #fff; }
.shanghai-oi-page .header-actions .button:hover { background: #1644bb; }
.shanghai-oi-page footer { background: #f5f9ff; color: #435573; border-top: 1px solid #cfdef4; }
.shanghai-oi-page footer :is(h3, a) { color: #112044; }
.shanghai-oi-page footer .footer-bottom { border-color: #cfdef4; color: #435573; }
.oi-page :is(a, summary):focus-visible { outline: 2px solid var(--oi-blue); outline-offset: 3px; }
.oi-wrap { width: min(1320px, calc(100% - 96px)); }
.oi-hero { background: var(--oi-tint); padding: 22px 0 44px; }
.oi-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 9px; color: var(--oi-body); font-size: .9rem; margin-bottom: 32px; }
.oi-breadcrumb a:hover, .oi-campus-address:hover { text-decoration: underline; }
.oi-hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 4.1vw, 3.75rem); font-weight: 850; letter-spacing: -.035em; text-wrap: balance; }
.oi-band h2 { margin: 0 0 17px; font-size: clamp(1.55rem, 3vw, 2.8rem); font-weight: 820; letter-spacing: -.025em; }
.oi-hero h1::after, .oi-band h2::after {
    content: '';
    width: 76px;
    height: 4px;
    border-radius: 4px;
    background: var(--oi-yellow);
    display: block;
    margin-top: 12px;
}
.oi-hero p { max-width: 65ch; margin-bottom: 4px; font-size: clamp(1rem, 1.55vw, 1.25rem); }
.oi-keep { white-space: nowrap; }
.oi-page p, .oi-page li, .oi-page dd { color: var(--oi-body); }
.oi-actions { display: flex; flex-wrap: wrap; gap: 13px 20px; align-items: center; margin-top: 22px; }
.oi-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .5em;
    min-width: 184px;
    min-height: 48px;
    padding: 9px 24px;
    border: 1px solid var(--oi-blue);
    border-radius: 999px;
    background: var(--oi-blue);
    color: #fff;
    text-align: center;
    font-weight: 750;
}
.oi-button:hover { background: #0b40ae; border-color: #0b40ae; }
.oi-button-outline { background: #fff; color: var(--oi-blue); }
.oi-button-outline:hover { background: #f5f8ff; color: #0b40ae; }
.oi-course .oi-button { border-radius: 8px; }
.oi-action-note { color: var(--oi-body); border-left: 1px solid var(--oi-border); padding-left: 18px; }
.oi-band { padding: clamp(24px, 3.2vw, 46px) 0; }
.oi-tint { background: var(--oi-tint); }
.oi-two, .oi-campus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.oi-card { border: 1px solid var(--oi-border); border-radius: 13px; background: #fff; padding: 20px 25px; min-width: 0; }
.oi-card h2 { font-size: clamp(1.22rem, 2vw, 1.85rem); margin-bottom: 10px; }
.oi-card h2::after { width: 64px; margin-top: 8px; }
.oi-card h3 { margin-bottom: 7px; font-size: clamp(1.06rem, 1.75vw, 1.4rem); }
.oi-card p { margin-bottom: 12px; }
.oi-choice h2::after { display: none; }
.oi-choice { display: flex; flex-direction: column; align-items: flex-start; }
.oi-choice .oi-link { margin-top: auto; }
.oi-icon { display: inline-flex; color: var(--oi-blue); min-height: 43px; margin-bottom: 9px; }
.oi-icon-code { position: relative; border: 2px solid currentColor; border-radius: 5px; padding: 5px 5px 0; align-items: center; font-size: 1.4rem; font-weight: 850; }
.oi-icon-code::after { content: ''; position: absolute; top: -2px; right: -2px; width: 13px; height: 13px; background: linear-gradient(45deg, var(--oi-tint) 41%, currentColor 44% 55%, #fff 59%); border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; border-bottom-left-radius: 3px; }
.oi-icon-steps { position: relative; align-items: flex-end; }
.oi-icon-steps i { display: block; width: 15px; height: 14px; border: 2px solid currentColor; background: var(--oi-tint); }
.oi-icon-steps i + i { border-left: 0; height: 22px; }
.oi-icon-steps i:last-child { height: 30px; }
.oi-icon-steps::after { content: '↗'; position: absolute; top: -9px; right: -10px; font-size: 1.3rem; font-weight: 850; line-height: 1; }
.oi-link { color: var(--oi-blue); font-weight: 750; text-underline-offset: .18em; }
.oi-records-entry { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; margin-top: 22px; padding: 12px 24px; border: 1px solid var(--oi-border); border-radius: 13px; background: #edf5ff; }
.oi-records-entry h2 { margin: 0; font-size: clamp(1.12rem, 1.7vw, 1.45rem); }
.oi-records-entry h2::after { display: none; }
.oi-records-entry p { margin: 3px 0 0; }
.oi-records-entry a { white-space: nowrap; }
.oi-records-icon { display: block; width: 29px; height: 36px; position: relative; border: 2px solid var(--oi-blue); border-radius: 4px; color: var(--oi-blue); }
.oi-records-icon::before { content: ''; position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; background: linear-gradient(45deg,#edf5ff 42%,currentColor 45% 55%,#edf5ff 58%); }
.oi-records-icon::after { content: ''; position: absolute; inset: 14px 5px auto; height: 2px; background: currentColor; box-shadow: 0 5px currentColor, 0 10px currentColor; }
.oi-link:hover { text-decoration: underline; }
.oi-link span { display: inline-block; }
.oi-table-frame { overflow: hidden; border: 1px solid var(--oi-border); border-radius: 12px; }
.oi-table { min-width: 0; width: 100%; table-layout: fixed; margin: 0; background: #fff; }
.oi-table td, .oi-table th { padding: 10px 19px; border-bottom: 1px solid var(--oi-border); text-align: left; }
.oi-table th + th, .oi-table td { border-left: 1px solid var(--oi-border); }
.oi-table thead { background: var(--oi-tint); }
.oi-table tbody th { font-weight: 550; color: var(--oi-body); }
.oi-table tbody tr:last-child > * { border-bottom: 0; }
.oi-curriculum th:first-child { width: 44%; }
.oi-curriculum td span { display: block; color: var(--oi-body); font-size: .92rem; }
.oi-campus-grid-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.oi-campus { padding: 15px 18px; }
.oi-campus-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.oi-campus-address { color: var(--oi-body); text-decoration: underline; font-size: .86rem; text-underline-offset: .17em; }
.oi-campus-note, .oi-related { margin: 12px 0 0; }
.oi-fit ul { margin: 12px 0 0; padding-left: 1.2em; }
.oi-fit li::marker { color: var(--oi-blue); }
.oi-observation { display: flex; align-items: center; gap: 14px; }
.oi-observation p { margin-bottom: 0; }
.oi-observation-icon {
    flex: 0 0 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f0f6ff;
    color: var(--oi-blue);
    font-weight: 800;
    font-size: 1.45rem;
    position: relative;
}
.oi-observation-file { font-size: 1rem; }
.oi-observation-file::before { content: ''; position: absolute; inset: 9px 13px; border: 2px solid currentColor; border-radius: 3px; }
.oi-observation-file::after { content: ''; position: absolute; top: 9px; right: 13px; width: 7px; height: 7px; background: linear-gradient(45deg, #f0f6ff 39%, currentColor 43% 61%, #f0f6ff 65%); border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.oi-observation-laptop::before { content: ''; position: absolute; inset: 11px 11px 17px; border: 2px solid currentColor; border-radius: 3px 3px 0 0; }
.oi-observation-laptop::after { content: ''; position: absolute; inset: 28px 7px auto; height: 6px; border: 2px solid currentColor; border-radius: 2px 2px 5px 5px; }
.oi-observation-layers::before, .oi-observation-layers::after { content: ''; position: absolute; width: 21px; height: 14px; border: 2px solid currentColor; border-radius: 2px; transform: translateX(-50%) rotate(-30deg) skewX(30deg); left: 50%; }
.oi-observation-layers::before { top: 20px; }
.oi-observation-layers::after { top: 13px; background: #f0f6ff; }
.oi-feedback { background: var(--oi-tint); }
.oi-feedback dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 12px 0 0; }
.oi-feedback dl > div { position: relative; }
.oi-feedback dl > div + div::before { content: '→'; position: absolute; right: calc(100% + 3px); top: 49%; color: var(--oi-blue); font-weight: 800; }
.oi-feedback dt { width: fit-content; position: relative; margin: 0 0 -5px 9px; z-index: 1; border-radius: 999px; padding: 1px 10px; background: #cfe2fc; font-weight: 750; }
.oi-feedback dl > :last-child dt { background: #ffe998; }
.oi-feedback dd { margin: 0; min-height: 76px; border: 1px solid var(--oi-border); border-radius: 9px; background: #f5f9ff; padding: 9px 12px; }
.oi-example-content { display: flex; align-items: center; gap: 17px; margin-top: 16px; }
.oi-example-content p { margin: 0; }
.oi-maze { flex: 0 0 38%; max-width: 216px; display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid #56719d; border-top: 1px solid #56719d; }
.oi-maze span { aspect-ratio: 1; display: grid; place-items: center; border-right: 1px solid #56719d; border-bottom: 1px solid #56719d; font-weight: 800; }
.oi-maze-start { background: #d5e7ff; }
.oi-maze-end { background: #fff0a9; }
.oi-maze-wall { background: #a9b3c2; }
.oi-example-note { margin-top: 10px; }
.oi-scenario { list-style: none; padding: 0; margin: 16px 0 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.oi-scenario li { position: relative; border-radius: 7px; padding: 9px 16px; border: 1px solid var(--oi-border); background: var(--oi-tint); color: var(--oi-ink); font-weight: 650; }
.oi-scenario li + li { margin-inline-start: 22px; }
.oi-scenario li + li::before { content: '→'; position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); color: var(--oi-blue); font-weight: 800; }
.oi-book { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 30px; }
.oi-book ul { margin: 0 0 8px; padding-left: 1.25em; }
.oi-book p { margin-bottom: 8px; }
.oi-faq details { border: 1px solid var(--oi-border); border-radius: 9px; margin-bottom: 8px; }
.oi-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; padding: 11px 17px; }
.oi-faq summary::-webkit-details-marker { display: none; }
.oi-faq summary::after { content: '＋'; color: var(--oi-blue); flex: 0 0 auto; }
.oi-faq details[open] summary::after { content: '−'; }
.oi-faq details p { padding: 0 17px 12px; margin: 0; }
.oi-course .oi-faq summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--oi-blue); border-bottom: 2px solid var(--oi-blue); transform: rotate(45deg); margin: -4px 7px 0 0; }
.oi-course .oi-faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }

.shanghai-oi-entry {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 20px;
    align-items: center;
    margin: 18px 0 0;
    min-height: 82px;
    padding: 15px 18px;
    border: 1px solid #b6cdfd;
    border-radius: 10px;
    background: #e8f2fd;
    color: #112044;
}
.shanghai-oi-entry strong { font-size: clamp(1.05rem, 1.65vw, 1.35rem); }
.shanghai-oi-entry a { color: #0b50da; font-weight: 750; }
.shanghai-oi-entry a:hover { text-decoration: underline; }
.guide-next.course-oi-next { background: #fff; }
.course-oi-next h2::after { content: ''; display: block; width: 68px; height: 4px; margin: 10px 0; background: #ffbf15; border-radius: 4px; }

@media (min-width: 961px) {
    .oi-hub .oi-hero { padding-block: 15px 16px; }
    .oi-hub .oi-breadcrumb { margin-bottom: 12px; }
    .oi-hub .oi-hero h1 { font-size: clamp(2.45rem, 3.85vw, 3.5rem); margin-bottom: 10px; }
    .oi-hub .oi-hero h1::after { margin-top: 9px; }
    .oi-hub .oi-hero p { font-size: 1.125rem; line-height: 1.54; }
    .oi-hub .oi-actions { margin-top: 14px; }
    .oi-hub .oi-choice-band { padding-block: 25px 27px; }
    .oi-hub .oi-choice { padding-block: 12px; }
    .oi-hub .oi-choice .oi-icon { height: 38px; min-height: 38px; margin-bottom: 6px; line-height: 1; }
    .oi-hub .oi-choice h2 { font-size: clamp(1.3rem, 1.85vw, 1.7rem); margin-bottom: 6px; }
    .oi-hub .oi-choice p { line-height: 1.52; margin-bottom: 7px; }
    .oi-hub .oi-records-entry { gap: 12px 31px; }
}

@media (max-width: 960px) {
    .oi-wrap { width: calc(100% - 64px); }
    .oi-campus-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .oi-card { padding-inline: 18px; }
}

@media (max-width: 670px) {
    .oi-records-entry { grid-template-columns: auto minmax(0, 1fr); margin-top: 12px; gap: 5px 12px; padding: 12px 14px; }
    .oi-records-entry a { grid-column: 2; white-space: normal; }
    .oi-records-entry p { font-size: .9rem; }
    .oi-wrap { width: calc(100% - 32px); }
    .oi-hero { padding: 14px 0 28px; }
    .oi-breadcrumb { margin-bottom: 19px; font-size: .82rem; }
    .oi-hero h1 { margin-bottom: 12px; }
    .oi-hero h1::after, .oi-band h2::after { margin-top: 8px; }
    .oi-actions { margin-top: 16px; gap: 10px; }
    .oi-button { min-width: 0; min-height: 44px; padding: 8px 13px; font-size: .94rem; }
    .oi-action-note { padding-left: 0; border-left: 0; font-size: .88rem; }
    .oi-two, .oi-book, .oi-feedback dl { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .oi-campus-grid { gap: 10px; }
    .oi-campus { padding: 12px; }
    .oi-campus-links { gap: 3px 12px; }
    .oi-campus-links .oi-link { font-size: .9rem; }
    .oi-card h2, .oi-card h3 { letter-spacing: normal; }
    .oi-table td, .oi-table th { padding: 8px 9px; }
    .oi-feedback dd { min-height: 0; }
    .oi-feedback dl > div + div::before { content: none; }
    .oi-maze { flex-basis: 108px; }
    .oi-scenario { gap: 5px; }
    .oi-scenario li { padding: 6px 7px; }
    .oi-scenario li + li { margin-inline-start: 14px; }
    .oi-scenario li + li::before { right: calc(100% + 3px); }
    .oi-book .oi-button { justify-self: start; }
    .shanghai-oi-entry { min-height: 0; padding: 12px 14px; }
}

@media (max-width: 360px) {
    .shanghai-oi-page .site-header .bar { column-gap: 8px; padding-inline: 12px; }
    .shanghai-oi-page .header-actions .button { min-width: 0; padding-inline: 10px; }
}
