/* 屏幕阅读器隐藏样式 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* PC端隐藏移动端元素 */
@media (min-width: 769px) {
    .mobile-menu-btn,
    .mobile-menu-close,
    .mobile-menu-overlay,
    .mobile-menu-panel,
    .mobile-timeline-nav {
        display: none !important;
    }
    
    .main-nav {
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        padding-top: 0 !important;
        box-shadow: none !important;
        right: auto !important;
    }
    
    .main-nav ul {
        flex-direction: row !important;
        gap: 35px !important;
    }
    
    .main-nav li {
        border-bottom: none !important;
    }
    
    .main-nav a {
        font-size: 18px !important;
        padding: 5px 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        text-align: center !important;
        border-bottom: 2px solid transparent !important;
    }
    
    .main-nav a:hover {
        color: #ffd79e !important;
        background: transparent !important;
    }
    
    .main-nav a.active {
        color: #ffd79e !important;
        border-bottom-color: #ffd79e !important;
        background: transparent !important;
        border-left: none !important;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .pc-only-layout {
        display: none !important;
    }

    /* 基础设置 */
    html {
        overflow-x: hidden;
        scroll-padding-top: 60px;
    }
    
    body {
        overflow-x: hidden;
        font-size: 14px;
    }
    
    .page-wrapper {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    /* 头部导航 */
    .site-header {
        padding: 10px 0;
        background: transparent;
        transition: background 0.3s ease;
        transform: none;
    }
    
    /* 首页和校友祝福状态下导航栏透明 */
    body[data-active-section="hero"] .site-header,
    body[data-active-section="blessings"] .site-header {
        background: transparent !important;
    }
    
    /* 校友祝福页面导航栏的伪元素也要透明 */
    body[data-active-section="blessings"]:not(.video-view-active) .site-header::before,
    body[data-active-section="blessings"]:not(.video-view-active) .site-header::after {
        display: none !important;
        opacity: 0 !important;
    }
    
    /* 确保校友祝福页面导航栏在所有状态下都透明 */
    body[data-active-section="blessings"]:not(.video-view-active) .site-header.scrolled {
        background: transparent !important;
    }
    
    /* 视频祝福页面导航栏显示背景 */
    /* body[data-active-section="blessings"].video-view-active .site-header {
        background: linear-gradient(to bottom, var(--dark-red), #d75c4e) !important;
    } */
    
    body[data-active-section="blessings"].video-view-active .site-header::before {
        display: block !important;
        content: '';
        position: absolute;
        top: -12.5%;
        left: 0;
        width: 100%;
        height: 190%;
        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%);
        opacity: 1 !important;
    }
    
    body[data-active-section="blessings"].video-view-active .site-header::after {
        opacity: 1 !important;
    }
    
    /* 其他页面状态下导航栏红色 */
    body[data-active-section]:not([data-active-section="hero"]):not([data-active-section="blessings"]) .site-header::before {
       height: 170%;
    }
    
    .site-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    
    .site-header .logo img {
        height: 40px;
    }
    
    /* 汉堡菜单按钮 */
    .mobile-menu-btn {
        display: block;
        width: 40px;
        height: 40px;
        background: url('../images/btn-r.png') no-repeat center center;
        background-size: contain;
        border: none;
        cursor: pointer;
        position: relative;
        z-index: 1001;
        transition: transform 0.3s ease;
        margin-right: 10px; /* 向左调整位置 */
        pointer-events: auto; /* 确保可以接收点击事件 */
        touch-action: manipulation; /* 移动端触摸优化 */
    }
    
    .mobile-menu-btn.active {
        transform: rotate(90deg);
    }
    
    /* 移动端导航菜单 */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, var(--dark-red), #d75c4e);
        z-index: 1000;
        transition: right 0.3s ease;
        display: block;
        padding-top: 80px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        padding: 0;
        margin: 0;
    }
    
    .main-nav li {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-nav a {
        font-size: 16px;
        padding: 20px 25px;
        border-radius: 0;
        background: transparent;
        border: none;
        display: block;
        text-align: left;
        transition: background-color 0.3s ease;
    }
    
    .main-nav a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .main-nav a.active {
        background: rgba(255,255,255,0.2);
        border-left: 4px solid #ffd79e;
    }
    
    /* 遮罩层 */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* 关闭按钮 */
    .mobile-menu-close {
        display: none !important;
    }

    /* 移动端菜单面板 */
    .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;
        pointer-events: auto; /* 确保可以接收点击事件 */
        touch-action: manipulation; /* 移动端触摸优化 */
    }
    
    .mobile-menu-search {
        position: relative;
        margin-bottom: 20px;
    }
    
    .mobile-menu-search input {
        width: 100%;
        padding: 12px 45px 12px 15px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 25px;
        background: rgba(255, 255, 255, 0.1);
        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;
        border-color: rgba(255, 255, 255, 0.5);
        background: rgba(255, 255, 255, 0.15);
    }
    
    .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;
    }

    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-content img {
        max-width: 90%;
    }
    
    .hero-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .news-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .news-grid .left {
        width: 100%;
    }
    
    .news-grid .left .img {
        height: 200px;
    }
    
    .news-grid .left .text {
        font-size: 16px;
        bottom: 15%;
    }
    
    .news-grid .right {
        width: 100%;
        flex-direction: column;
    }
    
    .news-grid .right .top,
    .news-grid .right .bottom {
        width: 100%;
        height: auto;
        min-height: 120px;
        margin-bottom: 15px;
    }
    
    .news-grid .right .top .img {
        height: 120px;
    }
    
    .news-grid .right .text {
        font-size: 14px;
        line-height: 20px;
    }
    
    .news-grid .time {
        font-size: 12px;
    }
    
    .announcements-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .announcement-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        text-decoration: none;
        color: inherit;
        cursor: pointer;
    }
    
    .announcement-item .date-box {
        margin-right: 0;
        margin-bottom: 15px;
        position: relative;
        top: auto;
        left: auto;
    }
    
    .announcement-item .content {
        padding: 20px;
        width: 100%;
        margin-left: 0;
    }
    
    .announcement-item .content h4 {
        font-size: 16px;
    }
    
    .timeline-container {
        height: auto;
        padding: 20px 0;
    }
    
    .timeline-container__path {
        display: none;
    }
    
    .timeline-item {
        position: relative;
        width: 100%;
        left: 0;
        margin-bottom: 30px;
        transform: none;
    }
    
    .timeline-item.is-visible {
        opacity: 1;
        transform: none;
    }
    
    .timeline-item__content {
        position: relative;
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        width: 100%;
        margin: 0;
    }
    
    .timeline-item__content img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .timeline-item__content p {
        margin: 0;
        font-size: 14px;
        line-height: 1.6;
        color: #666;
    }
    
    .timeline-item__year {
        position: relative;
        background: var(--main-red);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 15px;
        display: inline-block;
        transform: none;
        left: auto;
        top: auto;
    }
    
    .timeline-nav {
        display: none;
    }
    
    .timeline-nav__btn {
        display: none;
    }

    .media-focus-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .media-image-container {
        height: 280px;
        border-radius: 50%;
        overflow: hidden;
    }
    
    .media-image-container .image-wrapper {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        overflow: hidden;
    }
    
    .media-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .media-list {
        height: 300px;
    }
    
    .media-item {
        padding: 8px 0;
        border-bottom: 1px solid #eee;
        font-size: 15px;
        line-height: 1.6;
    }

    /* 删除.media-item::before伪元素 */
    .media-item::before {
        display: none;
        content: none;
    }
    
    /* 移动端媒体聚焦项目缩进调整 */
    .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: 25px;
    }
    
    /* 移动端媒体项目内容样式调整 */
    
    /* 祝福区域 */
    .blessings-wrapper {
        padding: 20px 0;
    }
    
    .blessings-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .blessings-wall-container {
        position: relative;
        height: 45vh; /* 增加高度以容纳更多气泡 */
        max-height: 400px;
        overflow: hidden; /* 隐藏超出范围的气泡 */
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
        -webkit-mask-image: -webkit-radial-gradient(center, ellipse cover, white 60%, black 100%);
        mask-image: -webkit-radial-gradient(center, ellipse cover, white 60%, black 100%);
    }

    .blessings-wall {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .blessing-action .action-btn {
        width: 120px;
        height: 120px;
    }
    
    .blessing-action .action-btn img {
        width: 100%;
        height: 100%;
    }
    
    .blessing-toggle-btn {
        width: 60px;
        height: 60px;
        font-size: 12px;
        border-radius: 50%;
    }
    
    .blessing-toggle-btn span {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .video-thumbnail {
        aspect-ratio: 16/9;
        height: auto;
    }
    
    .video-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Innovation section mobile layout - 新的分离式布局 */
    .innovation-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: 100%;
        gap: 20px;
        padding: 20px 0;
    }
    
    .innovation-slider {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 50%;
        position: relative;
        transform: translateX(0) !important;
    }
    
    .innovation-slide {
        display: none; /* 首先隐藏所有slide */
        position: absolute; /* 修复：设为absolute以支持轮播 */
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .innovation-slide.active,
    .innovation-slide.prev {
        display: flex; /* 只显示active的slide */
    }

    /* --- blob-left 容器和内容缩放 --- */
    .innovation-content .blob-left {
        position: relative; /* 核心修复：覆盖absolute定位 */
        top: 10%;
        left: -28%;
        width: 100%; /* 容纳缩放后内容的宽度 */
        height: 185px; /* 容纳缩放后内容的高度 */
        flex: none; /* 修复：重置flex属性 */
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }

    .blob-left .blob-1 {
        width: 140px;
        height: 140px;
        border-radius: 30px;
        position: relative;
    }

    .blob-left .blob-item {
        font-size: 10px; /* 20px * 0.5 */
    }

    .blob-left .blob-logo {
        width: 20px;
        height: 20px;
        margin-bottom: 5px;
    }
    
    .blob-left .blob-2 {
        width: 65px;
        height: 65px;
        bottom: -44px;
        left: 75px;
        border-radius: 10px;
    }

    .blob-left .blob-3 {
        width: 65px;
        height: 65px;
        top: -20px;
        left: 72.5px;
        border-radius: 10px;
    }

    .blob-left .blob-3::before {
        width: 65px;
        height: 65px;
        top: 38px;
        left: 1px;
        border-radius: 10px;
    }

    /* --- blob-right 容器和内容缩放 --- */
    .blob-right {
        position: relative; /* 核心修复：覆盖absolute定位 */
        top: auto;
        left: 10px;
        width: 100%;
        height: 250px;
        justify-content: center;
        align-items: center;
    }

    .blob-right .blob-item {
        font-size: 10px;
        border: none; /* 核心修复：移除意外的边框 */
    }

    .blob-right .blob-4 {
        width: 90px;
        height: 90px;
        top: 113%;
        left: 33%;
    }

    .blob-right .blob-5 {
        width: 150px;
        height: 150px;
        top: 51%;
        left: 42%;
        font-size: 14px;
    }

    .blob-right .blob-6 {
        width: 110px;
        height: 110px;
        bottom: -50px;
        left: 73px;
    }
    
    /* 弹窗 */
    .blessing-popup {
        padding: 20px;
    }
    
    .blessing-popup .popup-content {
        width: 90%;
        max-width: 400px;
        padding: 20px;
    }
    
    .blessing-popup textarea {
        width: 100%;
        height: 120px;
        font-size: 14px;
    }
    
    .blessing-popup button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    /* 页脚 */
    .footer-container {
        padding: 20px 0;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-logo img {
        height: 40px;
    }
    
    .footer-info p {
        font-size: 12px;
        margin: 5px 0;
    }
    
    .footer-bottom p {
        font-size: 12px;
        text-align: center;
    }
    
    /* 模态框 */
    .modal-overlay {
        padding: 20px;
    }
    
    .modal-content {
        width: 90%;
        max-width: 400px;
        padding: 20px;
    }
    
    .modal-content h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .modal-content textarea {
        width: 100%;
        height: 120px;
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .modal-content button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    /* 加载器 */
    .loader-content {
        padding: 20px;
    }
    
    .loader-logo {
        width: 80px;
        height: 80px;
    }
    
    /* 粒子效果 */
    #particles-container {
        /* display: none; */ /* 移除此行以在移动端显示粒子效果 */
    }
    
    /* 标题和链接 */
    .section-title h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .more-link {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    /* 动画优化 */
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
    
    /* 滚动优化 */
    .section {
        padding: 80px 0 40px;
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    /* 特殊元素隐藏 */
    .pos-img {
        display: none;
    }
    
    /* 其他页面移动端适配 */
    
    /* 页面头部 */
    .page-header {
        height: 200px;
        background-size: cover;
        background-position: center;
        position: relative;
    }
    
    .page-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
    }
    
    .page-header-content {
        position: relative;
        z-index: 2;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        color: white;
    }
    
    .page-title {
        font-size: 28px;
        margin-bottom: 10px;
        font-weight: bold;
    }
    
    .breadcrumb {
        font-size: 14px;
        opacity: 0.9;
    }
    
    .breadcrumb a {
        color: white;
        text-decoration: none;
    }
    
    /* 新闻页面（移动端优化） */
    .news-container {
        display: block;
        padding: 20px 0;
    }
    
    .news-sidebar {
        display: none;
    }
    
    .news-content-area {
        width: 100%;
        margin-left: 0;
    }
    
    .news-list {
        padding: 0 15px;
    }
    
    .news-list li {
        margin-bottom: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    
    .news-list li a {
        flex-direction: column; /* 移动端图文垂直排列 */
        padding: 0;
        gap: 0;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
        border-radius: 12px 12px 0 0;
    }

    .news-text {
        padding: 0 20px 20px;
    }
    
    /* 移动端分类切换按钮 */
    .mobile-category-toggle {
        position: sticky;
        top: 60px;
        z-index: 100;
        background: white;
        padding: 15px;
        border-bottom: 1px solid #eee;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .mobile-category-btn {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        background: var(--main-red);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-category-btn:hover {
        background: var(--dark-red);
    }
    
    .mobile-category-btn.active {
        border-radius: 8px 8px 0 0;
    }
    
    .category-arrow {
        transition: transform 0.3s ease;
    }
    
    .mobile-category-btn.active .category-arrow {
        transform: rotate(180deg);
    }
    
    .mobile-category-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #eee;
        border-top: none;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 101;
    }
    
    .mobile-category-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .mobile-category-item {
        display: block;
        padding: 12px 16px;
        color: var(--text-dark);
        text-decoration: none;
        border-bottom: 1px solid #f5f5f5;
        transition: background-color 0.3s ease;
    }
    
    .mobile-category-item:last-child {
        border-bottom: none;
    }
    
    .mobile-category-item:hover {
        background: #f8f8f8;
    }
    
    .mobile-category-item.active {
        background: var(--main-red);
        color: white;
    }
    
    .news-list {
        display: block;
        padding: 0 15px;
    }
    
    .news-list li {
        margin-bottom: 20px;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        border: 1px solid #f0f0f0;
        position: relative;
    }
    
    .news-list li:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }
    
    .news-list li a {
        display: block;
        padding: 0;
        text-decoration: none;
        color: inherit;
    }
    
    .news-title {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 12px;
        line-height: 1.4;
        color: var(--text-dark);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .news-date {
        font-size: 13px;
        color: #999;
        margin-bottom: 12px;
        display: block;
        font-weight: 500;
    }
    
    .news-summary {
        font-size: 15px;
        line-height: 1.6;
        color: #666;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
    }
    
    /* 新闻分类标签 */
    .news-category-tag {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(164, 32, 19, 0.9);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 500;
    }
    
    /* 隐藏非当前分类的新闻 */
    .news-item.hidden {
        display: none;
    }
    
    /* 新闻加载动画 */
    .news-item {
        animation: fadeInUp 0.6s ease forwards;
        opacity: 0;
        transform: translateY(20px);
    }
    
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* 分页样式优化 */
    .pagination {
        margin-top: 30px;
        padding: 0 15px;
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .pagination a {
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 14px;
        min-width: 40px;
        text-align: center;
    }
    
    /* 通知公告页面 */
    .announcements-container {
        display: block;
        gap: 20px;
        padding: 20px 0;
    }
    
    .announcements-sidebar {
        display: none;
    }
    
    .announcements-content {
        width: 100%;
    }
    
    .announcement-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 16px 0;
    }
    
    .announcement-list li {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        position: relative;
        transition: all 0.3s ease;
        border: 1px solid rgba(164, 32, 19, 0.1);
    }
    
    .announcement-list li:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    }
    
    .announcement-list li a {
        display: flex;
        flex-direction: column;
        padding: 16px;
        text-decoration: none;
        color: inherit;
        position: relative;
    }
    
    .announcement-list .date {
        display: inline-block;
        background: linear-gradient(135deg, #A42013, #d32f2f);
        color: white;
        font-size: 12px;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 20px;
        margin-bottom: 12px;
        align-self: flex-start;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(164, 32, 19, 0.3);
    }
    
    .announcement-list .title {
        font-size: 15px;
        font-weight: 600;
        line-height: 1.4;
        color: #2c3e50;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .announcement-list li a::after {
        content: '›';
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #A42013;
        font-size: 18px;
        font-weight: bold;
        opacity: 0.6;
        transition: all 0.3s ease;
    }
    
    .announcement-list li:hover a::after {
        opacity: 1;
        transform: translateY(-50%) translateX(3px);
    }
    
    .announcement-list li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, #A42013, #d32f2f);
        transition: width 0.3s ease;
    }
    
    .announcement-list li:hover::before {
        width: 6px;
    }
    
    /* 时间轴页面 */
    .timeline-body-container {
        padding: 20px 0;
    }
    
    .timeline {
        display: block;
        position: relative;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item-left,
    .timeline-item-right {
        width: 100%;
        margin-bottom: 30px;
        position: relative;
    }
    
    .timeline-item-left::before,
    .timeline-item-right::before {
        display: none;
    }
    
    .timeline-card {
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin: 0;
    }
    
    .card-header {
        position: relative;
        height: 200px;
        overflow: hidden;
    }
    
    .card-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .card-year {
        position: absolute;
        top: 15px;
        right: 15px;
        background: var(--main-red);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 16px;
        font-weight: bold;
    }
    
    .card-description {
        padding: 20px;
        font-size: 16px;
        line-height: 1.5;
        color: var(--text-dark);
        margin: 0;
    }
    
    .load-more-container {
        text-align: center;
        margin-top: 30px;
    }
    
    .load-more-btn {
        background: var(--main-red);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 25px;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 auto;
    }
    
    /* 分页 */
    .pagination {
        margin-top: 30px;
        text-align: center;
    }
    
    .pagination a,
    .pagination span {
        display: inline-block;
        padding: 10px 15px;
        margin: 0 3px;
        border: 1px solid #ddd;
        background-color: #fff;
        color: #666;
        text-decoration: none;
        border-radius: 4px;
        font-size: 14px;
        min-width: 40px;
        box-sizing: border-box;
    }
    
    .pagination a:hover,
    .pagination a.active {
        border-color: var(--main-red);
        color: var(--main-red);
        font-weight: bold;
    }
    
    .pagination .ellipsis {
        border: none;
        background: none;
        padding: 10px 5px;
    }
    
    .pagination a.disabled {
        color: #ccc;
        pointer-events: none;
        border-color: #eee;
    }
    
    /* 首页新闻卡片流式布局（移动端） */
    .news-cards {
        display: flex;
        flex-direction: column;
        gap: 18px;
        margin-top: 18px;
    }
    
    .news-card {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: box-shadow 0.3s, transform 0.3s;
        position: relative;
        text-decoration: none;
        color: inherit;
    }
    
    .news-card:active {
        box-shadow: 0 8px 24px rgba(0,0,0,0.13);
        transform: scale(0.98);
    }
    
    .news-card-img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        display: block;
        background: #f5f5f5;
    }
    
    .news-card-body {
        padding: 16px 14px 12px 14px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .news-card-title {
        font-size: 16px;
        font-weight: 600;
        color: #222;
        line-height: 1.5;
        margin-bottom: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .news-card-time {
        font-size: 13px;
        color: #a42013;
        font-weight: 500;
        margin-top: 2px;
        letter-spacing: 1px;
    }
    
    /* 非首页页面的顶部间距（避免与固定导航重叠） */
    body:not([data-page="home"]) main,
    body:not([data-page="home"]) .page-wrapper {
        padding-top: 60px;
    }
    
    /* 首页保持全屏布局 */
    body[data-page="home"] .page-wrapper {
        padding-top: 0;
    }
    
    #news {
        display: flex;
        flex-direction: column;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        box-sizing: border-box;
        padding-top: 0;
        transform: translateY(8vh);
    }
    #news .section-title {
        flex: 0 0 auto;
        margin-bottom: 8px;
    }
    #news .news-cards {
        display: flex;
        flex-direction: column;
        gap: 14px;
        overflow: hidden;
    }
    #news .news-card {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        max-height: 32vh;
        min-height: 120px;
        text-decoration: none;
        color: inherit;
    }
    #news .news-card-img {
        width: 100%;
        height: 90px;
        object-fit: cover;
        flex-shrink: 0;
    }
    #news .news-card-body {
        padding: 10px 14px 8px 14px;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }
    #news .news-card-title {
        font-size: 14px;
        font-weight: 500;
        line-height: 1.3;
        margin-bottom: 8px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    #news .news-card-time {
        font-size: 13px;
        color: #A42013;
        margin-top: auto;
    }
    
    /* 只在首页提高#news下移权重 */
    body[data-page="home"] #news {
        transform: translateY(8vh) !important;
    }
    
    /* 首页通知公告区块现代化设计 */
    #announcements .announcements-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 0;
        height: 100vh;
        box-sizing: border-box;
    }
    
    #announcements .announcement-item {
        padding-top: 2px;
        padding-bottom: 2px;
        display: flex;
        flex-direction: row;
        align-items: center;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        position: relative;
        height: calc((100vh - 315px) / 5 * 0.75);
        border: 1px solid #f2eaea;
        transition: box-shadow 0.2s, transform 0.2s;
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        cursor: pointer;
    }
    
    #announcements .announcement-item:hover {
        box-shadow: 0 4px 20px rgba(0,0,0,0.13);
        transform: translateY(-2px);
    }
    
    /* 日期盒子现代化设计 */
    #announcements .announcement-item .date-box {
        background: linear-gradient(135deg, #A42013, #d32f2f);
        color: #fff;
        border-radius: 8px;
        padding: 4px 8px;
        min-width: 36px;
        margin-right: 8px;
        box-shadow: none !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        align-self: flex-start;
        height: auto !important;
        min-height: unset !important;
        max-height: unset !important;
    }
    
    #announcements .announcement-item .date-box .day,
    #announcements .announcement-item .date-box .year {
        background: none !important;
        box-shadow: none !important;
        padding: 0;
        margin: 0;
        line-height: 1;
        color: #fff;
    }
    
    #announcements .announcement-item .date-box .day {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 1px;
    }
    
    #announcements .announcement-item .date-box .year {
        font-size: 12px;
        font-weight: 400;
        opacity: 0.85;
    }
    
    #announcements .announcement-item .date-box::before,
    #announcements .announcement-item .date-box::after {
        display: none !important;
        content: none !important;
    }
    
    /* 内容区域 */
    #announcements .announcement-item .content {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        align-items: center;
        background: none !important;
        box-shadow: none !important;
        padding: 8px 0;
    }
    
    #announcements .announcement-item .content h4 {
        font-size: 13px;
        font-weight: 600;
        color: #333 !important;
        margin: 0;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        word-break: break-all;
    }
    
    /* 右侧箭头指示器 */
    #announcements .announcement-item::after {
        content: '›';
        color: #A42013;
        font-size: 24px !important;
        font-weight: bold;
        opacity: 0.5;
        margin-left: 6px;
        margin-right: 15px;
        transition: all 0.2s;
        flex-shrink: 0;
    }
    
    #announcements .announcement-item:hover::after {
        opacity: 0.8;
        transform: translateX(2px);
    }
    
    /* 左侧装饰条 */
    #announcements .announcement-item::before {
        display: none !important;
    }
    
    #announcements .announcement-item .date-box::before {
        display: none !important;
        content: none !important;
    }
    
    body[data-page="home"] #gallery .timeline-container {
        position: relative;
        overflow: hidden;
        width: 100%;
        height: auto;
    }
    
    /* 时间线轮播包装器 */
    .timeline-slider-wrapper {
        display: flex;
        transition: transform 0.4s cubic-bezier(.25,.8,.25,1);
        width: 100%;
    }
    
    /* 时间线页面 */
    .timeline-page {
        min-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    /* 重置原有的时间线项目样式 - 使用最高优先级 */
    body[data-page="home"] #gallery .timeline-item {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        min-width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
        flex-direction: column !important;
        background: #fff !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
        overflow: hidden !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
    }
    
    body[data-page="home"] #gallery .timeline-item__content {
        display: flex !important;
        flex-direction: row !important;
        padding: 20px !important;
        gap: 16px !important;
        align-items: flex-start !important;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
        background: transparent !important;
        border: none !important;
        margin: 0 !important;
        position: static !important;
    }
    
    /* 移除所有伪元素 - 更全面的清除 */
    body[data-page="home"] #gallery .timeline-item__content::before,
    body[data-page="home"] #gallery .timeline-item__content::after,
    body[data-page="home"] #gallery .timeline-item::before,
    body[data-page="home"] #gallery .timeline-item::after,
    body[data-page="home"] #gallery .timeline-item__year::before,
    body[data-page="home"] #gallery .timeline-item__year::after {
        display: none !important;
        content: none !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        width: 0 !important;
        height: 0 !important;
        position: static !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    body[data-page="home"] #gallery .timeline-item__content img {
        width: 130px !important;
        height: 90px !important;
        border-radius: 8px !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: none !important;
    }
    
    body[data-page="home"] #gallery .timeline-item__content p {
        flex: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        color: #333 !important;
        width: 100% !important;
        max-width: none !important;
        background: transparent !important;
        border: none !important;
    }
    
    body[data-page="home"] #gallery .timeline-item__year {
        position: static !important;
        background: #a42013 !important;
        color: #fff !important;
        padding: 8px 16px !important;
        font-size: 16px !important;
        font-weight: bold !important;
        text-align: center !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
        border: none !important;
        border-radius: 0 !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
    }
    
    /* 移动端时间线导航按钮定位 - 向上调整位置 */
    #gallery .mobile-timeline-nav {
        position: fixed !important;
        right: 18px !important;
        bottom: 60px !important;
        z-index: 1002 !important;
        width: auto !important;
        max-width: none !important;
        background: none !important;
        pointer-events: none;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
    }
    
    /* 移动端时间线按钮样式 */
    #gallery .mobile-timeline-btn {
        pointer-events: auto;
        width: 44px;
        height: 44px;
        background: #fff;
        border: 1.5px solid #d3b392;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        color: #a42013;
        font-size: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    #gallery .mobile-timeline-btn:active {
        background: #ffe5d0;
        box-shadow: 0 1px 4px rgba(0,0,0,0.12);
        transform: scale(0.95);
    }
    #gallery .mobile-timeline-btn:disabled {
        cursor: not-allowed;
        background: #f5f5f5;
        border-color: #ccc;
        color: #999;
        opacity: 0.5;
    }
    
    /* 隐藏原有的时间线导航和SVG */
    body[data-page="home"] #gallery .timeline-nav,
    body[data-page="home"] #gallery .timeline-container__path {
        display: none !important;
    }

    /* =================================== */
    /* == Mobile Blessings Wall Refactor == */
    /* =================================== */

    /* 隐藏PC端弹幕卡片 */
    .danmaku-card {
        display: none !important;
    }

    /* 祝福气泡样式 (最终修复版) */
    .blessing-bubble {
        position: absolute;
        /* left 属性不再需要，完全由 transform 控制 */
        top: 0; /* 垂直位置将通过JS设置 */
        padding: 8px 15px;
        background: rgba(255, 255, 255, 0.8);
        color: #a42013;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.9);
        opacity: 0; /* 初始状态为透明 */
        transform: translateX(100vw); /* 初始位置在屏幕右侧外 */
        animation-name: slideAcross;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
    }

    /* 气泡横穿屏幕动画 (最终修复版) */
    @keyframes slideAcross {
        0% {
            transform: translateX(100vw);
            opacity: 0;
        }
        5% {
            opacity: 1;
        }
        95% {
            opacity: 1;
        }
        100% {
            transform: translateX(-100%); /* 移动到元素自身宽度完全离开屏幕左侧 */
            opacity: 0;
        }
    }

    /* Re-add flex properties ONLY when the popup is visible */
    .blessing-popup.popup-visible {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #send-blessing-popup {
        /* This rule now only handles padding and width */
        position: fixed; /* 核心修复：设为fixed定位以激活z-index */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1000; /* 确保弹窗在最上层 */
        padding: 15px;
    }

    /* Ensure other popups are not affected if they share classes */
    #danmaku-display-popup .popup-content {
        width: auto;
        max-width: 90%;
        height: auto;
        padding: 20px;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    /* Blessing Canvas Popup - Mobile Adaptation (Restored) */
    #send-blessing-popup .popup-content {
        width: 100%;
        max-width: 500px;
        height: auto;
        padding: 0;
        background: none;
        box-shadow: none;
        transform: scale(0.85); /* Restore scaling */
        transition: transform 0.3s ease;
    }

    #send-blessing-popup #blessing-canvas {
        width: 100%;
        height: auto;
        max-width: 100%;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    #send-blessing-popup .close-popup {
        top: 0px;
        right: 0px;
        width: 30px;
        height: 30px;
        background: #fff;
        color: #a42013;
        border-radius: 50%;
        font-size: 24px;
        line-height: 28px;
        text-align: center;
        transform: translate(40%, -40%);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    /* Video Blessings Section - Mobile Layout */
    #video-blessings-page .container {
        padding: 40px 20px; /* Add top/bottom and left/right padding */
        padding-top: 0px;
    }

    #video-blessings-page .blessings-video-title {
        margin-bottom: 25px;
        font-size: 24px;
        text-align: center;
    }

    #video-blessings-page .video-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two-column layout */
        gap: 20px; /* Gap between items */
        width: 100%;
    }

    #video-blessings-page .video-thumbnail {
        width: 100%;
        padding-top:47.5%; /* 16:9 aspect ratio */
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    #video-blessings-page .video-thumbnail img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #video-blessings-page .video-thumbnail .play-icon {
        width: 40px;
        height: 40px;
    }

    /* --- innovation-title 移动端重新定位 --- */
    .innovation-title {
        position: absolute;
        top: 20px;
        left: 20px;
        font-size: 24px;
        color: var(--dark-red);
        font-weight: bold;
        z-index: 10;
        text-align: left;
        transform: none; /* 重置PC端的transform */
    }
    
    /* 移动端导航调整 - 右下角固定定位，上下布局 */
    .innovation-nav {
        position: fixed;
        bottom: 20px;
        right: 20px;
        top: auto;
        left: auto;
        transform: none;
        margin: 0;
        flex-direction: column; /* 改为垂直布局 */
        align-items: center;
        gap: 6px;
        justify-content: center;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        padding: 10px 12px;
        border-radius: 25px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(15px);
        display: none; /* 默认隐藏，通过JavaScript控制显示 */
        transition: opacity 0.3s ease, visibility 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    /* 当innovation section激活时显示导航 */
    #innovation.active .innovation-nav {
        display: flex;
    }
    
    .innovation-nav .nav-dots {
        display: flex;
        flex-direction: column; /* 改为垂直布局 */
        gap: 4px;
        margin: 0;
        align-items: center;
    }
    
    .innovation-nav .dot {
        margin: 0;
        width: 8px;
        height: 8px;
        border: 1.5px solid var(--main-red);
        background: transparent;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .innovation-nav .dot.active {
        background: var(--main-red);
        transform: scale(1.2);
    }
    
    .innovation-nav .dot:hover {
        transform: scale(1.1);
        border-color: var(--dark-red);
    }
    
    .innovation-nav .inno-nav-btn {
        width: 32px;
        height: 32px;
        border: 1.5px solid var(--main-red);
        background: transparent;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .innovation-nav .inno-nav-btn:hover {
        background: var(--main-red);
        transform: scale(1.05);
    }
    
    .innovation-nav .inno-nav-btn:active {
        transform: scale(0.95);
        background: var(--dark-red);
    }
    
    .innovation-nav .inno-nav-btn:hover::after {
        border-color: white;
    }
    
    /* 移动端箭头方向 - 上下方向，与PC端一致 */
    .innovation-nav .inno-nav-up::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 8px solid var(--main-red); /* 向上箭头 */
        transform: translate(-50%, -50%);
        transition: border-bottom-color 0.3s ease;
    }
    
    .innovation-nav .inno-nav-down::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 8px solid var(--main-red); /* 向下箭头 */
        transform: translate(-50%, -50%);
        transition: border-top-color 0.3s ease;
    }
    
    /* 悬停时改变箭头颜色 */
    .innovation-nav .inno-nav-up:hover::after {
        border-bottom-color: white;
    }
    
    .innovation-nav .inno-nav-down:hover::after {
        border-top-color: white;
    }

    /* 对于有特殊变换的blob-right元素保持原有效果 */
    .blob-right .blob-4:hover {
        transform: translateY(-50%) scale(1.05);
    }
    
    /* 移动端遮罩层文字大小调整 */
    .blob-item.blob-4::after,
    .blob-item.blob-6::after {
        font-size: 14px;
    }
}

/* 确保桌面端不受移动端导航样式影响 */
@media (min-width: 769px) {
    .innovation-nav {
        position: absolute !important;
        bottom: auto !important;
        right: 0% !important;
        top: 80% !important;
        left: auto !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 5px !important;
        justify-content: center !important;
        z-index: 10 !important;
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        display: flex !important;
        transition: none !important;
    }
    
    .innovation-nav .nav-dots {
        flex-direction: column !important;
        gap: 10px !important;
        margin: 5px 0 !important;
    }
    
    .innovation-nav .dot {
        width: 8px !important;
        height: 8px !important;
        margin: 10px 0 !important;
    }
    
    .innovation-nav .inno-nav-btn {
        width: 40px !important;
        height: 40px !important;
        border: 2px solid var(--main-red) !important;
        background: transparent !important;
    }
    
    /* 桌面端保持原来的上下箭头 */
    .innovation-nav .inno-nav-up::after {
        border-left: 2px solid var(--main-red) !important;
        border-bottom: 2px solid var(--main-red) !important;
        border-right: none !important;
        border-top: none !important;
        width: 10px !important;
        height: 10px !important;
        transform: translate(-50%, -25%) rotate(135deg) !important;
    }
    
    .innovation-nav .inno-nav-down::after {
        border-left: 2px solid var(--main-red) !important;
        border-bottom: 2px solid var(--main-red) !important;
        border-right: none !important;
        border-top: none !important;
        width: 10px !important;
        height: 10px !important;
        transform: translate(-50%, -75%) rotate(-45deg) !important;
    }
    
    /* 桌面端按钮样式重置 */
    .innovation-nav .inno-nav-btn:hover {
        transform: none !important;
    }
    
    .innovation-nav .inno-nav-btn:active {
        transform: none !important;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .mobile-menu-btn {
        width: 35px;
        height: 35px;
        margin-right: 5px; /* 进一步向左调整 */
    }
    
    .site-header .logo img {
        height: 35px;
    }
    
    .main-nav {
        width: 85%;
    }
    
    .main-nav a {
        font-size: 15px;
        padding: 18px 20px;
    }
    
    .hero-content img {
        max-width: 95%;
    }
    
    .news-grid .left .img {
        height: 150px;
    }
    
    .news-grid .right .top .img {
        height: 100px;
    }
    
    /* 修复时间线项目宽度冲突 */
    body[data-page="home"] #gallery .timeline-item {
        width: 100% !important;
    }
    
    .timeline-item__content img {
        height: 120px;
    }
    
    .media-image-container {
        height: 180px;
    }
    
    .media-list {
        height: 250px;
    }
    
    .blessings-wall-container {
        height: 250px;
    }
    
    .blessing-action .action-btn {
        width: 100px;
        height: 100px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    /* 超小屏幕的移动端导航调整 */
    .innovation-nav {
        bottom: 70px !important;
        right: 25px !important;
        padding: 10px 8px !important;
        gap: 6px !important;
        border-radius: 20px !important;
        flex-direction: column !important;
    }
    
    .innovation-nav .nav-dots {
        flex-direction: column !important;
        gap: 4px !important;
    }
    
    .innovation-nav .inno-nav-btn {
        width: 28px !important;
        height: 28px !important;
    }
    
    .innovation-nav .dot {
        width: 6px !important;
        height: 6px !important;
        border-width: 1px !important;
    }
    
    .innovation-nav .inno-nav-up::after {
        border-left: 5px solid transparent !important;
        border-right: 5px solid transparent !important;
        border-bottom: 6px solid var(--main-red) !important;
        border-top: none !important;
    }
    
    .innovation-nav .inno-nav-down::after {
        border-left: 5px solid transparent !important;
        border-right: 5px solid transparent !important;
        border-top: 6px solid var(--main-red) !important;
        border-bottom: none !important;
    }
    
    /* 超小屏幕的悬停效果 */
    .innovation-nav .inno-nav-up:hover::after {
        border-bottom-color: white !important;
    }
    
    .innovation-nav .inno-nav-down:hover::after {
        border-top-color: white !important;
    }
    
    .footer-info p {
        font-size: 11px;
    }
    
    .footer-bottom p {
        font-size: 11px;
    }
    
    /* 其他页面超小屏幕适配 */
    .page-title {
        font-size: 24px;
    }
    
    .news-title {
        font-size: 16px;
    }
    
    .news-image {
        height: 150px;
    }
    
    .card-header {
        height: 150px;
    }
    
    .card-year {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .card-description {
        padding: 15px;
        font-size: 14px;
    }
    
    .announcement-list .title {
        font-size: 14px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 35px;
    }
}

/* 横屏模式适配 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 60px 0 20px;
    }
    
    .hero-content img {
        max-width: 70%;
    }
    
    .section {
        padding: 60px 0 20px;
    }
    
    .timeline-container {
        height: 300px;
    }
    
    .media-image-container {
        height: 180px;
    }
    
    .media-list {
        height: 200px;
    }
    
    .blessings-wall-container {
        height: 200px;
    }
    

    
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 其他页面横屏适配 */
    .page-header {
        height: 150px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .news-image {
        height: 120px;
    }
    
    .card-header {
        height: 120px;
    }
} 