/* 全局样式 */
:root {
            --primary-color: #7e57c2;
            --secondary-color: #ff7043;
            --accent-color: #00e5ff;
            --light-bg: rgba(255, 255, 255, 0.9);
            --dark-bg: rgba(25, 25, 35, 0.85);
            --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
body {
    font-family: 'Noto Serif SC', serif; /* 温馨的中文字体 */
    background: linear-gradient(135deg, #f5e8d9 0%, #e0f7fa 100%); /* 柔和渐变背景 */
    color: #333;
    position: relative;
    overflow-x: hidden;
    font-size: 16px;
}
/* 动态背景效果 */
.background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5e8d9 0%, #e0f7fa 100%);
    z-index: -2;
}

/* 动态背景（未来感） */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: -1;
    pointer-events: none;
}

/* 星光粒子效果，增加未来感 */
.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 10px 2px rgba(0, 229, 255, 0.5);
    opacity: 0.6;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* 导航栏样式 - 更加未来感 */
.navbar {
    background: var(--dark-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    transition: var(--transition);
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo-container {
    position: relative;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    overflow: hidden;
}

.logo-glow {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(126, 87, 194, 0.8));
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% { filter: drop-shadow(0 0 3px rgba(126, 87, 194, 0.6)); }
    100% { filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.9)); }
}

.brand-text {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #7e57c2, #00e5ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.nav-item {
    position: relative;
    margin: 0 5px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    /* font-size: 0.95rem; */
    position: relative;
    transition: var(--transition);
    z-index: 1;
}

.nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
    z-index: -1;
}

.nav-link:hover {
    color: #fff !important;
}

.nav-link:hover:before {
    width: 70%;
}

/* 子菜单 - 未来感玻璃风格 */
.submenu {
    display: none;
    position: absolute;
    left: 0;
    /* transform: translateX(-50%); */
    top: 100%;
    min-width: 150px;
    padding: 8px 0;
    background: rgba(30, 30, 40, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 100;
    list-style-type: none;
    margin: 0;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}

.nav-item:hover .submenu {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.submenu li {
    padding: 0;
}

.submenu a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    font-size: 0.9rem;
}

.submenu a:hover {
    color: #fff;
    background: rgba(126, 87, 194, 0.2);
}

/* 用户操作按钮 - 更加突出 */
.user-actions .nav-link {
    border-radius: 20px;
    padding: 5px 15px !important;
    transition: var(--transition);
}

.login-btn {
    background-color: rgba(126, 87, 194, 0.2);
    border: 1px solid rgba(126, 87, 194, 0.5);
}

.login-btn:hover {
    background-color: rgba(126, 87, 194, 0.4);
}

.logout-btn {
    background-color: rgba(255, 112, 67, 0.2);
    border: 1px solid rgba(255, 112, 67, 0.5);
}

.logout-btn:hover {
    background-color: rgba(255, 112, 67, 0.4);
}

/* 头部 banner - 更加现代化设计 */
/* 头部 banner - 未来科技感与纪念册氛围 */
.header-banner {
    position: relative;
    margin-top: 70px;
    height: 15vh; /* 高度减少，更加紧凑 */
    min-height: 300px;
    max-height: 450px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg,
    rgba(255, 0, 0, 0.3) 0%,
    rgba(255, 127, 0, 0.3) 16.67%,
    rgba(255, 255, 0, 0.3) 33.33%,
    rgba(0, 255, 0, 0.3) 50%,
    rgba(0, 255, 255, 0.3) 66.67%,
    rgba(0, 0, 255, 0.3) 83.33%,
    rgba(139, 0, 255, 0.3) 100%);
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><defs><filter id="glow"><feGaussianBlur stdDeviation="2.5" result="coloredBlur"/><feMerge><feMergeNode in="coloredBlur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><g filter="url(#glow)"><circle cx="10%" cy="20%" r="5" fill="rgba(126, 87, 194, 0.5)" opacity="0.8"><animate attributeName="r" values="5;8;5" dur="4s" repeatCount="indefinite"/></circle><circle cx="80%" cy="30%" r="6" fill="rgba(81, 164, 242, 0.5)" opacity="0.7"><animate attributeName="r" values="6;9;6" dur="5s" repeatCount="indefinite"/></circle><circle cx="50%" cy="70%" r="4" fill="rgba(255, 255, 255, 0.3)" opacity="0.6"><animate attributeName="r" values="4;7;4" dur="3s" repeatCount="indefinite"/></circle></g></svg>') no-repeat center center;
    background-size: cover;
    animation: subtlePulse 15s infinite ease-in-out;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.header-title {
    font-family: 'Noto Serif SC', serif; /* 保留温馨字体 */
    color: #fff;
    font-size: 3.5rem; /* 略微缩小字体 */
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(126, 87, 194, 0.7), 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeUp 1.2s ease forwards 0.5s;
    position: relative;
}

.header-title::after { /* 添加科技感光点装饰 */
    content: '';
    position: absolute;
    top: -28px;
    right: -20px;
    width: 88px;
    height: 88px;
    background: rgba(255, 255, 255, 1);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(81, 164, 242, 0.8);
    animation: blink 8s infinite;
}


@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.3rem; /* 略微缩小 */
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeUp 1.2s ease forwards 0.8s;
}

.explore-btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(45deg, rgba(126, 87, 194, 0.9), rgba(81, 164, 242, 0.9));
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 0 15px rgba(126, 87, 194, 0.5);
    opacity: 0;
    animation: fadeUp 1.2s ease forwards 1.1s;
}

.explore-btn:hover {
    background: linear-gradient(45deg, rgba(126, 87, 194, 1), rgba(81, 164, 242, 1));
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(126, 87, 194, 0.7);
}

/* 保持现有动画 */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 内容区域 */
.memory-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


.section-title {
    color: #ff7043; /* 温暖的橙色 */
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.section-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #ffca28, transparent);
}

/* 卡片样式 */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    width: 90%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0; /* 初始透明 */
    animation: fadeInImage 0.5s ease forwards; /* 淡入动画 */
}

.hover-zoom {
    transition: transform 0.3s ease; /* 平滑放大 */
}

/*.hover-zoom:hover {*/
/*    transform: scale(1.05);*/
/*}*/

.card-body {
    margin: 0;
    padding: 0.5rem;
}

.card-text {
    font-size: 1rem;
    color: #555;
}

/* 模态框样式 */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform: translate(0, -50px);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: none;
    opacity: 1;
}

.modal-content {
    border-radius: 10px;
}

.modal-body img {
    border-radius: 10px;
}

/* 分页导航 */
.pagination .page-link {
    color: #ff7043;
    border: none;
    background: transparent;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.pagination .page-link:hover {
    background: rgba(255, 112, 67, 0.2);
}

.pagination .active .page-link {
    background: #ff7043;
    color: #fff;
}

/* 视频样式 */
.video-container {
    text-align: center;
    margin: 0 auto;
    max-width: 640px;
}

#section6 iframe {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
footer {
    background: var(--dark-bg);
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color), var(--secondary-color));
}

footer a {
    color: var(--accent-color);
    transition: var(--transition);
}

footer a:hover {
    color: white;
    text-decoration: none;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .header-title {
        font-size: 3rem;
    }

    .navbar {
        background: var(--dark-bg);
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 2.5rem;
    }

    .header-banner {
        height: 50vh;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .header-title {
        font-size: 2rem;
    }

    .memory-section {
        padding: 2rem 1rem;
    }

    .header-subtitle {
        font-size: 1.2rem;
    }
}

/* 时间线样式（保留但未使用） */
.timeline {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #007bff;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-date-left,
.timeline-date-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size:14px;
    z-index: 2;
}

.timeline-date-left {
    left: 0;
    transform: translate(-50%, -50%);
}

.timeline-date-right {
    right: 0;
    transform: translate(50%, -50%);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid #007bff;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.left::after {
    left: -17px;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.right::after {
    left: -16px;
}

/* 图片加载动画 */
@keyframes fadeInImage {
    to { opacity: 1; }
}