/* ==========================================================================
   CSS Variables & Base Reset (北大红主题)
   ========================================================================== */
:root {
    /* 核心品牌色 */
    --pku-red: #8C000F;
    --pku-red-dark: #6b000b;
    --pku-red-light: #a61a29;
    --pku-gold: #C0A062;

    /* 基础中性色 */
    --bg-body: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-gray: #F5F5F5;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --border-color: #EAEAEA;

    /* 字体设置 */
    --font-serif: "Noto Serif SC", STSong, "SimSun", "Times New Roman", serif;
    --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* 布局参数 */
    --container-width: 1200px;
    --transition-fast: all 0.2s ease-in-out;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 15px rgba(140, 0, 15, 0.08);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--pku-red);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.mb-4 { margin-bottom: 2rem; }

/* ==========================================================================
   占位图原生 CSS 渲染器
   ========================================================================== */
.placeholder-img {
    position: relative;
    background: linear-gradient(135deg, #e8e8e8 0%, #f4f4f4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.placeholder-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.02) 10px, rgba(0,0,0,0.02) 20px);
    z-index: 1;
}

.placeholder-img::after {
    content: attr(data-text);
    position: relative;
    z-index: 2;
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ==========================================================================
   Header 区域 (顶部红条 + 导航白底)
   ========================================================================== */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background:
        radial-gradient(120% 180% at 88% -40%, rgba(255, 255, 255, 0.12), transparent 60%),
        linear-gradient(100deg, #6E0407 0%, #94070A 46%, #B0161B 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.85rem 0;
    font-size: 0.85rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-links {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-end;
}

.header-links-row {
    display: flex;
    gap: 1rem;
}

.header-links a:hover {
    color: var(--bg-white);
    text-decoration: underline;
}

.header-search {
    display: flex;
    align-items: center;
}

.header-search form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    height: 34px;
    padding-inline: 0.75rem 0.35rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.header-search form:focus-within {
    background: rgba(255,255,255,0.24);
    border-color: rgba(255,255,255,0.42);
}

.search-input {
    width: 9.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-input:focus {
    background: transparent;
}

.search-btn {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: none;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.search-btn svg {
    width: 14px;
    height: 14px;
}

.search-btn:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.logo-img {
    height: 62px;
    width: auto;
    flex: none;
    filter: brightness(0) invert(1);
}

.logo-text {
    min-width: 0;
}

.logo-text h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.6rem);
    font-weight: 600;
    margin: 0;
    color: #fff;
    letter-spacing: 0.04em;
    line-height: 1.25;
}

.logo-en {
    display: block;
    margin-top: 0.25rem;
    font-size: clamp(0.6rem, 0.5rem + 0.3vw, 0.78rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.62);
    line-height: 1.4;
}

/* 导航菜单 */
.main-nav {
    background-color: var(--bg-white);
}

.nav-list {
    display: flex;
    justify-content: space-between;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 1.2rem 1rem;
    /* font-size: clamp(0.8rem, 1.2vw, 1rem); */
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--pku-red);
    transition: var(--transition-normal);
}

.nav-item:hover > a {
    color: var(--pku-red);
}

.nav-item:hover > a::after {
    width: 100%;
}

.nav-item.is-active > a {
    color: var(--pku-red);
}

.nav-item.is-active > a::after {
    width: 100%;
}

/* 下拉菜单 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--bg-white);
    min-width: 160px;
    /* 限宽 + 长标签换行，避免下拉面板被视口裁切 */
    max-width: min(260px, calc(100vw - 2rem));
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--pku-red);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 100;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 首尾两项贴边对齐 */
.nav-item:first-child .dropdown {
    left: 0;
    transform: translateX(0) translateY(10px);
}

.nav-item:last-child .dropdown {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(10px);
}

.nav-item:first-child:hover .dropdown,
.nav-item:last-child:hover .dropdown {
    transform: translateX(0) translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    background-color: var(--bg-gray);
    color: var(--pku-red);
    padding-left: 2rem;
    padding-right: 1rem;
}

.dropdown-group {
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

.dropdown-group span {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: bold;
    text-align: center;
}

/* ==========================================================================
   Hero 轮播图区域
   ========================================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 2.5 / 1;
    max-height: 600px;
    background-color: #E8E8E8;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    width: 100%;
    height: 100%;
    background-color: #E8E8E8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 4rem 0 2rem;
    color: var(--bg-white);
}

.slide-caption h2 {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2.5vw, 2rem);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.slider-controls button:hover {
    background: var(--pku-red);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background: var(--pku-red);
    transform: scale(1.3);
}

/* ==========================================================================
   主内容 Grid 布局
   ========================================================================== */
.main-content {
    padding: 3rem 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.block-box {
    background: var(--bg-white);
    padding: 1.5rem;
    border-top: 3px solid var(--pku-red);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.full-width {
    grid-column: 1 / -1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--pku-red);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.title-en {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.more-link {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   新闻列表模块
   ========================================================================== */
.news-featured {
    margin-bottom: 1.5rem;
}

.news-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--bg-gray);
}

.news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-featured-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.news-date {
    color: var(--pku-red);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 1rem;
}

.news-list a::before {
    content: '\25AA';
    color: var(--pku-red);
    margin-right: 0.5rem;
}

.news-list .date {
    color: var(--text-light);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ==========================================================================
   通知公告 & 日期区块
   ========================================================================== */
.notice-list li {
    display: flex;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--border-color);
    transition: var(--transition-fast);
}

.notice-list li:hover {
    transform: translateX(5px);
}

.notice-date {
    background-color: var(--bg-gray);
    border-top: 3px solid var(--pku-red);
    width: 55px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notice-date .day {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--pku-red);
    line-height: 1;
}

.notice-date .month {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.notice-content a {
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-list li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--border-color);
}
.text-list li::before {
    content: '\25B8';
    color: var(--pku-red);
    margin-right: 0.5rem;
}

/* ==========================================================================
   院庆贺信 轮播
   ========================================================================== */
.letters-nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.letters-arrow {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.letters-arrow:hover {
    border-color: var(--pku-red);
    color: var(--pku-red);
    background: var(--bg-gray);
}

.letters-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.letters-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.letters-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.letters-dots .dot.active {
    background: var(--pku-red);
    transform: scale(1.3);
}

.letters-viewport {
    overflow: hidden;
    margin-top: 0.5rem;
}

.letters-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.letter-card {
    flex: 0 0 calc((100% - 4rem) / 5);
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-normal);
}

.letter-card:hover {
    border-color: var(--pku-red);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px) scale(1.03);
    z-index: 2;
}

.letter-card__img-wrap {
    position: relative;
    aspect-ratio: 210 / 297;
    overflow: hidden;
    background: var(--bg-gray);
}

.letter-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.letter-card:hover .letter-card__img-wrap img {
    transform: scale(1.06);
}

.letter-card__tooltip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.55rem 0.65rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: 0.72rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(6px);
    transition: var(--transition-normal);
    pointer-events: none;
}

.letter-card:hover .letter-card__tooltip {
    opacity: 1;
    transform: translateY(0);
}

.letter-card__tooltip strong {
    display: block;
    font-size: 0.78rem;
    margin-bottom: 0.15rem;
}

/* ---------- 灯箱 ---------- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.lightbox-close:hover {
    color: #fff;
    transform: scale(1.15);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}

.lightbox-body {
    position: relative;
    width: min(92vw, 1040px);
    height: 88vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

/* 内嵌详情页容器（模板使用） */
.lightbox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex: 0 0 auto;
    padding: 0.8rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
}

.lightbox-frame {
    flex: 1 1 auto;
    width: 100%;
    border: 0;
    display: block;
    background: #fff;
    transition: opacity 0.2s ease;
}

.lightbox-opennew {
    flex: 0 0 auto;
    font-size: 0.8rem;
    color: var(--pku-red);
    text-decoration: none;
    white-space: nowrap;
}

.lightbox-opennew:hover { text-decoration: underline; }

/* 加载态：详情页 iframe 载入期间淡出 */
.lightbox-overlay.is-loading .lightbox-frame { opacity: 0.35; }

/* 图片灯箱（静态预览页使用） */
.lightbox-img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    transition: opacity 0.25s ease;
}

.lightbox-caption {
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 贺信响应式 ---------- */
@media (max-width: 1100px) {
    .letter-card { flex: 0 0 calc((100% - 3rem) / 4); }
    .letters-track { gap: 1rem; }
}

@media (max-width: 992px) {
    .letter-card { flex: 0 0 calc((100% - 2rem) / 3); }
}

@media (max-width: 768px) {
    .letter-card { flex: 0 0 calc((100% - 1rem) / 2); }
    .lightbox-prev, .lightbox-next { width: 34px; height: 34px; }
    .lightbox-prev { left: 0.4rem; }
    .lightbox-next { right: 0.4rem; }
    .lightbox-body { width: 96vw; height: 90vh; }
    .lightbox-head { padding: 0.6rem 0.8rem; }
    .lightbox-caption { font-size: 0.82rem; }
    .lightbox-opennew { font-size: 0.72rem; }
}

@media (max-width: 480px) {
    .letter-card { flex: 0 0 100%; }
}

/* ==========================================================================
   学术报告 卡片 Grid
   ========================================================================== */
.seminar-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.seminar-card {
    display: flex;
    background: var(--bg-gray);
    border-radius: 2px;
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.seminar-card:hover {
    background: var(--bg-white);
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.seminar-date {
    background: var(--pku-red);
    color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.seminar-date .date-day {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.seminar-date .date-month {
    font-size: 0.9rem;
    opacity: 0.9;
}

.seminar-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.seminar-title {
    font-size: 1.05rem;
    font-family: var(--font-serif);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.seminar-speaker, .seminar-time-loc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

/* ==========================================================================
   快速通道
   ========================================================================== */
.quick-links-section {
    background: var(--pku-red);
    padding: 3rem 0;
    color: white;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition-normal);
}

.quick-link-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
    color: white;
}

.quick-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.quick-link-item h3 {
    font-family: var(--font-serif);
    font-weight: normal;
    letter-spacing: 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #2b2b2b;
    color: #d1d1d1;
    padding: 4rem 0 0 0;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    font-family: var(--font-serif);
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    color: #aaa;
}

.footer-links h3 {
    color: white;
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 30px; height: 2px;
    background: var(--pku-red);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--pku-gold);
}

.footer-qrcode {
    text-align: center;
}

.qrcode-box {
    width: 120px;
    height: 120px;
    background: #444;
    margin: 0 auto 1rem;
    border: 5px solid #333;
}

.footer-bottom {
    background: #222;
    padding: 1.5rem 0;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

/* ==========================================================================
   Mobile Menu Button
   ========================================================================== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem 0;
    width: 30px;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
}

.mobile-menu-btn .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--pku-red);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .nav-item > a {
        padding-left: 0.5em;
        padding-right: 0.5em;
    }
}

@media (max-width: 992px) {
    .content-grid { grid-template-columns: minmax(0, 1fr); }
    .seminar-cards { grid-template-columns: 1fr; }
    .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    .nav-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nav-list.active {
        max-height: 78vh;
        overflow-y: auto;
        border-top: 1px solid var(--border-color);
    }

    .nav-item > a {
        padding: 1rem;
        border-bottom: 1px solid var(--bg-gray);
        text-align: center;
    }

    .nav-item > a::after {
        display: none;
    }

    .nav-item:hover .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background-color: var(--bg-gray);
    }

    .dropdown a {
        text-align: center;
    }

    .dropdown-group span {
        text-align: center;
    }

    .header-links { display: none; }
    .quick-links-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }

    .header-top { padding: 0.55rem 0; }
    .logo { gap: 0.7rem; }
    .logo-img { height: 44px; }
    .logo-text h1 { font-size: 1.02rem; letter-spacing: 0.01em; }
    .logo-en { font-size: 0.56rem; letter-spacing: 0.12em; }

    /* 轮播图：移动端隐藏左右箭头，保留可点击的圆点，避免与标题重叠 */
    .hero-slider { aspect-ratio: 16 / 10; }

    .slider-controls { display: none; }

    .slide-caption {
        padding: 3rem 0 1.25rem;
    }

    .slide-caption h2 {
        font-size: 1.02rem;
        line-height: 1.45;
    }

    .slider-dots {
        bottom: 0.85rem;
        right: 1rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 420px) {
    .logo-en { display: none; }
}