/* 首页专用视觉系统：深红、暖白与英式编辑排版 */
.home-page {
    --college-red: #9f1834;
    --college-red-dark: #681022;
    --college-gold: #d4a84f;
    --college-ink: #1d1b1b;
    --college-muted: #696363;
    --college-cream: #f5f0e9;
    --college-line: #ded7cf;
    color: var(--college-ink);
    background: #fff;
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.home-page a { color: inherit; }
.home-page .container { max-width: 1320px; }
.home-page .section-space { padding: 110px 0; }

/* 导航布局保持不变，只更新红色品牌体系并容纳语言按钮 */
.home-page .main-navbar.navbar-scrolled {
    background: rgba(104, 16, 34, .97);
    box-shadow: 0 10px 30px rgba(45, 4, 14, .2);
}
.home-page .main-navbar .container { max-width: none; }
.home-page .fudan-logo-img { max-width: 700px; }
.home-page .main-navbar .nav-link { font-weight: 550; letter-spacing: .03em; }
.home-page .main-navbar .nav-link::before { background: var(--college-gold); }
.home-page .dropdown-menu {
    min-width: 220px;
    margin-top: 0;
    padding: 9px 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, .98);
    box-shadow: 0 18px 38px rgba(45, 4, 14, .24);
    backdrop-filter: blur(12px);
    text-shadow: none;
}
.home-page .dropdown-item {
    padding: 13px 22px;
    border-bottom: 1px solid rgba(104, 16, 34, .09);
    border-left: 3px solid transparent;
    background: transparent;
    color: #40222a;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .025em;
    text-shadow: none;
    transition: color .22s ease, background-color .22s ease, border-color .22s ease, padding-left .22s ease;
}
.home-page .dropdown-menu li:last-child .dropdown-item { border-bottom: 0; }
.home-page .dropdown-item:hover,
.home-page .dropdown-item:focus,
.home-page .dropdown-item:active,
.home-page .dropdown-item.active {
    padding-left: 26px;
    border-left-color: var(--college-gold);
    background: var(--college-red-dark);
    color: #fff !important;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.language-switch {
    min-width: 48px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.72);
    background: rgba(0,0,0,.12);
    color: #fff;
    font: 700 12px/1 "Segoe UI", sans-serif;
    letter-spacing: .12em;
    transition: .25s ease;
}
.language-switch:hover,
.language-switch:focus-visible { background: #fff; color: var(--college-red-dark); outline: 0; }

/* 保留 banner 结构与全屏布局，强化学院标题的编辑感 */
.home-page .hero-section::after { content: none; }
.home-page .carousel-caption { bottom: 8%; max-width: 1180px; text-align: left; }
.home-page .carousel-caption .banner-title {
    max-width: 1000px;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: clamp(2.1rem, 4.7vw, 4.8rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.02em;
    text-shadow: 0 3px 18px rgba(0,0,0,.4);
}
.banner-kicker {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 8px 12px;
    border-left: 3px solid var(--college-gold);
    background: rgba(79, 7, 23, .72);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.home-page .hero-section .carousel-indicators [data-bs-target] { width: 34px; height: 3px; border: 0; }
.home-page .hero-section .carousel-indicators .active { background-color: var(--college-gold); }

/* 首屏下方快捷入口 */
.pathway-strip {
    position: relative;
    z-index: 4;
    padding: 22px 0;
    background: var(--college-cream);
    border-bottom: 1px solid var(--college-line);
}
.pathway-link {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 23px 25px;
    border-right: 1px solid var(--college-line);
    background: rgba(255,255,255,.5);
    color: var(--college-ink) !important;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.pathway-link:first-child { border-left: 1px solid var(--college-line); }
.pathway-link:hover {
    z-index: 1;
    transform: translateY(-5px);
    background: var(--college-red-dark);
    color: #fff !important;
    box-shadow: 0 16px 34px rgba(74, 8, 23, .18);
}
.pathway-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 18px rgba(61, 26, 33, .08);
}
.pathway-icon img { width: 32px; height: 32px; object-fit: contain; }
.pathway-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 5px; }
.pathway-copy strong { font: 600 1.08rem/1.35 Georgia, "Songti SC", serif; }
.pathway-copy small { color: var(--college-muted); font-size: 12px; line-height: 1.45; }
.pathway-link:hover .pathway-copy small { color: rgba(255,255,255,.68); }
.pathway-arrow { margin-left: auto; color: var(--college-red); font-size: 19px; transition: transform .25s ease; }
.pathway-link:hover .pathway-arrow { color: #fff; transform: translateX(4px); }

.section-eyebrow {
    margin: 0 0 18px;
    color: var(--college-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.section-eyebrow::before { content: ""; display: inline-block; width: 34px; height: 2px; margin: 0 12px 4px 0; background: currentColor; }
.section-eyebrow-light { color: #edc986; }
.display-heading,
.section-heading { margin: 0; font-family: Georgia, "Times New Roman", "Songti SC", serif; font-weight: 500; line-height: 1.18; letter-spacing: -.025em; }
.display-heading { font-size: clamp(2.3rem, 4.1vw, 4.3rem); }
.section-heading { font-size: clamp(2.1rem, 3.4vw, 3.6rem); }
.intro-lead { font: 500 1.28rem/1.85 Georgia, "Songti SC", serif; color: #302b2b; }
.intro-copy { margin: 24px 0 28px; color: var(--college-muted); font-size: 1rem; line-height: 1.95; }
.college-directory { margin-top: 52px; }
.college-directory-card {
    min-height: 132px;
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--college-line);
    border-top: 3px solid var(--college-red);
    background: #fff;
    color: var(--college-ink) !important;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.college-directory-card:hover { transform: translateY(-4px); border-color: rgba(159,24,52,.35); box-shadow: 0 16px 32px rgba(62,25,32,.09); }
.college-directory-card > span { color: var(--college-gold); font: 600 13px Georgia, serif; }
.college-directory-card h2 { margin: 0 0 6px; font: 500 1.25rem/1.35 Georgia, "Songti SC", serif; }
.college-directory-card p { margin: 0; color: var(--college-muted); font-size: 13px; line-height: 1.55; }
.college-directory-card b { color: var(--college-red); font-size: 18px; transition: transform .25s ease; }
.college-directory-card:hover b { transform: translateX(4px); }
.text-link,
.solid-link { display: inline-flex; align-items: center; gap: 18px; color: var(--college-red) !important; text-decoration: none; font-weight: 750; }
.text-link { padding-bottom: 7px; border-bottom: 2px solid var(--college-red); }
.text-link span:last-child,
.solid-link span:last-child { transition: transform .25s ease; }
.text-link:hover span:last-child,
.solid-link:hover span:last-child { transform: translateX(5px); }

/* 新闻采用大图 + 编辑列表布局 */
.editorial-news { background: var(--college-cream); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; margin-bottom: 48px; gap: 24px; }
.lead-story { position: relative; display: block; min-height: 570px; overflow: hidden; color: #fff !important; text-decoration: none; }
.lead-story > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.lead-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28,2,8,.92), rgba(28,2,8,.08) 70%); }
.lead-story:hover > img { transform: scale(1.035); }
.lead-story-overlay { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 44px; }
.story-tag,
.story-category,
.event-type { display: block; color: var(--college-red); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lead-story .story-tag { color: #f0c77a; }
.lead-story h3 { max-width: 780px; margin: 14px 0 12px; font: 500 clamp(1.7rem, 2.5vw, 2.7rem)/1.3 Georgia, "Songti SC", serif; }
.lead-story p { margin: 0; color: rgba(255,255,255,.75); line-height: 1.7; }
.story-list { height: 100%; display: flex; flex-direction: column; background: #fff; border-top: 5px solid var(--college-red); }
.story-item { flex: 1; display: grid; grid-template-columns: 74px 1fr; gap: 24px; padding: 29px 30px; border-bottom: 1px solid var(--college-line); text-decoration: none; transition: background .25s ease; }
.story-item:last-child { border-bottom: 0; }
.story-item:hover { background: #fbf7f2; }
.story-date { padding-right: 20px; border-right: 1px solid var(--college-line); text-align: center; }
.story-date strong { display: block; color: var(--college-red); font: 500 2rem/1 Georgia, serif; }
.story-date span { display: block; margin-top: 9px; color: #8b8383; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.story-item h3 { margin: 9px 0 0; font: 500 1.14rem/1.55 Georgia, "Songti SC", serif; }
.story-item:hover h3 { color: var(--college-red); }
.home-news-grid .lead-story { min-height: 420px; }
.compact-story-list { height: auto; margin-top: 18px; }
.compact-story-list .story-item { min-height: 124px; }
.home-info-panel { height: 100%; border-top: 5px solid var(--college-red); background: #fff; box-shadow: 0 12px 30px rgba(62,25,32,.07); }
.home-info-block { padding: 28px 28px 24px; border-bottom: 1px solid var(--college-line); }
.home-info-block:last-child { border-bottom: 0; }
.home-info-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.home-info-head h3 { margin: 0; font: 500 1.45rem/1.3 Georgia, "Songti SC", serif; }
.home-info-head a { color: var(--college-red) !important; font-size: 12px; font-weight: 750; text-decoration: none; }
.home-info-item { display: block; padding: 14px 0; border-top: 1px solid var(--college-line); text-decoration: none; }
.home-info-item span { display: block; margin-bottom: 6px; color: #948a8c; font-size: 11px; }
.home-info-item strong { color: var(--college-ink); font-size: 14px; font-weight: 550; line-height: 1.55; }
.home-info-item:hover strong { color: var(--college-red); }
.download-item { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--college-line); text-decoration: none; }
.download-item > span { color: var(--college-red); font: 700 10px/1 Georgia, serif; }
.download-item strong { color: var(--college-ink); font-size: 14px; font-weight: 550; }
.download-item b { color: var(--college-red); font-size: 18px; }
.download-item:hover strong { color: var(--college-red); }

/* 常规化重点工作入口：一个板块承载多类后台栏目 */
.key-work-section { background: #fff; }
.work-card { height: 100%; min-height: 330px; padding: 28px; border: 1px solid var(--college-line); border-top: 4px solid var(--college-red); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.work-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(62,25,32,.1); }
.work-card-index { color: var(--college-gold); font: 600 12px Georgia, serif; }
.work-card h3 { margin: 20px 0 12px; font: 500 1.6rem/1.3 Georgia, "Songti SC", serif; }
.work-card > p { min-height: 48px; margin: 0 0 20px; color: var(--college-muted); font-size: 14px; line-height: 1.7; }
.work-links { border-top: 1px solid var(--college-line); }
.work-links a { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--college-line); color: #403a3a !important; font-size: 13px; text-decoration: none; }
.work-links a::after { content: "→"; color: var(--college-red); transition: transform .2s ease; }
.work-links a:hover { color: var(--college-red) !important; }
.work-links a:hover::after { transform: translateX(4px); }

/* 红色专业板块 */
.programmes-section { position: relative; overflow: hidden; background: var(--college-red); color: #fff; }
.programmes-section::before { content: "W"; position: absolute; right: -1vw; top: -10vw; color: rgba(255,255,255,.035); font: 700 38vw/1 Georgia, serif; }
.programmes-section .container { position: relative; z-index: 1; }
.programmes-intro { margin: 0; color: rgba(255,255,255,.72); font-size: 1.05rem; line-height: 1.8; }
.programme-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.32);
    background: rgba(74,5,19,.18);
    color: #fff !important;
    text-decoration: none;
    transition: .3s ease;
}
.programme-card:hover { transform: translateY(-8px); background: #fff; color: var(--college-red-dark) !important; border-color: #fff; }
.programme-index { color: rgba(255,255,255,.55); font: 13px Georgia, serif; }
.programme-card:hover .programme-index { color: var(--college-red); }
.programme-card p { margin: 0 0 12px; color: #efc984; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.programme-card:hover p { color: var(--college-red); }
.programme-card h3 { max-width: 310px; margin: 0; font: 500 1.75rem/1.3 Georgia, "Songti SC", serif; }
.programme-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 14px; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 750; }
.programme-more span:last-child { transition: transform .25s ease; }
.programme-card:hover .programme-more span:last-child { transform: translateX(5px); }

/* 全球学习图文分屏 */
.global-image { min-height: 720px; }
.global-image img { width: 100%; height: 100%; object-fit: cover; }
.global-content { display: flex; flex-direction: column; justify-content: center; padding: 90px max(6vw, 60px); background: #fff; }
.global-content > p:not(.section-eyebrow) { margin: 28px 0 34px; color: var(--college-muted); line-height: 1.9; }
.global-values { margin-bottom: 36px; border-top: 1px solid var(--college-line); }
.global-values > div { display: grid; grid-template-columns: 160px 1fr; gap: 22px; padding: 19px 0; border-bottom: 1px solid var(--college-line); }
.global-values strong { color: var(--college-red); }
.global-values span { color: var(--college-muted); }
.solid-link { align-self: flex-start; padding: 14px 20px; background: var(--college-red); color: #fff !important; }
.solid-link:hover { background: var(--college-red-dark); }

/* 活动日历 */
.events-section { background: #fff; }
.event-card { min-height: 245px; display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 30px; border: 1px solid var(--college-line); border-top: 4px solid var(--college-red); text-decoration: none; transition: .3s ease; }
.event-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(62,25,32,.11); }
.event-date { text-align: center; border-right: 1px solid var(--college-line); }
.event-date strong { display: block; color: var(--college-red); font: 500 2.6rem/1 Georgia, serif; }
.event-date span { display: block; margin-top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.event-card h3 { margin: 13px 0 16px; font: 500 1.25rem/1.48 Georgia, "Songti SC", serif; }
.event-card p { margin: 0; color: #8b8484; font-size: 13px; }

/* 招生号召与页脚 */
.admissions-cta { padding: 76px 0; background: var(--college-red-dark); color: #fff; }
.admissions-cta h2 { max-width: 920px; margin: 0; font: 500 clamp(2rem, 3.2vw, 3.5rem)/1.2 Georgia, "Songti SC", serif; }
.cta-button { display: inline-flex; align-items: center; gap: 24px; padding: 17px 24px; background: #fff; color: var(--college-red-dark) !important; text-decoration: none; font-weight: 800; transition: .25s ease; }
.cta-button:hover { background: var(--college-gold); }

.site-footer { background: #211e1e; color: #fff; }
.footer-main { padding: 80px 0 65px; }
.footer-logo { width: 220px; max-width: 100%; margin-bottom: 26px; }
.site-footer h2 { max-width: 520px; margin: 0 0 18px; font: 500 1.55rem/1.45 Georgia, "Songti SC", serif; }
.site-footer h3 { margin: 0 0 22px; color: #e5bd75; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.site-footer p { color: rgba(255,255,255,.55); line-height: 1.75; }
.site-footer a { display: block; margin: 0 0 14px; color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.42); font-size: 12px; }

@media (max-width: 1919px) {
    .home-page .fudan-logo-img { max-width: 600px; }
}

@media (max-width: 1599px) {
    .home-page .fudan-logo-img { max-width: 520px; }
}

@media (max-width: 1399px) {
    .home-page .fudan-logo-img { max-width: 420px; }
}

@media (max-width: 1199px) {
    .home-page .main-navbar .container { gap: 10px; padding-right: 18px; padding-left: 18px; }
    .home-page .main-navbar .nav-link { padding-right: 9px; padding-left: 9px; font-size: 14px; }
    .home-page .fudan-logo-img { max-width: 320px; }
}

@media (max-width: 991px) {
    .home-page .section-space { padding: 78px 0; }
    .home-page .fudan-logo-img { max-width: 240px; }
    .header-actions { order: 2; margin-left: auto; }
    .home-page .navbar-toggler { order: 3; }
    .home-page .main-navbar .navbar-collapse { order: 4; background: rgba(104,16,34,.98); }
    .pathway-link { border-bottom: 1px solid var(--college-line); }
    .lead-story { min-height: 500px; }
    .story-item { min-height: 170px; }
    .global-image { min-height: 460px; }
    .global-content { padding: 75px 7vw; }
}

@media (max-width: 768px) {
    .home-page .fudan-logo-img { max-width: 190px; height: auto; }
    .home-page .hero-section {
        height: 30vh;
        height: 30svh;
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .home-page .section-space { padding: 64px 0; }
    .home-page .carousel-caption { bottom: 9%; padding: 12px; }
    .home-page .carousel-caption .banner-title { font-size: clamp(1.9rem, 8vw, 3rem); }
    .banner-kicker { margin-bottom: 14px; font-size: 10px; }
    .pathway-strip { padding: 12px 0; }
    .pathway-link { min-height: 100px; gap: 12px; padding: 16px 14px; }
    .pathway-icon { width: 46px; height: 46px; flex-basis: 46px; }
    .pathway-icon img { width: 27px; height: 27px; }
    .pathway-copy strong { font-size: .96rem; }
    .pathway-copy small { display: none; }
    .pathway-arrow { font-size: 16px; }
    .section-heading-row { align-items: start; margin-bottom: 32px; }
    .lead-story { min-height: 450px; }
    .home-news-grid .lead-story { min-height: 360px; }
    .lead-story-overlay { padding: 26px; }
    .story-item { grid-template-columns: 62px 1fr; gap: 18px; padding: 24px 20px; }
    .programme-card { min-height: 245px; }
    .global-image { min-height: 350px; }
    .global-content { padding: 60px 24px; }
    .event-card { min-height: 220px; padding: 24px 20px; }
    .college-directory { margin-top: 36px; }
    .home-info-block { padding: 24px 20px; }
    .work-card { min-height: 0; padding: 24px; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 575px) {
    .home-page .main-navbar .container { flex-wrap: wrap; }
    .home-page .fudan-logo-img { max-width: 165px; }
    .language-switch { min-width: 43px; padding: 0 8px; }
    .intro-lead { font-size: 1.08rem; }
    .global-values > div { grid-template-columns: 1fr; gap: 5px; }
    .event-card { grid-template-columns: 65px 1fr; gap: 16px; }
    .admissions-cta { padding: 58px 0; }
}

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