:root {
    --primary: #a6192e;
    --primary-dark: #7d1022;
    --primary-deep: #5b0b17;
    --accent: #c6922e;
    --cta: #a6192e;
    --cta-hover: #7d1022;
    --text: #241b1d;
    --muted: #6f6265;
    --surface: #ffffff;
    --line: #e8dfe1;
    --container: 1280px;
    --transition: 200ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
img { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
.site-container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    z-index: 1000;
    left: 16px;
    top: -60px;
    padding: 10px 16px;
    color: #fff;
    background: var(--primary-deep);
    border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid rgba(198, 146, 46, .65);
    outline-offset: 2px;
}

.site-header { position: relative; z-index: 50; background: var(--surface); }
.utility-bar { height: 36px; color: #fff; background: var(--primary); font-size: 14px; }
.utility-inner { height: 36px; display: flex; align-items: center; justify-content: space-between; }
.utility-inner p { margin: 0; }
.utility-inner nav { display: flex; align-items: center; }
.utility-inner nav a { position: relative; padding: 7px 14px; }
.utility-inner nav a + a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 1px;
    height: 13px;
    background: rgba(255,255,255,.5);
}
.utility-inner a:hover { text-decoration: underline; }

.header-main {
    min-height: 112px;
    display: grid;
    grid-template-columns: 320px 520px 1fr;
    grid-template-rows: 84px 22px;
    align-items: center;
    column-gap: 32px;
}
.site-brand { grid-row: 1 / 3; display: inline-flex; align-items: center; width: 228px; height: 64px; }
.site-brand img { display: block; width: auto; max-width: 228px; height: auto; max-height: 64px; object-fit: contain; }
.site-brand-name { color: var(--primary); font-size: 26px; font-weight: 800; line-height: 1.2; }
.header-search { align-self: end; }
.search-tabs { display: flex; height: 32px; gap: 26px; }
.search-tabs button {
    position: relative;
    min-width: 44px;
    padding: 0 2px 8px;
    border: 0;
    color: #2b3445;
    background: transparent;
    cursor: pointer;
}
.search-tabs button.active { color: var(--primary-dark); font-weight: 700; }
.search-tabs button.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--primary);
}
.header-search form {
    height: 44px;
    display: grid;
    grid-template-columns: 38px 1fr 96px;
    align-items: center;
    border: 2px solid var(--primary);
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}
.search-icon { display: grid; place-items: center; color: #97a2b2; }
.search-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.header-search input[type="search"] { width: 100%; height: 40px; border: 0; outline: 0; color: var(--text); }
.header-search form > button {
    height: 42px;
    border: 0;
    color: #fff;
    background: var(--primary);
    font-size: 17px;
    letter-spacing: 3px;
    cursor: pointer;
    transition: background var(--transition);
}
.header-search form > button:hover { background: var(--primary-dark); }
.hot-searches {
    min-width: 0;
    align-self: end;
    display: grid;
    grid-template-columns: auto repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 2px 14px;
    color: var(--muted);
    font-size: 13px;
}
.hot-searches span { grid-row: 1 / span 2; color: #8c96a5; }
.hot-searches a { min-width: 0; min-height: 28px; display: flex; align-items: center; overflow: hidden; color: #3c526d; text-overflow: ellipsis; white-space: nowrap; }
.hot-searches a:hover { color: var(--primary-dark); }

.main-nav-wrap { height: 52px; border-bottom: 1px solid #edf1f5; background: #fff; }
.main-nav-inner { height: 52px; display: flex; align-items: stretch; }
.professional-nav-title {
    width: 232px;
    flex: 0 0 232px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    color: #fff;
    background: var(--primary);
    font-weight: 700;
}
.professional-nav-title svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.main-nav { min-width: 0; flex: 1; display: flex; align-items: stretch; justify-content: space-around; }
.main-nav a {
    position: relative;
    min-width: 112px;
    min-height: 52px;
    display: grid;
    place-items: center;
    padding: 0 18px;
    font-size: 17px;
    transition: color var(--transition), background var(--transition);
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 0;
    height: 3px;
    background: transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary-dark); font-weight: 700; background: #fcf6f7; }
.main-nav a.active::after { background: var(--primary); }

.home-hero {
    position: relative;
    height: 360px;
    overflow: hidden;
    background-color: #f8ecee;
}
.home-banner-swiper { width: 100%; height: 100%; }
.home-banner-swiper .swiper-slide { position: relative; overflow: hidden; background: #f8ecee; }
.home-banner-swiper .swiper-slide > a { position: relative; display: block; width: 100%; height: 100%; }
.home-banner-swiper .swiper-slide > img,
.home-banner-swiper .swiper-slide > a > img {
    position: absolute;
    top: 0;
    left: 50%;
    display: block;
    width: auto;
    height: 100%;
    max-width: none;
    transform: translateX(-50%);
}
.home-banner-swiper .swiper-slide > a:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.home-banner-swiper .swiper-pagination { bottom: 16px; }
.home-banner-swiper .swiper-pagination-bullet { width: 9px; height: 9px; background: #fff; opacity: .58; }
.home-banner-swiper .swiper-pagination-bullet-active { width: 24px; border-radius: 999px; opacity: 1; }
.home-banner-swiper .swiper-button-prev,
.home-banner-swiper .swiper-button-next {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    color: #fff;
    background: rgba(8, 37, 67, .42);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition), background var(--transition);
}
.home-banner-swiper:hover .swiper-button-prev,
.home-banner-swiper:hover .swiper-button-next,
.home-banner-swiper .swiper-button-prev:focus-visible,
.home-banner-swiper .swiper-button-next:focus-visible { opacity: 1; }
.home-banner-swiper .swiper-button-prev:hover,
.home-banner-swiper .swiper-button-next:hover { background: rgba(8, 37, 67, .72); }
.home-banner-swiper .swiper-button-prev:focus-visible,
.home-banner-swiper .swiper-button-next:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.home-banner-swiper .swiper-button-prev::after,
.home-banner-swiper .swiper-button-next::after { font-size: 18px; font-weight: 700; }
.hero-layout { position: relative; height: 360px; }
.home-hero-menu-layer {
    position: absolute;
    z-index: 20;
    inset: 0;
    pointer-events: none;
}
.home-hero-menu-layer .professional-menu { pointer-events: auto; }
.professional-menu {
    position: absolute;
    z-index: 20;
    left: 0;
    top: 0;
    width: 232px;
    height: 360px;
    color: #fff;
    background: rgba(17, 37, 57, .88);
    box-shadow: 10px 0 24px rgba(13, 46, 73, .08);
}
.professional-menu > ul { height: 100%; }
.professional-menu > ul > li { position: static; height: 40px; }
.professional-menu-item {
    height: 40px;
    display: grid;
    grid-template-columns: 26px 1fr 16px;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    font-size: 14px;
    transition: background var(--transition);
}
.professional-menu-item svg { width: 18px; height: 18px; fill: none; stroke: rgba(255,255,255,.82); stroke-width: 1.7; }
.professional-menu-item b { font-size: 23px; font-weight: 300; line-height: 1; }
.professional-menu > ul > li:hover > .professional-menu-item,
.professional-menu-item:focus { background: var(--primary); }
.professional-submenu {
    position: absolute;
    z-index: 30;
    left: 232px;
    top: 0;
    width: 700px;
    min-height: 360px;
    padding: 26px 30px;
    display: none;
    color: var(--text);
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(166,25,46,.18);
    box-shadow: 12px 12px 28px rgba(91,11,23,.14);
}
.professional-menu li:hover .professional-submenu,
.professional-menu li:focus-within .professional-submenu { display: block; }
.professional-submenu h2 { margin: 0 0 15px; padding-bottom: 12px; color: var(--primary-dark); border-bottom: 1px solid var(--line); font-size: 20px; }
.professional-submenu > div { display: flex; flex-wrap: wrap; gap: 10px 0; }
.professional-submenu a { position: relative; padding: 3px 14px; color: #334155; font-size: 14px; }
.professional-submenu a + a::before { content: ""; position: absolute; left: 0; top: 7px; width: 1px; height: 13px; background: #d6dde6; }
.professional-submenu a:hover { color: var(--primary-dark); text-decoration: underline; }

.hero-copy {
    height: 100%;
    margin-left: 232px;
    padding: 62px 48px 40px 78px;
    color: #4a1f28;
}
.hero-eyebrow { margin: 0 0 12px; color: var(--primary-dark); font-weight: 700; letter-spacing: 4px; }
.hero-copy h1 { margin: 0; color: #4a1722; font-size: 45px; line-height: 1.17; letter-spacing: 3px; }
.hero-copy h1 strong { color: var(--primary); font-weight: 800; }
.hero-copy > p:not(.hero-eyebrow) { margin: 14px 0 22px; color: #6f4d54; font-size: 18px; letter-spacing: 2px; }
.hero-actions { display: flex; gap: 14px; }
.hero-actions a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 4px;
    font-weight: 700;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.hero-primary { color: #fff; background: var(--primary); border: 1px solid var(--primary); }
.hero-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.hero-secondary { color: var(--primary-dark); background: rgba(255,255,255,.82); border: 1px solid rgba(125,16,34,.36); }
.hero-secondary:hover { background: #fff; border-color: var(--primary); }

.recommendation-section {
    width: min(var(--container), calc(100% - 32px));
    margin: 40px auto 46px;
}
.portal-section-heading {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 1px solid #e1b8c0;
}
.portal-section-heading h2 {
    position: relative;
    margin: 0;
    padding: 0 0 12px 17px;
    font-size: 26px;
    line-height: 1.25;
}
.portal-section-heading h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 5px;
    height: 28px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--primary), #c6922e);
}
.portal-section-heading > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #4a5d72;
    font-size: 14px;
}
.portal-section-heading > a:hover { color: var(--primary-dark); }
.portal-section-heading svg { width: 20px; height: 20px; fill: var(--accent); stroke: #fff; stroke-width: 1.2; }
.recommendation-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 20px; }
.ranking-panel {
    position: relative;
    min-height: 412px;
    overflow: hidden;
    padding: 22px 18px 18px;
    border: 1px solid #dfb7bf;
    border-radius: 6px;
    background: linear-gradient(145deg, #fbf0f2 0%, #fffdfd 52%, #f5e3e6 100%);
}
.ranking-panel::before,
.ranking-panel::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    pointer-events: none;
    transform: rotate(45deg);
}
.ranking-panel::before { left: -65px; top: -65px; background: rgba(166,25,46,.24); }
.ranking-panel::after { right: -65px; bottom: -65px; background: rgba(198,146,46,.20); }
.ranking-panel-title {
    position: relative;
    z-index: 1;
    width: 150px;
    min-height: 42px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    color: #fff;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), #c44758);
    font-weight: 700;
}
.major-ranking .ranking-panel-title { background: linear-gradient(135deg, var(--primary-deep), var(--primary)); }
.ranking-panel ol { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.ranking-panel li {
    min-height: 32px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    border-bottom: 1px dashed #dcc9cd;
    counter-increment: rank;
}
.ranking-panel li > span {
    width: 22px;
    height: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 2px;
    background: #718092;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.ranking-panel li:nth-child(-n+3) > span { background: var(--primary); }
.ranking-panel li:first-child > span { background: #b77d16; }
.ranking-panel li a { overflow: hidden; color: #30445a; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-panel li a:hover { color: var(--primary-dark); }
.recommendation-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.recommendation-card {
    min-width: 0;
    min-height: 197px;
    padding: 10px 10px 13px;
    text-align: center;
    border: 1px solid #edf2f6;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(73, 31, 40, .08);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.recommendation-card:hover {
    transform: translateY(-3px);
    border-color: #e5c6cc;
    box-shadow: 0 10px 25px rgba(91, 11, 23, .12);
}
.recommendation-cover {
    height: 112px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 4px;
    background: #faf0f2;
}
.recommendation-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.school-logo-cover { background: #fff; }
.school-logo-cover img { object-fit: contain; padding: 4px; }
.recommendation-card h3 {
    height: 42px;
    display: grid;
    place-items: center;
    margin: 8px 0 7px;
    overflow: hidden;
    color: #25384c;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}
.recommendation-card h3 a { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.recommendation-card h3 a:hover { color: var(--primary-dark); }
.card-action {
    min-width: 92px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    color: #fff;
    border: 1px solid var(--cta);
    border-radius: 18px;
    background: var(--cta);
    font-size: 13px;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.card-action:hover { color: #fff; border-color: var(--cta-hover); background: var(--cta-hover); }
.recommendation-empty {
    min-height: 150px;
    display: grid;
    place-items: center;
    color: var(--muted);
    border: 1px dashed #ddc2c8;
    border-radius: 6px;
    background: #f7fbfe;
}

.professional-section-list { margin: 8px 0 48px; }
.floor-navigation {
    position: fixed;
    z-index: 35;
    top: 50%;
    left: max(16px, calc((100vw - var(--container)) / 2 - 104px));
    width: 72px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border: 1px solid #e4d5d8;
    border-radius: 6px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 30px rgba(73, 31, 40, .13);
    transform: translateY(-50%);
    scrollbar-width: none;
}
.floor-navigation::-webkit-scrollbar { display: none; }
.floor-navigation-title {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(135deg, var(--primary), #c44758);
    font-size: 13px;
    font-weight: 700;
}
.floor-navigation a {
    position: relative;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 7px;
    color: #526477;
    border-bottom: 1px solid #edf2f6;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
    transition: color var(--transition), background var(--transition);
}
.floor-navigation a:last-child { border-bottom: 0; border-radius: 0 0 5px 5px; }
.floor-navigation a:hover,
.floor-navigation a:focus-visible,
.floor-navigation a.is-active { color: #fff; background: var(--primary); }
.floor-navigation a.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 18px;
    border-radius: 0 2px 2px 0;
    background: #fff;
    transform: translateY(-50%);
}
.floor-navigation a:focus-visible { outline: 3px solid rgba(166, 25, 46, .25); outline-offset: 2px; }
.recommendation-section,
.major-category-section { scroll-margin-top: 24px; }
.major-category-section {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto 18px;
    padding: 22px 24px 24px;
    border: 1px solid #edf2f6;
    border-radius: 6px;
    background: #f7fafc;
}
.major-category-section:nth-child(even) { background: #fff; }
.major-section-heading {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dfb7bf;
}
.major-section-heading h2 {
    position: relative;
    margin: 0;
    padding: 0 0 10px 16px;
    font-size: 24px;
}
.major-section-heading h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 5px;
    height: 26px;
    border-radius: 3px;
    background: var(--primary);
}
.major-section-heading > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #516477;
    font-size: 14px;
}
.major-section-heading > a span { color: var(--primary); font-size: 22px; }
.major-section-heading > a:hover { color: var(--primary-dark); }
.major-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 18px 0 14px;
}
.major-category-tabs a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    color: #314255;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #fff;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.major-category-tabs a:hover,
.major-category-tabs a.active { color: #fff; border-color: var(--primary); background: var(--primary); }
.major-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 30px; }
.major-news-item {
    min-width: 0;
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px dashed #d8e1e9;
}
.major-news-item::before { content: ""; width: 4px; height: 4px; flex: 0 0 auto; border-radius: 50%; background: #8db8d5; }
.major-news-item > a { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.major-news-item > a span { color: #8b9aab; }
.major-news-item > a strong { color: #283b50; font-weight: 500; }
.major-news-item > a:hover strong { color: var(--primary-dark); }
.major-news-item time { flex: 0 0 auto; color: #91a0b0; font-size: 12px; font-variant-numeric: tabular-nums; }
.major-section-empty {
    min-height: 66px;
    display: grid;
    place-items: center;
    color: #8190a0;
    border: 1px dashed #dfd0d3;
    border-radius: 4px;
    background: rgba(255,255,255,.7);
    font-size: 14px;
}

/* 首页后续区块的基础排版，后续设计时继续细化 */
main > .section, .school-hub-section { width: min(var(--container), calc(100% - 32px)); margin: 40px auto; }
.school-hub-toolbar, .section-heading, .section-heading.compact { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 0; font-size: 24px; }
.section-heading a { color: var(--primary-dark); }
.school-search { display: flex; }
.school-search input { min-height: 42px; padding: 0 14px; border: 1px solid var(--line); }
.school-search button { min-height: 42px; padding: 0 20px; border: 0; color: #fff; background: var(--primary); }
.school-card-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.school-card { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.school-card-cover { display: block; aspect-ratio: 16/10; overflow: hidden; background: #eef4f8; }
.school-card-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.school-card-body { padding: 16px; }
.school-card-body h3 { margin: 0 0 12px; font-size: 17px; }
.school-card-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--primary-dark); font-size: 13px; }
.school-directory-page { width: min(var(--container), calc(100% - 32px)); margin: 28px auto 60px; }
.school-filter-panel { overflow: hidden; border: 1px solid #dce8f1; border-radius: 7px; background: #fff; box-shadow: 0 8px 28px rgba(24, 72, 105, .06); }
.school-filter-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 22px 26px 18px; border-bottom: 1px solid #e6edf3; }
.school-filter-heading > div > span { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.school-filter-heading h1 { margin: 4px 0 0; color: #153049; font-size: 24px; line-height: 1.35; }
.school-directory-search { width: min(390px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 82px; }
.school-directory-search input { min-width: 0; min-height: 44px; padding: 0 13px; border: 1px solid #cbd8e2; border-right: 0; border-radius: 4px 0 0 4px; }
.school-directory-search input:focus { position: relative; outline: 3px solid rgba(166, 25, 46, .13); border-color: var(--primary); }
.school-directory-search button { min-height: 44px; color: #fff; border: 0; border-radius: 0 4px 4px 0; background: var(--primary); font-weight: 700; cursor: pointer; }
.school-directory-search button:hover { background: var(--primary-dark); }
.school-category-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 16px 26px; background: #f7fafc; }
.school-category-filters a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; color: #334a60; border: 1px solid transparent; border-radius: 4px; background: #fff; font-size: 14px; transition: color var(--transition), border-color var(--transition), background var(--transition); }
.school-category-filters a:hover, .school-category-filters a.is-active { color: #fff; border-color: var(--primary); background: var(--primary); }
.school-results-heading { min-height: 64px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 24px 4px 12px; border-bottom: 2px solid var(--primary); }
.school-results-heading h2 { margin: 0; color: #173149; font-size: 22px; }
.school-results-heading p { margin: 0; color: #718294; font-size: 14px; }
.school-results-heading strong { color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.school-directory-list { border-bottom: 1px solid #dce5ec; }
.school-directory-item { display: grid; grid-template-columns: 190px 390px minmax(0, 1fr); gap: 28px; align-items: center; min-height: 238px; padding: 28px 20px; border-bottom: 1px solid #dce5ec; background: #fff; transition: background var(--transition); }
.school-directory-item:last-child { border-bottom: 0; }
.school-directory-item:hover { background: #f9fcfe; }
.school-directory-visual { min-width: 0; }
.school-directory-cover { height: 140px; display: block; overflow: hidden; border-radius: 5px; background: #eef4f8; }
.school-directory-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform var(--transition); }
.school-directory-item:hover .school-directory-cover img { transform: scale(1.025); }
.school-directory-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.school-directory-actions a, .school-directory-actions button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; color: var(--primary-dark); border: 1px solid var(--primary); border-radius: 3px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; transition: color var(--transition), background var(--transition); }
.school-directory-actions a:hover, .school-directory-actions button:hover { color: #fff; background: var(--primary); }
.school-directory-actions button[data-message-modal-open] { color: #fff; border-color: var(--cta); background: var(--cta); }
.school-directory-actions button[data-message-modal-open]:hover { border-color: var(--cta-hover); background: var(--cta-hover); }
.school-directory-summary { min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.school-directory-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; }
.school-directory-tags span { min-height: 26px; display: inline-flex; align-items: center; padding: 0 9px; color: var(--primary-dark); border-radius: 3px; background: #faf0f2; font-size: 12px; }
.school-directory-tags .is-recommended, .professional-result-title .is-recommended { min-height: 24px; display: inline-flex; align-items: center; flex: 0 0 auto; padding: 0 8px; color: #fff; border-radius: 3px; background: #f07828; font-size: 12px; font-weight: 700; line-height: 1; }
.school-directory-summary h2 { margin: 8px 0 10px; color: #192f43; font-size: 21px; line-height: 1.45; }
.school-directory-summary h2 a:hover { color: var(--primary); }
.school-directory-summary > p { display: -webkit-box; overflow: hidden; margin: 0; color: #637487; font-size: 14px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.school-summary-link { min-height: 38px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--primary-dark); font-size: 13px; font-weight: 600; }
.school-summary-link span { transition: transform var(--transition); }
.school-summary-link:hover span { transform: translateX(3px); }
.school-directory-majors { min-width: 0; align-self: stretch; padding-left: 28px; border-left: 1px solid #dbe4eb; }
.school-directory-majors ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; }
.school-directory-majors li { position: relative; min-width: 0; padding-left: 10px; border-bottom: 1px dashed #e2e9ef; }
.school-directory-majors li::before { content: ""; position: absolute; left: 0; top: 21px; width: 3px; height: 3px; border-radius: 50%; background: #8aa1b4; }
.school-directory-majors li a { min-height: 43px; display: block; overflow: hidden; padding-top: 11px; color: #526578; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.school-directory-majors li a span { margin-right: 4px; color: var(--primary); }
.school-directory-majors li a:hover { color: var(--primary-dark); }
.school-majors-empty { margin: 20px 0; color: #8796a5; font-size: 13px; }
.school-directory-empty { padding: 80px 24px; border-bottom: 1px solid #dce5ec; text-align: center; }
.school-directory-empty h2 { margin: 0; color: #2b4257; font-size: 21px; }
.school-directory-empty p { margin: 10px 0 20px; color: #718294; }
.school-directory-empty a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 22px; color: #fff; border-radius: 4px; background: var(--primary); }
.professional-directory { width: min(var(--container), calc(100% - 32px)); margin: 28px auto 56px; }
.professional-breadcrumb { color: #667789; background: #f4f7fa; font-size: 14px; }
.professional-breadcrumb .site-container { min-height: 48px; display: flex; align-items: center; gap: 8px; }
.professional-breadcrumb a { color: #35536d; }
.professional-breadcrumb a:hover { color: var(--primary); }
.professional-breadcrumb b { color: #9aabba; font-weight: 400; }
.professional-filter-panel { padding: 24px 28px; border: 1px solid #dce8f1; border-radius: 8px; background: #fff; box-shadow: 0 8px 28px rgba(24, 72, 105, .07); }
.professional-filter-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding-bottom: 20px; border-bottom: 1px solid #e7eef4; }
.professional-filter-heading > div > span { color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: 2px; }
.professional-filter-heading h1 { margin: 5px 0 0; color: #132b42; font-size: 25px; line-height: 1.35; }
.professional-keyword-search { width: min(410px, 100%); display: grid; grid-template-columns: 1fr 88px; }
.professional-keyword-search input { min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid #cbd9e4; border-right: 0; border-radius: 4px 0 0 4px; font: inherit; }
.professional-keyword-search input:focus { position: relative; outline: 3px solid rgba(166, 25, 46, .13); border-color: var(--primary); }
.professional-keyword-search button { min-height: 44px; color: #fff; border: 0; border-radius: 0 4px 4px 0; background: var(--primary); font: inherit; font-weight: 700; cursor: pointer; }
.professional-keyword-search button:hover { background: var(--primary-dark); }
.professional-parent-filters, .professional-child-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.professional-parent-filters { padding-top: 0; }
.professional-parent-filters a, .professional-child-filters a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; color: #30465b; border-radius: 4px; font-size: 15px; transition: color var(--transition), background var(--transition); }
.professional-parent-filters a:hover, .professional-parent-filters a.is-active, .professional-child-filters a:hover, .professional-child-filters a.is-active { color: #fff; background: var(--primary); }
.professional-parent-filters a.filter-reset-link { margin-left: auto; color: #607488; border: 1px solid #c8d6e0; background: #fff; }
.professional-parent-filters a.filter-reset-link:hover { color: #fff; border-color: var(--primary-dark); background: var(--primary-dark); }
.professional-child-filters { margin-top: 16px; padding: 14px 16px; border-radius: 5px; background: #faf5f6; }
.professional-child-filters > span { margin-right: 4px; color: #75879a; font-size: 13px; font-weight: 700; }
.professional-child-filters a { min-height: 36px; padding-inline: 13px; font-size: 14px; }
.professional-directory-layout { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 28px; margin-top: 28px; }
.professional-results { min-width: 0; }
.professional-results-heading { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 4px 14px; border-bottom: 2px solid var(--primary); }
.professional-results-heading h2 { margin: 0; color: #142b40; font-size: 23px; }
.professional-results-heading p { margin: 0; color: #6f8091; font-size: 14px; }
.professional-results-heading strong { color: var(--primary-dark); }
.professional-result-card { display: grid; grid-template-columns: 224px minmax(0, 1fr) 112px; gap: 20px; align-items: center; min-height: 196px; padding: 24px 18px; border-bottom: 1px solid #dce5ec; background: #fff; }
.professional-result-card:hover { background: #f9fcfe; }
.professional-result-cover { height: 148px; display: block; overflow: hidden; border-radius: 5px; background: #eef4f8; }
.professional-result-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform var(--transition); }
.professional-result-card:hover .professional-result-cover img { transform: scale(1.025); }
.professional-result-content { min-width: 0; }
.professional-result-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.professional-result-content h3 { margin: 0; font-size: 21px; line-height: 1.4; }
.professional-result-content h3 a { color: #172b3e; }
.professional-result-content h3 a:hover { color: var(--primary); }
.professional-linked-school { display: flex; align-items: flex-start; gap: 5px; margin: 0 0 9px; color: #627589; font-size: 14px; line-height: 1.6; }
.professional-linked-school svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.professional-linked-school a { color: var(--primary-dark); }
.professional-result-summary { display: -webkit-box; overflow: hidden; margin: 0; color: #536679; font-size: 14px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.professional-detail-link { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; color: #ee6c2f; font-size: 13px; font-weight: 600; }
.professional-detail-link span { transition: transform var(--transition); }
.professional-detail-link:hover span { transform: translateX(3px); }
.professional-result-action { align-self: stretch; display: flex; align-items: center; justify-content: center; border-left: 1px solid #e4ebf1; }
.professional-result-action a { min-width: 92px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; color: #fff; border-radius: 22px; background: var(--cta); font-weight: 600; }
.professional-result-action a:hover { background: var(--cta-hover); }
.professional-empty { padding: 72px 24px; border-bottom: 1px solid #dce5ec; background: #fff; text-align: center; }
.professional-empty h3 { margin: 0; color: #253c51; font-size: 20px; }
.professional-empty p { margin: 10px 0 20px; color: #728395; }
.professional-empty a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 22px; color: #fff; border-radius: 4px; background: var(--primary); }
.professional-sidebar { display: grid; align-content: start; gap: 18px; }
.professional-side-panel { padding: 18px 18px 10px; border: 1px solid #dce6ee; border-radius: 6px; background: #fff; }
.professional-side-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #e8eef3; }
.professional-side-heading h2 { position: relative; margin: 0; padding-left: 12px; color: #17324a; font-size: 17px; }
.professional-side-heading h2::before { content: ""; position: absolute; left: 0; top: 2px; width: 4px; height: 20px; background: var(--primary); }
.professional-side-heading > a { min-height: 36px; display: inline-flex; align-items: center; color: #77899a; font-size: 12px; }
.professional-side-panel ul { margin: 4px 0 0; padding: 0; list-style: none; }
.professional-side-panel li { position: relative; padding-left: 11px; border-bottom: 1px dashed #e4ebf0; }
.professional-side-panel li:last-child { border-bottom: 0; }
.professional-side-panel li::before { content: ""; position: absolute; left: 0; top: 20px; width: 3px; height: 3px; border-radius: 50%; background: #7f92a3; }
.professional-side-panel li a { min-height: 42px; display: flex; align-items: center; color: #3c5267; font-size: 13px; line-height: 1.55; }
.professional-side-panel li a:hover { color: var(--primary); }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.content-breadcrumb { color: #667789; background: #f4f7fa; font-size: 14px; }
.content-breadcrumb .site-container { min-height: 48px; display: flex; align-items: center; gap: 8px; }
.content-breadcrumb a { color: #35536d; }
.content-breadcrumb a:hover { color: var(--primary); }
.content-breadcrumb b { color: #9aabba; font-weight: 400; }
.page-layout { width: min(var(--container), calc(100% - 32px)); margin: 32px auto 56px; }
.news-list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.list-panel { min-width: 0; }
.article-page-list { border-top: 2px solid var(--primary); }
.news-list-card { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; min-height: 224px; padding: 24px 0; border-bottom: 1px solid #dce4eb; }
.news-list-cover { height: 176px; display: block; overflow: hidden; border-radius: 3px; background: #edf4f8; }
.news-list-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform var(--transition); }
.news-list-card:hover .news-list-cover img { transform: scale(1.025); }
.news-list-content { min-width: 0; padding: 3px 12px 0 0; }
.news-list-content h2 { margin: 0; color: #152b3f; font-size: 22px; line-height: 1.45; }
.news-list-content h2 a:hover { color: var(--primary); }
.news-list-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: #8a99a8; font-size: 14px; font-variant-numeric: tabular-nums; }
.news-list-meta span { position: relative; }
.news-list-meta span::before { content: ""; position: absolute; left: -12px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: #aebbc7; transform: translateY(-50%); }
.news-list-content > p { display: -webkit-box; overflow: hidden; margin: 20px 0 0; color: #5d6f80; font-size: 15px; line-height: 1.85; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-list-empty { padding: 80px 24px; border-bottom: 1px solid #dce4eb; text-align: center; }
.news-list-empty h2 { margin: 0; color: #2f465a; font-size: 21px; }
.news-list-empty p { margin: 10px 0 0; color: #718294; }
.article-breadcrumb-current { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-detail-page { width: min(var(--container), calc(100% - 32px)); margin: 32px auto 64px; }
.article-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.article-detail-card { min-width: 0; overflow: hidden; border: 1px solid #dce6ee; border-radius: 6px; background: #fff; }
.article-detail-header { padding: 42px 46px 32px; border-bottom: 1px solid #e5ecf2; text-align: center; }
.article-detail-header h1 { max-width: 820px; margin: 0 auto; color: #152b3f; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.42; overflow-wrap: anywhere; }
.article-detail-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 18px; color: #8191a0; font-size: 13px; font-variant-numeric: tabular-nums; }
.article-detail-meta span, .article-detail-meta time { display: inline-flex; align-items: center; gap: 6px; }
.article-detail-meta svg { width: 16px; height: 16px; fill: none; stroke: #8ba1b4; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.article-featured-image { max-width: 820px; margin: 32px auto 0; padding: 0 34px; }
.article-featured-image img { width: 100%; height: auto; display: block; border-radius: 5px; }
.article-detail-body { min-height: 260px; margin: 0; padding: 24px 28px 30px; color: #344b60; font-size: 16px; line-height: 1.95; }
.article-detail-body p { margin: 0 0 1.25em; }
.article-detail-body h2, .article-detail-body h3 { position: relative; padding-left: 13px; }
.article-detail-body h2::before, .article-detail-body h3::before { content: ""; position: absolute; left: 0; top: .3em; width: 4px; height: 1.15em; border-radius: 2px; background: var(--primary); }
.article-sibling-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 34px; padding: 24px 0; border-top: 1px solid #e4ebf1; }
.article-sibling-nav a { min-width: 0; min-height: 78px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 12px 16px; border: 1px solid #e0e8ee; border-radius: 5px; background: #f8fafc; transition: border-color var(--transition), background var(--transition); }
.article-sibling-nav a:hover { border-color: #dfb7bf; background: #faf0f2; }
.article-sibling-nav span { color: #8192a1; font-size: 12px; }
.article-sibling-nav strong { overflow: hidden; color: #30485d; font-size: 14px; font-weight: 500; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.article-related { margin-top: 8px; padding: 28px 34px 34px; border-top: 8px solid #f3f6f8; }
.article-related-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--primary); }
.article-related-heading h2 { margin: 0; color: #1d3449; font-size: 20px; }
.article-related-heading > a { min-height: 36px; display: inline-flex; align-items: center; color: #728495; font-size: 13px; }
.article-related-heading > a:hover { color: var(--primary-dark); }
.article-related ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.article-related li { min-width: 0; border-bottom: 1px dashed #dfe7ed; }
.article-related li > a { min-height: 48px; display: flex; align-items: center; gap: 12px; color: #40566a; font-size: 14px; }
.article-related li > a::before { content: ""; width: 4px; height: 4px; flex: 0 0 auto; border-radius: 50%; background: #8eb9d5; }
.article-related li span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-related li time { flex: 0 0 auto; color: #95a4b2; font-size: 12px; font-variant-numeric: tabular-nums; }
.article-related li > a:hover { color: var(--primary-dark); }
.side-panel { display: grid; align-content: start; gap: 18px; }
.side-form, .side-qa { padding: 22px 20px; border: 1px solid #dce6ee; border-radius: 6px; background: #fff; }
.side-contact-kicker { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; }
.side-form h3, .side-qa h3 { margin: 4px 0 16px; color: #183148; font-size: 19px; }
.side-form label { display: grid; gap: 6px; margin-top: 12px; color: #41576b; font-size: 13px; }
.side-form input, .side-form select, .side-form textarea { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #ccd8e2; border-radius: 4px; background: #fff; font: inherit; }
.side-form textarea { min-height: 78px; resize: vertical; }
.side-form input:focus, .side-form select:focus, .side-form textarea:focus { outline: 3px solid rgba(166, 25, 46, .12); border-color: var(--primary); }
.side-contact-btn { width: 100%; min-height: 46px; margin-top: 16px; color: #fff; border: 0; border-radius: 4px; background: var(--primary); font-weight: 700; cursor: pointer; }
.side-contact-btn:hover { background: var(--primary-dark); }
.side-qa-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e6edf2; }
.side-qa-head h3 { margin-bottom: 12px; }
.side-qa-head a { min-height: 36px; display: inline-flex; align-items: center; color: #748697; font-size: 12px; }
.side-qa li { border-bottom: 1px dashed #e1e8ee; }
.side-qa li:last-child { border-bottom: 0; }
.side-qa li a { min-height: 42px; display: flex; align-items: center; color: #42586c; font-size: 13px; line-height: 1.55; }
.side-qa li a:hover { color: var(--primary); }
.cms-pagination { width: 100%; display: flex; justify-content: center; clear: both; margin: 32px auto 0; }
.cms-pagination > ul.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.cms-pagination > ul.pagination > li { display: block; margin: 0; padding: 0; }
.cms-pagination > ul.pagination > li > a,
.cms-pagination > ul.pagination > li > span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; color: #52677a; border: 1px solid #d3dee7; border-radius: 4px; background: #fff; font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1; transition: color var(--transition), border-color var(--transition), background var(--transition); }
.cms-pagination > ul.pagination > li > a:hover,
.cms-pagination > ul.pagination > li.active > span { color: #fff; border-color: var(--primary); background: var(--primary); }
.cms-pagination > ul.pagination > li.disabled > span { color: #9eacb8; border-color: #e0e7ed; background: #f3f6f8; cursor: not-allowed; }

/* 学校、专业独立详情页 */
.entity-detail-page { width: min(var(--container), calc(100% - 32px)); margin: 28px auto 64px; }
.entity-hero {
    position: relative;
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    min-height: 300px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid #dce8f1;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff 0%, #fcf7f7 64%, #f8ebee 100%);
    box-shadow: 0 10px 32px rgba(24, 72, 105, .07);
}
.entity-hero::after { content: ""; position: absolute; right: -90px; top: -130px; width: 330px; height: 330px; border: 50px solid rgba(166, 25, 46, .045); border-radius: 50%; pointer-events: none; }
.entity-cover { position: relative; z-index: 1; height: 238px; overflow: hidden; border-radius: 6px; background: #eaf2f7; }
.entity-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.entity-hero-content { position: relative; z-index: 1; min-width: 0; }
.entity-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.entity-tags a, .entity-tags span { min-height: 30px; display: inline-flex; align-items: center; padding: 0 12px; color: var(--primary-deep); border: 1px solid #dfb7bf; border-radius: 3px; background: #fbf0f2; font-size: 13px; font-weight: 600; }
.entity-tags a:hover { color: #fff; border-color: var(--primary); background: var(--primary); }
.entity-hero h1 { margin: 0; color: #142c42; font-size: clamp(28px, 2.5vw, 38px); line-height: 1.3; }
.entity-linked-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 15px 0 0; color: #52677b; font-size: 15px; }
.entity-linked-line svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.entity-linked-line a { color: var(--primary-dark); font-weight: 600; }
.entity-linked-line strong { color: var(--primary-dark); }
.entity-summary { max-width: 760px; margin: 14px 0 0; color: #5e7183; font-size: 15px; line-height: 1.8; }
.entity-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.entity-primary-action, .entity-phone-action { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border-radius: 4px; font: inherit; font-weight: 700; cursor: pointer; transition: color var(--transition), border-color var(--transition), background var(--transition); }
.entity-primary-action { color: #fff; border: 1px solid var(--cta); background: var(--cta); }
.entity-primary-action:hover { border-color: var(--cta-hover); background: var(--cta-hover); }
.entity-phone-action { color: var(--primary-deep); border: 1px solid #b9cbd9; background: #fff; }
.entity-phone-action:hover { color: #fff; border-color: var(--primary-deep); background: var(--primary-deep); }
.entity-view-count { margin: 12px 0 0; color: #8a99a8; font-size: 12px; font-variant-numeric: tabular-nums; }
.entity-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; margin-top: 28px; }
.entity-main-card, .entity-side-card { border: 1px solid #dce6ee; border-radius: 6px; background: #fff; }
.entity-main-card { min-width: 0; padding: 30px 34px 40px; }
.entity-section-title { margin-bottom: 24px; padding-bottom: 15px; border-bottom: 1px solid #e3ebf1; }
.entity-section-title h2 { position: relative; margin: 0; padding-left: 13px; color: #173149; font-size: 24px; }
.entity-section-title h2::before { content: ""; position: absolute; left: 0; top: 5px; width: 4px; height: 25px; border-radius: 2px; background: var(--primary); }
.cms-richtext { overflow-x: auto; color: #374d61; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.cms-richtext > :first-child { margin-top: 0 !important; }
.cms-richtext > :last-child { margin-bottom: 0 !important; }
.cms-richtext h2, .cms-richtext h3, .cms-richtext h4 { color: #173149; line-height: 1.5; }
.cms-richtext h2 { margin: 32px 0 14px; font-size: 23px; }
.cms-richtext h3 { margin: 26px 0 12px; font-size: 20px; }
.cms-richtext p { max-width: 100%; }
.cms-richtext img { display: block; width: auto !important; max-width: 100% !important; height: auto !important; margin: 20px auto; }
.cms-richtext table { width: 100% !important; min-width: 620px; border-collapse: collapse; }
.cms-richtext th, .cms-richtext td { padding: 10px 12px !important; border: 1px solid #dce4eb !important; }
.cms-richtext th { color: #43272d; background: #f8eff1; }
.cms-richtext a { color: var(--primary-dark); text-decoration: underline; }
.entity-empty-copy { padding: 48px 24px; color: #738496; border: 1px dashed #cbdce8; border-radius: 5px; background: #f8fbfd; text-align: center; }
.entity-sidebar { display: grid; gap: 18px; }
.entity-side-card { padding: 20px 18px; }
.entity-side-card > h2, .entity-side-heading h2 { position: relative; margin: 0; padding-left: 12px; color: #18334b; font-size: 18px; }
.entity-side-card > h2::before, .entity-side-heading h2::before { content: ""; position: absolute; left: 0; top: 3px; width: 4px; height: 20px; border-radius: 2px; background: var(--primary); }
.entity-side-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #e7edf2; }
.entity-side-heading > a { min-height: 36px; display: inline-flex; align-items: center; color: #718395; font-size: 12px; }
.entity-side-heading > a:hover { color: var(--primary); }
.entity-school-card { display: grid; gap: 10px; margin-top: 16px; }
.entity-school-card img { width: 100%; height: 132px; display: block; object-fit: cover; border-radius: 4px; background: #eef4f8; }
.entity-school-card strong { color: #21394f; font-size: 16px; line-height: 1.55; }
.entity-school-card > span { color: var(--primary-dark); font-size: 13px; }
.entity-school-card > span b { display: inline-block; transition: transform var(--transition); }
.entity-school-card:hover > span b { transform: translateX(3px); }
.entity-related-list { margin-top: 4px; }
.entity-related-list li { border-bottom: 1px dashed #e1e8ee; }
.entity-related-list li:last-child { border-bottom: 0; }
.entity-related-list a { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #41576b; font-size: 14px; line-height: 1.55; }
.entity-related-list a span { flex: 0 0 auto; color: #94a6b5; font-size: 20px; }
.entity-related-list a:hover { color: var(--primary); }
.entity-major-list { max-height: 486px; overflow-y: auto; }
.entity-side-empty { margin: 16px 0 2px; color: #8191a0; font-size: 13px; }
.article-panel, #notice { padding: 22px; border: 1px solid var(--line); }
.news-list { margin-top: 16px; }
.news-list li { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.news-list time { flex: 0 0 auto; color: var(--muted); }
.footer {
    position: relative;
    margin-top: 56px;
    color: #27384a;
    background: #f4f6f8;
}
.footer-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-block: 44px 36px; }
.footer-column { min-width: 0; padding: 0 30px; border-left: 1px solid #d7dde3; }
.footer-column:first-child { padding-left: 0; border-left: 0; }
.footer-column:last-child { padding-right: 0; }
.footer-column h2 { margin: 0 0 14px; color: #192b3d; font-size: 17px; font-weight: 500; line-height: 1.5; }
.footer-navigation nav { display: grid; }
.footer-navigation nav a { min-height: 44px; display: flex; align-items: center; color: #455668; font-size: 14px; transition: color var(--transition), transform var(--transition); }
.footer-navigation nav a:hover { color: var(--primary-dark); transform: translateX(3px); }
.footer-contact { text-align: center; }
.footer-phone-icon { width: 48px; height: 48px; margin: 2px auto 8px; fill: none; stroke: var(--accent); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.footer-phone-list { display: grid; justify-items: center; gap: 2px; }
.footer-phone-list a { min-height: 44px; display: inline-flex; align-items: center; color: #24374a; font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.25; }
.footer-phone-list a:hover { color: var(--primary-dark); }
.footer-contact-details { display: grid; gap: 6px; margin-top: 12px; }
.footer-contact-details p { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin: 0; color: #4e5f70; font-size: 13px; line-height: 1.65; }
.footer-contact-details span { flex: 0 0 auto; color: #25384a; font-weight: 600; }
.footer-contact-details span::after { content: "："; }
.footer-contact-details a, .footer-contact-details strong { min-width: 0; color: #4e5f70; font-weight: 400; overflow-wrap: anywhere; }
.footer-contact-details a:hover { color: var(--primary-dark); text-decoration: underline; }
.footer-bottom { border-top: 1px solid #d5dce2; }
.footer-bottom .site-container { min-height: 58px; display: flex; align-items: center; justify-content: center; text-align: center; }
.footer-bottom p { margin: 0; color: #667585; font-size: 12px; line-height: 1.7; }
.footer-bottom p a { color: #4f6478; }
.footer-bottom p a:hover { color: var(--primary-dark); text-decoration: underline; }
.floating-qrcode {
    position: fixed;
    z-index: 40;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    width: 156px;
    margin: 0;
    padding: 11px;
    color: #263b50;
    border: 1px solid #dce5ec;
    border-radius: 8px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 10px 30px rgba(73, 31, 40, .16);
    text-align: center;
}
.floating-qrcode img { width: 132px; height: 132px; display: block; object-fit: contain; background: #fff; }

body.message-modal-open { overflow: hidden; }
.message-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}
.message-modal[hidden] { display: none; }
.message-modal.is-open { opacity: 1; visibility: visible; }
.message-modal-backdrop { position: absolute; inset: 0; background: rgba(7, 24, 39, .58); }
.message-modal-panel {
    position: relative;
    width: min(600px, 100%);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    padding: 32px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(5, 37, 62, .28);
    transform: translateY(18px) scale(.98);
    transition: transform var(--transition);
}
.message-modal.is-open .message-modal-panel { transform: translateY(0) scale(1); }
.message-modal-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #526477;
    border: 0;
    border-radius: 50%;
    background: #f0f5f8;
    cursor: pointer;
}
.message-modal-close:hover { color: var(--primary-dark); background: #f7e8eb; }
.message-modal-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.message-modal-heading { padding-right: 50px; }
.message-modal-heading > span { color: var(--primary-dark); font-size: 14px; font-weight: 700; letter-spacing: 2px; }
.message-modal-heading h2 { margin: 6px 0 8px; color: #172b40; font-size: 26px; line-height: 1.35; }
.message-modal-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.message-phone-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 18px; margin-top: 12px; }
.message-phone-list a { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 2px 6px; color: var(--cta); background: transparent; transition: color var(--transition); }
.message-phone-list a:hover { color: var(--cta-hover); text-decoration: underline; }
.message-phone-list a:focus-visible { outline: 3px solid rgba(201, 80, 0, .22); outline-offset: 2px; }
.message-phone-list svg { width: 25px; height: 25px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.message-phone-list span { min-width: 0; display: grid; gap: 1px; }
.message-phone-list small { font-size: 12px; font-weight: 600; line-height: 1.3; }
.message-phone-list strong { font-size: 21px; font-weight: 800; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; }
.message-modal-form { margin-top: 24px; }
.message-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.message-form-grid label { min-width: 0; display: grid; gap: 7px; color: #30445a; font-size: 14px; font-weight: 600; }
.message-form-grid label.wide { grid-column: 1 / -1; }
.message-form-grid label.required > span::after { content: " *"; color: #d93025; }
.message-form-grid input,
.message-form-grid select,
.message-form-grid textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--text);
    border: 1px solid #cbd7e2;
    border-radius: 4px;
    background: #fff;
    font: inherit;
    font-weight: 400;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.message-form-grid textarea { min-height: 88px; resize: vertical; }
.message-form-grid input:focus,
.message-form-grid select:focus,
.message-form-grid textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(166, 25, 46, .14); }
.message-form-feedback { min-height: 24px; margin: 12px 0 4px; font-size: 14px; }
.message-form-feedback.is-success { color: #08783f; }
.message-form-feedback.is-error { color: #bd2c20; }
.message-submit-button {
    width: 100%;
    min-height: 48px;
    padding: 0 20px;
    color: #fff;
    border: 0;
    border-radius: 4px;
    background: var(--cta);
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), opacity var(--transition);
}
.message-submit-button:hover { background: var(--cta-hover); }
.message-submit-button:disabled { opacity: .6; cursor: wait; }
.message-form-note { margin: 10px 0 0; color: #758496; font-size: 12px; text-align: center; }

@media (max-width: 1420px) {
    .floor-navigation { display: none; }
}

@media (max-width: 1100px) {
    .header-main { grid-template-columns: 250px 1fr; column-gap: 28px; }
    .hot-searches { display: none; }
    .professional-nav-title { width: 210px; flex-basis: 210px; }
    .main-nav a { min-width: 0; padding-inline: 12px; }
    .professional-menu { width: 210px; }
    .professional-submenu { left: 210px; width: 620px; }
    .hero-copy { margin-left: 210px; padding-left: 58px; }
    .recommendation-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .professional-directory-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
    .professional-result-card { grid-template-columns: 190px minmax(0, 1fr); }
    .professional-result-action { grid-column: 2; justify-content: flex-start; border-left: 0; }
    .news-list-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; }
    .news-list-card { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
    .school-directory-item { grid-template-columns: 170px 330px minmax(0, 1fr); gap: 20px; padding-inline: 12px; }
    .school-directory-majors { padding-left: 20px; }
    .school-directory-majors ul { grid-template-columns: 1fr; }
    .entity-hero { grid-template-columns: 320px minmax(0, 1fr); gap: 28px; }
    .entity-detail-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; }
    .footer-column { padding-inline: 22px; }
}

@media (max-width: 900px) {
    .professional-nav-title { width: 180px; flex-basis: 180px; }
    .main-nav { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
    .main-nav::-webkit-scrollbar { display: none; }
    .main-nav a { flex: 0 0 auto; min-width: 112px; }
    .professional-menu { display: none; }
    .hero-copy { margin-left: 0; padding-left: 42px; }
    .recommendation-layout { grid-template-columns: 210px minmax(0, 1fr); }
    .recommendation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .major-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .school-card-grid { grid-template-columns: repeat(2, 1fr); }
    .school-directory-item { grid-template-columns: 180px minmax(0, 1fr); align-items: start; }
    .school-directory-majors { grid-column: 1 / -1; padding: 18px 0 0; border-top: 1px solid #e2e9ef; border-left: 0; }
    .school-directory-majors ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .professional-directory-layout { grid-template-columns: 1fr; }
    .professional-sidebar { grid-template-columns: 1fr 1fr; }
    .news-list-layout { grid-template-columns: 1fr; }
    .article-detail-layout { grid-template-columns: 1fr; }
    .side-panel { grid-template-columns: 1fr 1fr; }
    .entity-hero { grid-template-columns: 280px minmax(0, 1fr); padding: 24px; }
    .entity-cover { height: 210px; }
    .entity-detail-layout { grid-template-columns: 1fr; }
    .entity-sidebar { grid-template-columns: 1fr 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; row-gap: 34px; }
    .footer-column:nth-child(odd) { padding-left: 0; border-left: 0; }
    .footer-column:nth-child(even) { padding-right: 0; }
}

@media (max-width: 680px) {
    .site-container { width: min(100% - 24px, var(--container)); }
    .utility-inner p { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .utility-inner nav { flex: 0 0 auto; white-space: nowrap; }
    .utility-inner nav a { display: none; padding: 7px 0 7px 6px; }
    .utility-inner nav a:first-of-type { display: block; }
    .header-main { min-height: 150px; display: flex; flex-wrap: wrap; gap: 4px; padding-block: 10px 12px; }
    .site-brand { width: 190px; height: 54px; }
    .site-brand img { width: auto; max-width: 190px; height: auto; max-height: 54px; }
    .site-brand-name { font-size: 22px; }
    .header-search { width: 100%; }
    .search-tabs { height: 28px; }
    .header-search form { grid-template-columns: 38px 1fr 78px; }
    .professional-nav-title { display: none; }
    .main-nav-wrap, .main-nav-inner { height: 48px; }
    .main-nav a { min-height: 48px; min-width: 98px; padding-inline: 12px; font-size: 15px; }
    .home-hero, .hero-layout { height: 360px; }
    .home-banner-swiper .swiper-button-prev,
    .home-banner-swiper .swiper-button-next { opacity: 1; }
    .hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 32px 18px; }
    .hero-eyebrow { font-size: 13px; letter-spacing: 2px; }
    .hero-copy h1 { font-size: clamp(32px, 10vw, 42px); }
    .hero-copy > p:not(.hero-eyebrow) { font-size: 15px; letter-spacing: 1px; }
    .hero-actions { gap: 10px; }
    .hero-actions a { padding-inline: 16px; font-size: 14px; }
    .recommendation-section { width: min(100% - 24px, var(--container)); margin-block: 32px 38px; }
    .portal-section-heading { margin-bottom: 18px; }
    .portal-section-heading h2 { font-size: 23px; }
    .recommendation-layout { display: block; }
    .ranking-panel { min-height: 0; margin-bottom: 16px; padding: 18px 14px; }
    .ranking-panel ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
    .recommendation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .recommendation-card { min-height: 188px; padding: 8px 8px 12px; }
    .recommendation-cover { height: 100px; }
    .major-category-section { width: min(100% - 24px, var(--container)); padding: 18px 14px; }
    .major-section-heading h2 { font-size: 21px; }
    .major-category-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
    .major-category-tabs::-webkit-scrollbar { display: none; }
    .major-category-tabs a { flex: 0 0 auto; min-height: 44px; }
    .major-news-grid { grid-template-columns: 1fr; }
    .school-hub-toolbar { align-items: stretch; flex-direction: column; }
    .school-card-grid, .two-column { grid-template-columns: 1fr; }
    .school-directory-page { width: calc(100vw - 24px); margin-top: 20px; }
    .school-filter-heading { align-items: stretch; flex-direction: column; gap: 16px; padding: 20px 14px 16px; }
    .school-filter-heading h1 { font-size: 21px; }
    .school-directory-search { width: 100%; grid-template-columns: minmax(0, 1fr) 76px; }
    .school-category-filters { flex-wrap: nowrap; overflow-x: auto; padding: 12px 14px; scrollbar-width: none; }
    .school-category-filters::-webkit-scrollbar { display: none; }
    .school-category-filters a { flex: 0 0 auto; min-height: 44px; }
    .school-results-heading { align-items: flex-start; flex-direction: column; gap: 4px; padding-top: 20px; }
    .school-results-heading h2 { font-size: 20px; }
    .school-directory-item { grid-template-columns: 1fr; gap: 18px; padding: 20px 0; }
    .school-directory-visual { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; }
    .school-directory-cover { height: auto; aspect-ratio: 16 / 10; }
    .school-directory-actions { grid-template-columns: 1fr; align-content: start; margin-top: 0; }
    .school-directory-actions a, .school-directory-actions button { min-height: 44px; }
    .school-directory-summary h2 { font-size: 19px; }
    .school-directory-majors { grid-column: auto; padding-top: 14px; }
    .school-directory-majors ul { grid-template-columns: 1fr; }
    .professional-directory { width: calc(100vw - 24px); max-width: var(--container); margin-top: 20px; overflow: hidden; }
    .professional-breadcrumb .site-container { width: calc(100vw - 24px); }
    .professional-filter-panel { padding: 20px 14px; }
    .professional-filter-heading { align-items: stretch; flex-direction: column; gap: 16px; }
    .professional-filter-heading > * { min-width: 0; }
    .professional-keyword-search { width: 100%; grid-template-columns: minmax(0, 1fr) 76px; }
    .professional-parent-filters, .professional-child-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .professional-parent-filters::-webkit-scrollbar, .professional-child-filters::-webkit-scrollbar { display: none; }
    .professional-parent-filters a, .professional-child-filters a { flex: 0 0 auto; min-height: 44px; }
    .professional-parent-filters a.filter-reset-link { margin-left: 0; }
    .professional-child-filters > span { flex: 0 0 auto; }
    .professional-results-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .professional-result-card { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; min-height: 0; overflow: hidden; padding: 18px 0; }
    .professional-result-cover { height: 96px; }
    .professional-result-content h3 { font-size: 18px; }
    .professional-linked-school, .professional-result-summary { font-size: 13px; }
    .professional-result-action { grid-column: 1 / -1; }
    .professional-result-action a { width: 100%; border-radius: 4px; }
    .professional-sidebar { grid-template-columns: 1fr; }
    .content-breadcrumb .site-container { width: calc(100vw - 24px); }
    .page-layout { width: calc(100vw - 24px); }
    .news-list-card { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; min-height: 0; padding: 18px 0; }
    .news-list-cover { height: 92px; }
    .news-list-content { padding: 0; }
    .news-list-content h2 { display: -webkit-box; overflow: hidden; font-size: 17px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .news-list-meta { gap: 6px 16px; margin-top: 8px; font-size: 12px; }
    .news-list-content > p { margin-top: 9px; font-size: 13px; line-height: 1.65; -webkit-line-clamp: 2; }
    .article-detail-page { width: calc(100vw - 24px); margin-top: 20px; }
    .article-detail-header { padding: 28px 16px 24px; }
    .article-detail-header h1 { font-size: 25px; }
    .article-detail-meta { gap: 8px 14px; }
    .article-featured-image { margin-top: 22px; padding-inline: 16px; }
    .article-detail-body { min-height: 180px; padding: 20px 16px 24px; font-size: 15px; line-height: 1.85; }
    .article-sibling-nav { grid-template-columns: 1fr; margin-inline: 16px; }
    .article-related { padding: 24px 16px 28px; }
    .article-related ul { grid-template-columns: 1fr; }
    .side-panel { grid-template-columns: 1fr; }
    .cms-pagination { margin-top: 24px; }
    .cms-pagination > ul.pagination { gap: 6px; }
    .cms-pagination > ul.pagination > li > a,
    .cms-pagination > ul.pagination > li > span { min-width: 44px; min-height: 44px; padding-inline: 10px; }
    .entity-detail-page { width: calc(100vw - 24px); margin-top: 20px; }
    .entity-hero { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding: 16px; }
    .entity-cover { height: auto; aspect-ratio: 16 / 10; }
    .entity-hero h1 { font-size: 26px; }
    .entity-summary { font-size: 14px; line-height: 1.75; }
    .entity-actions { align-items: stretch; flex-direction: column; }
    .entity-primary-action, .entity-phone-action { width: 100%; }
    .entity-detail-layout { margin-top: 16px; }
    .entity-main-card { padding: 22px 16px 28px; }
    .entity-section-title h2 { font-size: 21px; }
    .cms-richtext { font-size: 15px; line-height: 1.85; }
    .entity-sidebar { grid-template-columns: 1fr; }
    .footer { margin-top: 40px; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 0; padding-block: 32px 26px; }
    .footer-column, .footer-column:first-child, .footer-column:last-child { padding: 22px 16px; border-top: 1px solid #d7dde3; border-left: 0; }
    .footer-column:nth-child(odd) { padding-left: 0; }
    .footer-column:nth-child(even) { padding-right: 0; border-left: 1px solid #d7dde3; }
    .footer-column:nth-child(-n+2) { padding-top: 0; border-top: 0; }
    .floating-qrcode {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        width: 112px;
        padding: 7px;
        border-radius: 6px;
    }
    .floating-qrcode img { width: 96px; height: 96px; }
    .footer-phone-icon { width: 42px; height: 42px; }
    .footer-phone-list a { min-height: 44px; font-size: 17px; }
    .footer-bottom .site-container { min-height: 0; padding-block: 16px; }
    .message-modal { align-items: end; padding: 12px; }
    .message-modal-panel { width: 100%; max-height: calc(100dvh - 24px); padding: 28px 18px 20px; border-radius: 10px 10px 6px 6px; }
    .message-modal-heading h2 { font-size: 22px; }
    .message-form-grid { grid-template-columns: 1fr; gap: 14px; }
    .message-form-grid label.wide { grid-column: auto; }
}

@media (max-width: 420px) {
    .ranking-panel ol { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
