/* 基本设置与全局变量 */
:root {
    --primary-color: #8b0000;
    --secondary-color: #d4af37;
    --bg-light: transparent; 
    --bg-dark: rgba(18, 18, 18, 0.85); 
    --text-main: #333333;
    --text-light: #f0f0f0;
    --ink-gray: #1a1a1a;
    /* 采用国内系统自带的经典书法/繁体宋体/楷体字体栈，完美匹配截图中的中国风，且无需加载外部链接 */
    --font-heading: 'STXingkai', '华文行楷', 'LiSu', '隶书', 'KaiTi', '楷体', 'STKaiti', '华文楷体', 'FangSong', '仿宋', serif;
    --font-body: 'STKaiti', '华文楷体', 'KaiTi', '楷体', 'Microsoft YaHei', sans-serif;
}


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

body {
    font-family: var(--font-body);
    color: var(--text-light); /* 全局改为亮色文字以适应深系背景 */
    /* 把原先画布的红黑渐变底色移交给了 body，以脱离画布层级 */
    background: radial-gradient(circle at center, #1a0505 0%, #050505 100%) center / cover fixed #0a0a0a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Three.js 画布漂浮在表层，呈现花瓣前置效果 */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100; /* 调高绝对层级，飞跃在主图之上 (不超过 1000 的导航栏) */
    pointer-events: none; /* 避免挡住下方的鼠标点击事件 */
    background: transparent; /* 背景透明以显示背后实体内容 */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: normal;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* 全局深色模式下导航栏默认深色 */
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}
.navbar.dark-nav {
    background: rgba(18, 18, 18, 0.85);
}
.navbar.dark-nav .nav-links a {
    color: #e0e0e0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
    height: 50px;
    border-radius: 4px; /* 防止边缘过硬 */
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #e0e0e0; /* 默认亮色字体 */
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
    font-weight: bold;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}
.nav-links a:hover {
    color: var(--primary-color);
}
.navbar.dark-nav .nav-links a:hover {
    color: var(--secondary-color);
}
.navbar.dark-nav .nav-links a::after {
    background-color: var(--secondary-color);
}

/* 首页头图区 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
    color: var(--ink-gray);
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 深色英雄幕布 */
    background: radial-gradient(circle, transparent 20%, rgba(5,5,5,0.95) 120%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
}

.hero-logo-box {
    margin-bottom: 30px;
    perspective: 1000px;
    padding: 0 15px; /* 给移动端留点边距 */
}
.hero-main-banner {
    width: 85vw; /* 稍微缩小横向占比留出呼吸感 */
    max-width: 1200px; /* 降低最大宽度，避免超巨幕下失控 */
    max-height: 70vh; /* 压低纵向高度，防止顶到导航栏和屏幕底部 */
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 20px rgba(212, 175, 55, 0.4);
    border: 3px solid var(--secondary-color);
    position: relative;
    z-index: 10;
}

/* 滚动提示 */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

.scroll-down span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: rotate(45deg);
    margin: -5px;
    animation: scrollAnim 2s infinite;
}
.scroll-down span:nth-child(2) { animation-delay: -0.2s; }
.scroll-down span:nth-child(3) { animation-delay: -0.4s; }

/* 通用区段设置 */
.section {
    padding: 120px 0;
    position: relative;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(5px);
}
.dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-top: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    color: var(--secondary-color); /* 统一换成泛金字色避免在黑底看不清 */
    letter-spacing: 4px;
}
.light-title {
    color: var(--secondary-color);
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    box-shadow: 0 2px 5px rgba(139,0,0,0.4);
}

/* 置顶新闻 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 新闻/内务府 板块背景 */
.news-section {
    position: relative;
    background: url('assets/imgs/news-bg.png') center / cover fixed;
    /* 取消了原来的透明羽化，因为现在上面也是黑色的深色系了 
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 150px);
    mask-image: linear-gradient(to bottom, transparent 0%, black 150px);
    */
}
.news-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* 极暗遮罩融合水墨纹理 */
    background: radial-gradient(circle at center, rgba(15,15,15,0.85) 0%, rgba(10,10,10,0.98) 100%);
    pointer-events: none;
    z-index: 0;
}
.news-section .section-inner {
    position: relative;
    z-index: 1;
}

.news-card {
    background: rgba(15, 15, 15, 0.7); /* 适配暗夜模式改为深色玻璃 */
    backdrop-filter: blur(10px);
    padding: 30px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* 加深立体阴影 */
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}
.news-card:hover {
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.4); /* 鼠标悬停时透出幽暗的血红色 */
    border-color: var(--secondary-color);
    transform: translateY(-10px); /* 悬浮时明显上升呈现浮动状态 */
    background: rgba(30,30,30, 0.9); /* 悬浮时明显变亮 */
}
.news-date {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: inline-block;
    border-bottom: 1px dotted var(--primary-color);
}
.news-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #e0e0e0; /* 调亮标题字体以适应黑底 */
    font-weight: bold;
}
.news-card p {
    color: #b0b0b0; /* 调亮内部的正文字体 */
    font-size: 1rem;
    line-height: 1.6;
}

/* 同盟简介 */
.about-section .flex-row {
    display: flex;
    align-items: center;
    gap: 60px;
}
.about-text {
    flex: 1;
}
.about-text .section-title {
    text-align: left;
}
.about-text .section-title::after {
    margin: 15px 0 0 0;
}
.paragraph-placeholder p {
    margin-bottom: 25px;
    font-size: 1.2rem;
    line-height: 2;
    text-justify: inter-ideograph;
}
.about-imgbox {
    flex: 1;
    height: 450px;
    position: relative;
}
.ancient-scroll {
    width: 100%;
    height: 100%;
    background: url('assets/imgs/about-bg.png') center/cover;
    filter: sepia(0.3) contrast(1.1); /* 稍微降低一点滤镜，以展现生成原图质感 */
    border: 2px solid var(--secondary-color);
    box-shadow: 20px 20px 0px rgba(0,0,0,0.3);
    position: absolute;
    z-index: 2;
}

/* 小组介绍：高级 3D 出场排版 & 背景 */
.teams-section {
    position: relative;
    z-index: 5;
    background: url('assets/imgs/teams-bg.png') center / cover fixed;
}
.teams-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* 让战旗剪影隐约透出，低透明度保留前方的樱花粒子特效！ */
    background: radial-gradient(circle at bottom, rgba(15,15,15,0.80) 0%, rgba(5,5,5,0.95) 100%);
    pointer-events: none;
    z-index: 0;
}
.teams-section .section-inner {
    position: relative;
    z-index: 1;
}
.section-desc {
    text-align: center;
    margin: -30px 0 60px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
    letter-spacing: 3px;
    font-weight: bold;
}
.teams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
    max-width: 1000px;
    margin: 0 auto;
}
.team-card {
    text-align: center;
    padding: 40px 20px;
    background: transparent; /* 去除灰色玻璃底 */
    border: 1px solid transparent; /* 默认边框透明，悬浮时再显示 */
    border-radius: 12px;
    box-shadow: none; /* 去除阴影以避免形成框的错觉 */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, border-color 0.3s;
    transform-style: flat; /* 平面渲染避免 Chrome 3D Bug */
}
/* 鼠标追踪发光层 */
.team-card::before, .team-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
}
.team-card::before {
    /* 主金色光晕 */
    background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(212, 175, 55, 0.15), transparent 40%);
}
.team-card::after {
    /* 核心红色高光交织 */
    background: radial-gradient(200px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(139, 0, 0, 0.3), transparent 50%);
    mix-blend-mode: screen;
}
.team-card:hover {
    box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 20px rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.5);
}
.team-card:hover::before, .team-card:hover::after {
    opacity: 1;
}

/* 保护层级关系并禁用鼠标干扰 */
.team-card > * {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.team-logo {
    width: 100%;
    height: 234px; /* 原为 180px，放大 30% */
    margin: 0 auto 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 10px;
    transition: transform 0.1s ease-out; /* 由 JS 接管动画 */
}
.team-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.8));
    transition: filter 0.3s;
}
.team-card:hover .team-logo img {
    filter: drop-shadow(0px 15px 25px rgba(212, 175, 55, 0.5));
}

.team-name {
    font-size: 1.8rem;
    color: var(--secondary-color);
    letter-spacing: 5px;
    margin-top: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    transition: transform 0.1s ease-out;
}
.team-name::before { content: '【 '; color: #fff; }
.team-name::after { content: ' 】'; color: #fff; opacity: 0.8;}

/* 同盟视频 */
.video-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}
.video-thumbnail {
    display: block;
    width: 100%;
    height: 500px;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.8)), url('assets/imgs/video-bg.png') center/cover;
    border: 3px solid var(--secondary-color);
    position: relative;
    transition: border-color 0.4s, transform 0.4s;
}
.video-thumbnail:hover {
    border-color: #fff;
}
.video-thumbnail:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background-color: var(--primary-color);
    box-shadow: 0 0 30px var(--primary-color);
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background-color: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.play-btn::after {
    content: '';
    display: block;
    border-style: solid;
    border-width: 18px 0 18px 28px;
    border-color: transparent transparent transparent #fff;
    margin-left: 6px;
}
.video-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    color: #fff;
}
.video-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* 管理寄语 */
.message-section {
    position: relative;
    background: url('assets/imgs/message-bg.png') center / cover fixed;
}
.message-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(18, 18, 18, 0.90); /* 均匀深色盖罩 */
    pointer-events: none;
    z-index: 0;
}
.message-section .section-inner {
    position: relative;
    z-index: 1;
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 60px;
    background: rgba(15, 15, 15, 0.7); /* 改为深系半透明 */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    border-radius: 15px;
}
.quote {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    color: #e0e0e0; /* 调亮正文使得阅读清晰 */
    margin-bottom: 40px;
    line-height: 1.8;
    position: relative;
    z-index: 2;
    font-weight: normal;
}
/* 用于动画控制的逐行元素 */
.quote-line {
    display: block;
    /* 取消了原先这里的 opacity 和 translateY，交给 JS 的 gsap.from 全权代理动画的“起点”，而这里作为完美的终点展示 */
}
.author {
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 4px;
}

/* 留言板专区背景 (新改版) */
.guestbook-section {
    position: relative;
    /* 使用最新 AI 生成的史诗感军帐/书房暗夜背景 */
    background: url('assets/imgs/guestbook-bg.png') center / cover fixed;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}
/* 给背景盖一层极暗的径向渐变遮罩，两边黑中间透出画卷，保证留言文字能看清 */
.guestbook-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(15,15,15,0.7) 0%, rgba(10,10,10,0.95) 100%);
    pointer-events: none;
    z-index: 0;
}
.guestbook-section .section-inner {
    position: relative;
    z-index: 1;
}

/* 留言板内部 */
.guestbook-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}
.retro-form {
    flex: 1;
    min-width: 320px;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.form-group {
    margin-bottom: 30px;
}
.form-group label {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 1.3rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(0,0,0,0.4);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}
.ink-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--secondary-color);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ink-btn:hover {
    background-color: #a00000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.message-list {
    flex: 1;
    min-width: 320px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 20px;
}
.message-list::-webkit-scrollbar {
    width: 6px;
}
.message-list::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}
.message-item {
    background: rgba(255,255,255,0.08);
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid var(--secondary-color);
    transition: background 0.3s;
}
.message-item:hover {
    background: rgba(255,255,255,0.12);
}
.msg-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    align-items: center;
}
.msg-header strong {
    color: var(--secondary-color);
    font-size: 1.3rem;
}
.msg-header span {
    color: #999;
    font-size: 1rem;
    border: 1px solid #555;
    padding: 2px 8px;
    border-radius: 4px;
}
.msg-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* 超级管理员删除按钮 */
.del-btn {
    background: transparent;
    border: 1px solid rgba(139,0,0,0.5);
    color: #ff4d4d;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.3s;
}
.del-btn:hover {
    background: rgba(139,0,0,0.8);
    color: #fff;
    transform: scale(1.1);
}
.msg-body {
    line-height: 1.8;
    color: #eee;
    font-size: 1.05rem;
}

/* ==========================
   悬浮小组弹窗 (Modal)
   ========================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85); /* 深色蒙版遮罩 */
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #1f1d1d 0%, #0a0a0a 100%);
    width: 90%;
    max-width: 600px;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), inset 0 0 30px rgba(212, 175, 55, 0.1);
    position: relative;
    padding: 2px; /* 给内里留个空间做双重边框 */
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 4px;
}
.modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    color: var(--secondary-color);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s, color 0.3s;
}
.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    background: url('assets/imgs/about-bg.png') center/cover;
    /* 利用之前生成的画卷背景增加质感，再盖一层黑色半透明 */
    box-shadow: inset 0 0 0 1000px rgba(18, 18, 18, 0.9);
    padding: 50px 30px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}
.modal-logo {
    width: 325px; /* 原为 250px，放大 30% */
    height: 260px; /* 原为 200px，放大 30% */
    margin: 0 auto 20px;
    display: flex; justify-content: center; align-items: center;
}
.modal-logo img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));
}
.modal-title {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 2.2rem;
    letter-spacing: 12px;
    margin: 10px 0 30px;
    margin-left: 12px; /* 平衡字间距 */
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}
.modal-quote {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: #dedede;
    line-height: 1.8;
    position: relative;
    padding: 30px;
    border-top: 1px dotted rgba(212, 175, 55, 0.4);
    border-bottom: 1px dotted rgba(212, 175, 55, 0.4);
    margin: 0 20px;
}
.modal-quote::before, .modal-quote::after {
    content: '❝';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.1);
    position: absolute;
    line-height: 1;
}
.modal-quote::before { top: -20px; left: 0; }
.modal-quote::after { content: '❞'; bottom: -40px; right: 0; }

.modal-stamp {
    position: absolute;
    bottom: 30px; right: 40px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 4px 10px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    transform: rotate(-15deg);
    opacity: 0.8;
    letter-spacing: 2px;
}

/* 页脚 */
.footer {
    background-color: #050505;
    color: #777;
    text-align: center;
    padding: 40px 0;
    border-top: 2px solid var(--primary-color);
}
.sub-footer {
    font-size: 0.9rem;
    margin-top: 10px;
}

/* ==========================
   移动端响应式适配 (核心)
   ========================== */
/* 汉堡菜单按钮样式 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001; /* 保证在展开菜单之上 */
}
.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 992px) {
    .about-section .flex-row { flex-direction: column; }
    .teams-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    /* 平板端让横图占比更大 */
    .hero-main-banner { width: 95vw; max-width: 100%; max-height: 50vh; }
}

@media (max-width: 768px) {
    /* 导航栏变更为抽屉菜单 */
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* 默认藏在右侧 */
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(18, 18, 18, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border-left: 2px solid var(--secondary-color);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links a {
        color: #fff !important;
        font-size: 1.5rem;
    }
    .nav-links a::after {
        background-color: var(--secondary-color);
    }
    
    /* 汉堡菜单叉号动画 */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--secondary-color); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--secondary-color); }

    /* 优化全局间距和字体 */
    .section { padding: 60px 0; }
    .section-title { font-size: 2.2rem; margin-bottom: 30px; }
    
    /* 头图区适配：手机端近乎全宽，去除了父级 padding 阻挡 */
    .hero-content { padding-left: 0; padding-right: 0; }
    .hero-logo-box { padding: 0; }
    .hero-main-banner { 
        width: 100vw; 
        max-width: 100vw; /* 突破 100% 的父级限制，直接对齐视口 */
        border-radius: 0; /* 手机端取消圆角更显霸气全屏 */
        border-left: none;
        border-right: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 0 15px rgba(212, 175, 55, 0.4); 
        transform: scale(1.15); /* 强制放大 1.15 倍，让图片直接爆出屏幕边缘消除黑边感 */
        margin-top: 15px;
    }
    .hero-subtitle { 
        font-size: 1.2rem; 
        letter-spacing: 5px; 
    }

    /* 其余版块适配 */
    .teams-grid { grid-template-columns: 1fr; gap: 30px; padding: 0 10px; }
    .team-logo { height: 160px; }
    .about-imgbox { height: 300px; margin-top: 30px; }
    
    .video-thumbnail { height: 250px; }
    .play-btn { width: 60px; height: 60px; }
    .play-btn::after { border-width: 12px 0 12px 20px; margin-left: 4px; }
    
    .testimonial-slider { padding: 30px 20px; }
    .quote { font-size: 1.4rem; margin-bottom: 20px; }
    .testimonial-slider::before { top: -20px; left: 10px; font-size: 6rem; }
    
    .guestbook-container { flex-direction: column; gap: 30px; }
    .retro-form { padding: 20px; }
    
    /* GSAP错落元素在手机上的边距保护 */
    body {
        overflow-x: hidden;
        width: 100vw;
    }
}

/* 简单的滚动动画键帧 */
@keyframes scrollAnim {
    0% { transform: translateY(0) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(20px) rotate(45deg); opacity: 0; }
}

/* 藏头诗特效基座 */
.acrostic {
    display: inline-block; /* 允许元素跨行独立放大缩放而不断行 */
}
