:root {
    --college-red: #9f1834;
    --college-red-dark: #681022;
    --college-gold: #d4a84f;
    --college-ink: #1d1b1b;
    --college-muted: #6f6868;
    --college-cream: #f5f0e9;
    --college-line: #ded7cf;
}

html { scroll-behavior: smooth; }
.secondary-page { margin: 0; color: var(--college-ink); background: #fff; font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; }
.secondary-page a { color: inherit; }
.secondary-page .container { max-width: 1320px; }

/* 二级页统一导航 */
.sub-navbar { position: sticky; top: 0; z-index: 1030; min-height: 76px; padding: 8px 0; background: var(--college-red-dark); box-shadow: 0 8px 25px rgba(47, 5, 15, .18); }
.sub-navbar .container { width: 100%; max-width: none; padding-right: 28px; padding-left: 28px; }
.sub-navbar .navbar-brand { padding: 0; margin-right: 28px; }
.sub-navbar .navbar-brand img { width: auto; max-width: 700px; height: auto; }
.sub-navbar .navbar-collapse { flex: 1; }
.sub-navbar .navbar-nav { width: 100%; justify-content: flex-end; gap: 4px; }
.sub-navbar .nav-link { position: relative; padding: 16px 14px !important; color: rgba(255,255,255,.9); font-size: 15px; font-weight: 600; white-space: nowrap; }
.sub-navbar .nav-link::after { content: ""; position: absolute; right: 14px; bottom: 8px; left: 14px; height: 2px; background: var(--college-gold); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.sub-navbar .nav-link:hover,
.sub-navbar .nav-link:focus,
.sub-navbar .nav-link.active { color: #fff; }
.sub-navbar .nav-link:hover::after,
.sub-navbar .nav-link.active::after { transform: scaleX(1); }
.sub-navbar .dropdown-menu { min-width: 210px; margin-top: 0; padding: 8px 0; border: 1px solid rgba(104,16,34,.14); border-top: 3px solid var(--college-gold); border-radius: 0 0 2px 2px; background: rgba(255,253,249,.99); box-shadow: 0 16px 34px rgba(45,4,14,.2); }
.sub-navbar .dropdown-item { padding: 12px 20px; border-bottom: 1px solid rgba(104,16,34,.08); border-left: 3px solid transparent; color: #40222a; font-size: 14px; font-weight: 600; transition: color .2s ease, background-color .2s ease, border-color .2s ease, padding-left .2s ease; }
.sub-navbar .dropdown-menu li:last-child .dropdown-item { border-bottom: 0; }
.sub-navbar .dropdown-item:hover,
.sub-navbar .dropdown-item:focus,
.sub-navbar .dropdown-item:active { padding-left: 24px; border-left-color: var(--college-gold); background: var(--college-red-dark); color: #fff; }
.sub-navbar .navbar-toggler { border: 1px solid rgba(255,255,255,.45); }
.sub-navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.sub-navbar .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
.sub-header-actions { display: flex; align-items: center; gap: 10px; margin-left: 14px; flex: 0 0 auto; }
.sub-language-switch { min-width: 46px; height: 34px; padding: 0 10px; border: 1px solid rgba(255,255,255,.72); background: rgba(0,0,0,.12); color: #fff; font-size: 12px; font-weight: 750; letter-spacing: .1em; }
.sub-language-switch:hover,
.sub-language-switch:focus-visible { background: #fff; color: var(--college-red-dark); outline: 0; }
.sub-header-actions .header-search { position: relative; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; }
.sub-header-actions .search-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sub-header-actions .search-trigger { display: grid; place-items: center; width: 34px; height: 34px; cursor: pointer; }
.sub-header-actions .search-toggle:focus-visible + .search-trigger { outline: 2px solid #fff; outline-offset: 2px; }
.sub-header-actions .search-icon { position: static; width: 20px; height: 20px; cursor: pointer; opacity: .92; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); transition: opacity .3s ease, transform .3s ease; }
.sub-header-actions .search-trigger:hover .search-icon { opacity: 1; transform: scale(1.1); }
.sub-header-actions .search-box { position: absolute; top: calc(100% + 14px); right: 0; z-index: 1040; display: none; width: 390px; padding: 20px; border: 1px solid #e0e0e0; border-radius: 10px; background: #fff; box-shadow: 0 8px 25px rgba(0,0,0,.15); }
.sub-header-actions .search-toggle:checked ~ .search-box { display: block; animation: subSearchSlideDown .3s ease-out; }
.sub-header-actions .search-input-container { display: flex; align-items: center; gap: 10px; }
.sub-header-actions .search-input { min-width: 0; flex: 1; padding: 12px 20px; border: 2px solid #e0e0e0; border-radius: 25px; outline: none; font-size: 14px; transition: border-color .3s ease; }
.sub-header-actions .search-input:focus { border-color: var(--college-red); }
.sub-header-actions .search-btn { padding: 12px 20px; border: 0; border-radius: 25px; background: var(--college-red); color: #fff; font-size: 14px; cursor: pointer; transition: background-color .3s ease; }
.sub-header-actions .search-btn:hover { background: var(--college-red-dark); }
.sub-header-actions .search-close { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #f8f9fa; color: #666; font-size: 18px; line-height: 1; cursor: pointer; user-select: none; }
.sub-header-actions .search-close:hover { background: #e9ecef; color: #333; }
@keyframes subSearchSlideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* 栏目首屏 */
.sub-hero { position: relative; overflow: hidden; padding: 34px 0 38px; background: var(--college-red-dark); color: #fff; }
.sub-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(74,5,19,.96), rgba(74,5,19,.72)), url("../img/list-banner1.jpg") center/cover; }
.sub-hero::after { content: none; }
.sub-hero .container { position: relative; z-index: 1; }
.sub-eyebrow { margin: 0 0 14px; color: #e9c274; font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.sub-hero h1 { max-width: 950px; margin: 0; font: 500 clamp(1.85rem, 3vw, 2.8rem)/1.1 Georgia, "Songti SC", serif; letter-spacing: -.025em; }
.sub-hero p:last-child { max-width: 760px; margin: 22px 0 0; color: rgba(255,255,255,.72); font-size: 1.03rem; line-height: 1.8; }

.sub-main { padding: 78px 0 100px; }
.content-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 42px; padding-bottom: 16px; border-bottom: 1px solid var(--college-line); color: var(--college-muted); font-size: 13px; }
.content-breadcrumb a { color: var(--college-red); text-decoration: none; }
.content-breadcrumb a:hover { color: var(--college-red-dark); }
.section-label { margin: 0 0 12px; color: var(--college-red); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.editorial-title { margin: 0; font: 500 clamp(2rem, 3vw, 3.1rem)/1.2 Georgia, "Songti SC", serif; letter-spacing: -.02em; }
.section-intro { max-width: 790px; margin: 18px 0 0; color: var(--college-muted); line-height: 1.85; }

/* 通用侧边栏 */
.side-panel { position: sticky; top: 105px; padding: 28px; border-top: 5px solid var(--college-red); background: var(--college-cream); }
.list-page .side-panel,
.teacher-page .side-panel { position: static; top: auto; }
.side-panel h2 { margin: 0 0 20px; font: 500 1.4rem Georgia, "Songti SC", serif; }
.side-nav { display: flex; flex-direction: column; }
.side-nav a { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--college-line); color: #4e4848; text-decoration: none; font-size: 14px; }
.side-nav a::after { content: "→"; color: var(--college-red); }
.side-nav a:hover,
.side-nav a.active { color: var(--college-red); font-weight: 700; }

/* 新闻列表 */
.listing-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 35px; padding-bottom: 24px; border-bottom: 1px solid var(--college-line); }
.listing-count { color: var(--college-muted); font-size: 13px; }
.news-listing { border-top: 5px solid var(--college-red); }
.news-row { display: grid; grid-template-columns: 96px 1fr 24px; gap: 28px; padding: 29px 12px; border-bottom: 1px solid var(--college-line); text-decoration: none; transition: background .22s ease, padding .22s ease; }
.news-row:hover { padding-right: 20px; padding-left: 20px; background: #faf6f1; }
.news-row-date { padding-right: 24px; border-right: 1px solid var(--college-line); text-align: center; }
.news-row-date strong { display: block; color: var(--college-red); font: 500 2.25rem/1 Georgia, serif; }
.news-row-date span { display: block; margin-top: 8px; color: #8d8585; font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.news-row-tag { color: var(--college-red); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.news-row h2 { margin: 9px 0 9px; font: 500 1.35rem/1.42 Georgia, "Songti SC", serif; }
.news-row p { margin: 0; color: var(--college-muted); font-size: 14px; line-height: 1.7; }
.news-row-arrow { align-self: center; color: var(--college-red); font-size: 20px; transition: transform .2s ease; }
.news-row:hover .news-row-arrow { transform: translateX(5px); }
.editorial-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 42px; }
.editorial-pagination a { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--college-line); text-decoration: none; }
.editorial-pagination a:hover,
.editorial-pagination a.active { border-color: var(--college-red); background: var(--college-red); color: #fff; }

/* 文章详情 */
.article-shell { max-width: 1320px; margin: 0 auto; }
.article-header { padding-bottom: 32px; border-bottom: 1px solid var(--college-line); }
.article-header h1 { margin: 0; font: 500 clamp(2.1rem, 4vw, 3.8rem)/1.22 Georgia, "Songti SC", serif; letter-spacing: -.025em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px 30px; margin-top: 24px; color: var(--college-muted); font-size: 13px; }
.article-feature { width: 100%; max-height: 600px; margin: 38px 0; object-fit: cover; }
.article-body { max-width: 820px; margin: 0 auto; color: #383333; font-size: 1.06rem; line-height: 2.05; }
.article-body p { margin: 0 0 24px; text-align: justify; }
.article-body h2 { margin: 48px 0 18px; padding-left: 18px; border-left: 4px solid var(--college-red); font: 500 1.65rem/1.4 Georgia, "Songti SC", serif; }
.article-body blockquote { margin: 36px 0; padding: 28px 30px; border-left: 4px solid var(--college-red); background: var(--college-cream); color: var(--college-red-dark); font: 500 1.2rem/1.8 Georgia, "Songti SC", serif; }
.article-share { display: flex; justify-content: space-between; gap: 20px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--college-line); color: var(--college-muted); font-size: 13px; }
.back-link { color: var(--college-red) !important; font-weight: 750; text-decoration: none; }

/* 师资 */
.people-intro { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 45px; }
.people-group { margin-bottom: 64px; }
.people-group-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--college-line); }
.people-group-head h2 { margin: 0; font: 500 1.8rem Georgia, "Songti SC", serif; }
.people-group-head span { color: var(--college-muted); font-size: 12px; }
.person-card { height: 100%; overflow: hidden; border: 1px solid var(--college-line); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.person-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(62,25,32,.1); }
.person-portrait { min-height: 190px; display: grid; place-items: center; background: var(--college-cream); }
.person-monogram { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; background: var(--college-red-dark); color: #fff; font: 500 2rem Georgia, "Songti SC", serif; }
.person-card-body { padding: 24px; border-top: 4px solid var(--college-red); }
.person-card h3 { margin: 0 0 8px; font: 500 1.35rem Georgia, "Songti SC", serif; }
.person-role { margin: 0 0 14px; color: var(--college-muted); font-size: 13px; }
.person-focus { margin: 0; color: var(--college-red); font-size: 12px; font-weight: 700; line-height: 1.6; }

/* 专业层次 Tab：仅保留静态视觉状态 */
.programme-tabs { display: flex; margin-bottom: 48px; border-bottom: 1px solid var(--college-line); }
.programme-tab {
    position: relative;
    min-width: 180px;
    margin: 0;
    padding: 20px 26px;
    border: 0;
    background: transparent;
    color: var(--college-muted);
    font: 500 1.2rem/1.2 Georgia, "Songti SC", serif;
    text-align: center;
    transition: color .22s ease, background .22s ease;
}
.programme-tab::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 4px; background: var(--college-red); transform: scaleX(0); transition: transform .22s ease; }
.programme-tab:hover { color: var(--college-red); background: var(--college-cream); }
.programme-tab:focus-visible { outline: 3px solid rgba(159,24,52,.22); outline-offset: -3px; }
.programme-tab.active { color: var(--college-red-dark); background: var(--college-cream); font-weight: 700; }
.programme-tab.active::after { transform: scaleX(1); }
.programme-list-head { margin-bottom: 40px; }
.degree-card { height: 100%; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--college-line); border-top: 5px solid var(--college-red); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.degree-card:hover { transform: translateY(-7px); box-shadow: 0 20px 42px rgba(62,25,32,.11); }
.degree-code { color: var(--college-red); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.degree-card h2 { margin: 18px 0 14px; font: 500 1.65rem/1.35 Georgia, "Songti SC", serif; }
.degree-card p { flex: 1; margin: 0 0 26px; color: var(--college-muted); font-size: 14px; line-height: 1.8; }
.degree-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 25px; padding: 18px 0; border-top: 1px solid var(--college-line); border-bottom: 1px solid var(--college-line); }
.degree-meta span { color: var(--college-muted); font-size: 11px; }
.degree-meta strong { display: block; margin-top: 4px; color: var(--college-ink); font-size: 13px; }
.degree-more { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; color: var(--college-red) !important; font-size: 13px; font-weight: 800; text-decoration: none; }
.admission-note { margin-top: 48px; padding: 28px 30px; border-left: 5px solid var(--college-gold); background: var(--college-cream); color: #554e4e; font-size: 14px; line-height: 1.8; }

/* 页脚 */
.sub-footer { background: #211e1e; color: #fff; }
.sub-footer-main { padding: 62px 0 48px; }
.sub-footer-logo { width: 220px; max-width: 100%; margin-bottom: 20px; }
.sub-footer h2 { max-width: 500px; margin: 0 0 14px; font: 500 1.35rem/1.45 Georgia, "Songti SC", serif; }
.sub-footer p { margin: 0; color: rgba(255,255,255,.5); line-height: 1.7; }
.sub-footer h3 { margin: 0 0 18px; color: #e7c078; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.sub-footer a { display: block; margin: 0 0 11px; color: rgba(255,255,255,.7); text-decoration: none; }
.sub-footer a:hover { color: #fff; }
.sub-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.4); font-size: 12px; }

@media (max-width: 1919px) {
    .sub-navbar .navbar-brand img { max-width: 600px; }
}

@media (max-width: 1599px) {
    .sub-navbar .navbar-brand img { max-width: 520px; }
}

@media (max-width: 1399px) {
    .sub-navbar .navbar-brand img { max-width: 420px; }
}

@media (max-width: 1199px) {
    .sub-navbar .container { padding-right: 20px; padding-left: 20px; }
    .sub-navbar .navbar-brand img { max-width: 320px; }
    .sub-navbar .nav-link { padding-right: 9px !important; padding-left: 9px !important; font-size: 14px; }
}

@media (max-width: 991px) {
    .sub-navbar .container { padding-right: 18px; padding-left: 18px; }
    .sub-navbar .navbar-brand img { max-width: 240px; }
    .sub-header-actions { order: 2; margin-right: 4px; margin-left: auto; }
    .sub-navbar .navbar-toggler { order: 3; }
    .sub-navbar .navbar-collapse { order: 4; flex-basis: 100%; }
    .sub-navbar .navbar-collapse { margin-top: 10px; padding: 12px; background: #510b1b; }
    .sub-navbar .navbar-nav { align-items: stretch; }
    .sub-navbar .nav-link { padding: 11px 13px !important; }
    .sub-navbar .nav-link::after { display: none; }
    .sub-navbar .dropdown-menu { position: static; width: 100%; margin: 2px 0 8px; border-top-width: 2px; box-shadow: none; }
    .sub-hero { padding: 30px 0 34px; }
    .sub-main { padding: 62px 0 78px; }
    .side-panel { position: static; margin-bottom: 36px; }
}

@media (max-width: 768px) {
    .sub-navbar { min-height: 66px; }
    .sub-navbar .navbar-brand img { width: auto; max-width: 190px; }
    .sub-header-actions .search-box { width: min(320px, calc(100vw - 36px)); }
    .sub-hero { padding: 27px 0 30px; }
    .sub-main { padding: 50px 0 68px; }
    .listing-head,
    .people-intro { align-items: start; flex-direction: column; }
    .news-row { grid-template-columns: 66px 1fr; gap: 18px; padding: 23px 0; }
    .news-row:hover { padding-right: 8px; padding-left: 8px; }
    .news-row-date { padding-right: 14px; }
    .news-row-date strong { font-size: 1.75rem; }
    .news-row-arrow { display: none; }
    .news-row h2 { font-size: 1.13rem; }
    .news-row p { display: none; }
    .article-feature { margin: 28px 0; }
    .article-body { font-size: 1rem; line-height: 1.9; }
    .article-share,
    .sub-footer-bottom { flex-direction: column; }
    .person-portrait { min-height: 150px; }
    .person-monogram { width: 76px; height: 76px; font-size: 1.55rem; }
    .degree-card { padding: 26px 24px; }
    .programme-tabs { margin-right: -12px; margin-left: -12px; overflow-x: auto; }
    .programme-tab { min-width: 120px; padding: 17px 18px; font-size: 1.05rem; }
}

@media (max-width: 575px) {
    .sub-navbar .navbar-brand img { max-width: 165px; }
}

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