/* General Setup */
:root {
    --main-red: #A42013;
    --dark-red: #8c1e10;
    --dark-red-back: #b25043;

    --background-light: #fdfaf5;
    --text-dark: #333;
    --text-light: #fff;
    --border-color: #d3b392;
    --transition-speed: 0.9s;
    --transition-ease: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    /* overflow: hidden; */
}

body {
    font-family: 'Helvetica Neue', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.6;
    /* overflow: hidden; */
}

.page-wrapper {
    position: relative;
    height: 100vh;
    overflow: hidden;
    visibility: hidden; /* Hide page until fully loaded */
    opacity: 0;
    transition: opacity 0.5s ease;
}
.page-wrapper.loaded {
    visibility: visible;
    opacity: 1;
}

.section {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: 60px 0;
    transition: transform var(--transition-speed) var(--transition-ease);
}

.section.active {
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    width: 100%;
}

a {
    color: var(--dark-red);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--main-red);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.site-header {
    background: transparent;
    border-bottom: 1px solid transparent;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: border-bottom-color 0.4s ease, background 0.5s ease;
}


/* 为非首页模块添加背景图片 */
body[data-active-section]:not([data-active-section="hero"]) .site-header::before {
    content: '';
    position: absolute;
    top: -12.5%;
    left: 0;
    width: 100%;
    height: 145%;
    background: url('../images/back.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
    mask: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, transparent 100%);
    -webkit-mask: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, transparent 100%);
}


body[data-active-section]:not([data-active-section="hero"]):not([data-active-section="blessings"]) .site-header::after {
    opacity: 1;
}

/* PC端确保校友祝福模块导航栏背景透明 */
@media (min-width: 769px) {
    body[data-active-section="blessings"]:not(.video-view-active) .site-header {
        background: transparent;
    }
    
    body[data-active-section="blessings"]:not(.video-view-active) .site-header::before {
        display: none;
    }
    
    body[data-active-section="blessings"]:not(.video-view-active) .site-header::after {
        opacity: 0;
    }
}

/* .site-header.scrolled {
    border-bottom-color: rgba(255,255,255,0.2);
} */
/* #contact{
    height: auto;
} */

body[data-active-section="hero"] .site-header.scrolled,
body[data-active-section="announcements"] .site-header.scrolled,
body[data-active-section="gallery"] .site-header.scrolled,
body[data-active-section="blessings"] .site-header.scrolled,
body[data-active-section="contact"] .site-header.scrolled {
     /* background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(0,0,0,0.1); */
}
body[data-active-section="news"] .site-header.scrolled {
    backdrop-filter: none;
}

body[data-active-section="media"] .site-header.scrolled {
     /* background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px); */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo img {
    height: 50px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo span {
    font-size: 20px;
    font-weight: bold;
    color: var(--dark-red);
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 35px;
}

.main-nav a {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
}

.main-nav a:hover {
    color: #ffd79e;
}

.main-nav a.active {
    color: #ffd79e;
    border-bottom-color: #ffd79e;
}

/* Hero Section */
.hero-section {
    /* background: url('../images/blessings-bg.jpg') no-repeat center center/cover; */ /* Removed for carousel */
    color: var(--text-light);
    text-align: center;
    position: relative; /* Needed for positioning child elements */
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0,0,0,0.25);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-nav-btn.prev {
    left: 40px;
}

.hero-nav-btn.next {
    right: 40px;
}

.hero-section:hover .hero-nav-btn {
    opacity: 1;
}

.hero-nav-btn:hover {
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Start with content hidden */
    animation: hero-entry-animation 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
    animation-play-state: paused;
}

section#hero.active .hero-content {
    animation-play-state: running;
}

@keyframes hero-entry-animation {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    margin: 0;
}

.hero-content p {
    font-size: 1.5rem;
    margin: 10px 0;
    letter-spacing: 2px;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: normal;
    margin: 0;
}

.hero-section .hero-content img {
    max-width: 80%;
    max-height: 80%;
    opacity: 0; /* Start invisible */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero-section.animated .hero-content img {
    animation: hero-fade-in 1s ease-out forwards;
}

@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* News Section */
#news {
    background-image: url('../images/two_back.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto 115%;
}

#announcements {
    background-image: url('../images/three_back.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 110%;
}

#gallery {
    background-image: url('../images/four_back.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto 115%;
}

#news.content-section {
    align-items: center;
}
#gallery.content-section {
     /* background: url('../images/back.png') no-repeat center center/cover; */
}

.content-section.active {
    background: linear-gradient(to bottom, var(--main-red) 0%, var(--background-light) 25%);
}

#news .section-title h2 {
    color: rgba(193, 42, 22, 0.9);
}

#news .more-link,#announcements .more-link {
    border-color: rgba(193, 42, 22, 0.9);
    color: rgba(193, 42, 22, 0.9);
}

#news .more-link:hover,#announcements .more-link:hover{
    background: var(--text-light);
    color: var(--dark-red);
    border-color: var(--text-light);
}

#news .featured-news {
    color: var(--text-light);
}

#news .news-item {
    background-color: transparent;
}
#news .news-item h4 {
    color: var(--text-light);
}
#news .news-item span {
    color: rgba(255,255,255,0.7);
}

#news .news-item.text-only {
    border-bottom-color: rgba(255,255,255,0.2);
}
#news .news-item.text-only:hover h4 {
    color: #ffd79e;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark-red);
    font-weight: bold;
}

.more-link {
    border: 1px solid var(--border-color);
    color: var(--dark-red);
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 16px;
    transition: all .3s;
}
.more-link:hover {
    background: var(--dark-red);
    color: #fff;
    border-color: var(--dark-red);
}

.news-grid {
    display: flex;
    gap: 30px;
    width: 100%;
    perspective: 1200px;
}
.left{
    width: 48%;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}
.left .img{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;

}
.left .text{
    width: 70%;
    margin: 0 auto;
    color: #eee;
    z-index: 111;
    position: absolute;
    bottom: 22%;
    font-weight: bold;
    font-size: 18px;
    left: 10%;
    /* 限制最多显示两行，超出部分隐藏并显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 3.6em; /* 调整2行的高度，确保完整显示 */
}
.left .time{
    width: 80%;
    margin: 0 auto;
    color: #eee;
    z-index: 111;
    bottom: 10%;
    left: 10%;
    position: absolute;
    font-size: 16px;
    font-weight: bold;

}

.right{
    width: 26%;
   display: flex;
    flex-direction: column;
    gap: 20px;
}
.right .top{
    width: 100%;
    height: 70%;
    max-height: 75%;
    flex-shrink: 0;
    background: #fff;
    border-radius: 5px;
    text-decoration: none;
    color: inherit;
    display: block;
}

.right .top .img{
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
}
.right .bottom{
    width: 100%;
    height: 25%;
    max-height: 25%;
    flex-shrink: 0;
    background: #fff;
    border-radius: 5px;
    text-decoration: none;
    color: inherit;
    display: block;
}
.top > .text{
    box-sizing: border-box;
    padding-top: 8px;
    /* 限制最多显示两行，超出部分隐藏并显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 3.6em; /* 调整2行的高度，确保完整显示 */
}
.top > .text ,.top > .time{
  width: 84%;
  margin: 0 auto;
  line-height: 25px;
}
.bottom > .text{
    box-sizing: border-box;
    padding-top: 8px;
    /* 限制最多显示两行，超出部分隐藏并显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 3.6em; /* 调整2行的高度，确保完整显示 */
}
.bottom > .text ,.bottom > .time{
  width: 84%;
  margin: 0 auto;
  line-height: 25px;
}
.top:hover,.bottom:hover{
 background:rgba(193, 42, 22, 0.9);
 color: white;
}

.featured-news {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.featured-news::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    pointer-events: none;
}

.featured-news img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-news .news-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
}

.featured-news h3 {
    font-size: 24px;
    margin: 0 0 10px;
}

.featured-news span {
    font-size: 14px;
    opacity: 0.8;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: block;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.news-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.news-item img {
    height: 150px;
    width: 100%;
    object-fit: cover;
}

.news-item .news-text {
    padding: 20px;
}

.news-item h4 {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 8px;
    line-height: 1.4;
}

.news-item span {
    font-size: 14px;
    color: #999;
}

.news-item.text-only {
    background-color: transparent;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    border-radius: 0;
}
.news-item.text-only:hover {
    box-shadow: none;
}
.news-item.text-only:hover h4 {
    color: var(--main-red);
}
.news-item.text-only .news-text {
    padding: 0;
}

/* General Section Styling */
.content-section:nth-of-type(even) {
    background-color: var(--background-light);
}

/* Announcements Section */
#announcements.content-section {
    /* position: relative; */
    overflow: hidden; /* To contain the decorative background */
}



.announcements-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 60px; /* row-gap column-gap */
    position: relative;
    z-index: 1;
}

.announcement-item {
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 20px; /* Space for the line */
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
/* 
.announcement-item::after {
    content: '';
    position: absolute;
    left: 25px;
    bottom: 0;
    right: 0;
    height: 2px;
    background-color: var(--main-red);
} */

.announcement-item:nth-child(odd)::after {
    right: -30px; /* Extend line to the gap center */
}
.announcement-item:nth-child(even)::after {
    left: -30px; /* Extend line to the gap center */
}

.announcement-item .content {
    background: rgba(255, 255, 255, 0.6);
    padding: 20px 25px 20px 100px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    height: 100px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}



.date-box {
    background-color: var(--main-red);
    color: var(--text-light);
    border-radius: 8px;
    text-align: center;
    margin-right: -15px; /* Overlap the content card slightly */
    z-index: 2;
    min-width: 80px;
    box-shadow: 0 5px 15px rgba(164, 32, 19, 0.3);
    position: absolute;
    top: -25px;
    left: -25px;
    height: 80px;
    display: flex;
    flex-direction: column;

}
/* .date-box-pos{
    position: relative;
} */

.date-box .day {
    display: block;
    font-size: 24px;
    line-height: 1;
    z-index: 5;
    background-color: rgba(193, 42, 22, 0.9);
    flex-shrink: 0;
    line-height: 49px;
    border-radius: 8px 8px 0  0;
}
.date-box::before {
    display: block;
    content: "";
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    position: absolute;
    right: -4px;
    bottom: -4px;
    z-index: -1;
    box-sizing: border-box;
    border-bottom: 15px solid rgba(102, 102, 102, 0.3);
    border-radius: 8px;
    border-right: 15px solid rgba(102, 102, 102, 0.3); 
}

.date-box .year {
    flex: 1;
    font-size: 14px;
    line-height: 25px;
    background: #ccc;
    color: rgba(193, 42, 22, 0.9);
    border-radius:0  0 8px 8px ;
    z-index: 1;
}

.announcement-item .content h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}
.announcement-item:hover .content {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    background: rgba(255, 255, 255, 1);
    position: relative;
    cursor: pointer;
}
.announcement-item:hover .content::after{
    position: absolute;
    bottom: 0;
    left: 0;
    content: "";
    background-color:rgba(193, 42, 22, 0.9) ;
    height: 3px;
    width: 100%;
}
.announcement-item:hover .content h4{
    color: rgba(193, 42, 22, 0.9);
}

/* Gallery / Timeline Section - Strict Replication */
.timeline-container {
    position: relative;
    width: 100%;
    height: 450px;
    padding-top: 50px;
}

.timeline-container__path {
    position: absolute;
    bottom: 100px;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 0;
    background-color: transparent;
}

.timeline-item {
    position: absolute;
    width: 220px;
    text-align: center;
    transform: translateX(-50%);
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.left-out {
    opacity: 0;
    transform: translateX(-50%) translateX(-150px);
    pointer-events: none;
}

.timeline-item.right-out {
    opacity: 0;
    transform: translateX(-50%) translateX(150px);
    pointer-events: none;
}

.timeline-item--low { bottom: 85px; }
.timeline-item--high { bottom: 160px; }

.timeline-item::after { /* Gradient dot */
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    transform: translateX(-32%);
    width: 24px;
    height: 24px;
    background: radial-gradient(circle at center, var(--dark-red) 0%, var(--main-red) 55%, rgba(164,32,19,0) 80%);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item__year {
    position: absolute;
    bottom: -47px; /* Positioned relative to the dot */
    left: 0;
    transform: translateX(-40%);
    font-size: 24px;
    font-weight: bold;
    color: var(--dark-red);
    padding: 0 10px;
    z-index: 1;
}

.timeline-item__content {
    display: block; /* ensure anchor version keeps block layout */
    margin-bottom: 70px;
    padding: 10px;
    border-radius: 8px;
    border: 3px solid transparent;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
}

/* preserve link visuals like original card */
a.timeline-item__content {
    color: inherit;
    text-decoration: none;
}

.timeline-item__content::before { /* Connector line */
    content: '';
    position: absolute;
    left: 0;
    bottom: -75px;
    transform: translateX(0);
    width: 3px;
    height: 120px;
    background: var(--main-red);
}

.timeline-item__content img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.timeline-item__content p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.timeline-item:hover .timeline-item__content {
    background: var(--main-red);
    border-color: var(--main-red);
}

.timeline-item:hover .timeline-item__content p {
    color: var(--text-light);
}

.timeline-item.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease 0.2s;
}

.timeline-nav {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.timeline-nav__btn {
    width: 45px;
    height: 45px;
    background-color: transparent;
    color: var(--main-red);
    border: 2px solid var(--main-red);
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.timeline-nav__btn:hover {
    background-color: var(--main-red);
    color: #fff;
    transform: scale(1.1);
}

.timeline-nav__btn:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
    transform: scale(1);
    background-color: transparent;
}

/* Blessings Section */
#blessings {
    padding: 0; /* Remove padding to allow full-height pages */
}

.blessings-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.blessings-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:  100%;
    padding: 60px 0 70px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.8s var(--transition-ease);
}

#text-blessings-page {
    background: url('../images/blessings.png') no-repeat center center/cover;
}

#video-blessings-page {
    background-color: var(--background-light);
    transform: translateX(100%);
}

#blessings.video-view-active #text-blessings-page {
    transform: translateX(-100%);
}
#blessings.video-view-active #video-blessings-page {
    transform: translateX(0);
}

.blessings-title {
    font-size: 42px;
    color: var(--text-light);
    text-align: left;
    margin-bottom: -50px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    height: auto;
}

/* #blessings::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(164, 32, 19, 0.7);
    z-index: 1;
} */

#blessings .container {
    position: relative;
    z-index: 2;
}

.blessings-wall-container {
    height: 400px;
    overflow: hidden;
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.blessings-wall {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: auto;
    z-index: 10;
}

.blessings-wall ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: fit-content; /* Let it be as wide as its content */
}

.blessings-wall li {
    width: 400px; /* Set a fixed width for each item */
    margin: 10px 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    border-left: 3px solid var(--main-red);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    height: 120px; /* Give a fixed height */
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: normal;
    font-size: 16px;
    line-height: 1.6;
}

.blessing-action {
    text-align: center;
    margin-top: 30px;
}

.blessing-action .action-btn {
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: none;
    border-radius: 0;
}

.blessing-action .action-btn:hover {
    background-color: transparent;
    transform: scale(1.05);
}

.blessing-action .action-btn img {
    width: 150px; /* Adjust size as needed */
    height: auto;
}

/* Video Blessings Page Styles */
.blessings-video-title {
    font-size: 36px;
    color: var(--dark-red);
    font-weight: bold;
    margin-bottom: 30px;
    width:89%;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.video-thumbnail {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.1);
}

.video-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-thumbnail:hover .play-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.video-thumbnail .play-icon::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid var(--dark-red);
    margin-left: 5px;
}


/* Blessing Toggle Buttons */
.blessing-toggle-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background-color: #ffd79e;
    color: var(--main-red); /* Gold color for text */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    writing-mode: horizontal-tb; /* Reset writing mode */
    text-orientation: mixed;
    width: 95px; /* Made wider for bigger semi-circle */
    height: 188px; /* Made taller */
    padding: 0;
    font-size: 23px; /* Increased font size */
    line-height: 1.2;
}

#toggle-to-video {
    right: 0;
    border-top-left-radius: 94px;  /* height / 2 */
    border-bottom-left-radius: 94px; /* height / 2 */
    flex-direction: row; /* Place text and arrow side-by-side */
}

#toggle-to-text {
    left: 0;
    border-top-right-radius: 94px; /* height / 2 */
    border-bottom-right-radius: 94px; /* height / 2 */
    opacity: 0;
    pointer-events: none;
    flex-direction: row; /* Corrected direction */
}

#blessings.video-view-active #toggle-to-video {
    opacity: 0;
    pointer-events: auto;
}

#blessings.video-view-active #toggle-to-text {
    opacity: 1;
    pointer-events: auto;
}

.blessing-toggle-btn span {
    margin: 0;
    letter-spacing: 2px;
    margin-left: 5px; /* Space between text and arrow */
}

.blessing-toggle-btn .arrow-right {
    display: inline-block;
    padding: 7px; /* Scaled up a bit */
    border: solid var(--main-red);
    border-width: 0 4px 4px 0; /* Made thicker */
    margin-top: 0;
    margin-left: 5px; /* Space between text and arrow */
    transform: rotate(-45deg);
}

.blessing-toggle-btn .arrow-left {
    display: inline-block;
    padding: 7px;
    border: solid var(--main-red);
    border-width: 0 4px 4px 0;
    transform: rotate(135deg);
    margin: 0;
    margin-right: 5px; /* Space between arrow and text */
}


/* Blessing Popup */
.blessing-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none; /* Initially hidden */
    align-items: center;
    justify-content: center;
}

.blessing-popup.show {
    opacity: 1;
    visibility: visible;
}

.blessing-popup .popup-content {
    background-color: transparent;
    box-sizing: border-box;
    border-radius: 48px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.blessing-popup.show .popup-content {
    transform: scale(1);
    opacity: 1;
}

.blessing-popup textarea {
    width: 100%;
    height: 120px;
    margin: 20px 0;
    padding: 10px;
    border-radius: 5px;
    resize: vertical;
    background-color: transparent;
    border-color: transparent;
    font-size: 18px;
}

.blessing-popup textarea:focus {
    outline: none;
}

.blessing-popup button {
    background-color: var(--main-red);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 10px;
}

.blessing-popup button:hover {
    background-color: var(--dark-red);
}

.blessing-popup .close-popup {
    /* background-color: #aaa; */
    color: #fff;
    font-size: 50px;
    right: 0;
    top:-70px ;
    position: absolute;
    cursor: pointer;
}

.blessing-popup .close-popup:hover {
    color: #8c1e10;
}

.blessing-hint {
    position: absolute;
    top: -43px;
    left: 169px;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 10;
    pointer-events: none;
    user-select: none;
    transition: all 0.3s ease;
}

.blessing-popup:hover .blessing-hint {
    opacity: 0.8;
}

/* 移动端隐藏右键保存提示 */
@media (max-width: 768px) {
    .blessing-hint {
        display: none;
    }
}

/* Footer */
.site-footer-section {
    background-color: var(--dark-red);
    color: #ffd79e; /* Brighter color as requested */
    font-size: 14px;
}
.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Ensure container is centered */
}
.footer-top {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding-bottom: 20px;
}
.footer-logo img {
    height: 60px;
}
.footer-info p {
    margin: 5px 0;
    text-align: right;
}
.footer-divider {
    height: 1px;
    background-color: rgba(255,255,255,0.15);
    margin: 0 auto;
}
.footer-bottom {
    padding-top: 20px;
    text-align: center;
}
.site-footer-section a {
    color: #EAE0D1; /* Brighter color as requested */
}
.site-footer-section a:hover {
    color: #fff;
}

/* Animation - Triggered by JS adding .active class to section */
.section .animate-on-scroll {
    opacity: 0;
    transform: translateY(80px) rotateX(-45deg);
    transition: opacity 0.8s ease-out, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.section.active .animate-on-scroll {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    transition-delay: var(--delay, 0s);
}

/* 为祝福庆师标题添加特殊的animate-on-scroll支持 */
#blessings .blessings-title.animate-on-scroll {
    opacity: 0;
    transform: translateY(80px) rotateX(-45deg);
    transition: opacity 0.8s ease-out, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#blessings.active .blessings-title.animate-on-scroll {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    transition-delay: var(--delay, 0s);
}

/* 为校园文创标题添加特殊的animate-on-scroll支持 */
#innovation .innovation-title.animate-on-scroll {
    opacity: 0;
    transform: translateY(80px) rotateX(-45deg);
    transition: opacity 0.8s ease-out, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#innovation.active .innovation-title.animate-on-scroll {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    transition-delay: var(--delay, 0s);
}

/* 为祝福视频标题添加特殊的animate-on-scroll支持 */
#blessings .blessings-video-title.animate-on-scroll {
    opacity: 0;
    transform: translateY(80px) rotateX(-45deg);
    transition: opacity 0.8s ease-out, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#blessings.active .blessings-video-title.animate-on-scroll {
    opacity: 1;
    transform: translateY(20px) rotateX(0);
    transition-delay: var(--delay, 0s);
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    /* 移除这个规则，因为它与移动端导航菜单冲突 */
    /* .main-nav {
        display: none;
    } */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .news-grid .right {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .announcements-list {
        flex-direction: column;
    }
    .announcement-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .announcement-item .date-box {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .media-focus-grid {
        grid-template-columns: 1fr;
    }
    .media-image-container {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    /* 移除这个规则，因为它与移动端导航菜单冲突 */
    /* .main-nav { display: none; } */
    
    .hero-content h1 { font-size: 3rem; }
    .hero-content h2 { font-size: 2rem; }
    
    .news-list {
        grid-template-columns: 1fr;
    }
}

/* Media Focus Section */
.media-focus-grid {
    display: flex;
    align-items: center;
    gap: 50px;
}
.media-image-container {
    width: 400px;
    height: 400px;
    position: relative;
    flex-shrink: 0;
}
.media-image-container__logo-bg {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: url('../images/left_logo.png') no-repeat center center;
    background-size: contain;
    opacity: 0.4;
}
.media-image-container .image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: #eee;
    padding: 15px;
    box-sizing: border-box;
    border: 2px solid var(--border-color);
}
.media-image-container::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    opacity: 0.5;
    z-index: 0;
}
.media-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.media-list {
    width: 100%;
    max-height: 400px; /* Or adjust to fit your design */
    overflow: visible; /* Changed from hidden to visible to show the arrow */
    position: relative;
}
.media-list-inner {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.media-item {
    display: block;
    font-size: 18px;
    color: var(--text-dark);
    padding: 22px 0 22px 45px;
    border-bottom: 1px solid #a3a3a2;
    position: relative;
    transition: color 0.3s ease;
    /* border-radius: 8px; */
}

/* 取消圆弧形缩进效果 */
.media-item:nth-child(1),
.media-item:nth-child(2),
.media-item:nth-child(3),
.media-item:nth-child(4),
.media-item:nth-child(5) {
    padding-left: 45px;
}
.media-item span {
    font-weight: bold;
}



.media-item::before {
    content: url('../images/Arrow.png');
    position: absolute;
    left: -90px;
    top: 53%;
    transform: translateY(-50%) scale(0.50);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.media-item:hover,
.media-item.active {
    color: var(--main-red);
}
.media-item:hover::before,
.media-item.active::before {
    opacity: 1;
}

/* PC端媒体聚焦列表右对齐 */
@media (min-width: 769px) {
    .media-list {
        text-align: right;
    }
    .media-item {
        text-align: right;
        padding-right: 50px;
    }
}

.blessing-wrapper.video-active .video-blessing-view {
    transform: translateX(0);
}

.video-blessing-btn {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1001; /* Above header */
    background-color: var(--main-red);
    color: white;
    border: none;
    padding: 20px 10px;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, right 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    font-size: 1rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: -3px 0px 15px rgba(0,0,0,0.2);
}

.video-blessing-btn:hover {
    background-color: var(--dark-red);
}

.video-blessing-btn span {
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.video-blessing-btn .arrow-right {
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

body.video-active .video-blessing-btn .arrow-right {
    transform: rotate(135deg);
}

.video-blessing-view {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px; /* Adjust as needed */
    height: 100%;
    background-color: #fff;
    z-index: 2001; /* Above popup */
    transform: translateX(100%);
    transition: transform 0.5s var(--transition-ease);
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    padding: 80px 40px 40px 40px;
    box-sizing: border-box;
}

body.video-active .video-blessing-view {
    transform: translateX(0);
}

body.video-active .page-wrapper,
body.video-active .site-header {
    transform: translateX(-400px);
    transition: transform 0.5s var(--transition-ease);
}
body.video-active .video-blessing-btn {
    right: 400px;
}


.close-video-view {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
}
.close-video-view:hover {
    color: #333;
}

.video-container h4 {
    color: var(--dark-red);
    font-size: 24px;
    margin-top: 0;
}

#contact.section {
    height: auto;
    background-color: var(--dark-red);
}

#media {
    background-image: url('../images/two_back.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto 115%;
}

.timeline-item:hover .timeline-item__content p {
    color: var(--text-light);
}

/* Show header shadow on video blessings view */
body[data-active-section="blessings"].video-view-active .site-header {
    background: transparent;
}

/* Show header shadow on video blessings view */
body[data-active-section="blessings"].video-view-active .site-header::before {
    content: '';
    position: absolute;
    top: -12.5%;
    left: 0;
    width: 100%;
    height: 145%;
    background: url('../images/back.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
    mask: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, transparent 100%);
    -webkit-mask: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, transparent 100%);
}

body[data-active-section="blessings"].video-view-active .site-header::after {
    opacity: 1;
}

.inno-nav-down::after {
    transform: translate(-50%, -75%) rotate(-45deg);
}

/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../images/blessings.png');
    background-size: cover;
    background-position: center;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    visibility: visible;
    opacity: 1;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 100px;
    height: auto;
    animation: pulse 2s infinite ease-in-out;
}

/* PC端loading图片放大一倍 */
@media (min-width: 769px) {
    .loader-logo {
        width: 300px;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.content-section .section-title,
.content-section .news-grid {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.content-section.animated .section-title,
.content-section.animated .news-grid,
.section-title.animated {
    opacity: 1;
    transform: translateY(0);
    animation: section-fade-in 0.8s ease-out forwards;
}

@keyframes section-fade-in {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes section-fade-in {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.media-image-container .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: opacity 0.5s ease-in-out;
}

.media-list {
    width: 100%;
    max-height: 400px; /* Or adjust to fit your design */
    overflow: visible; /* Changed from hidden to visible to show the arrow */
    position: relative;
}

.media-item.active::before {
    opacity: 1;
}

.media-list-inner {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#blessings {
    background: url('../images/blessings-bg.jpg') no-repeat center center;
    background-size: cover;
}

/* Particles Effect for Hero Section */
#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Ensure particles are above slider but below content */
    pointer-events: none; /* Make sure it doesn't block content */
}

.particle {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.7;
    will-change: transform; /* Performance optimization */
}

#danmaku-display-popup .popup-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: context-menu;
}

#danmaku-display-text {
    font-size: 24px;
    font-weight: bold;
    color: #a40000;
    padding: 20px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
    max-width: 80%;
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    .main-nav a {
        font-size: 16px;
    }
    .main-nav li {
        margin-left: 0px;
    }
    .news-grid .left .text {
        font-size: 1.2rem;
    }
    .right .top .text, .right .bottom .text {
        font-size: 1rem;
    }
}

/* PC端小屏幕调整 - 防止标题被遮挡 */
@media (min-width: 769px) and (max-height: 900px) {
    .section {
        padding: 80px 0 40px;
    }
    
    /* 光影拾忆模块标题调整 */
    #gallery .section-title {
        margin-bottom: 20px;
    }
    
    /* 校友祝福模块标题调整 */
    .blessings-title {
        margin-bottom: -30px;
        margin-top: 20px;
    }
}

/* PC端更小屏幕的进一步调整 */
@media (min-width: 769px) and (max-height: 800px) {
    .section {
        padding: 90px 0 30px;
    }
    
    #gallery .section-title {
        margin-bottom: 15px;
    }
    
    .blessings-title {
        margin-bottom: -20px;
        margin-top: 130px;
        font-size: 38px;
    }
    
    .timeline-container {
        height: 380px;
        padding-top: 30px;
    }
    .blessing-action{
        margin: 0;
    }
}

@media (max-width: 576px) {
    .hero-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .hero-nav-btn.prev {
        left: 15px;
    }
    .hero-nav-btn.next {
        right: 15px;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .more-link {
        font-size: 0.9rem;
    }
    .blessings-title {
        font-size: 3rem;
    }
    .blessing-action .action-btn {
        width: 150px;
    }
    .innovation-title {
        font-size: 2.5rem;
    }
}

#blessing-canvas {
    margin: 20px 0;
    border-radius: 8px;
}

#save-blessing-card-btn {
    background-color: var(--dark-red);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 15px;
}

#save-blessing-card-btn:hover {
    background-color: var(--main-red);
    transform: scale(1.05);
}

.site-footer-section p {
    margin: 0 0 10px;
}

.site-footer-section.red-footer {
    background-color: var(--dark-red);
    padding: 50px 0;
}
.site-footer-section.red-footer .footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
}
.site-footer-section.red-footer a {
    color: #ffd79e;
} 

/* --- PC-Specific News Page Layout Restoration --- */
/* Use higher specificity to override any conflicting styles */

#news-page .news-container {
    display: flex !important; /* Ensure flex layout for sidebar and content */
    position: relative !important;
    gap: 40px !important;
    align-items: flex-start !important;
}

#news-page .news-sidebar {
    position: absolute !important;
    width: 200px !important;
    left: 0 !important;
    display: block !important; /* Ensure sidebar is visible on PC */
}

#news-page .news-content-area {
    margin-left: 240px ; /* Crucial for sidebar spacing */
    width: auto !important;
    flex: 1 !important;
}

#news-page .news-list li a {
    display: flex !important;
    flex-direction: row !important; /* Ensure image and text are side-by-side */
    gap: 25px !important;
}

#news-page .news-image {
    width: 200px;
    height: 130px ;
    flex-shrink: 0;
}

/* --- Overriding the global .news-list rule for PC --- */
@media (min-width: 769px) {
    .news-list {
        display: block !important; /* Revert to default block behavior on PC */
    }
    #news-page .news-list li a {
        display: flex !important;
        flex-direction: row !important; /* Ensure side-by-side on PC */
    }
}

/* Responsive Layout Toggle */
@media (min-width: 769px) {
    .mobile-only-layout {
        display: none !important;
    }
    
    .mobile-menu-panel {
        display: none !important;
    }
}

/* 移动端菜单面板样式 */
@media (max-width: 768px) {
    .mobile-menu-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        min-height: 50vh;
        padding: 60px 20px 40px 20px;
        display: flex;
        flex-direction: column;
        background: rgba(164, 32, 19, 0.97);
        z-index: 1002;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        box-sizing: border-box;
    }
    
    .mobile-menu-panel.active {
        transform: translateY(0);
    }
    
    .mobile-menu-panel-close {
        position: absolute;
        top: 15px;
        right: 20px;
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        z-index: 1003;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-search {
        position: relative;
        margin-bottom: 20px;
    }
    
    .mobile-menu-search input {
        width: 100%;
        padding: 12px 45px 12px 15px;
        border-radius: 25px;
        color: white;
        font-size: 16px;
        box-sizing: border-box;
    }
    
    .mobile-menu-search input::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .mobile-menu-search input:focus {
        outline: none;
    }
    
    .mobile-search-btn {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.8);
        cursor: pointer;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-title {
        color: white;
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .mobile-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
        flex-direction: column;
    }
    
    .mobile-menu-list li {
        margin-bottom: 8px;
    }
    
    .mobile-menu-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        color: white;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        transition: background 0.3s ease;
        font-size: 16px;
    }
    
    .mobile-menu-item:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .mobile-menu-arrow {
        color: rgba(255, 255, 255, 0.7);
        font-size: 18px;
    }
} 

/* 3K及以上大屏幕等比例放大 */
@media (min-width: 2560px) {
    .page-wrapper {
        transform: scale(1.2);
        transform-origin: top center;
        width: 83.33%; /* 100% / 1.2 = 83.33% */
        margin: 0 auto;
    }
    .container{
        max-width: 1600px;
    }
    
    /* 增加header高度，让整体更协调 */
    .site-header {
        padding: 20px 0; /* 从15px增加到20px */
    }
    
    .site-header .logo img {
        height: 58px; /* 从50px增加到58px */
    }
    
    .main-nav a {
        font-size: 20px; /* 增加导航字体大小 */
        padding-bottom: 6px; /* 增加底部间距 */
    }
    
    .main-nav li {
        margin-left: 45px; /* 增加导航项间距 */
    }
    
    /* 新闻卡片高度调整 */
    .news-grid {
        gap: 40px; /* 增加卡片间距 */
    }
    
    .left {
        min-height: 400px; /* 增加左侧卡片高度 */
    }
    
    .right .top {
        min-height: 280px; /* 增加右侧顶部卡片高度 */
    }
    
    .right .bottom {
        min-height: 120px; /* 增加右侧底部卡片高度 */
    }
    
    /* 背景图保持原样，不放大 */
    .hero-slide {
        transform: scale(1); /* 重置背景图缩放 */
    }
    #news, #media{
        background-size:auto 90%;
        background-position: left center;
     }
    /* 其他背景图也保持原样 */
    #announcements,
    #gallery,
    #blessings,
    #innovation {
        background-size: cover !important;
        background-position: center !important;
    }
}

/* 4K及以上超高清屏幕等比例放大 */
@media (min-width: 3840px) {
    .container{
        max-width: 1900px;
    }
    .page-wrapper {
        transform: scale(1.4);
        transform-origin: top center;
        width: 71.43%; /* 100% / 1.4 = 71.43% */
        margin: 0 auto;
    }
    
    /* 增加header高度，让整体更协调 */
    .site-header {
        padding: 25px 0; /* 从15px增加到25px */
    }
    
    .site-header .logo img {
        height: 65px; /* 从50px增加到65px */
    }
    
    .main-nav a {
        font-size: 22px; /* 增加导航字体大小 */
        padding-bottom: 8px; /* 增加底部间距 */
    }
    
    .main-nav li {
        margin-left: 50px; /* 增加导航项间距 */
    }
    
    /* 新闻卡片高度调整 */
    .news-grid {
        gap: 50px; /* 增加卡片间距 */
    }
    
    .left {
        min-height: 450px; /* 增加左侧卡片高度 */
    }
    
    .right .top {
        min-height: 320px; /* 增加右侧顶部卡片高度 */
    }
    
    .right .bottom {
        min-height: 140px; /* 增加右侧底部卡片高度 */
    }
    
    /* 背景图保持原样，不放大 */
    .hero-slide {
        transform: scale(1); /* 重置背景图缩放 */
    }
    
    #news, #media{
        background-size:auto 90%;
        background-position: left center;
    }
    
    /* 其他背景图也保持原样 */
    #announcements,
    #gallery,
    #blessings,
    #innovation {
        background-size: cover !important;
        background-position: center !important;
    }
}