/* 学生端共用的页面底色、表单和触控状态。 */
.student-ui {
    --ink: #272d2c;
    --muted: #626964;
    --paper: #f7f6f2;
    --line: #dedfd7;
    --accent: #984021;
    --tint: #f7eadd;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    caret-color: var(--accent);
}
.student-ui ::selection { color: var(--ink); background: #f2d6c0; }
.student-ui :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.student-ui > .header { border-bottom: 1px solid var(--line); box-shadow: none; }
.student-ui .header-content { gap: 10px; padding: 6px 16px; min-height: 56px; }
.student-ui .header-content .logo { min-width: 0; color: var(--ink); }
.student-ui .header-content .logo h1 { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.student-ui .header-right { flex-shrink: 0; gap: 6px; }
.student-ui .btn-submit, .home-page .btn-login { background: var(--accent); box-shadow: none; min-height: 46px; }
.student-ui .header-content > a, .student-ui .header-right > a,
.student-ui .header-right > button { display: inline-flex; align-items: center; min-height: 44px; }
.home-page .header-content { max-width: 640px; }
.home-page .header-right .user-info { max-width: 7em; min-width: 0; }
.home-page .user-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-page .login-btn { background: var(--accent); }
.home-page .container { max-width: 640px; padding: 20px 16px; }
.home-page .profile-card, .home-page .target-card { box-shadow: none; border: 1px solid var(--line); }
.home-page .profile-main { margin: 0; gap: 12px; }
.home-page .profile-left, .home-page .profile-info { min-width: 0; overflow-wrap: anywhere; }
.home-page .profile-right { flex-shrink: 0; }
.home-page .main-entry, .home-page .tool-entry {
    width: 100%; font: inherit; text-align: left; cursor: pointer; border: 0;
}
.home-page .main-entry {
    position: relative; display: grid; align-content: end; gap: 10px; min-height: 152px;
    background: #873b24; color: #fff9f2; border-radius: 15px;
    padding: 26px 66px 25px 22px; margin: 0 0 16px;
}
.home-page .main-entry::after {
    content: ""; position: absolute; top: 0; right: 0; width: 28px; height: 28px;
    background: linear-gradient(45deg, #ad6046 50%, var(--paper) 51%); border-bottom-left-radius: 4px;
}
.home-page .entry-name, .home-page .entry-description { display: block; }
.home-page .main-entry .entry-name {
    font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
    font-size: clamp(24px, 6vw, 34px); font-weight: 700; line-height: 1.32; text-wrap: balance;
}
.home-page .main-entry .entry-description { color: #f7dfd1; font-size: 14px; line-height: 1.55; }
.home-page .entry-arrow { width: 9px; height: 9px; border-top: 1.6px solid; border-right: 1.6px solid; transform: rotate(45deg); flex: none; }
.home-page .main-entry .entry-arrow { position: absolute; right: 25px; bottom: 31px; width: 14px; height: 14px; }
.home-page .main-entry .entry-arrow::before {
    content: ""; display: block; width: 23px; border-top: 1.6px solid; transform: rotate(-45deg); transform-origin: right center; position: absolute; right: 0; top: -1px;
}
.home-page .entry-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; padding: 0 18px; }
.home-page .tool-entry { display: flex; align-items: center; gap: 10px; padding: 15px 3px; background: transparent; color: var(--ink); }
.home-page .tool-entry + .tool-entry { border-top: 1px solid var(--line); }
.home-page .entry-copy { flex: 1; min-width: 0; }
.home-page .tool-entry .entry-name { font-size: 17px; line-height: 1.45; font-weight: 650; }
.home-page .tool-entry .entry-description { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.home-page .tool-entry .entry-arrow { color: var(--muted); }
.home-page .entry-status { font-size: 12px; color: var(--accent); }
.home-page .tool-entry:focus-visible { outline-offset: -3px; }
.home-page .tool-entry:active { background: var(--paper); }
.home-page .home-disclaimer { margin-top: 14px; font-size: 14px; color: var(--muted); }
.home-page .home-disclaimer h2 { font-size: inherit; font-weight: 600; margin-bottom: 6px; }
.home-page .home-disclaimer p { line-height: 1.7; margin-bottom: 12px; overflow-wrap: anywhere; }
.score-page .scoring-rules summary { padding: 12px 0; cursor: pointer; min-height: 44px; }
.home-page .modal-header { background: #fff; color: var(--ink); padding: 22px 54px 0 22px; text-align: left; }
.home-page .modal-header h3 { color: var(--ink); }
.home-page .modal-header p { color: var(--muted); }
.home-page .modal-close { width: 44px; height: 44px; color: var(--ink); top: 8px; right: 8px; font-size: 28px; }
.home-page .modal-body { padding: 20px 22px; }
.home-page .modal-body input { font-size: 16px; }
.home-page .sms-btn { min-height: 46px; }
.home-page .sms-status:not(:empty) { color: #366344; font-size: 14px; margin: -8px 0 14px; }
.home-page .score-empty { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--accent); }

.profile-page .card, .score-page .card, .yimo-page .form-card,
.recommend-page .profile-card, .yimo-page .profile-card {
    border: 1px solid var(--line); border-radius: 14px; box-shadow: none; background: #fff;
}
.profile-page .step-bar { padding-bottom: 6px; margin-bottom: 5px; }
.profile-page .step { color: var(--muted); }
.profile-page .step.active { color: var(--accent); }
.profile-page .back-btn, .score-page .back-link {
    min-width: 44px; min-height: 44px; display: inline-flex; align-items: center;
    font-size: 14px; color: var(--accent); text-decoration: none;
}
.profile-page .form-group input, .profile-page .form-group select {
    padding-left: 12px; min-height: 46px; font-size: 16px; border: 1px solid #b9c1b9;
}
.profile-page .input-wrapper > i { display: none; }
.profile-page .search-select-option { padding: 12px; min-height: 44px; }
.profile-page .profile-logout { display: block; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; min-height: 44px; margin: 8px auto 0; cursor: pointer; }
.score-page .page-header { background: #fff; border-bottom: 1px solid var(--line); box-shadow: none; padding: 0 16px; }
.score-page .page-header::before, .score-page .page-header::after { content: none; }
.score-page .page-header-inner { max-width: 580px; margin: 0 auto; min-height: 54px; }
.score-page .header-title-text h1 { font-size: 17px; color: var(--ink); }
.score-page .wrap { max-width: 612px; padding: 0 16px; margin: 16px auto 24px; }
.score-page .score-summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--tint); border-radius: 14px; color: #78341e; padding: 15px 18px; margin-bottom: 16px;
}
.score-page .sum-label { display: block; font-size: 17px; font-weight: 650; }
.score-page .sum-progress { font-size: 13px; line-height: 1.65; color: #735142; }
.score-page .sum-value { font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.score-page .sum-value:not(.placeholder)::after { content: '分'; font-size: 14px; margin-left: 4px; }
.score-page .card { padding: 16px; margin: 0 0 12px; }
.score-page .card-header, .yimo-page .score-card-header { padding: 0; border: 0; margin: 0 0 12px; }
.score-page .card-header .card-icon, .yimo-page .score-card-icon { display: none; }
.score-page .card-title, .yimo-page .score-card-title { font-size: 17px; color: var(--ink); }
.score-page .card-subtitle { color: var(--muted); font-size: 13px; }
.score-page .score-list, .yimo-page .score-list { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.student-ui .score-item {
    display: flex; min-width: 0; min-height: 46px; padding: 0 9px; background: #fcfcfa;
    border: 1px solid #b9c1b9; border-radius: 8px; gap: 4px;
}
.student-ui .score-item label { flex: none; font-weight: 600; color: var(--ink); font-size: 14px; }
.student-ui .score-item input { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 8px 1px; font-size: 16px; font-variant-numeric: tabular-nums; }
.student-ui .score-item input::placeholder { color: var(--muted); font-size: 14px; }
.student-ui .score-item .unit { color: var(--muted); font-size: 12px; padding: 0; font-weight: 400; }
.student-ui .score-item:focus-within { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.student-ui .score-item.error { border-color: #b42318; background: #fff5f3; }
.student-ui .score-item input:focus-visible { outline: none; }
.score-page .wrap > .score-item, .yimo-page .form-card > .score-item { background: #fff; margin-bottom: 12px; padding: 0 12px; }
.score-page .scoring-rules { color: var(--muted); margin: 4px 0 12px; font-size: 14px; }
.score-page .scoring-rules .formula-text { padding: 2px 0 12px; color: var(--muted); }
.score-page .scoring-rules .formula-highlight { color: var(--ink); }
.score-page .btn-secondary { min-height: 44px; }
.student-ui .profile-actions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.student-ui .profile-actions .action-btn { min-height: 44px; background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: none; }
.recommend-page .profile-actions .edit-score-btn, .yimo-page .profile-actions .edit-score-btn { background: var(--tint); color: #78341e; border-color: transparent; }
.recommend-page .school-card .header { position: static; }
.recommend-page .result-summary { gap: 6px; box-shadow: none; border: 1px solid var(--line); }
.recommend-page .result-summary .summary-item { min-height: 44px; align-items: center; font-size: 14px; }
.recommend-page .result-summary a { text-decoration: none; }
.recommend-page .result-summary [hidden] { display: none; }
.recommend-page .result-block { scroll-margin-top: 70px; }
.recommend-page .school-info-item strong { font-variant-numeric: tabular-nums; }
.recommend-page .section-title.directional .rule-link { background: none; border: 0; min-height: 44px; text-decoration: underline; color: var(--accent); cursor: pointer; }
.recommend-page .sticky-guide { background: #fff; box-shadow: none; border-radius: 0; border-top: 1px solid var(--line); padding: 6px 16px calc(6px + env(safe-area-inset-bottom,0px)); }
.recommend-page .sticky-guide-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; box-shadow: none; padding: 0; }
.recommend-page .guide-offer strong, .recommend-page .guide-offer span { display: block; }
.recommend-page .guide-offer strong { font-size: 15px; color: var(--ink); }
.recommend-page .guide-offer span { margin-top: 2px; font-size: 12px; color: var(--muted); }
.recommend-page .sticky-guide-cta { width: auto; min-height: 44px; flex-shrink: 0; border: none; border-radius: 8px; background: var(--accent); font-size: 14px; padding: 8px 18px; box-shadow: none; cursor: pointer; }
.recommend-page .footer { padding-bottom: calc(72px + env(safe-area-inset-bottom,0px)); }
.recommend-page .unlock-modal-panel { max-height: 88vh; overflow: auto; animation: none; }
.recommend-page .unlock-modal-panel::after { content: none; }
.recommend-page .unlock-qr-image { animation: none; }
.recommend-page .result-empty { padding: 24px 16px; background: #fff; border-radius: 12px; text-align: center; color: var(--muted); }
.yimo-page .container { padding-bottom: 12px; }
.yimo-page .plan-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-underline-offset: 3px; }
.score-page .toast-error:not(.show), .estimate-page .toast-error:not(.show) { visibility: hidden; }
.compare-page .header-content .back-btn { min-width: 44px; font-size: 14px; background: none; color: var(--accent); }
.compare-page .school-item { width: 100%; font: inherit; text-align: left; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); background: #fff; }
.compare-page .school-info { display: block; min-width: 0; }
.compare-page .school-item.selected { background: #fbf4ee; }
.compare-page .search-box input { font-size: 16px; min-height: 44px; }
.compare-page .filter-tab, .compare-page .section-title-bar .close-compare { min-height: 44px; }
.compare-page .section-title-bar .close-compare { min-width: 44px; }
.compare-page .filter-tab.active, .compare-page .compare-btn.enabled { background: var(--accent); color: #fff; box-shadow: none; }
.compare-page .selection-hint { flex-wrap: wrap; }
.compare-page .badge-row:empty { display: none; }
.estimate-page .page-header { background: #fff; box-shadow: none; border-bottom: 1px solid var(--line); padding: 4px 16px; }
.estimate-page .page-header-inner { min-height: 48px; margin: auto; }
.estimate-page .page-header::before, .estimate-page .page-header::after, .estimate-page .score-input-card::before { content: none; }
.estimate-page .header-title-text h1 { color: var(--ink); font-size: 17px; }
.estimate-page .back-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--accent); }
.estimate-page .type-tab, .estimate-page .area-option span { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.estimate-page .type-tab.active, .estimate-page .btn-estimate { background: var(--accent); color: #fff; box-shadow: none; }
.estimate-page .area-option input:checked + span { color: var(--accent); background: var(--tint); border-color: var(--accent); }
.estimate-page .score-input-card { background: var(--tint); box-shadow: none; border-radius: 14px; }
.estimate-page .score-input-card h2, .estimate-page .score-unit { color: var(--ink); }
.estimate-page .score-hint { color: var(--muted); }
.estimate-page .score-input { border: 1px solid #b9c1b9; }
.estimate-page .score-input:focus { border-color: var(--accent); box-shadow: none; }
.directional-page .back-btn, .directional-page .header-right a { min-height: 44px; min-width: 44px; }
.directional-page .container > .header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.directional-page .back-btn, .plan-page .back-btn { font-size: 14px; }
.directional-page .btn, .plan-page .no-score-btn { background: var(--accent); min-height: 44px; color: white; box-shadow: none; }
.directional-page .login-tip { padding: 18px 12px; }
.plan-page .no-score-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
.plan-page .no-score-title { color: var(--ink); }
.plan-page .no-score-desc { color: var(--muted); }
.plan-page .plan-comparison-note, .home-page .tools-empty { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.plan-page .plan-comparison-note a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); }
.plan-page .cta-section { background: #fff; border-top: 1px solid var(--line); padding: 8px 16px calc(8px + env(safe-area-inset-bottom,0px)); }
.plan-page .unlock-modal-panel, .plan-page .unlock-modal-panel::after, .plan-page .unlock-qr-image { animation: none; }
.plan-page .unlock-modal-panel { max-height: 88vh; overflow: auto; }
@media (max-width: 899px) {
    .compare-page .header-content .logo { display: none; }
}
@media (max-width: 600px) {
    .home-page .modal-overlay { align-items: flex-end; padding: 0; }
    .home-page .modal { max-width: none; max-height: 92vh; max-height: 92dvh; overflow-y: auto; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom,0px); }
    .recommend-page .container { padding-bottom: 12px; }
    .yimo-page .form-card { padding: 14px; }
    .yimo-page .score-card { padding: 0; background: none; border: 0; box-shadow: none; margin: 16px 0; }
    .student-ui .container, .score-page .wrap { padding-left: max(14px,env(safe-area-inset-left)); padding-right: max(14px,env(safe-area-inset-right)); }
}
@media (max-width: 360px) {
    .score-page .score-list, .yimo-page .score-list { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .student-ui *, .student-ui *::before, .student-ui *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
