/* ===== 基础重置与变量 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

:root {
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.18);
    --primary: #4090f0;
    --secondary: #5856d6;
    --text: #ffffff;
    --bg: linear-gradient(135deg, #0f172a, #1e293b);
    --bg-image: url('./img/bg1.png');
    --card-bg: rgba(15, 23, 42, 0.7);
    --section-bg: rgba(15, 23, 42, 0.3);
    --header-bg: rgba(15, 23, 42, 0.9);
    --timeline-bg: rgba(255, 255, 255, 0.1);
}

.light-mode {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --primary: #007e0c;
    --secondary: #3f51b5;
    --text: #333333;
    --bg: linear-gradient(135deg, #f5f7fa, #e4e7f0);
    --bg-image: url('./img/bg.png');
    --card-bg: rgba(255, 255, 255, 0.9);
    --section-bg: rgba(255, 255, 255, 0.5);
    --header-bg: rgba(255, 255, 255, 0.95);
    --timeline-bg: rgba(0, 0, 0, 0.05);
}

.light-mode footer img[src*="moon.png"] {
    filter: invert(1);
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== 液体背景效果 ===== */
.liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.liquid-bubble {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    z-index: -1;
}

/* ===== 玻璃态卡片 ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    transition: box-shadow 0.3s ease;
}

/* 可交互的卡片才有 hover 效果 */
.glass-card.interactive:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ===== 导航栏玻璃态（独立于 glass-card） ===== */
.glass-header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

/* ===== 布局 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ===== 导航栏 ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 400;
}

.logo-icon {
    color: var(--primary);
    font-size: 2rem;
}

nav ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background 0.3s ease;
}

nav a:hover,
nav a.active {
    background: rgba(255, 255, 255, 0.1);
}

h2 {
    margin-bottom: 0.5rem;
}

.light-mode nav a:hover,
.light-mode nav a.active {
    background: rgba(0, 0, 0, 0.05);
}

/* ===== 主题切换按钮 ===== */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    font-size: 1.2rem;
    margin-left: 1rem;
    transition: background 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
}

.light-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* ===== 语言切换 ===== */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 20px;
    margin-left: 1rem;
}

.light-mode .language-switcher {
    background: rgba(0, 0, 0, 0.05);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.lang-btn.active {
    background: var(--primary);
}

/* ===== 汉堡菜单 ===== */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--text);
}

/* ===== Hero ===== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    gap: 1.5rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ff375f, #ff9a00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.light-mode .btn-secondary {
    border-color: rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===== 剧情介绍 ===== */
.story-section {
    margin: 4rem 0;
    text-align: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.story-section p {
    margin-bottom: 0.25rem;
}

.story-content {
    max-width: 900px;
    margin: 1rem auto;
    text-align: left;
    line-height: 1.8;
    font-size: 1.1rem;
}

.story-content p {
    margin-bottom: 1rem;
}

/* ===== 作品简介 ===== */
.intro-section {
    margin: 4rem 0;
    text-align: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.intro-section p {
    margin-bottom: 0.25rem;
}

.intro-content {
    max-width: 900px;
    margin: 1rem auto;
    text-align: left;
    line-height: 1.8;
    font-size: 1.1rem;
}

.intro-content p {
    margin-bottom: 1rem;
}

/* ===== 游戏特色 ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 4rem 0;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

/* ===== 视频部分 ===== */
.video-section {
    margin: 4rem 0;
    text-align: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.video-section p {
    margin-bottom: 0.25rem;
}

.video-container {
    max-width: 900px;
    margin: 1rem auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* ===== 游戏截图 ===== */
.screenshots {
    margin: 4rem 0;
    text-align: center;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.screenshot-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 220px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.screenshot-item:hover img {
    transform: scale(1.1);
}

/* ===== 更新日志 ===== */
.changelog {
    margin: 4rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 1rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 10px;
}

.timeline-item {
    padding: 10px 30px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 1rem;
    background: var(--timeline-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    position: relative;
    border: 1px solid var(--glass-border);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin-bottom: 0.5rem;
}

.timeline-content ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.timeline-content li {
    margin-bottom: 0.3rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 4px solid var(--bg);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -8px;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

/* 更新日志折叠 */
.changelog-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.changelog-header i {
    transition: transform 0.3s;
}

.changelog-header.expanded i {
    transform: rotate(180deg);
}

.timeline {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    display: none;
}

.timeline.show {
    max-height: none;
    display: block;
}

/* ===== 下载区域 ===== */
.download {
    text-align: center;
    padding: 3rem 1.5rem;
    margin: 3rem 0;
    position: relative;
}

.platforms {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.platform-card {
    width: 200px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.platform-icon {
    font-size: 3rem;
    color: var(--secondary);
}

/* ===== 关于板块 ===== */
.about-section {
    margin: 4rem 0;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-card {
    text-align: left;
    padding: 1.5rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-list {
    list-style-type: none;
    padding-left: 0;
}

.team-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.team-list li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.light-mode .team-list li:hover {
    background: rgba(0, 0, 0, 0.05);
}

.star {
    color: #ffd700;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* ===== 分组标题 ===== */
.group-title {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.group-title i {
    color: var(--primary);
}

/* ===== 运行信息 ===== */
.runtime-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.info-card {
    text-align: center;
    padding: 1.25rem;
    min-width: 200px;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.info-card .value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== 页脚 ===== */
footer {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid var(--glass-border);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 1.5rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.light-mode .social-links a {
    background: rgba(0, 0, 0, 0.05);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

/* ===== 模态框 ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content img {
    width: 100%;
    height: auto;
    display: block;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary);
}

/* ===== 轮播图 ===== */
.screenshot-carousel {
    position: relative;
    max-width: 900px;
    margin: 1.5rem auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    height: 700px;
    width: 700px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px;
    font-size: 24px;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.carousel-control:hover {
    opacity: 1;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.indicator.active {
    background: var(--primary);
}

/* ===== 团队卡片布局 ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

.team-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem;
    transition: box-shadow 0.3s ease;
}

/* team-card 不可点击，去掉 hover 移动效果 */

.team-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 12px;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.member-name {
    font-weight: 500;
}

/* 职位信息区域 */
.member-role {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 6px;
    font-size: 0.95rem;
}

.light-mode .member-role {
    background: rgba(0, 0, 0, 0.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 组标题 */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.section-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

/* ===== 左右悬浮角色图 ===== */
.floating-char {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 15vw;
    max-width: 250px;
    min-width: 80px;
    height: auto;
    z-index: 10;
    pointer-events: none;
    animation: floatY 6s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

.float-left {
    left: 10px;
}

.float-right {
    right: 10px;
}

@keyframes floatY {
    0%, 100% {
        transform: translateY(-50%) translateY(0);
    }
    50% {
        transform: translateY(-50%) translateY(-50px);
    }
}

.speed-slow {
    animation-delay: 0s;
}

.speed-fast {
    animation-delay: -1.5s;
}

.speed-medium {
    animation-delay: -3s;
}

.speed-slower {
    animation-delay: -4.5s;
}

/* ===== 语言选择弹窗 ===== */
.lang-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lang-modal.hidden {
    display: none;
}

.lang-card {
    width: 90%;
    max-width: 320px;
    padding: 2rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    text-align: center;
    color: var(--text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.lang-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.25rem;
}

.lang-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.lang-btns button {
    flex: 1;
    padding: 0.8rem;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.lang-btns .zh {
    background: var(--primary);
    color: #fff;
}

.lang-btns .en {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.lang-btns button:hover {
    transform: scale(1.03);
}

/* ===== 回到顶部/底部按钮 ===== */
.scroll-btn {
    position: fixed;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    opacity: 0.8;
    transition: opacity 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
}

#scrollToTopBtn {
    bottom: 90px;
}

#scrollToBottomBtn {
    bottom: 30px;
}

/* ===== 动画 ===== */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, 20px);
    }
    50% {
        transform: translate(-10px, 30px);
    }
    75% {
        transform: translate(30px, -10px);
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .floating-char {
        display: none;
    }
}

@media (max-width: 992px) {
    .side-left,
    .side-right,
    .deco-left,
    .deco-right,
    .floating-char {
        display: none;
    }
}

@media (max-width: 900px) {
    .hero h1 {
        font-size: 3rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .video-container iframe {
        height: 400px;
    }

    .timeline::after {
        left: 32px;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 32px;
        transform: translate(-50%, -50%);
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 31px;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 768px) {
    /* 导航栏适配 */
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        gap: 1.5rem;
        z-index: 100;
        border-radius: 0 0 24px 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    nav ul.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero {
        padding: 3rem 1.5rem 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .video-container iframe {
        height: 300px;
    }

    .features {
        grid-template-columns: 1fr;
        margin: 3rem 0;
    }

    .platforms {
        flex-direction: column;
        align-items: center;
    }

    .platform-card {
        width: 100%;
        max-width: 300px;
    }

    .container {
        padding: 1rem;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .runtime-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        right: 15px;
    }

    #scrollToTopBtn {
        bottom: 80px;
    }

    #scrollToBottomBtn {
        bottom: 20px;
    }

    .carousel-item {
        height: 300px;
    }

    /* 时间线移动端适配 */
    .timeline {
        max-width: 100%;
        padding-left: 0;
        position: relative;
    }

    .timeline::after {
        left: 31px;
        margin-left: 0;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 100%;
        padding: 0.5rem 0 0.5rem 70px;
        left: 0 !important;
        box-sizing: border-box;
    }

    .timeline-item::after {
        left: 31px;
        width: 14px;
        height: 14px;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .timeline-content {
        padding: 0.75rem;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .timeline-content ul {
        padding-left: 1rem;
    }

    .timeline-content li {
        margin-bottom: 0.4rem;
    }

    /* 语言选择弹窗移动端适配 */
    .lang-card {
        width: 85%;
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }

    .lang-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .lang-btns {
        flex-direction: column;
        gap: 0.8rem;
    }

    .lang-btns button {
        font-size: 1rem;
        padding: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 2rem 1rem 1.5rem;
    }

    .hero .logo img {
        max-width: 280px;
        width: 80vw;
    }

    .video-container iframe {
        height: 200px;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-icon {
        font-size: 1rem;
    }

    .group-title {
        font-size: 1.1rem;
    }

    .carousel-item {
        height: 200px;
    }
}
