/* --- 本地字体 --- */
/* poppins-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/poppins-v23-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/poppins-v23-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/poppins-v23-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* --- 全局与基础样式 --- */
:root {
    --primary-gold: #FFD700;   
    --accent-purple: #8E44AD;  
    --dark-purple: #483D8B;    
    --bg-color: #FFFDF5;       
    --dark-text: #4a4a4a;      
    --card-bg-color: #ffffff;  
    --dark-bg: #2c2c2c;        
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Poppins', sans-serif; line-height: 1.6;
    color: var(--dark-text); background-color: var(--bg-color);
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-title {
    text-align: center; font-size: 2.5rem; margin-bottom: 40px;
    color: var(--dark-text); font-weight: 800;
}
.section-title::after {
    content: ''; display: block; width: 80px; height: 4px;
    background: var(--primary-gold); margin: 10px auto 0; border-radius: 2px;
}

/* --- 导航栏 --- */
.navbar {
    background: rgba(255, 253, 245, 0.85); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: flex; align-items: center; text-decoration: none; color: var(--dark-text); }
.logo-img { height: 50px; margin-right: 15px; border-radius: 10px; }
.game-title { font-size: 1.5rem; font-weight: 800; }
.lang-switcher { display: flex; align-items: center; gap: 8px; }
#languageSelector { border: 1px solid #ddd; padding: 5px; border-radius: 5px; background-color: transparent; }

/* --- 主视觉区域 (Hero) --- */
#hero {
    min-height: 50vh; /* 保证一个最小高度 */
/*    max-height: 90vh; /* 避免在超宽屏上过高 */
    background-color: var(--dark-bg);
    background-image: url('../images/hero-bg.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    /* 核心修复：cover 会让图片填满容器，即使裁剪掉部分。彻底杜绝黑线 */
    background-size: cover; 
    position: relative;
    display: flex; justify-content: center; align-items: center;
    text-align: center; color: white; padding: 40px 20px;
}
.main-content { padding-top: 60px; }

.hero-content {
    background: rgba(0, 0, 0, 0.5); padding: 2rem 3rem;
    border-radius: 15px; backdrop-filter: blur(5px);
}
#hero h1 {
    font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
#hero p {
    font-size: 1.5rem; margin-bottom: 2.5rem; max-width: 700px;
    margin-left: auto; margin-right: auto; opacity: 0.9;
}

/* 下载按钮 */
.download-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.btn-download {
    display: flex; align-items: center; justify-content: center;
    gap: 15px; padding: 12px 20px;
    min-width: 220px;
    background: linear-gradient(135deg, var(--primary-gold), #F0B400); 
    color: #333; text-decoration: none; border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0, 0.2), inset 0 -3px 0 rgba(0,0,0,0.15);
    transition: all 0.2s ease-out; 
}
.btn-download:hover {
    background: linear-gradient(135deg, #FFDF33, #FDBB2D);
    box-shadow: 0 8px 20px rgba(0,0,0, 0.3), inset 0 -3px 0 rgba(0,0,0,0.1);
    transform: translateY(-3px);
}
.btn-download i { font-size: 2.2rem; }
.btn-download span { text-align: left; font-size: 0.8rem; line-height: 1.2; }
.btn-download span b { font-size: 1.1rem; display: block; }

/* --- 特色区域 --- */
#features { padding-top: 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card {
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(8,0,30,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, var(--accent-purple), var(--dark-purple));
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { 
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(8,0,30,0.3);
}
.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 10% 10%, rgba(255, 215, 0, 0.2), transparent 30%);
    transition: opacity 0.5s ease;
}
.feature-card-icon-wrapper {
    height: 220px;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}
.feature-card-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}
.feature-card-content {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    color: white;
    background: rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}
.feature-card-content h3 { font-size: 1.7rem; margin-bottom: 8px; color: var(--primary-gold); text-shadow: 1px 1px 3px rgba(0,0,0,0.4); }
.feature-card-content p { font-size: 0.9rem; line-height: 1.5; color: rgba(255,255,255,0.9); }

/* --- 更多玩法 --- */
#more-features {
    background: var(--dark-bg); color: white;
    padding: 60px 0; margin: 60px 0;
}
#more-features .container { display: flex; flex-direction: column; gap: 40px; text-align: center; }
#more-features h3 { font-size: 2rem; color: var(--primary-gold); }
#more-features p { max-width: 600px; margin: 10px auto 0; opacity: 0.9; }

/* --- 截图区域 --- */
#screenshots { padding: 30px 0; }
.screenshots-grid {
    display: flex; flex-wrap: wrap; gap: 15px;
}
.screenshots-grid img {
    flex: 1 1 300px; 
    width: 300px; 
    object-fit: cover;
    aspect-ratio: 9 / 16;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.screenshots-grid img:hover { transform: scale(1.05); }

/* --- 游戏亮点 --- */
#highlights { padding: 40px 20px; }
.highlights-list {
    list-style: none; max-width: 800px; margin: 0 auto;
    text-align: left; display: flex; flex-direction: column; gap: 15px;
}
.highlights-list li {
    background: var(--card-bg-color);
    padding: 20px; border-radius: 12px;
    font-size: 1.1rem; display: flex; align-items: center; gap: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    border-left: 5px solid var(--accent-purple);
}
.highlights-list li i { color: #27AE60; font-size: 1.8rem; }

/* --- 底部 --- */
#footer {
    background: var(--dark-bg); color: #eee;
    padding: 50px 0; margin-top: 40px; text-align: center;
}
.footer-download h3 { font-size: 2rem; margin-bottom: 30px; color: white; }
.footer-links { margin: 30px 0; }
.footer-links a { color: white; text-decoration: none; margin: 0 15px; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-gold); }
.copyright p { font-size: 0.9rem; color: #aaa; }

/* --- 响应式设计 --- */
@media(max-width: 768px) {
    .section-title { font-size: 2rem; }
    #hero h1 { font-size: 2.5rem; }
    #hero p { font-size: 1.1rem; }
}
@media(max-width: 480px) {
    #hero { min-height: 60vh; } 
    #hero h1 { font-size: 2rem; }
    .hero-content { padding: 1.5rem; }
    .download-buttons { flex-direction: column; align-items: center; }
    .btn-download { width: 100%; max-width: 280px; }
    .features-grid { grid-template-columns: 1fr; }
    .screenshots-grid img { flex-basis: 100%; }
}