* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2a6b3d;
    --secondary: #5a9367;
    --accent: #d4b483;
    --dark: #1c3b27;
    --light: #f0f4e9;
}

body {
    background-color: #0d1f15;
    color: #e0e9d7;
    line-height: 1.7;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(42, 107, 61, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(90, 147, 103, 0.1) 0%, transparent 20%);
    background-attachment: fixed;
}

/* 导航栏样式 */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(28, 59, 39, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(212, 180, 131, 0.2);
    transition: all 0.3s ease;
}

.con {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-right: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-text span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.active {
    color: var(--accent);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    animation: underline-grow 0.3s ease-out;
}

@keyframes underline-grow {
    from { width: 0; }
    to { width: 100%; }
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light);
    transition: all 0.3s ease-in-out;
}

/* 英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, rgba(28, 59, 39, 0.7) 0%, transparent 70%),
        radial-gradient(ellipse at bottom, rgba(42, 107, 61, 0.5) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--light);
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-title span {
    color: var(--accent);
    display: block;
}

@keyframes colorShift {
    0% { text-shadow: 0 0 10px rgba(212, 180, 131, 0.5); }
    100% { text-shadow: 0 0 20px rgba(212, 180, 131, 0.8), 0 0 30px rgba(212, 180, 131, 0.6); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #c2d5b5;
    margin-bottom: 2.5rem;
    max-width: 500px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #a8c2a0;
    max-width: 550px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease 0.9s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(to right, var(--accent), #c9a063);
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 180, 131, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: rgba(212, 180, 131, 0.1);
}

.btn i {
    margin-right: 10px;
}

.hero-image {
    flex: 1;
    position: relative;
    perspective: 1000px;
    animation: fadeInRight 1s ease 0.6s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.frame {
    border: 3px solid var(--accent);
    border-radius: 10px;
    background: rgba(28, 59, 39, 0.6);
    transform: rotate(3deg);
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}

.frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 107, 61, 0.6) 0%, transparent 50%, rgba(212, 180, 131, 0.4) 100%);
    z-index: 1;
}

.game-screenshot {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: forestGlow 8s infinite alternate;
}

@keyframes forestGlow {
    0% { box-shadow: 0 0 15px rgba(90, 147, 103, 0.5); }
    50% { box-shadow: 0 0 25px rgba(90, 147, 103, 0.8); }
    100% { box-shadow: 0 0 15px rgba(212, 180, 131, 0.6); }
}

.game-screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 游戏故事部分 */
.story-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/img/bj22.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: -1;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--light);
    position: relative;
    font-weight: 700;
    animation: fadeInUp 0.8s ease;
}

.section-title span {
    color: var(--accent);
}

.section-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    margin: 1rem auto;
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.4rem;
    color: #c2d5b5;
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.story-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.story-text {
    flex: 1;
    padding: 2rem;
    background: rgba(28, 59, 39, 0.7);
    border-radius: 15px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.story-text h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #c2d5b5;
}

.story-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--accent);
    margin-right: 1rem;
    min-width: 40px;
}

.feature-text h4 {
    font-size: 1.3rem;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: #a8c2a0;
    font-size: 1rem;
}

.story-image {
    flex: 1;
    text-align: center;
}

.character {
    position: relative;
    display: inline-block;
}

.character-img {
    position: relative;
    width: 300px;
    height: 450px;
    border-radius: 10px;
    background: linear-gradient(45deg, #3a7550, #2a6b3d);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.character-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 180, 131, 0.2) 100%);
    z-index: 1;
}

.character-img-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-name {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 游戏特色部分 */
.features-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #0d1f15, #142e1f);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(28, 59, 39, 0.7);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s;
    border: 1px solid rgba(212, 180, 131, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 180, 131, 0.15);
    border-color: rgba(212, 180, 131, 0.5);
}

.feature-card-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card-title {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--light);
    font-weight: 6
00;
}

.feature-card-desc {
    color: #c2d5b5;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* 下载部分 */
.download-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/img/bj11.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}

.download-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.download-title {
    font-size: 2.5rem;
    color: var(--light);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

.download-title span {
    color: var(--accent);
}

.download-subtitle {
    font-size: 1.3rem;
    color: #c2d5b5;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    background: rgba(28, 59, 39, 0.9);
    border: 2px solid rgba(212, 180, 131, 0.3);
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(212, 180, 131, 0.3);
    border-color: var(--accent);
}

.download-btn i {
    font-size: 2.5rem;
    margin-right: 15px;
    color: var(--accent);
}

.btn-text {
    text-align: left;
}

.btn-text div:first-child {
    font-size: 1.4rem;
    color: var(--light);
    margin-bottom: 5px;
}

.btn-text div:last-child {
    font-size: 1rem;
    color: #c2d5b5;
    font-weight: normal;
}

/* 页脚 */
.footer {
    background: linear-gradient(to right, #0d1f15, #14291d);
    color: #a0b9a5;
    padding: 1rem 0 1rem;
    border-top: 1px solid rgba(212, 180, 131, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 10px;
}

.footer-logo-text span {
    color: var(--accent);
}

.footer-desc {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 300px;
    color: #8daa8f;
}

.footer-links h4 {
    font-size: 1.3rem;
    color: var(--light);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
    transition: transform 0.3s;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: #a0b9a5;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.05rem;
    display: block;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    font-size: 1.3rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    font-size: 0.95rem;
    color: #8daa8f;
}

/* 响应式设计 */
@media only screen and (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .hero-content, .story-content {
        flex-direction: column;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .story-text {
        border-left: none;
        border-top: 4px solid var(--accent);
    }
}

@media only screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(28, 59, 39, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1.5rem 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 10px;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .download-btn {
        min-width: 100%;
        padding: 15px 20px;
    }
    
    .character-img {
        width: 250px;
        height: 350px;
    }
}

@media only screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}