/* ==========================================================================
   MBTI 人格測驗 — 頁級樣式（MBTI-01 視覺骨架）
   視覺基準：docs/tickets/mbti-ui-260925/design/index.html
             與 docs/tickets/member-center-ui-260923/design/index.html 同源 tokens
   - 所有選擇器以 body.mbti-page 限縮，僅本頁生效
   - 頂欄以頁面 scope override 呈現（共用的 js/header.js、css/header.css 零修改）
   - 本檔唯一使用頁為 mbti_test.html（文字核對見 docs/verification/mbti-ui-260925/MBTI-01）
   ========================================================================== */

/* ── 1. 基準 tokens 與頁面基礎 ────────────────────────────────── */
body.mbti-page {
    --mbti-bg: #F7F6F1;
    --mbti-paper: #FFFEFA;
    --mbti-ink: #213F36;
    --mbti-green: #234D40;
    --mbti-green-dark: #183C30;
    --mbti-green-soft: #E8EDE1;
    --mbti-green-tint: #F0F3E9;
    --mbti-light: #E7EEE5;
    --mbti-line: #E1E4D9;
    --mbti-muted: #5F6E63;
    --mbti-muted-2: #55645A;
    --mbti-orange: #BC6848;
    --mbti-sand: #F4E7D7;
    --mbti-focus: #C88F60;
    --mbti-font: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    --mbti-serif: 'Noto Serif TC', 'PingFang TC', 'Microsoft JhengHei', serif;

    margin: 0;
    background: var(--mbti-bg);
    color: var(--mbti-ink);
    font-family: var(--mbti-font);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
}

body.mbti-page *,
body.mbti-page *::before,
body.mbti-page *::after { box-sizing: border-box; }

body.mbti-page h1,
body.mbti-page h2,
body.mbti-page h3,
body.mbti-page h4,
body.mbti-page p { margin: 0; }

body.mbti-page ul { margin: 0; padding: 0; list-style: none; }
body.mbti-page a { color: inherit; }
body.mbti-page button { font: inherit; cursor: pointer; }
body.mbti-page button:disabled { cursor: not-allowed; opacity: .45; }
body.mbti-page [hidden] { display: none !important; }
body.mbti-page :focus-visible {
    outline: 3px solid var(--mbti-focus);
    outline-offset: 4px;
}

/* ── 2. 共用 header 頂欄（頁面 scope；不改 header.css/header.js） ── */
body.mbti-page .site-header {
    background: var(--mbti-paper);
    border-bottom: 1px solid var(--mbti-line);
    height: 84px;
    padding: 0 24px;
    gap: 18px;
}
body.mbti-page .site-logo {
    color: var(--mbti-green);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1.3px;
    min-width: 0;
    max-width: calc(100% - 150px); /* 長品牌名截斷，不擠壓返回入口 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.mbti-page .site-logo::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 3px;
    border-radius: 50%;
    background: var(--mbti-orange);
    vertical-align: 0.22em;
}
body.mbti-page .site-back {
    color: var(--mbti-green);
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 14px 0;
}
body.mbti-page .site-back svg { width: 16px; height: 16px; }
body.mbti-page .site-back:hover { color: var(--mbti-orange); }

/* ── 3. 頁面框架：1220px、雙欄、800/600 斷點 ─────────────────── */
body.mbti-page .page {
    max-width: 1220px;
    margin: 0 auto;
    padding: 34px 24px 24px;
}
body.mbti-page .page-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
body.mbti-page .eyebrow {
    font-size: 10px;
    letter-spacing: .16em;
    font-weight: 600;
    color: #6B7A66;
    text-transform: uppercase;
}
body.mbti-page .grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 27px;
    align-items: start;
}
body.mbti-page .main-col { min-width: 0; }
body.mbti-page .aside {
    min-width: 0;
    display: grid;
    gap: 20px;
    align-content: start;
}

/* 側欄引言（設計稿 note；靜態裝飾，非會員資料） */
body.mbti-page .note {
    position: relative;
    padding: 23px;
    border-radius: 14px;
    background: var(--mbti-sand);
}
body.mbti-page .note .eyebrow { color: #8B704C; }
body.mbti-page .note h3 {
    font-family: var(--mbti-serif);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.65;
    margin: 12px 0 10px;
}
body.mbti-page .note p {
    font-size: 12px;
    line-height: 1.9;
    color: #857357;
}

/* ── 4. 卡片 ─────────────────────────────────────────────────── */
body.mbti-page .card {
    background: var(--mbti-paper);
    border: 1px solid var(--mbti-line);
    border-radius: 17px;
    padding: 30px;
}

body.mbti-page .page-title {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--mbti-ink);
    margin-bottom: 8px;
}
body.mbti-page .page-subtitle {
    text-align: center;
    color: var(--mbti-muted);
    font-size: 12px;
    margin-bottom: 26px;
}

/* ── 5. 說明頁：intro、維度卡、季度說明與唯讀會員側欄 ────────── */
body.mbti-page .hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 225px;
    margin-bottom: 20px;
    padding: 36px 32px;
    overflow: hidden;
    border: 1px solid #DFE5D6;
    border-radius: 20px;
    background: #E8EDE1;
}
body.mbti-page .hero-copy { position: relative; z-index: 1; max-width: 440px; }
body.mbti-page .hero .greeting { color: #657E5E; font-size: 12px; }
body.mbti-page .hero h1 {
    margin: 7px 0 11px;
    font-size: 31px;
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: .02em;
}
body.mbti-page .hero h1 span { color: #6C8466; }
body.mbti-page .hero p { color: #71816B; font-size: 12px; line-height: 1.9; }
body.mbti-page .botanical {
    position: absolute;
    right: 20px;
    bottom: -15px;
    width: 228px;
    height: 235px;
    opacity: .9;
    pointer-events: none;
}
body.mbti-page .botanical svg { width: 100%; height: 100%; stroke: none; }
body.mbti-page .intro-metrics {
    display: flex;
    gap: 28px;
    margin-top: 25px;
    color: #607451;
    font-size: 12px;
}
body.mbti-page .intro-metrics strong {
    margin-right: 5px;
    font-size: 22px;
    font-weight: 500;
}
body.mbti-page .intro-details { padding: 28px; }
body.mbti-page .intro-details h2 { color: var(--mbti-ink); font-size: 18px; font-weight: 600; }
body.mbti-page .intro-copy {
    margin-top: 10px;
    color: #677961;
    font-size: 13px;
    line-height: 1.9;
}
body.mbti-page .dim-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 21px;
}
body.mbti-page .dimension { padding: 16px 12px; border-radius: 10px; background: #F0F3E9; }
body.mbti-page .dimension:nth-child(2) { background: #F4EBDD; }
body.mbti-page .dimension:nth-child(3) { background: #EEE9EF; }
body.mbti-page .dimension:nth-child(4) { background: #E7EDF0; }
body.mbti-page .dimension strong {
    display: block;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: .06em;
}
body.mbti-page .dimension small { display: block; margin-top: 7px; color: #60705E; font-size: 11px; }
body.mbti-page .locked-message {
    margin-top: 20px;
    padding: 17px 20px;
    border: 1px solid #E6D7BE;
    border-radius: 12px;
    background: #F6EADC;
    color: #856342;
    font-size: 13px;
    line-height: 1.9;
}
body.mbti-page .locked-message strong { font-weight: 700; }
body.mbti-page .locked-message p { margin-top: 3px; }
body.mbti-page .intro-bottom {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    padding-top: 19px;
    border-top: 1px solid var(--mbti-line);
}
body.mbti-page .intro-bottom p { flex: 1; color: #677961; font-size: 12px; line-height: 1.8; }
body.mbti-page .intro-bottom .btn { width: auto; max-width: 280px; margin: 0; padding: 14px 23px; }
body.mbti-page .identity { margin-top: 0; padding: 24px; }
body.mbti-page .identity h2 { margin-top: 10px; font-size: 15px; font-weight: 600; }
body.mbti-page .identity .input-group { margin: 20px 0 0; }
body.mbti-page .identity .input-group label { margin-bottom: 8px; }
body.mbti-page .identity .input-group input {
    margin-top: 0;
    background: #F6F6EF;
    color: #536A4A;
    font-size: 12px;
}
body.mbti-page .identity-note { margin-top: 18px; color: #677961; font-size: 12px; line-height: 1.8; }
body.mbti-page #questionText:focus,
body.mbti-page #resultType:focus,
body.mbti-page #loadingState:focus,
body.mbti-page #errorState:focus {
    outline: 3px solid var(--mbti-focus);
    outline-offset: 4px;
}

body.mbti-page .input-group { margin: 24px 0; }
body.mbti-page .input-group label {
    display: block;
    font-size: 11px;
    color: #6B7B64;
    margin-bottom: 8px;
}
body.mbti-page .input-group input {
    width: 100%;
    height: 42px;
    padding: 10px 12px;
    border: 1px solid #DCE2D3;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: #536A4A;
    background: var(--mbti-paper);
}
body.mbti-page .input-group input:focus {
    outline: none;
    border-color: var(--mbti-green);
}
body.mbti-page .identity .input-group input:focus-visible {
    outline: 3px solid var(--mbti-focus);
    outline-offset: 3px;
    border-color: var(--mbti-green);
}

/* ── 6. 按鈕 ─────────────────────────────────────────────────── */
body.mbti-page .btn {
    display: block;
    width: 100%;
    max-width: 280px;
    min-height: 46px;
    margin: 0 auto;
    padding: 12px 24px;
    background: var(--mbti-green);
    color: #FFFDF7;
    border: 1px solid var(--mbti-green);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: background .15s, border-color .15s;
}
body.mbti-page .btn:hover { background: var(--mbti-green-dark); border-color: var(--mbti-green-dark); }
body.mbti-page .btn:disabled { background: var(--mbti-green); border-color: var(--mbti-green); }
body.mbti-page .btn-secondary {
    background: var(--mbti-paper);
    color: #556B49;
    border-color: #D9E1D0;
}
body.mbti-page .btn-secondary:hover { background: #EDF2E6; border-color: #C6D4B8; }

/* ── 7. 作答頁：進度、題目卡、五點量表、題號格、上下題 ──────── */
body.mbti-page .section-kicker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
body.mbti-page .section-kicker h1 { font-size: 26px; font-weight: 500; }
body.mbti-page .tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 5px;
    background: #EDF1E8;
    color: #6D835D;
    font-size: 10px;
    white-space: nowrap;
}
body.mbti-page .tag::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}
body.mbti-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

body.mbti-page .progress-section { margin-bottom: 26px; }
body.mbti-page .progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
body.mbti-page .progress-label { font-size: 12px; color: var(--mbti-muted); }
body.mbti-page .progress-count { font-size: 12px; color: var(--mbti-green); font-weight: 600; }
body.mbti-page .progress-bar {
    height: 6px;
    border-radius: 9px;
    background: #E4E9DD;
    overflow: hidden;
}
body.mbti-page .progress-fill {
    height: 100%;
    background: #789169;
    border-radius: 9px;
    transition: width .2s;
}

body.mbti-page .question-card {
    background: var(--mbti-paper);
    border: 1px solid var(--mbti-line);
    border-radius: 17px;
    padding: 32px 32px 28px;
    margin-bottom: 24px;
}
body.mbti-page .qtop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #7C8B72;
    font-size: 11px;
}
body.mbti-page .dimension-tag {
    display: inline-block;
    background: #EDF1E8;
    color: #6D835D;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}
body.mbti-page .qtop-hint { flex-shrink: 0; }
body.mbti-page .question-number {
    margin-top: 40px;
    color: #9B8360;
    letter-spacing: .14em;
    font-size: 10px;
}
body.mbti-page .question-text {
    font-size: 26px;
    font-weight: 500;
    color: var(--mbti-ink);
    line-height: 1.6;
    margin: 15px 0 36px;
    overflow-wrap: anywhere;
}
body.mbti-page .scale-labels {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #5F7455;
}
body.mbti-page .scale-labels span { max-width: 45%; overflow-wrap: anywhere; }
body.mbti-page .scale-labels span:last-child { text-align: right; }
body.mbti-page .scale {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    border: 0;
    padding: 0;
    margin: 0;
    min-inline-size: 0;
}
body.mbti-page .scale-option { position: relative; display: block; cursor: pointer; }
body.mbti-page .scale-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}
body.mbti-page .scale-option span {
    display: grid;
    place-items: center;
    height: 65px;
    border: 1px solid #CBD5C2;
    border-radius: 10px;
    background: #FAFBF5;
    color: #6D8260;
    font-size: 22px;
    font-weight: 500;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
body.mbti-page .scale-option:hover span {
    border-color: var(--mbti-green);
    color: var(--mbti-green);
}
body.mbti-page .scale-option input:checked + span {
    background: var(--mbti-green);
    border-color: var(--mbti-green);
    color: #FFFDF7;
    box-shadow: 0 0 0 3px #DCE5D3;
}
body.mbti-page .scale-option input:focus-visible + span {
    outline: 3px solid var(--mbti-focus);
    outline-offset: 4px;
}
body.mbti-page .scale-help {
    display: flex;
    justify-content: space-between;
    margin-top: 13px;
    font-size: 10px;
    color: #6C7D61;
}
body.mbti-page .notice {
    padding: 15px 18px;
    margin-top: 18px;
    border: 1px solid #E6D7BE;
    border-radius: 12px;
    background: #F6EADC;
    color: #856342;
    font-size: 12px;
    line-height: 1.9;
}
body.mbti-page .notice.error { background: #F6E8E2; color: #955C48; border-color: #E5CDC2; }
body.mbti-page #validation:empty { display: none; }

body.mbti-page .question-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--mbti-line);
}
body.mbti-page .question-foot p { font-size: 11px; color: var(--mbti-muted); }
body.mbti-page .nav-buttons { display: flex; gap: 10px; flex-shrink: 0; }
body.mbti-page .nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid #D9E1D0;
    border-radius: 9px;
    background: var(--mbti-paper);
    color: #62774F;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: background .15s, border-color .15s, color .15s;
}
body.mbti-page .nav-btn:hover:not(:disabled) {
    background: #EDF2E6;
    border-color: #C6D4B8;
    color: var(--mbti-green);
}
body.mbti-page .nav-btn.primary {
    background: var(--mbti-green);
    border-color: var(--mbti-green);
    color: #FFFDF7;
}
body.mbti-page .nav-btn.primary:hover:not(:disabled) {
    background: var(--mbti-green-dark);
    border-color: var(--mbti-green-dark);
    color: #FFFDF7;
}

/* 側欄：作答足跡（完整題號格） */
body.mbti-page .overview { padding: 22px; }
body.mbti-page .overview h2 { font-size: 15px; font-weight: 600; }
body.mbti-page .overview-label { margin: 10px 0 16px; font-size: 11px; color: #718167; }
body.mbti-page .nav-dots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 16px;
}
body.mbti-page .nav-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    padding: 0;
    border: 1px solid #DCE1D2;
    border-radius: 8px;
    background: var(--mbti-paper);
    color: #748268;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
body.mbti-page .nav-dot:hover { border-color: var(--mbti-green); color: var(--mbti-green); }
body.mbti-page .nav-dot.answered {
    background: #E0E9D8;
    border-color: #CBD9C0;
    color: #3F6037;
}
body.mbti-page .nav-dot.current {
    background: var(--mbti-green);
    border-color: var(--mbti-green);
    color: #FFFDF7;
    outline: 2px solid #BA845F;
    outline-offset: 2px;
}
body.mbti-page .nav-dot:focus-visible {
    outline: 3px solid var(--mbti-focus);
    outline-offset: 4px;
}
body.mbti-page .legend { font-size: 10px; line-height: 2; color: #718167; }

/* ── 8. 結果頁：四碼、四維度圖與儲存回饋 ─────────────────────── */
body.mbti-page .result-header { text-align: center; margin-bottom: 26px; }
body.mbti-page .result-type {
    display: inline-block;
    background: var(--mbti-green);
    color: #FFFDF7;
    padding: 16px 40px;
    border-radius: 16px;
    font-size: 44px;
    font-weight: 600;
    letter-spacing: .08em;
    margin-bottom: 12px;
}
body.mbti-page .result-name {
    font-size: 22px;
    color: var(--mbti-green);
    font-weight: 600;
}
body.mbti-page .result-desc {
    font-size: 13px;
    color: var(--mbti-muted);
    margin-top: 6px;
}
body.mbti-page .result-bars { margin: 28px 0; }
body.mbti-page .result-bar-item { margin-bottom: 20px; }
body.mbti-page .result-bar-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 12px;
}
body.mbti-page .result-bar-label { color: #5D7054; }
body.mbti-page .result-bar-value { color: var(--mbti-green); font-weight: 600; }
body.mbti-page .result-bar-track {
    height: 9px;
    border-radius: 9px;
    background: #E6EADC;
    overflow: hidden;
}
body.mbti-page .result-bar-fill {
    height: 100%;
    background: #879F73;
    border-radius: 9px;
    transition: width .8s ease;
}
body.mbti-page .result-bar-trait {
    text-align: right;
    font-size: 11px;
    color: #78826C;
    margin-top: 6px;
}
body.mbti-page .type-desc {
    background: #F7F8F1;
    border: 1px solid var(--mbti-line);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}
body.mbti-page .type-desc h4 { color: var(--mbti-ink); font-size: 14px; margin-bottom: 10px; }
body.mbti-page .type-desc p { color: var(--mbti-muted-2); font-size: 13px; line-height: 1.8; }
body.mbti-page .save-section {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid var(--mbti-line);
}
body.mbti-page .result-hero { min-height: 225px; }
body.mbti-page .result-hero .result-type {
    display: block;
    margin: 8px 0 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--mbti-green);
    font-size: clamp(42px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .08em;
}
body.mbti-page .result-hero h1.result-name {
    margin: 7px 0 4px;
    color: var(--mbti-ink);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.5;
}
body.mbti-page .result-hero .result-desc {
    margin-top: 0;
    color: #71816B;
    font-size: 12px;
    line-height: 1.8;
}
body.mbti-page .result-dimensions { padding: 26px 28px; }
body.mbti-page .result-dimensions h2 { color: var(--mbti-ink); font-size: 17px; font-weight: 600; }
body.mbti-page .result-intro { margin-top: 8px; color: var(--mbti-muted); font-size: 11px; line-height: 1.8; }
body.mbti-page .result-bars { margin: 23px 0 0; }
body.mbti-page .result-bar-item:last-child { margin-bottom: 0; }
body.mbti-page .result-bar-header { align-items: baseline; }
body.mbti-page .result-bar-label { min-width: 0; overflow-wrap: anywhere; }
body.mbti-page .result-bar-value { flex-shrink: 0; white-space: nowrap; }
body.mbti-page .result-bar-trait { margin-top: 6px; }
body.mbti-page .result-actions h2 { color: var(--mbti-ink); }
body.mbti-page .result-personality {
    margin-top: 15px;
    color: var(--mbti-muted-2);
    font-size: 12px;
    line-height: 1.9;
}
body.mbti-page .result-actions .save-section h2 { margin: 0; font-size: 15px; line-height: 1.7; }
body.mbti-page .result-save-copy { margin: 11px 0 0; color: var(--mbti-muted); font-size: 11px; line-height: 1.8; }
body.mbti-page .result-actions .btn { max-width: none; }
body.mbti-page .result-save-btn { margin-top: 17px; }
body.mbti-page .result-resume-btn { margin-top: 11px; }
body.mbti-page .notice.pending { background: #F0F3E9; border-color: #D8E1D0; color: #536B50; }
body.mbti-page .notice.success { background: #E8EDE1; border-color: #CCD9C3; color: #3F6037; }
body.mbti-page #syncMsg { margin: 15px 0 0; overflow-wrap: anywhere; }

/* ── 9. 載入／錯誤狀態 ───────────────────────────────────────── */
body.mbti-page .status-card {
    max-width: 620px;
    min-height: 330px;
    margin: 60px auto;
    padding: 55px 35px;
    text-align: center;
}
body.mbti-page .loading {
    text-align: center;
    padding: 56px 20px;
    color: var(--mbti-muted);
}
body.mbti-page .loading svg {
    animation: mbti-spin 1s linear infinite;
    color: var(--mbti-green);
}
@keyframes mbti-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
body.mbti-page .error-state {
    text-align: center;
    padding: 56px 20px;
}
body.mbti-page .error-state svg { color: var(--mbti-orange); margin-bottom: 14px; }
body.mbti-page .error-state h3 { color: var(--mbti-ink); font-size: 18px; margin-bottom: 10px; }
body.mbti-page .error-state p { color: var(--mbti-muted); font-size: 13px; }
body.mbti-page .status-card .btn { margin-top: 23px; }

/* ── 10. 頁尾（保留 OpenJung Core (MIT License) 原始署名） ────── */
body.mbti-page .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    border-top: 1px solid var(--mbti-line);
    margin-top: 34px;
    padding-top: 20px;
    color: var(--mbti-muted);
    font-size: 10px;
}

/* ── 11. 響應式：1300／1050／800／600 斷點 ──────────────────── */
@media (min-width: 1268px) {
    body.mbti-page .page { padding-left: 0; padding-right: 0; }
    body.mbti-page .site-header { padding: 0 max(30px, calc((100vw - 1220px) / 2)); }
}
@media (max-width: 1300px) {
    body.mbti-page .grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; }
    body.mbti-page .botanical { width: 185px; right: 0; }
}
@media (max-width: 1050px) {
    body.mbti-page .grid { grid-template-columns: minmax(0, 1fr) 235px; gap: 18px; }
    body.mbti-page .question-text { font-size: 24px; }
    body.mbti-page .hero { padding: 30px; }
    body.mbti-page .hero h1 { font-size: 28px; }
    body.mbti-page .hero .botanical { width: 180px; right: 0; }
}
@media (max-width: 800px) {
    body.mbti-page .grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    body.mbti-page .aside { grid-template-columns: minmax(0, 1fr); }
    body.mbti-page .note { margin-top: 0; }
    body.mbti-page .hero h1 { font-size: 25px; }
    body.mbti-page .hero { padding: 28px 23px; }
    body.mbti-page .botanical { opacity: .45; width: 150px; }
    body.mbti-page .nav-dots { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    body.mbti-page .site-header { height: 68px; padding: 0 20px; gap: 14px; }
    body.mbti-page .site-logo {
        font-size: 24px;
        letter-spacing: -1px;
        max-width: calc(100% - 140px);
    }
    body.mbti-page .site-logo::after { width: 7px; height: 7px; }
    body.mbti-page .page { padding: 24px 17px 20px; }
    body.mbti-page .page-top { margin-bottom: 16px; }
    body.mbti-page .card,
    body.mbti-page .question-card { padding: 22px 18px; }
    body.mbti-page .hero { min-height: 260px; padding: 27px 22px; }
    body.mbti-page .hero-copy { max-width: 100%; }
    body.mbti-page .hero h1 { font-size: clamp(23px, 7.2vw, 28px); }
    body.mbti-page .hero p { font-size: 12px; }
    body.mbti-page .hero .botanical { width: 145px; right: -25px; opacity: .45; }
    body.mbti-page .intro-metrics { gap: 20px; }
    body.mbti-page .intro-metrics strong { font-size: 20px; }
    body.mbti-page .dim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.mbti-page .intro-bottom { align-items: stretch; flex-direction: column; }
    body.mbti-page .intro-bottom .btn { width: 100%; max-width: none; }
    body.mbti-page .page-title { font-size: 23px; }
    body.mbti-page .section-kicker { margin-bottom: 16px; }
    body.mbti-page .section-kicker h1 { font-size: 23px; }
    body.mbti-page .question-number { margin-top: 30px; }
    body.mbti-page .question-text { font-size: 22px; margin-bottom: 28px; }
    body.mbti-page .scale-labels { font-size: 12px; }
    body.mbti-page .scale { gap: 8px; }
    body.mbti-page .scale-option span { height: 54px; font-size: 20px; }
    body.mbti-page .question-foot { flex-wrap: wrap; gap: 15px; }
    body.mbti-page .question-foot .nav-buttons { width: 100%; }
    body.mbti-page .question-foot .nav-btn { flex: 1; }
    body.mbti-page .overview { padding: 22px 18px; }
    body.mbti-page .nav-dots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    body.mbti-page .nav-dot { height: 42px; font-size: 11px; }
    body.mbti-page .result-type { font-size: 36px; padding: 13px 30px; }
    body.mbti-page .result-bar-header { font-size: 11px; }
    body.mbti-page .result-dimensions { padding: 22px 18px; }
    body.mbti-page .result-hero .result-type { font-size: clamp(40px, 12vw, 48px); }
    body.mbti-page .result-hero h1.result-name { font-size: 23px; }
    body.mbti-page .footer { font-size: 9px; }
    body.mbti-page .status-card { min-height: 0; margin: 32px auto; padding: 35px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    body.mbti-page *,
    body.mbti-page *::before,
    body.mbti-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
