/* General Styles */
/* Modify container only for index.html */
body#index-page .container {
    max-width: 1200px; /* 增加页面最大宽度 */
    padding: 40px; /* 增加边距，使内容不显得太紧凑 */
    text-align: left; /* 让文本靠左对齐，更自然 */
}

/* 让 index.html 的 section 更有间距 */
body#index-page section {
    margin-bottom: 40px;
}

/* 让 index.html 里面的 h2 变大一些，提高层次感 */
body#index-page h2 {
    font-size: 28px;
    color: #005bb5;
    margin-bottom: 15px;
}

/* 让文本更易读 */
body#index-page p {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
}

/* 让 index.html 的图片居中 */
body#index-page .profile-pic {
    display: block;
    margin: 20px auto;
    width: 180px; /* 调整大小 */
}

/* 增加 index.html 主页的内容区域宽度 */
body#index-page .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 让项目卡片更大 */
    gap: 30px;
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    padding-top: 100px; 
    text-align: center;
    background: #f4f4f4;
    padding-bottom: 20px;
}

header h1 {
    margin-bottom: 10px; 
}

header h3 {
    font-size: 18px; 
    color: #555; 
}

#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    background: linear-gradient(90deg, rgba(0, 119, 255, 0.7), rgba(0, 183, 255, 0.7)); /* 初始渐变 */
    transition: background 0.5s ease;
}

.scrolled {
    background: linear-gradient(90deg, rgba(0, 119, 255, 1), rgba(0, 183, 255, 1)); /* 滚动后更深 */
}

nav {
    background-color: #005bb5;
    padding: 10px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slides-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 300%; /* Ensures all slides fit */
}

.slide {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-width: 100%;
}

.slide img {
    width: 30%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 24px;
    border-radius: 5px;
    z-index: 100;
}

.prev { left: 10px; }
.next { right: 10px; }

/* Ensure slides work across all pages */
.slideshow-container .slides-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slideshow-container .slide {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 100%;
}

/* Project Cards */
.project-card {
    background-color: white;
    margin: 20px 0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-content h2 {
    margin-top: 0;
    color: #005bb5;
}

.project-details ul {
    padding: 0;
    list-style: none;
}

.project-details li {
    margin: 5px 0;
}

.btn {
    display: inline-block;
    background-color: #0073e6;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.btn:hover {
    background-color: #005bb5;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    display: block;
    background-color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: black;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-card img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    border-radius: 5px;
}

.category-card h3 {
    margin: 15px 0 10px;
    color: #0073e6;
}

.category-card p {
    font-size: 14px;
    color: #555;
}

.profile-pic {
    width: 150px;
    border-radius: 50%;
    display: block;
    margin: auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    display: block;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: black;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn {
    display: inline-block;
    background-color: #0073e6;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #005bb5;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    overflow: hidden;
}

.image-gallery img {
    max-width: 100%;
    height: auto;
    max-height: 200px; 
    object-fit: contain; 
    border-radius: 8px; 
}

.profile-pic {
    width: 150px;
    border-radius: 50%;
    display: block;
    margin: auto;
}

.container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: auto;
}

form input, form textarea {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn {
    display: inline-block;
    background-color: #0073e6;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #005bb5;
}

/* Photo Wall - Adjust Image Grid Layout */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 自动适应，最小200px */
    gap: 15px; /* 图片间距 */
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin-top: 20px;
}

/* Set image properties to maintain consistency */
.photo-grid img {
    width: 100%; 
    max-height: 250px; 
    object-fit: cover; 
    border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for images */
.photo-grid img:hover {
    transform: scale(1.05); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* 让整个 Video Game 页面更宽松 */
#video-game-page .container {
    max-width: 1400px; 
    padding: 50px; 
}

/* 让 Video Game 项目卡片更大、更清晰 */
#video-game-page .project-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 50px; /* 进一步增加内边距 */
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 1200px; /* 让内容区域更大 */
    margin: 40px auto; /* 增加外边距，让卡片之间有更大间距 */
}

/* 让视频区域更大 */
#video-game-page .project-card video {
    width: 100%;
    max-width: 1000px; /* 让视频最大宽度更大 */
    border-radius: 12px;
    margin: 30px auto; /* 增加上下间距 */
}

/* 让图片展示更大 */
#video-game-page .image-gallery {
    display: flex;
    justify-content: center;
    gap: 30px; /* 让图片之间间距更大 */
    flex-wrap: wrap;
    padding-top: 30px;
}

/* 让截图更大、更清晰 */
#video-game-page .image-gallery img {
    width: 48%; /* 让两张图片一行，不会太小 */
    max-width: 500px; /* 增加最大宽度 */
    max-height: 350px; /* 增加最大高度 */
    object-fit: cover; 
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 图片悬停时放大 */
#video-game-page .image-gallery img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}


/* 让 business case 页面更宽敞，避免内容集中 */
#business-case-page .container {
    max-width: 1600px; /* 增大页面宽度 */
    padding: 60px; /* 增大页面内边距 */
}

/* 让 business case 页面使用两列布局 */
#business-case-page .project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 让项目 2 列排列 */
    gap: 40px; /* 增大间距，避免过于紧密 */
    justify-content: center;
}

/* 让 business case 项目卡片更宽 */
#business-case-page .project-card {
    background-color: white;
    padding: 40px; /* 增大内边距 */
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%; /* 让卡片撑满 grid 宽度 */
    margin: auto;
}

/* 让 PDF 预览区域更大 */
#business-case-page embed {
    width: 100%;
    height: 700px; /* 增大高度，确保 PDF 显示足够大 */
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 让下载按钮更显眼 */
#business-case-page .btn {
    display: inline-block;
    background-color: #0073e6;
    color: white;
    padding: 15px 25px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 10px;
    margin-top: 20px;
    transition: background 0.3s ease, transform 0.2s ease;
}

#business-case-page .btn:hover {
    background-color: #005bb5;
    transform: scale(1.05);
}

/* 响应式布局：当屏幕变小时变回一列 */
@media (max-width: 1200px) {
    #business-case-page .project-grid {
        grid-template-columns: 1fr; /* 变成单列布局 */
    }
}

.embed-container {
    width: 100%;
    max-width: 1000px; /* 最大宽度，防止超出页面 */
    margin: auto;
}

.embed-container embed {
    width: 100%; /* 让 PDF 自适应 */
    height: 700px; /* 固定高度 */
    display: block;
}

.video-container {
    width: 100%;
    max-width: 800px; /* 限制最大宽度 */
    margin: auto;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}



/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #0073e6;
    color: white;
    margin-top: 20px;
}



