/* 二次元海岛奇兵风格样式 */

:root {
    /* 海岛奇兵二次元色彩 */
    --island-blue: #4fc3f7;
    --ocean-teal: #26c6da;
    --sunset-orange: #ff9800;
    --coral-pink: #ff6b9d;
    --palm-green: #66bb6a;
    --sand-yellow: #ffeb3b;
    --sky-purple: #9c27b0;
    --wave-cyan: #00bcd4;
    
    /* 可爱装饰色 */
    --kawaii-pink: #ffb3d9;
    --kawaii-blue: #b3d9ff;
    --kawaii-purple: #d9b3ff;
    --kawaii-mint: #b3ffcc;
    
    /* 背景渐变 */
    --island-gradient: linear-gradient(135deg, #4fc3f7 0%, #26c6da 50%, #00bcd4 100%);
    --sunset-gradient: linear-gradient(135deg, #ff9800 0%, #ff6b9d 50%, #9c27b0 100%);
    --ocean-gradient: linear-gradient(180deg, #87ceeb 0%, #4682b4 100%);
    
    /* 阴影效果 */
    --island-shadow: 0 8px 32px rgba(79, 195, 247, 0.3);
    --coral-shadow: 0 8px 32px rgba(255, 107, 157, 0.3);
    --wave-shadow: 0 4px 16px rgba(0, 188, 212, 0.2);
    
    /* 动画时间 */
    --wave-duration: 3s;
    --float-duration: 4s;
    --sparkle-duration: 2s;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', sans-serif;
    background: var(--ocean-gradient);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* 海洋背景动画 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(79, 195, 247, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(38, 198, 218, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 152, 0, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: oceanWave var(--wave-duration) ease-in-out infinite;
}

@keyframes oceanWave {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

/* 浮动海岛装饰 */
.floating-islands {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-island {
    position: absolute;
    font-size: 2rem;
    animation: floatIsland var(--float-duration) ease-in-out infinite;
    opacity: 0.6;
}

@keyframes floatIsland {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* 导航栏二次元风格 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 3px solid var(--island-blue);
    box-shadow: var(--island-shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.game-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.logo-text h1 {
    background: var(--island-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
}

.logo-text span {
    color: var(--ocean-teal);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    border: 2px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--island-gradient);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--island-shadow);
}

.download-btn {
    background: var(--sunset-gradient);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    border: 3px solid white;
    box-shadow: var(--coral-shadow);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '🎮';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    transition: left 0.3s;
}

.download-btn:hover::before {
    left: calc(100% + 10px);
}

.download-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.4);
}

/* 英雄区域二次元风格 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--island-gradient);
    z-index: -2;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="white" opacity="0.1"><circle cx="20" cy="20" r="2"/><circle cx="80" cy="40" r="1.5"/><circle cx="40" cy="70" r="1"/><circle cx="70" cy="80" r="2.5"/><circle cx="10" cy="60" r="1.5"/></svg>');
    animation: sparkleBackground var(--sparkle-duration) infinite;
}

@keyframes sparkleBackground {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.hero-title::after {
    content: '🏝️';
    position: absolute;
    right: -60px;
    top: -10px;
    font-size: 3rem;
    animation: float var(--float-duration) ease-in-out infinite;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cta-primary {
    background: white;
    color: var(--island-blue);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 3px solid var(--island-blue);
    box-shadow: var(--island-shadow);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cta-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(79, 195, 247, 0.4);
    background: var(--island-blue);
    color: white;
}

.cta-secondary {
    background: transparent;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
}

.game-preview {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--coral-shadow);
    border: 5px solid white;
}

.preview-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-preview:hover .preview-overlay {
    opacity: 1;
}

.game-preview:hover .preview-image {
    transform: scale(1.05);
}

.play-button {
    background: var(--sunset-gradient);
    border: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: var(--coral-shadow);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.play-button:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-wrapper {
        padding: 0 15px;
        height: 70px;
    }
    
    .nav-links {
        display: none;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 0 15px;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cta-primary,
    .cta-secondary {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .stat-item {
        padding: 10px 15px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* 工具卡片二次元风格 */
.tools-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--kawaii-pink);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 3px solid white;
    box-shadow: var(--coral-shadow);
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--island-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tool-card {
    background: white;
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--wave-shadow);
    border: 3px solid #f0f8ff;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--island-gradient);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-10px) rotate(-2deg);
    box-shadow: var(--island-shadow);
    border-color: transparent;
}

.tool-card.featured {
    background: var(--sunset-gradient);
    color: white;
    border-color: white;
}

.tool-card.featured::before {
    background: white;
}

.tool-card.featured:hover {
    color: var(--island-blue);
}

.tool-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--kawaii-pink);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid white;
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: var(--kawaii-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    border: 4px solid white;
    box-shadow: var(--wave-shadow);
}

.tool-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: inherit;
}

.tool-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.tool-btn {
    background: var(--island-gradient);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 3px solid white;
    box-shadow: var(--wave-shadow);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.tool-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--island-shadow);
}

.tool-btn.primary {
    background: white;
    color: var(--island-blue);
    border-color: var(--island-blue);
}

.tool-btn.primary:hover {
    background: var(--island-blue);
    color: white;
}

/* 移动端汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 107, 157, 0.1);
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--island-blue);
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-link {
        margin: 10px 0;
        font-size: 1.1rem;
    }
    
    .download-btn {
        margin-top: 20px;
    }
}

/* 浮动装饰元素 */
.floating-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.decoration {
    position: absolute;
    font-size: 1.5rem;
    animation: floatDecoration 6s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes floatDecoration {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* 滚动指示器 */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--island-gradient);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--sunset-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--coral-shadow);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    border: 3px solid white;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.4);
}

/* 页脚简化样式 */
.simple-footer {
    background: var(--island-gradient);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}