/* 校园服务独立详情版：首页与指南详情共用样式。
   官网公共样式仍来自 index.css / common.css，本文件只承接当前校园服务页面的局部样式。 */

body {
  min-width: 0;
}

#main.content {
  height: auto;
  overflow: visible;
}

:root {
  --blue:#00558d;
  --navy:#003e68;
  --ink:#213b4f;
  --muted:#657886;
  --line:#dde6ec;
  --pale:#edf4f8;
  --paper:#f6f8fa;
  --radius:8px;
  --max:1280px;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:112px;
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:16px/1.75 "Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif;
  -webkit-font-smoothing:antialiased;
}

button,
input,
select {
  font:inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color:transparent;
}

button,
a {
  touch-action:manipulation;
}

button {
  cursor:pointer;
}

a {
  color:inherit;
  text-decoration:none;
}

button {
  color:inherit;
}

button:disabled {
  cursor:default;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline:3px solid #b58d4d;
  outline-offset:4px;
}

::selection {
  background:#b4d5ea;
}

h1,
h2,
h3,
p {
  margin:0;
}

button {
  border:0;
  background:none;
}

svg.icon {
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
  vertical-align:middle;
}

.wrap {
  width:min(var(--max),calc(100% - 80px));
  margin:auto;
}

.skip {
  position:fixed;
  top:-100px;
  left:16px;
  background:white;
  padding:12px 20px;
  z-index:100;
}

.skip:focus {
  top:12px;
}

[hidden] {
  display:none!important;
}

.sr {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.site-header {
  background:var(--blue);
}

.hero {
  color:white;
  position:relative;
  background:#004978;
  isolation:isolate;
  overflow:hidden;
}

.hero-inner {
  padding-top:22px;
  padding-bottom:45px;
  position:relative;
}

.hero-head {
  margin:23px 0 23px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
}

.hero h1 {
  font:500 43px/1.35 "STSong","SimSun",serif;
  letter-spacing:6px;
}

.search-area {
  max-width:748px;
}

.search-form {
  display:flex;
  align-items:center;
  gap:12px;
  background:white;
  padding:6px 6px 6px 20px;
  border-radius:5px;
  box-shadow:0 6px 25px #002f5020;
}

.search-form>.icon {
  color:var(--blue);
}

.service-search-input {
  width:0;
  flex:1;
  min-width:0;
  border:0;
  color:var(--ink);
  outline:0!important;
  background:transparent;
  height:43px;
  font-size:14px;
}

.service-search-input::placeholder {
  color:#7b8b97;
}

.search-form:focus-within {
  outline:3px solid #d4b588;
  outline-offset:3px;
}

.search-submit {
  height:43px;
  padding:0 25px;
  background:var(--blue);
  color:white;
  border-radius:3px;
  white-space:nowrap;
}

.search-submit:hover {
  background:var(--navy);
}

.clear-search {
  display:none;
  width:34px;
  height:40px;
  color:var(--muted);
}

.clear-search.visible {
  display:block;
}

.hotwords {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:3px 16px;
  margin-top:12px;
  font-size:12px;
  color:#d8e7f1;
}

.hotwords span {
  color:#c2d8e8;
}

.hotwords button {
  padding:0;
  color:#fff;
  line-height:28px;
}

.hotwords button:hover {
  text-decoration:underline;
  text-underline-offset:4px;
}

.service-nav {
  position:sticky;
  top:0;
  z-index:20;
  background:#fff;
  border-bottom:1px solid var(--line);
  box-shadow:0 3px 12px #1b456005;
}

.service-tabs {
  display:grid;
  grid-template-columns:repeat(4,1fr);
}

.service-tab {
  position:relative;
  text-align:left;
  display:flex;
  gap:16px;
  align-items:center;
  padding:23px 30px;
  min-height:100px;
  border-right:1px solid #e9eef2;
  color:var(--muted);
  transition:background .2s,color .2s;
}

.service-tab:first-child {
  border-left:1px solid #e9eef2;
}

.tab-icon {
  color:var(--blue);
  height:46px;
  width:46px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#f0f5f8;
}

.tab-icon svg {
  width:26px;
  height:26px;
}

.tab-text strong {
  display:block;
  font-size:18px;
  font-weight:600;
  color:var(--ink);
  letter-spacing:.05em;
}

.service-tab[aria-selected=true] {
  background:#f0f6fa;
  color:var(--blue);
}

.service-tab[aria-selected=true]:after {
  content:"";
  position:absolute;
  bottom:-1px;
  left:0;
  right:0;
  height:3px;
  background:var(--blue);
}

.service-tab[aria-selected=true] .tab-icon {
  background:var(--blue);
  color:white;
}

.service-tab[aria-selected=true] strong {
  color:var(--blue);
}

.service-tab:hover {
  background:#f3f7fa;
}

.content {
  min-height:500px;
  padding-top:40px;
  padding-bottom:64px;
}

.content-layout {
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  gap:36px;
}

.sidebar {
  align-self:start;
  position:sticky;
  top:126px;
}

.side-list {
  display:flex;
  flex-direction:column;
  gap:5px;
}

.side-link {
  min-height:48px;
  border-radius:5px;
  padding:10px 14px;
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  font-size:15px;
  width:100%;
  color:#536b7b;
  line-height:1.65;
}

.side-link .icon {
  width:18px;
  height:18px;
}

.side-link:hover {
  background:#eaf1f6;
  color:var(--blue);
}

.side-link.active {
  background:var(--blue);
  color:#fff;
}

.side-help {
  border-top:1px solid var(--line);
  margin-top:25px;
  padding:23px 14px 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.8;
}

.side-help strong {
  display:block;
  font-size:16px;
  color:var(--ink);
  margin:10px 0 5px;
}

.side-help>a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:15px;
  color:var(--blue);
  font-size:15px;
  min-height:44px;
}

.side-help>a .icon {
  width:17px;
}

.section-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:25px;
  gap:16px;
}

.section-top h2 {
  font-size:26px;
  letter-spacing:1px;
  font-weight:600;
  line-height:1.5;
}

.groups {
  display:grid;
  gap:24px;
}

.group {
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  scroll-margin-top:126px;
}

.group>summary {
  display:flex;
  gap:12px;
  align-items:center;
  padding:19px 23px;
  cursor:pointer;
  list-style:none;
}

.group>summary::-webkit-details-marker {
  display:none;
}

.group-sign {
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--blue);
}

.group h3 {
  font-size:20px;
  font-weight:600;
  letter-spacing:.04em;
}

.group-toggle {
  margin-left:auto;
  width:17px!important;
  height:17px!important;
  color:#7c909d;
  transition:transform .2s;
}

.group[open] .group-toggle {
  transform:rotate(180deg);
}

.service-grid {
  padding:0 23px 22px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.service-card {
  width:100%;
  position:relative;
  text-align:left;
  border:1px solid #e4ebf0;
  border-radius:5px;
  padding:20px 18px 18px;
  min-height:132px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  transition:border-color .2s,background .2s,box-shadow .2s;
}

.service-card:hover {
  border-color:#90b4cd;
  background:#f6fafc;
  box-shadow:0 4px 14px #00558d08;
}

.service-card strong {
  font-size:17px;
  font-weight:600;
  color:#294a61;
  padding-right:18px;
  line-height:1.65;
}

.service-card>.icon {
  position:absolute;
  right:13px;
  top:20px;
  width:15px;
  height:15px;
  color:#789bad;
}

.service-card small {
  font-size:14px;
  color:var(--muted);
  line-height:1.75;
  margin-top:8px;
}

.service-card .card-tag {
  color:#8d744f;
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:13px;
  margin-top:10px;
  line-height:1.6;
}

.card-tag svg {
  width:14px;
  height:14px;
}

.content-note {
  display:flex;
  align-items:flex-start;
  gap:9px;
  font-size:14px;
  color:var(--muted);
  margin-top:22px;
  line-height:1.8;
}

.content-note .icon {
  width:18px;
  height:18px;
  margin-top:2px;
}

.notice-bar {
  justify-content: flex-start;
  border:1px solid #dbe7ed;
  background:#f0f6f9;
  padding:13px 17px;
  border-radius:5px;
  font-size:14px;
  color:#526f82;
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-bottom:22px;
  line-height:1.8;
}

.notice-bar .icon {
  width:18px;
  height:18px;
  margin-top:2px;
  flex-shrink:0;
}

.campus-bar {
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:23px;
}

.campus-label {
  font-size:14px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:6px;
}

.campus-label .icon {
  width:17px;
}

.campus-pills {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.campus-pill {
  border:1px solid var(--line);
  background:white;
  border-radius:4px;
  min-height:44px;
  padding:6px 16px;
  font-size:15px;
}

.campus-pill[aria-pressed=true] {
  background:var(--blue);
  border-color:var(--blue);
  color:white;
}

.campus-pill:hover {
  border-color:var(--blue);
}

.life-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}

.life-card {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:white;
  overflow:hidden;
}

.life-card-head {
  display:flex;
  align-items:center;
  gap:12px;
  padding:20px 22px 14px;
}

.life-card-head>.icon {
  width:22px;
  height:22px;
  color:var(--blue);
}

.life-card h3 {
  font-size:18px;
  font-weight:600;
}

.life-rows {
  padding:0 22px 17px;
  font-size:16px;
  line-height:1.8;
}

.life-row {
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:12px;
  padding:9px 0;
  font-size:16px;
align-items: center;
}

.life-row dt {
  color:var(--muted);
  font-size:14px;
}

.life-row dd {
  margin:0;
  overflow-wrap:anywhere;
}

.life-row a {
  color:var(--blue);
  text-decoration:underline;
  text-underline-offset:3px;
}

.life-note {
  font-size:14px;
  line-height:1.8;
  color:var(--muted);
  background:#f8fafb;
  padding:10px 22px;
  border-top:1px solid #ebeff3;
}

.life-card.no-data {
  background:#fafbfc;
  border-style:dashed;
}

.search-layout {
  max-width:1040px;
  margin:auto;
}

.search-heading {
  display:flex;
  gap:12px;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom:20px;
}

.search-heading h2 {
  font-size:26px;
  font-weight:600;
  overflow-wrap:anywhere;
}

.search-heading p {
  color:var(--muted);
  font-size:14px;
}

.text-button {
  color:var(--blue);
  font-size:15px;
  min-height:44px;
  white-space:nowrap;
}

.result-filters {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  padding-bottom:20px;
  border-bottom:1px solid var(--line);
  margin-bottom:20px;
}

.result-filter {
  padding:8px 16px;
  background:white;
  border:1px solid var(--line);
  border-radius:4px;
  font-size:15px;
  min-height:44px;
}

.result-filter.active {
  background:var(--blue);
  color:white;
  border-color:var(--blue);
}

.result-list {
  display:grid;
  gap:12px;
}

.result-card {
  background:white;
  border:1px solid var(--line);
  border-radius:6px;
  padding:20px 23px;
  text-align:left;
  width:100%;
  display:block;
}

.result-card:hover {
  border-color:#8aafc9;
}

.result-meta {
  font-size:13px;
  color:var(--muted);
  margin-bottom:5px;
}

.result-card h3 {
  font-size:18px;
  font-weight:500;
  color:var(--blue);
  line-height:1.6;
}

.result-card p {
  font-size:15px;
  color:#617787;
  margin-top:7px;
  overflow-wrap:anywhere;
  line-height:1.8;
}

.result-card .result-go {
  float:right;
  color:#69899e;
  width:19px;
  height:19px;
  margin-top:8px;
}

mark {
  color:var(--blue);
  background:#fae9bd;
  padding:0 1px;
  border-radius:2px;
}

.empty-state {
  text-align:center;
  padding:50px 20px;
  color:var(--muted);
}

.empty-state>.icon {
  width:42px;
  height:42px;
  color:#759bb5;
  margin-bottom:15px;
}

.empty-state h3 {
  color:var(--ink);
  font-size:19px;
  margin-bottom:8px;
}

.empty-state p {
  font-size:15px;
}

.empty-state button {
  margin-top:20px;
  background:var(--blue);
  color:white;
  padding:10px 20px;
  border-radius:4px;
}

.guide-summary {
  border-left:3px solid var(--blue);
  background:#f1f6f9;
  padding:14px 18px;
  margin-bottom:28px;
  font-size:15px;
  color:#4b697e;
}

.guide-body {
  font-size:16px;
  line-height:1.95;
  overflow-wrap:anywhere;
}

.guide-body p {
  margin:9px 0;
  white-space:pre-line;
}

.guide-body .doc-heading {
  font-size:16px;
  font-weight:600;
  color:var(--blue);
  margin:23px 0 10px;
}

.guide-body table {
  border-collapse:collapse;
  width:100%;
  font-size:14px;
  line-height:1.8;
}

.guide-body td,
.guide-body th {
  border:1px solid var(--line);
  padding:9px 12px;
  white-space:pre-line;
  min-width:105px;
}

.table-scroll {
  overflow:auto;
  margin:16px 0;
}

.guide-body figure {
  margin:18px auto;
  text-align:center;
}

.guide-body img {
  max-width:100%;
  height:auto;
  object-fit:contain;
}

.guide-body a {
  color:var(--blue);
  text-decoration:underline;
  text-underline-offset:3px;
}

.guide-source {
  padding-top:24px;
  border-top:1px solid var(--line);
  margin-top:25px;
}

.guide-source h3 {
  font-size:16px;
  margin-bottom:13px;
}

.file-link {
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  padding:12px 15px;
  border-radius:4px;
  margin-top:9px;
  font-size:14px;
  color:var(--blue);
  overflow-wrap:anywhere;
}

.file-link>span {
  flex:1;
  min-width:0;
}

.file-link .icon {
  width:17px;
}

.guide-footnote {
  color:var(--muted);
  font-size:13px;
  margin-top:20px;
}

.source-alert {
  background:#fff7e7;
  border:1px solid #eadbb9;
  font-size:13px;
  color:#76613d;
  padding:12px 15px;
  border-radius:4px;
  margin-bottom:20px;
}

.service-grid:has(>.service-card:only-child) {
  grid-template-columns:1fr;
}

.service-card:only-child {
  min-height:76px;
}

.back-top {
  position:fixed;
  bottom:28px;
  right:22px;
  z-index:12;
  width:43px;
  height:43px;
  border:1px solid var(--line);
  background:white;
  color:var(--blue);
  border-radius:5px;
  box-shadow:0 4px 16px #163f5a12;
}

@media(min-width:1440px) {
  .wrap {
    width:min(var(--max),calc(100% - 120px));
  }

  .hero-inner {
    padding-bottom:48px;
  }

  .hero-head {
    margin-top:29px;
    margin-bottom:26px;
  }

  .hero h1 {
    font-size:46px;
  }
}

@media(max-width:1199px) {
  .wrap {
    width:calc(100% - 48px);
  }

  .service-tab {
    padding:20px;
    gap:12px;
  }

  .tab-text strong {
    font-size:18px;
  }

  .content-layout {
    grid-template-columns:180px minmax(0,1fr);
    gap:25px;
  }

  .service-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .life-card-head {
    padding-left:18px;
    padding-right:18px;
  }

  .life-rows {
    padding-left:18px;
    padding-right:18px;
    font-size:16px;
    line-height:1.8;
  }
}

@media(max-width:959px) {
  .hero-head {
    margin-top:22px;
  }

  .hero-inner {
    padding-bottom:32px;
  }

  .service-tab {
    padding:18px 14px;
    gap:9px;
    min-height:87px;
  }

  .tab-icon {
    width:38px;
    height:38px;
  }

  .tab-icon svg {
    width:23px;
    height:23px;
  }

  .tab-text strong {
    font-size:18px;
  }

  .content-layout {
    grid-template-columns:1fr;
  }

  .sidebar {
    position:static;
  }

  .side-help {
    display:none;
  }

  .side-list {
    flex-direction:row;
    flex-wrap:wrap;
    gap:7px;
  }

  .side-link {
    width:auto;
    font-size:15px;
    min-height:44px;
    padding:8px 13px;
    border:1px solid var(--line);
    background:white;
    gap:7px;
    line-height:1.65;
  }

  .side-link.active {
    border-color:var(--blue);
  }

  .side-link .icon {
    display:none;
  }

  .section-top {
    margin-bottom:20px;
  }

  .content {
    padding-top:25px;
  }

  .section-top h2 {
    font-size:24px;
  }

  .service-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .sidebar {
    top:100px;
  }

  .life-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .group {
    scroll-margin-top:108px;
  }
}

@media(max-width:767px) {
  html {
    scroll-padding-top:94px;
  }

  .wrap {
    width:calc(100% - 36px);
  }

  .hero-inner {
    padding-top:17px;
    padding-bottom:27px;
  }

  .hero-head {
    margin:18px 0 20px;
  }

  .hero h1 {
    font-size:33px;
    letter-spacing:5px;
  }

  .search-form {
    gap:8px;
    padding-left:13px;
  }

  .search-form>.icon {
    width:19px;
    height:19px;
  }

  .service-search-input {
    font-size:12px;
    height:40px;
  }

  .search-submit {
    font-size:12px;
    padding:0 15px;
    height:40px;
  }

  .hotwords {
    gap:2px 12px;
    margin-top:8px;
    font-size:11px;
  }

  .clear-search {
    width:24px;
  }

  .service-tabs {
    width:100%;
  }

  .service-tab {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    text-align:center;
    min-height:83px;
    padding:11px 3px 10px;
    border-right:0;
  }

  .service-tab:first-child {
    border-left:0;
  }

  .tab-icon {
    height:27px;
    width:32px;
    background:transparent!important;
    border-radius:0;
  }

  .tab-icon svg {
    width:23px;
    height:23px;
  }

  .service-tab[aria-selected=true] .tab-icon {
    color:var(--blue);
  }

  .tab-text strong {
    font-size:16px;
    letter-spacing:0;
  }

  .service-tab[aria-selected=true]:after {
    left:14px;
    right:14px;
  }

  .content {
    padding-top:22px;
    padding-bottom:40px;
  }

  .content-layout {
    gap:22px;
  }

  .side-list {
    gap:7px;
  }

  .side-link {
    font-size:15px;
    min-height:44px;
    padding:7px 10px;
    gap:2px;
    line-height:1.65;
  }

  .section-top {
    margin-bottom:20px;
    align-items:flex-start;
    gap:8px;
  }

  .section-top h2 {
    font-size:24px;
    line-height:1.5;
  }

  .groups {
    gap:20px;
  }

  .group>summary {
    padding:15px 16px;
    gap:10px;
  }

  .group h3 {
    font-size:18px;
  }

  .group-toggle {
    margin-left:auto;
  }

  .group-sign svg {
    width:20px;
    height:20px;
  }

  .service-grid {
    padding:0 14px 15px;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }

  .service-card {
    padding:18px 16px;
    min-height:132px;
  }

  .service-card strong {
    font-size:17px;
    padding-right:18px;
    font-weight:600;
    line-height:1.65;
  }

  .service-card>.icon {
    right:8px;
    top:17px;
    width:12px;
    height:12px;
  }

  .service-card small {
    font-size:14px;
    margin-top:8px;
    line-height:1.75;
  }

  .service-card .card-tag {
    font-size:13px;
    margin-top:10px;
    line-height:1.6;
  }

  .campus-bar {
    gap:10px;
    margin-bottom:18px;
  }

  .campus-label {
    font-size:14px;
  }

  .campus-pills {
    gap:6px;
  }

  .campus-pill {
    padding:6px 12px;
    min-height:44px;
    font-size:15px;
  }

  .life-grid {
    grid-template-columns:1fr;
    gap:14px;
  }

  .life-card-head {
    padding:18px 18px 11px;
  }

  .life-card h3 {
    font-size:18px;
  }

  .life-rows {
    padding-bottom:15px;
    font-size:16px;
    line-height:1.8;
  }

  .life-row {
    font-size:16px;
    grid-template-columns:64px minmax(0,1fr);
    gap:12px;
    padding:9px 0;
  }

  .life-note {
    padding:10px 18px;
    font-size:14px;
  }

  .notice-bar {
    font-size:14px;
    padding:11px 13px;
    line-height:1.8;
  }

  .back-top {
    width:36px;
    height:36px;
    right:11px;
    bottom:16px;
  }

  .search-heading {
    align-items:flex-start;
  }

  .search-heading h2 {
    font-size:24px;
  }

  .search-heading p {
    font-size:14px;
  }

  .result-filters {
    gap:7px;
  }

  .result-filter {
    font-size:15px;
    padding:7px 11px;
    min-height:44px;
  }

  .result-card {
    padding:17px;
  }

  .result-card h3 {
    font-size:18px;
    line-height:1.6;
  }

  .result-card p {
    font-size:15px;
    line-height:1.8;
  }

  .guide-body {
    font-size:16px;
  }

  .guide-summary {
    font-size:15px;
    padding:12px 14px;
  }

  .guide-body .doc-heading {
    font-size:15px;
  }

  .guide-source h3 {
    font-size:15px;
  }
}

@media(max-width:359px) {
  .wrap {
    width:calc(100% - 28px);
  }

  .service-grid {
    grid-template-columns:1fr;
  }

  .hotwords {
    gap:1px 10px;
  }

  .campus-pill {
    padding:6px 9px;
    font-size:15px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }

  *,
  *:before,
  *:after {
    animation:none!important;
    transition:none!important;
  }
}

@media(max-width:479px) {
  .service-grid {
    grid-template-columns:minmax(0,1fr);
  }

  .campus-bar {
    display:block;
  }

  .campus-label {
    margin-bottom:8px;
  }

  .campus-pills {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    width:100%;
  }

  .campus-pill {
    width:100%;
    padding:8px 12px;
  }
}

.content-layout.contact-layout {
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
}

.contact-layout .contact-content,
.contact-layout .contact-results {
  min-width: 0;
  width: 100%;
}

.contact-layout .contact-sidebar {
  position: sticky;
  top: 126px;
  align-self: start;
  min-width: 0;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-right: 6px;
}

.contact-layout .contact-sidebar .side-list {
  flex-direction: column;
}

.contact-layout .contact-sidebar .side-link {
  width: 100%;
  min-height: 48px;
  gap: 8px;
  align-items: center;
  font-size: 15px;
}

.contact-layout .dept-option-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-layout .contact-tools > .campus-bar {
  margin-bottom: 0;
}

.contact-layout .contact-tools {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 22px;
}

.contact-layout .contact-dept-select {
  display: none;
}

.contact-layout .contact-dept-select select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 30px 8px 12px;
  border: 1px solid #b5c5d1;
  border-radius: 4px;
  background: #fff;
  color: var(--ink, #213b4f);
  font-size: 16px;
  line-height: 1.6;
}

.contact-layout .contact-dept-select select:disabled {
  background: #f5f7f9;
  border-color: var(--line, #dde6ec);
  color: #6a7d8a;
  cursor: not-allowed;
  opacity: 1;
}

.contact-layout .directory {
  min-width: 0;
  border: 1px solid var(--line, #dde6ec);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.contact-layout .directory-head,
.contact-layout .contact-row {
  display: grid;
  grid-template-columns:
    minmax(110px, 1.05fr)
    minmax(78px, .7fr)
    minmax(120px, 1.25fr)
    minmax(154px, 1.3fr);
  gap: 16px;
  padding: 18px;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.contact-layout .directory-head {
  background: #eaf1f6;
  color: #536f82;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--line, #dde6ec);
}

.contact-layout .contact-row {
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid #e7edf1;
}

.contact-layout .contact-row:nth-child(even) {
  background: #fafcfd;
}

.contact-layout .contact-row[data-last-visible] {
  border-bottom: 0;
}

.contact-layout .contact-row > * {
  min-width: 0;
}

.contact-layout .dept-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
}

.contact-layout .campus-value {
  position: static;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #536e80;
  font-size: 15px;
  line-height: 1.8;
}

.contact-layout .contact-address {
  display: block;
  color: #536976;
}

.contact-layout .contact-label {
  display: none;
}

.contact-layout .contact-phone {
  display: block;
  min-width: 0;
}

.contact-layout .contact-phone-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.contact-layout .contact-phone .contact-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 6px 0;
  color: var(--blue, #00558d);
  line-height: 1.6;
  text-decoration: none;
}

.contact-layout .contact-call-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.contact-layout .contact-number {
  display: block;
  font-size: 16px;
  line-height: 1.6;
  white-space: nowrap;
}

.contact-layout .contact-call-action {
  display: none;
}

.contact-layout .contact-call:hover .contact-number {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-layout .missing {
  color: var(--muted, #657886);
  font-size: 14px;
  line-height: 1.8;
}

.contact-layout .contact-empty {
  width: 100%;
  min-width: 0;
  padding: 44px 24px;
  border: 1px solid var(--line, #dde6ec);
  border-radius: 6px;
  background: #fff;
  color: var(--muted, #657886);
  text-align: center;
}

.contact-layout .contact-empty h3 {
  margin: 0 0 8px;
  color: var(--ink, #213b4f);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}

.contact-layout .contact-empty p {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
}

@media (min-width: 960px) and (max-width: 1199px) {
  .content-layout.contact-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
  }

  .contact-layout .directory-head,
  .contact-layout .contact-row {
    gap: 12px;
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 959px) {
  .content-layout.contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .contact-layout .contact-sidebar {
    display: none;
  }

  .contact-layout .contact-dept-select {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
    color: var(--muted, #657886);
    font-size: 15px;
  }

  .contact-layout .contact-dept-select select {
    flex: 1;
    width: 0;
    max-width: none;
  }
}

@media (max-width: 767px) {
  .contact-layout .contact-dept-select select {
    font-size: 16px;
  }

  .contact-layout .contact-tools {
    gap: 16px;
    margin-bottom: 20px;
  }

  .contact-layout .directory {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .contact-layout .directory-head {
    display: none;
  }

  .contact-layout .contact-row,
  .contact-layout .contact-row:nth-child(even) {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    margin-bottom: 12px;
    padding: 18px;
    border: 1px solid var(--line, #dde6ec);
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
  }

  .contact-layout .contact-row[data-last-visible] {
    margin-bottom: 0;
    border-bottom: 1px solid var(--line, #dde6ec);
  }

  .contact-layout .dept-name {
    padding-right: 0;
    color: var(--ink, #213b4f);
    font-size: 16px;
    line-height: 1.7;
  }

  .contact-layout .campus-value {
    position: static;
    align-self: start;
    padding: 1px 7px;
    border-radius: 3px;
    background: #edf4f8;
    color: var(--blue, #00558d);
    font-size: 14px;
    line-height: 1.8;
    text-align: right;
  }

  .contact-layout .contact-address,
  .contact-layout .contact-phone {
    display: flex;
    grid-column: 1 / -1;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    color: var(--ink, #213b4f);
    overflow-wrap: anywhere;
  }

  .contact-layout .contact-label {
    display: block;
    flex: 0 0 30px;
    min-width: 30px;
    color: var(--muted, #657886);
    font-size: 15px;
    line-height: 1.8;
  }

  .contact-layout .contact-address > span:last-child {
    flex: 1;
    min-width: 0;
  }

  .contact-layout .contact-phone > .contact-label {
    line-height: 44px;
  }

  .contact-layout .contact-phone-list {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .contact-layout .contact-number {
    font-size: 16px;
  }

  .contact-layout .contact-call-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 30px;
    padding: 3px 9px;
    border: 1px solid #d7e5ee;
    border-radius: 4px;
    background: #f1f6fa;
    color: var(--blue, #00558d);
    font-size: 13px;
    line-height: 1.6;
  }

  .contact-layout .contact-empty {
    padding: 34px 18px;
  }
}

:root {
  --site-header-height: 7.5rem;
  --service-nav-height: 100px;
  --service-scroll-offset: calc(var(--site-header-height) + var(--service-nav-height) + 16px);
}

html {
  scroll-padding-top: var(--service-scroll-offset);
}

#header.header {
  top: 0;
  z-index: 40;
}

#header.header.is-scrolled,
#header.header.is-menu-open {
  background: var(--blue);
}

.hero.service-search-band {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.hero.service-search-band::before,
.hero.service-search-band::after {
  content: none;
}

.service-search-band .hero-inner {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-top: 28px;
  padding-bottom: 24px;
}

.service-search-band .hero-head {
  margin: 0;
}

.hero.service-search-band h1 {
  color: var(--blue);
  font-size: 34px;
  line-height: 1.4;
  letter-spacing: 3px;
  font-weight: bold;
}

.service-search-band .search-area {
  max-width: none;
  min-width: 0;
}

.service-search-band .search-form {
  padding: 5px 5px 5px 18px;
  gap: 12px;
  border: 1px solid #bdceda;
  border-radius: 4px;
  box-shadow: none;
}

.service-search-band .search-form:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.service-search-band .service-search-input {
  padding: 0;
  height: 48px;
  font-size: 16px;
  text-align: left;
}

.service-search-band .service-search-input::placeholder {
  color: #657886;
  opacity: 1;
}

.service-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.service-search-input::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

.service-search-band .search-submit {
  height: 48px;
  padding: 0 26px;
  font-size: 16px;
}

.service-search-band .clear-search {
  width: 44px;
  height: 44px;
}

.service-search-band .hotwords {
  margin-top: 8px;
  gap: 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.service-search-band .hotwords span {
  color: var(--muted);
}

.service-search-band .hotwords button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--blue);
}

.service-nav {
  top: var(--site-header-height);
  z-index: 25;
}

.sidebar,
.contact-layout .contact-sidebar {
  top: calc(var(--site-header-height) + var(--service-nav-height) + 24px);
}

.contact-layout .contact-sidebar {
  max-height: calc(100dvh - var(--site-header-height) - var(--service-nav-height) - 48px);
}

.group {
  scroll-margin-top: 0;
}

#header .menu {
  border: 0;
  background: transparent;
  padding: 0;
}

#header .menu i {
  flex-shrink: 0;
}

#header .mobile-menu-more {
  border: 0;
  background: transparent;
}

@media (min-width: 1024px) {
  #header .nav-navbar > li:focus-within > .nav-dropdown {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 1199px) {
  .site-header .common-slide-img {
    height: 280px;
  }

  .service-search-band .hero-inner {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 28px;
  }

  .hero.service-search-band h1 {
    font-size: 32px;
  }
}

@media (max-width: 1023px) {
  :root {
    --site-header-height: 5rem;
  }

  #header .header-item {
    width: calc(100% - 36px);
  }

  #header .header-nav {
    min-width: 0;
    flex: 0 0 auto;
    margin: 0;
  }

  #header .nav-top {
    padding: 0;
    justify-content: flex-end;
  }

  #header .nav-top-bar {
    display: none;
  }

  #header .menu {
    width: 44px;
    height: 44px;
    margin: 0;
    align-items: center;
    justify-content: center;
  }

  #header .nav-item {
    top: var(--site-header-height);
    height: calc(100dvh - var(--site-header-height));
    margin: 0;
    padding-bottom: 24px;
    overscroll-behavior: contain;
  }

  #header.is-menu-open .nav-item,
  #header.is-menu-open .nav-navbar {
    display: block;
  }

  #header .nav-dropdown.open,
  #header .nav-navbar li:hover > .nav-dropdown.open {
    height: auto;
    visibility: visible;
    opacity: 1;
  }

  #header .mobile-menu-more {
    min-width: 44px;
    min-height: 44px;
    top: 0;
  }
}

@media (max-width: 959px) {
  .service-search-band .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .hero.service-search-band h1 {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --site-header-height: 4.25rem;
  }

  #header .header-logo {
    width: 140px;
    height: 50px;
  }
}

@media (max-width: 767px) {
  :root {
    --service-nav-height: 83px;
  }

  .site-header .common-slide-img {
    height: 220px;
  }

  .site-header .common-slide-img > .img-cover {
    object-position: 58% center;
  }

  .service-search-band .hero-inner {
    gap: 14px;
    padding-top: 20px;
    padding-bottom: 14px;
  }

  .hero.service-search-band h1 {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .service-search-band .search-form {
    padding-left: 12px;
    gap: 8px;
  }

  .service-search-band .search-submit {
    padding: 0 15px;
    font-size: 16px;
  }

  .service-search-band .hotwords {
    gap: 0 12px;
    margin-top: 6px;
  }

  .service-search-band .hotwords span {
    flex-basis: 100%;
    line-height: 26px;
  }
}

/* 独立详情页：正文、附件与返回导航。 */
.back-top {
  width: 44px;
  height: 44px;
}
.service-card,
.result-card {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.service-card strong,
.service-card small,
.result-card h3,
.result-card p {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.guide-detail-page {
  --service-nav-height: 0px;
  --service-scroll-offset: calc(var(--site-header-height) + 24px);
}
.guide-detail-page .common-slide-img {
  height: 160px;
}
.guide-detail-page .common-slide-img > .img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-content.wrap {
  width: min(1100px, calc(100% - 80px));
  min-width: 0;
  padding-top: 22px;
  padding-bottom: 64px;
}
.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.detail-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue);
}
.detail-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.guide-detail {
  min-width: 0;
  padding: 32px 40px 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.detail-header {
  min-width: 0;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.detail-meta {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.detail-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.detail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #b8cbd9;
  border-radius: 4px;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.6;
}
.detail-actions a:hover {
  border-color: var(--blue);
  background: var(--pale);
}
.detail-actions .icon {
  width: 18px;
  height: 18px;
}
.guide-detail .guide-summary {
  font-size: 16px;
  line-height: 1.8;
}
.guide-detail .guide-body {
  min-width: 0;
  font-size: 16px;
  line-height: 1.95;
}
.guide-detail .guide-body .doc-heading {
  font-size: 17px;
}
.guide-detail .guide-body h2,
.guide-detail .guide-body h3 {
  margin: 22px 0 10px;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.65;
}
.guide-detail .table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.guide-detail .guide-body table {
  font-size: 16px;
}
.guide-detail .guide-body figure {
  max-width: 100%;
}
.guide-detail .guide-body img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
.guide-detail .guide-body pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
}
.guide-detail .guide-source h3 {
  font-size: 18px;
}
.guide-detail .file-link {
  min-height: 44px;
  font-size: 16px;
  line-height: 1.8;
}
.guide-detail .file-link:hover {
  border-color: #90b4cd;
  background: #f6fafc;
}
@media (max-width: 1199px) {
  .guide-detail-page .common-slide-img {
    height: 120px;
  }
  .detail-content.wrap {
    width: calc(100% - 48px);
  }
}
@media (max-width: 767px) {
  .guide-detail-page .common-slide-img {
    height: 96px;
  }
  .detail-content.wrap {
    width: calc(100% - 28px);
    padding-top: 14px;
    padding-bottom: 36px;
  }
  .detail-breadcrumb {
    margin-bottom: 12px;
    font-size: 13px;
  }
  .guide-detail {
    padding: 24px 18px;
  }
  .detail-header {
    margin-bottom: 22px;
    padding-bottom: 20px;
  }
  .detail-header h1 {
    font-size: 24px;
  }
  .detail-meta {
    font-size: 14px;
  }
  .detail-actions {
    margin-top: 16px;
  }
  .guide-detail .guide-summary {
    padding: 12px 14px;
  }
  .guide-detail .guide-body h2,
  .guide-detail .guide-body h3 {
    font-size: 18px;
  }
  .guide-detail .file-link {
    align-items: flex-start;
    padding: 12px;
  }
  .guide-detail .file-link .icon {
    margin-top: 5px;
  }
}
/* 生活服务：通用资料在前，分校区资料在后；只调整生活区目录与分组层次。 */
[data-section="life"] .life-sidebar {
  position: sticky;
  top: calc(var(--site-header-height) + var(--service-nav-height) + 24px);
  align-self: start;
  min-width: 0;
  max-height: calc(100vh - var(--site-header-height) - var(--service-nav-height) - 48px);
  max-height: calc(100dvh - var(--site-header-height) - var(--service-nav-height) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 4px 6px 4px 4px;
}

[data-section="life"] .life-directory-group + .life-directory-group {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

[data-section="life"] .life-directory-heading {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

[data-section="life"] a.life-directory-heading:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

[data-section="life"] .life-sidebar .side-list {
  flex-direction: column;
  gap: 3px;
}

[data-section="life"] .life-sidebar .side-link {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
}

[data-section="life"] .life-mobile-directory {
  display: none;
}

[data-section="life"] .life-service-group {
  min-width: 0;
  scroll-margin-top: 0;
}

[data-section="life"] .life-service-group + .life-service-group {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

[data-section="life"] .life-group-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
}

[data-section="life"] .life-group-heading h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

[data-section="life"] .life-group-scope {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

[data-section="life"] .life-service-group .campus-bar {
  margin-bottom: 20px;
}

[data-section="life"] .life-card {
  scroll-margin-top: 0;
}

[data-section="life"] .life-group-heading h3:focus-visible,
[data-section="life"] .life-card:focus-visible {
  outline: 3px solid #b58d4d;
  outline-offset: 4px;
}

@media (max-width: 959px) {
  [data-section="life"] .life-sidebar {
    display: none;
  }

  [data-section="life"] .life-mobile-directory {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
    margin-bottom: 24px;
  }

  [data-section="life"] .life-mobile-directory label {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 15px;
  }

  [data-section="life"] .life-mobile-directory select {
    flex: 1;
    width: 0;
    min-width: 0;
    min-height: 44px;
    padding: 8px 30px 8px 12px;
    border: 1px solid #b5c5d1;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (max-width: 767px) {
  [data-section="life"] .life-group-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  [data-section="life"] .life-service-group + .life-service-group {
    margin-top: 32px;
    padding-top: 24px;
  }
}

@media print {
  [data-section="life"] .life-mobile-directory {
    display: none;
  }

  html {
    scroll-padding-top: 0;
  }
  body {
    background: #fff;
    color: #000;
  }
  .site-header,
  #header,
  .common-footer,
  .hero,
  .service-nav,
  .sidebar,
  .back-top,
  .detail-breadcrumb,
  .detail-actions,
  .skip {
    display: none !important;
  }
  .content,
  .detail-content.wrap {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  .content-layout {
    display: block;
  }
  .group {
    break-inside: avoid;
  }
  .guide-detail {
    padding: 0;
    border: 0;
    border-radius: 0;
  }
  .detail-header h1 {
    font-size: 24px;
  }
  .guide-detail .table-scroll {
    overflow: visible;
  }
  .guide-detail .guide-body table {
    font-size: 12px;
    table-layout: fixed;
  }
  .guide-detail .guide-body td,
  .guide-detail .guide-body th {
    min-width: 0;
    padding: 6px;
    overflow-wrap: anywhere;
  }
  .guide-detail .guide-body img {
    max-height: 240mm;
    break-inside: avoid;
  }
  .guide-detail .file-link {
    padding: 3px 0;
    border: 0;
  }
  .guide-detail .file-link .icon {
    display: none;
  }
}