:root { --school-red: #81291f; --ink: #282323; --muted: #746b68; --line: #ece4df; }
* { box-sizing: border-box; }
html { background: #f4f1ed; }
body { max-width: 780px; margin: 0 auto; padding-bottom: calc(76px + env(safe-area-inset-bottom)); color: var(--ink); background: #fff; font-family: 'Microsoft YaHei', sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #bc8069; outline-offset: 3px; }
img { max-width: 100%; }
.header { height: auto; min-height: 88px; padding: 16px 20px; background: var(--school-red); }
.header .logo { width: 220px; max-width: 75%; }
.header .logo img { width: 100%; margin: 0; display: block; }
.search { height: auto; padding: 12px 16px; background: var(--school-red); }
.search form, .mobile-search-form { display: flex; gap: 8px; }
.search input, .mobile-search-form input { min-width: 0; flex: 1; width: auto; height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: #fff; font-size: 16px; }
.search button, .mobile-search-form button { width: auto; min-width: 64px; height: 46px; border: 0; border-radius: 8px; padding: 0 14px; background: #f1e4c8; color: #54231c; font-weight: 700; }
.nav { height: auto; padding: 6px 12px 16px; }
.nav ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.nav ul li { float: none; width: auto; margin: 0; line-height: 1.4; }
.nav li a { display: flex; min-height: 44px; align-items: center; justify-content: center; font-size: 14px; }
.slider { padding: 16px; margin: 0; }
.slider-li { border: 0; border-radius: 12px; overflow: hidden; }
.slider-li img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.slider-title { bottom: 0; padding: 24px 12px 20px; background: linear-gradient(transparent, rgba(0,0,0,.8)); font-size: 15px; line-height: 1.5; }
.news, .others { margin: 0 16px 22px; width: auto; background: #fff; }
.news-all, .others-list { padding: 0; }
.news-article { height: auto; min-height: 56px; line-height: 1.65; white-space: normal; overflow-wrap: anywhere; border-color: var(--line); }
.news-article a { display: block; padding: 13px 2px; font-size: 16px; }
.news-more { width: 100%; height: auto; min-height: 44px; margin: 12px 0 0; padding: 10px; line-height: 1.5; color: var(--school-red); background: #f8f2ec; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.others-title { height: auto; padding: 12px 0; border: 0; border-bottom: 2px solid var(--school-red); margin-bottom: 12px; background: #fff; }
.others-h1 { float: none; width: auto; margin: 0; padding: 0; text-align: left; font-size: 21px; color: var(--school-red); height: auto; line-height: 1.5; }
.others-top, .others-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; height: auto; overflow: visible; }
.top-article, .feature-article { width: auto; margin: 0; float: none; height: auto; min-width: 0; }
.top-article a, .feature-article a { width: 100%; max-width: none; min-height: 0; float: none; display: block; }
.feature-article:nth-child(2n) { margin-left: 0; }
.top-article img, .feature-article img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; display: block; }
.top-article-title, .feature-article-title { float: none; width: 100%; height: auto; min-height: 48px; font-size: 14px; line-height: 1.6; white-space: normal; margin: 8px 0; padding: 0; }
.school-community { margin: 24px 16px; padding: 20px 16px; border-radius: 12px; background: #f8f3ec; }
.school-community .special-title { font-size: 20px; font-weight: 700; color: var(--school-red); margin-bottom: 12px; }
.school-community .main { width: auto; }
.school-community ul { padding: 0; margin: 0; list-style: none; }
.school-community li { border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 14px; }
.school-community li:last-child { border: 0; }
.footer { background: #f4efea; color: var(--muted); padding: 20px 12px; line-height: 1.8; font-size: 12px; text-align: center; height: auto; }
.mobile-quick-nav { position: fixed; z-index: 10010; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 780px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); box-shadow: 0 -3px 16px #42201612; border-top: 1px solid var(--line); }
.mobile-quick-nav > a, .mobile-quick-nav summary { min-height: 44px; display: flex; align-items: center; justify-content: center; color: var(--school-red); font-size: 15px; font-weight: 700; cursor: pointer; }
.mobile-quick-nav summary { list-style: none; }
.mobile-quick-nav summary::-webkit-details-marker { display: none; }
.mobile-menu { position: absolute; bottom: calc(100% + 8px); left: 12px; right: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 4px 24px #0002; }
.mobile-menu a { padding: 12px; text-align: center; }
.n-header { width: 100%; min-height: 56px; height: auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--school-red); color: #fff; }
.n-header > div { float: none; position: static; width: auto; height: auto; line-height: 1.5; margin: 0; }
.n-header .d-category { flex: 1; font-size: 18px; }
.n-header .n-h-right { display: flex; gap: 14px; font-size: 14px; }
.n-header a { color: #fff; }
.detail-title { font-size: 24px; line-height: 1.5; padding: 24px 18px 14px; }
.detail-meta { padding: 0 18px 18px; font-size: 12px; color: var(--muted); }
.detail-content { padding: 0 18px 22px; font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; overflow-x: auto; }
.detail-content img, .detail-content video, .detail-content iframe { max-width: 100% !important; }
.detail-content img { height: auto !important; }
.detail-content table { max-width: 100%; }
.detail-more { padding: 18px; background: #faf7f3; line-height: 1.8; }
.list, .list-bg { width: auto; padding: 0; margin: 16px; }
.list .others-list, .list .others-top { margin: 0; }
.list-page { width: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 12px; padding: 0; }
.list-page a, .list-page span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 6px; background: #f8f2ec; font-size: 14px; }
.boss-table { width: calc(100% - 32px); margin: 16px; border-collapse: collapse; }
.boss-table tr { display: grid; grid-template-columns: 78px 1fr; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.boss-table td { display: block; border: 0; padding: 0; width: auto !important; text-align: left; font-size: 14px; }
.boss-table td:first-child { grid-row: span 2; }
.boss-table td:nth-child(2) { font-weight: 700; font-size: 19px; }
.boss-table img { width: 78px; height: auto; border-radius: 6px; }
.mobile-search-results { padding: 24px 16px; min-height: 70vh; }
.mobile-search-results h1 { font-size: 25px; margin: 0 0 18px; }
.search-summary { margin: 18px 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.search-result { border-bottom: 1px solid var(--line); padding: 18px 0; }
.search-result h2 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.search-result p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.search-result time { font-size: 12px; color: var(--muted); }
.search-empty { padding: 32px 16px; background: #faf7f3; border-radius: 10px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
