/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #0a192f;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo img {
    height: 40px;
}

.nav-right {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4ade80;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lang-switch span {
    color: #94a3b8;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.lang-switch span.active {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

/* Hero区域样式 */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(45deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-lines {
    position: relative;
    height: 4px;
    margin-top: 2rem;
}

.line {
    height: 2px;
    position: absolute;
    left: 0;
}

.line-1 {
    width: 150px;
    background: linear-gradient(90deg, #ff69b4 0%, transparent 100%);
    top: 0;
}

.line-2 {
    width: 200px;
    background: linear-gradient(90deg, #4ade80 0%, transparent 100%);
    bottom: 0;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 100%;
    min-height: 400px;
}

.snake-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: url('../images/snake-glow.svg') no-repeat center;
    background-size: contain;
    animation: float 6s ease-in-out infinite;
}

.glow-effects {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.glow-line {
    position: absolute;
    height: 2px;
    animation: glowMove 8s ease-in-out infinite;
}

.glow-line.blue {
    background: linear-gradient(90deg, #22d3ee 0%, transparent 100%);
    width: 300px;
    top: 20%;
    left: -100px;
    animation-delay: 0s;
}

.glow-line.green {
    background: linear-gradient(90deg, #4ade80 0%, transparent 100%);
    width: 200px;
    top: 60%;
    left: -50px;
    animation-delay: 2s;
}

.glow-line.pink {
    background: linear-gradient(90deg, #ff69b4 0%, transparent 100%);
    width: 250px;
    top: 40%;
    left: -75px;
    animation-delay: 4s;
}

/* 游戏模式区域样式 */
.game-modes {
    padding: 4rem 2rem;
    background: #0a192f;
}

.game-modes h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #fff;
    background: linear-gradient(45deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modes-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mode-card {
    background: rgba(21, 44, 88, 0.3);
    border-radius: 0.8rem;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.mode-card.relaxed {
    background: rgba(21, 88, 67, 0.3);
}

.mode-card.relaxed h3 {
    color: #4ade80;
}

.mode-card.challenge {
    background: rgba(58, 54, 21, 0.3);
}

.mode-card.challenge h3 {
    color: #ffd700;
}

.mode-card.hell {
    background: rgba(88, 21, 31, 0.3);
}

.mode-card.hell h3 {
    color: #ff6b6b;
}

.mode-card.og {
    background: rgba(21, 44, 88, 0.3);
    position: relative;
}

.mode-card.og h3 {
    color: #22d3ee;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-card.og h3::before {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.mode-card.og:hover h3::before {
    opacity: 1;
}

.mode-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mode-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: normal;
}

.mode-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* 页脚样式 */
.footer {
    background: #0a192f;
    padding: 2rem;
    color: #94a3b8;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-left {
    flex: 0 0 auto;
}

.footer-logo {
    height: 32px;
    margin-bottom: 0.5rem;
}

.footer-credit {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #4ade80;
}

.contact-info {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-left: 2rem;
}

.contact-info p {
    margin: 0.2rem 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* 动画效果 */
@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%);
    }
    50% {
        transform: translate(-50%, -55%);
    }
}

@keyframes glowMove {
    0%, 100% {
        transform: translateX(0);
        opacity: 0;
    }
    50% {
        transform: translateX(100vw);
        opacity: 1;
    }
}

/* 通用动画类 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* 游戏特色区域样式 */
.game-features {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #0a192f 0%, #112240 100%);
}

.game-features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #4ade80;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #4ade80;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.6;
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 调整导航栏链接样式 */
.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
} 