/* ==========================================================================
   河南省中医院（河南中医药大学第二附属医院）官网改版原型样式
   设计基调：沿用院内视觉识别 —— 深红 + 金色 + 米白底纹
   ========================================================================== */

:root {
    --red-900: #5e1004;
    --red-800: #781b09;
    --red-700: #7c0007;
    --red-600: #96221a;
    --gold: #c9a86a;
    --gold-light: #e7c192;
    --gold-pale: #f6efe2;
    --ink: #2c2c2c;
    --ink-2: #4a4a4a;
    --gray: #6b6b6b;
    --line: #e5dfd5;
    --bg: #f7f4ee;
    --white: #fff;
    --radius: 10px;
    --shadow: 0 6px 24px rgba(94, 16, 4, .07);
    --shadow-lg: 0 14px 40px rgba(94, 16, 4, .12);
    --wp: 1280px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.7;
    background: var(--bg);
}

a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }

.wp { width: 90%; max-width: 1600px; margin-inline: auto; }

/* ---------- 顶部信息条 ---------- */
.topbar {
    background: var(--red-900);
    color: #f3e2c8;
    font-size: 13px;
}
.topbar .wp {
    display: flex; align-items: center; justify-content: space-between;
    height: 40px; gap: 16px;
}
.topbar a { color: #f3e2c8; opacity: .9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar .quick { display: flex; gap: 18px; }
.topbar .quick a.on { color: var(--gold-light); }

/* ---------- 页头 ---------- */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--red-800);
    position: relative;
    z-index: 30;
}
.site-header .wp {
    display: flex; align-items: center; justify-content: space-between;
    height: 96px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark {
    width: 52px; height: 52px; flex: none;
    border-radius: 8px;
    background: linear-gradient(160deg, var(--red-700), var(--red-900));
    color: var(--gold-light);
    display: grid; place-items: center;
    font-size: 26px; font-weight: 700;
    font-family: "STKaiti", "KaiTi", serif;
}
.brand-txt h1 { font-size: 24px; letter-spacing: 2px; color: var(--red-800); font-weight: 700; }
.brand-txt p { font-size: 12px; color: var(--gray); letter-spacing: .5px; }

.header-tools { display: flex; align-items: center; gap: 16px; }
.search-box {
    display: flex; align-items: center;
    border: 1px solid var(--line); border-radius: 999px;
    overflow: hidden; background: #faf8f4;
    width: 300px;
}
.search-box input {
    flex: 1; border: 0; background: transparent;
    padding: 9px 16px; outline: none; font-size: 14px;
}
.search-box button {
    border: 0; background: var(--red-800); color: #f7e7cb;
    padding: 9px 18px; cursor: pointer; font-size: 14px;
}
.search-box button:hover { background: var(--red-700); }

/* ---------- 主导航 ---------- */
.mainnav { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.mainnav > .wp > ul { display: flex; }
.mainnav > .wp > ul > li { position: relative; flex: 1; text-align: center; }
.mainnav > .wp > ul > li > a {
    display: block; padding: 15px 6px; font-size: 16px; color: var(--ink-2);
    border-bottom: 3px solid transparent; transition: .18s;
}
.mainnav > .wp > ul > li:hover > a,
.mainnav > .wp > ul > li.on > a { color: var(--red-700); border-color: var(--red-700); font-weight: 600; }
.subnav {
    position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
    min-width: 168px; background: var(--white);
    box-shadow: var(--shadow-lg); border-top: 3px solid var(--red-700);
    padding: 8px 0; display: none; border-radius: 0 0 8px 8px;
}
.mainnav li:hover .subnav { display: block; }
.subnav a { display: block; padding: 9px 20px; font-size: 14px; white-space: nowrap; }
.subnav a:hover { background: var(--gold-pale); color: var(--red-700); }

/* ---------- 首页横幅 ---------- */
.hero {
    background:
      radial-gradient(1200px 320px at 50% -40%, rgba(255, 214, 150, .28), transparent 70%),
      linear-gradient(165deg, #8c1508 0%, #6d1105 45%, #541004 100%);
    color: #fff; position: relative; overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; inset: auto -10% -70% -10%; height: 260px;
    background: radial-gradient(closest-side, rgba(233, 189, 120, .25), transparent);
}
.hero .wp { padding: 58px 0 96px; position: relative; z-index: 2; }
.hero h2 { font-size: 44px; letter-spacing: 8px; font-weight: 700; text-shadow: 0 3px 16px rgba(0,0,0,.25); }
.hero p { margin-top: 12px; color: #f0d9b4; letter-spacing: 1px; }

/* 首页快捷入口卡片 */
.quicklinks { margin-top: -52px; position: relative; z-index: 5; }
.quicklinks ul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.quicklinks a {
    display: block; background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 22px 16px; text-align: center;
    border: 1px solid #f0e9dc; transition: .2s; height: 100%;
}
.quicklinks a:hover { transform: translateY(-4px); border-color: var(--gold); }
.quicklinks .ico {
    width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--gold-pale); color: var(--red-700); font-size: 20px; font-weight: 700;
}
.quicklinks h3 { font-size: 17px; color: var(--red-800); }
.quicklinks p { font-size: 12px; color: var(--gray); letter-spacing: .4px; }
.quicklinks .is-new { position: relative; }
.quicklinks .is-new::after {
    content: "NEW"; position: absolute; top: 10px; right: 12px;
    background: var(--red-700); color: #ffe9c9; font-size: 10px;
    padding: 1px 6px; border-radius: 999px; letter-spacing: 1px;
}

/* ---------- 通用区块 ---------- */
.section { padding: 54px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; gap: 20px; }
.section-head h2 {
    font-size: 26px; color: var(--red-800); letter-spacing: 3px; font-weight: 700;
    padding-left: 14px; border-left: 6px solid var(--gold);
    line-height: 1.25;
}
.section-head .sub { color: var(--gray); font-size: 13px; margin-top: 6px; padding-left: 20px; letter-spacing: .5px; }
.section-head .more { color: var(--red-700); font-size: 14px; }
.section-head .more:hover { text-decoration: underline; }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #f1ece2; }

/* ---------- 页内主区（内页两栏） ---------- */
.page-hero {
    background: linear-gradient(120deg, #7c1508, #5e1004);
    color: #fff; padding: 34px 0;
}
.page-hero .wp { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-hero h2 { font-size: 30px; letter-spacing: 4px; font-weight: 700; }
.breadcrumb { font-size: 13px; color: #e8cfa8; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: .65; margin: 0 6px; }

.layout { display: grid; grid-template-columns: 236px 1fr; gap: 28px; padding: 30px 0 60px; align-items: start; }

.side-menu { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid #f1ece2; }
.side-menu h3 {
    background: var(--red-800); color: #fbeed6; padding: 16px 20px;
    font-size: 17px; letter-spacing: 2px; font-weight: 600;
}
.side-menu ul { padding: 8px 0; }
.side-menu li > a {
    display: block; padding: 11px 20px; font-size: 14px; color: var(--ink-2);
    border-left: 3px solid transparent;
}
.side-menu li > a:hover { background: var(--gold-pale); color: var(--red-700); }
.side-menu li > a.on { color: var(--red-700); border-color: var(--gold); background: #fdf8ef; font-weight: 600; }
.side-menu .sub a { padding-left: 36px; font-size: 13px; color: var(--gray); }

/* ---------- 院区导航（二级页） ---------- */
.campus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.campus-card {
    display: block; background: var(--white); border-radius: 14px; overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid #f1ece2; transition: .22s;
}
.campus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.campus-card .cover {
    height: 148px; position: relative; color: #fff;
    background: linear-gradient(130deg, #8e1508 0%, #641105 60%, #45150a 100%);
    display: flex; align-items: flex-end; padding: 18px 22px;
}
.campus-card .cover::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(340px 130px at 88% -20%, rgba(240, 205, 140, .35), transparent 70%);
}
.campus-card .cover h3 { font-size: 25px; letter-spacing: 3px; position: relative; }
.campus-card .cover .tag {
    position: absolute; top: 14px; left: 22px;
    background: rgba(255, 240, 214, .16); border: 1px solid rgba(255, 236, 200, .5);
    font-size: 12px; padding: 2px 10px; border-radius: 999px; letter-spacing: 2px;
}
.campus-card .body { padding: 18px 22px 22px; }
.campus-card .body p { color: var(--gray); font-size: 14px; min-height: 48px; }
.campus-card .body .meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--gold-pale); color: var(--red-800);
    border: 1px solid #ecdfc6; border-radius: 999px;
    padding: 4px 12px; font-size: 13px;
}
.chip.plain { background: #f5f5f3; border-color: #e6e4df; color: var(--ink-2); }

/* ---------- 院区页 ---------- */
.campus-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: stretch; }
.campus-intro { padding: 26px 28px; }
.campus-intro h3 { font-size: 22px; color: var(--red-800); letter-spacing: 2px; margin-bottom: 10px; }
.campus-intro p { color: var(--ink-2); }
.campus-intro .kv { margin-top: 16px; display: grid; gap: 8px; }
.campus-intro .kv div { display: flex; gap: 10px; font-size: 14px; }
.campus-intro .kv b { color: var(--red-700); flex: none; width: 62px; font-weight: 600; }
.campus-map {
    border-radius: var(--radius); border: 1px dashed #d9cbb0; background:
      repeating-linear-gradient(45deg, #fbf7ef 0 12px, #f6f0e4 12px 24px);
    display: grid; place-items: center; min-height: 220px; color: #a08a63; text-align: center; padding: 20px;
}
.campus-map .pin { font-size: 30px; }

.dept-group { margin-bottom: 22px; }
.dept-group > h4 {
    font-size: 16px; color: var(--red-800); font-weight: 600;
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.dept-group > h4::before { content: ""; width: 5px; height: 18px; background: var(--gold); border-radius: 3px; }
.dept-links { display: flex; flex-wrap: wrap; gap: 10px; }
.dept-links a {
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    padding: 9px 16px; font-size: 14px; color: var(--ink-2); transition: .16s;
}
.dept-links a:hover { border-color: var(--gold); color: var(--red-700); background: #fffdf8; box-shadow: var(--shadow); }
.dept-links a .n { color: var(--gray); font-size: 12px; margin-left: 6px; }

/* ---------- 科室介绍（紧凑版） ---------- */
.ksdh-toolbar {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    background: #fff; border: 1px solid #f1ece2; border-radius: var(--radius);
    padding: 12px 16px; box-shadow: var(--shadow); margin-bottom: 22px;
}
.ksdh-toolbar .filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ksdh-toolbar .filters button {
    border: 1px solid var(--line); background: #fff; border-radius: 999px;
    padding: 5px 15px; cursor: pointer; font-size: 14px; color: var(--ink-2);
}
.ksdh-toolbar .filters button:hover { border-color: var(--gold); color: var(--red-700); }
.ksdh-toolbar .filters button.on { background: var(--red-800); border-color: var(--red-800); color: #fbeed6; }
.ksdh-toolbar .search-mini { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #faf8f4; }
.ksdh-toolbar .search-mini input { border: 0; background: transparent; padding: 7px 14px; outline: none; width: 200px; font-size: 14px; }
.ksdh-toolbar .search-mini button { border: 0; background: var(--red-800); color: #fbeed6; padding: 7px 16px; cursor: pointer; }

.ks-cate { margin-bottom: 20px; }
.ks-cate-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 17px; color: var(--red-800); letter-spacing: 2px; font-weight: 700;
    margin-bottom: 10px;
}
.ks-cate-title::before { content: ""; width: 5px; height: 16px; background: var(--gold); border-radius: 3px; }

.ks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ks-dept {
    background: #fff; border: 1px solid #f1ece2; border-radius: 8px;
    padding: 9px 12px; transition: .16s;
}
.ks-dept:hover { border-color: #ecdcc0; box-shadow: var(--shadow); }
.ks-head { display: flex; align-items: center; gap: 8px; }
.ks-name {
    flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px;
    font-size: 14.5px; color: var(--ink); line-height: 1.5;
}
.ks-name:hover { color: var(--red-700); }
.ks-name i { font-style: normal; color: #d9cdb4; font-size: 14px; }
.ks-name:hover i { color: var(--gold); }

.ks-toggle {
    flex: none; border: 1px solid #ecdfc6; background: #fdf8ef; color: var(--red-800);
    border-radius: 999px; padding: 2px 8px; font-size: 12px; cursor: pointer; line-height: 1.4;
}
.ks-toggle i { font-style: normal; margin-left: 3px; font-size: 11px; }
.ks-toggle:hover { border-color: var(--gold); }
.ks-toggle.on { background: var(--red-800); border-color: var(--red-800); color: #fbeed6; }

.ks-wards {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 8px;
    border-top: 1px dashed #f0e9dc;
}
.ks-wards[hidden] { display: none; }
.ks-wards span {
    font-size: 12.5px; color: var(--ink-2); background: #f7f5f0;
    border: 1px solid #eee9e0; border-radius: 4px; padding: 2px 8px;
}
.ks-empty { padding: 40px 0; text-align: center; color: var(--gray); }

/* ---------- 新版科室综合页 ---------- */
.dept-hero { padding: 30px 0; }
.dept-hero .inner {
    background: #fff; border: 1px solid #f1ece2; border-radius: 14px;
    box-shadow: var(--shadow); padding: 28px 30px;
    display: grid; grid-template-columns: 1fr 240px; gap: 28px;
}
.dept-hero h2 { font-size: 30px; color: var(--red-800); letter-spacing: 2px; }
.dept-hero .tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.dept-hero .lead { margin-top: 14px; color: var(--ink-2); }
.dept-hero .stat { display: flex; gap: 26px; margin-top: 20px; }
.dept-hero .stat b { display: block; font-size: 26px; color: var(--red-700); line-height: 1.2; }
.dept-hero .stat span { font-size: 13px; color: var(--gray); }
.dept-hero .cover {
    border-radius: 10px; min-height: 180px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(140deg, #8e1508, #5c1004); display: grid; place-items: center;
}
.dept-hero .cover .em { font-size: 44px; color: var(--gold-light); font-family: "STKaiti","KaiTi",serif; }

.dept-section { margin-top: 26px; }
.dept-section > .sec-head {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.dept-section > .sec-head h3 { font-size: 21px; color: var(--red-800); letter-spacing: 2px; padding-left: 12px; border-left: 5px solid var(--gold); }
.dept-section .prose { background: #fff; border: 1px solid #f1ece2; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; color: var(--ink-2); }
.dept-section .prose p + p { margin-top: 10px; }

/* 医生平铺网格 —— 本次改版重点（替换原滚动 swiper） */
.doc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (min-width: 1500px) { .doc-grid { grid-template-columns: repeat(6, 1fr); } }
.doc-card {
    background: #fff; border: 1px solid #f1ece2; border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow); transition: .2s; display: flex; flex-direction: column;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #ecdcc0; }
.doc-card .photo { position: relative; aspect-ratio: 4 / 4.6; background: #f2ece0; overflow: hidden; }
.doc-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-card .photo .fallback {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: linear-gradient(160deg, #8e1508, #5c1004);
    color: var(--gold-light); font-size: 40px; font-family: "STKaiti", "KaiTi", serif;
}
.doc-card .info { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.doc-card .info .nm { font-size: 17px; color: var(--red-800); font-weight: 700; letter-spacing: 1px; }
.doc-card .info .ti { font-size: 13px; color: var(--gold); font-weight: 600; }
.doc-card .info .de { font-size: 12.5px; color: var(--gray); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.doc-card .info .go { margin-top: auto; font-size: 13px; color: var(--red-700); }

/* ---------- 名医名家 ---------- */
.py-index {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    background: #fff; border: 1px solid #f1ece2; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 18px;
}
.py-index .lbl { color: var(--gray); font-size: 13px; margin-right: 4px; }
.py-index button {
    min-width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
    background: #fff; cursor: pointer; color: var(--ink-2); font-size: 14px;
}
.py-index button:hover { border-color: var(--gold); color: var(--red-700); }
.py-index button.on { background: var(--red-800); border-color: var(--red-800); color: #fbeed6; font-weight: 700; }
.py-index button:disabled { opacity: .35; cursor: not-allowed; }

.filter-row {
    background: #fff; border: 1px solid #f1ece2; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 18px;
    display: grid; gap: 12px;
}
.filter-row .row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.filter-row .row > .lbl { color: var(--gray); font-size: 14px; flex: none; width: 74px; padding-top: 5px; }
.filter-row .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row .opts button {
    border: 1px solid var(--line); background: #fff; border-radius: 999px;
    padding: 4px 14px; cursor: pointer; font-size: 13.5px; color: var(--ink-2);
}
.filter-row .opts button:hover { border-color: var(--gold); color: var(--red-700); }
.filter-row .opts button.on { background: var(--red-800); border-color: var(--red-800); color: #fbeed6; }

.doc-search { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.doc-search .field { position: relative; flex: 1; min-width: 240px; }
.doc-search input[type="text"] {
    width: 100%; border: 1px solid var(--line); border-radius: 999px;
    padding: 9px 16px; outline: none; background: #faf8f4;
}
.doc-search input[type="text"]:focus { border-color: var(--gold); background: #fff; }
.doc-search select {
    border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px;
    background: #faf8f4; outline: none; min-width: 176px;
}
.doc-search .mode { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.doc-search .mode button {
    border: 0; background: #fff; padding: 9px 16px; cursor: pointer; font-size: 14px; color: var(--ink-2);
}
.doc-search .mode button.on { background: var(--red-800); color: #fbeed6; }
.doc-search .hint { font-size: 13px; color: var(--gray); }

.result-bar { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 14px; color: var(--gray); font-size: 14px; }
.result-bar b { color: var(--red-700); }

/* ---------- 旧版入口提示 ---------- */
.legacy-note {
    display: flex; gap: 12px; align-items: flex-start; line-height: 1.85;
    background: #fff9ec; border: 1px solid #f0dfbb; border-radius: var(--radius);
    padding: 12px 16px; color: #7a5b1f; font-size: 13.5px; margin-bottom: 20px;
}
.legacy-note > span { flex: none; font-weight: 600; color: var(--red-700); white-space: nowrap; }
.legacy-note a { color: var(--red-700); text-decoration: underline; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--red-900); color: #dcc7a5; margin-top: 40px; }
.site-footer .wp { padding: 30px 0 26px; display: grid; gap: 10px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.site-footer .links a:hover { color: #fff; text-decoration: underline; }
.site-footer .copy { font-size: 13px; color: #bd9f78; line-height: 1.9; border-top: 1px solid rgba(255, 235, 200, .18); padding-top: 14px; }
.site-footer .copy a { color: #e2cba6; }

/* ---------- 响应式 ---------- */
@media (max-width: 1300px) {
    .ks-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
    .doc-grid { grid-template-columns: repeat(4, 1fr); }
    .ks-grid { grid-template-columns: repeat(2, 1fr); }
    .quicklinks ul { grid-template-columns: repeat(3, 1fr); }
    .campus-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; }
    .campus-head, .dept-hero .inner { grid-template-columns: 1fr; }
    .doc-grid { grid-template-columns: repeat(3, 1fr); }
    .ks-grid { grid-template-columns: 1fr; }
    .mainnav > .wp > ul { flex-wrap: wrap; }
    .mainnav > .wp > ul > li { flex: 0 0 33.33%; }
    .site-header .wp { height: auto; padding: 12px 0; flex-direction: column; }
}
@media (max-width: 560px) {
    .doc-grid { grid-template-columns: repeat(2, 1fr); }
    .quicklinks ul { grid-template-columns: repeat(2, 1fr); }
    .hero h2 { font-size: 30px; letter-spacing: 4px; }
}

/* ==========================================================================
   院区页（新版）—— 依据《院区导航内容设计》：介绍 / 所包含科室 / 地址
   ========================================================================== */
.cp-hero {
    position: relative; color: #fff; min-height: 320px;
    background-color: #6d1007; background-size: cover; background-position: center 42%;
    display: flex; align-items: flex-end;
}
.cp-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(60, 8, 3, .86) 0%, rgba(60, 8, 3, .55) 45%, rgba(60, 8, 3, .12) 100%);
}
.cp-hero .wp { position: relative; z-index: 2; padding: 46px 0 34px; }
.cp-hero h1 { font-size: 40px; letter-spacing: 4px; font-weight: 700; margin-top: 10px; }
.cp-hero .alias { margin-top: 6px; color: #f0d9b4; font-size: 15px; letter-spacing: 1px; }
.cp-hero .tagline { margin-top: 10px; display: inline-block; padding: 4px 14px; border: 1px solid rgba(240, 217, 180, .45); border-radius: 999px; font-size: 13px; color: #f6e7cb; }
.cp-hero .breadcrumb { font-size: 13px; color: #e8cfa8; }
.cp-hero .breadcrumb a:hover { text-decoration: underline; }
.cp-hero .breadcrumb span { opacity: .6; margin: 0 6px; }

.cp-sec { margin-bottom: 34px; }
.cp-sec-title {
    font-size: 22px; color: var(--red-800); letter-spacing: 2px; font-weight: 700;
    padding-left: 13px; border-left: 6px solid var(--gold); margin-bottom: 16px;
}
.cp-sec-tip { color: var(--gray); font-size: 13px; margin: -6px 0 12px 19px; }
.cp-sec .prose { padding: 26px 28px; color: var(--ink-2); }
.cp-sec .prose p { font-size: 15px; line-height: 1.95; text-align: justify; }
.cp-sec .prose p + p { margin-top: 14px; }
.cp-sec .prose p:first-child { text-indent: 0; }

.cp-chips { padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.dept-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fdf8ef; border: 1px solid #ecdfc6; border-radius: 8px;
    padding: 10px 16px; font-size: 14.5px; color: var(--red-800); transition: .16s;
}
.dept-chip i { font-style: normal; color: var(--gold); font-size: 15px; }
.dept-chip:hover { background: var(--red-800); border-color: var(--red-800); color: #fbeed6; }
.dept-chip:hover i { color: var(--gold-light); }
.dept-chip.plain { background: #f7f6f3; border-color: #ecebe6; color: #5d5d5d; }

/* 院区地址：位置图 + 左上角地址信息卡（地址 / 邮编 / 传真 / 电话） */
.addr-map {
    position: relative; margin: 0; background: #fff;
    border: 1px solid #f1ece2; border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
}
.addr-map > img { width: 100%; display: block; }

.addr-card {
    position: absolute; left: 26px; top: 26px; width: 600px; max-width: calc(100% - 52px);
    background: rgba(255, 255, 255, .97); border-radius: 10px; padding: 16px 22px;
    box-shadow: 0 10px 30px rgba(60, 8, 3, .16);
}
.addr-dl { display: grid; gap: 0; }
.addr-dl > div { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #eee4d2; }
.addr-dl > div:last-child { border-bottom: 0; }
.addr-dl dt { color: var(--red-800); font-weight: 700; font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
.addr-dl dd { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.7; }
.addr-tel { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 2px; white-space: nowrap; }

/* ---------------- 院区页响应式 ---------------- */
@media (max-width: 860px) {
    .layout > .side-menu { display: none; }
    .cp-hero { min-height: 240px; }
    .cp-hero h1 { font-size: 30px; }
    .addr-card {
        position: static; width: auto; max-width: none; margin: 12px;
        box-shadow: none; border: 1px solid #f1ece2; border-radius: 8px;
    }
}
