/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', cursive, sans-serif;
    background: linear-gradient(135deg, #FFF8DC 0%, #FFE5B4 100%);
    min-height: 100vh;
    color: #2D2D2D;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 卡通边框工具类 */
.cartoon-border {
    border: 3px solid #2D2D2D;
    box-shadow: 4px 4px 0px #2D2D2D;
}

.cartoon-border-thin {
    border: 2px solid #2D2D2D;
    box-shadow: 3px 3px 0px #2D2D2D;
}

.cartoon-hover {
    transition: all 0.2s ease;
}

.cartoon-hover:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #2D2D2D;
}

.cartoon-active:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #2D2D2D;
}

/* Header */
.header {
    background: #FFD93D;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-emoji {
    font-size: 48px;
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 28px;
    font-weight: bold;
    color: #2D2D2D;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    color: #2D2D2D;
    opacity: 0.7;
    line-height: 1;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    background: white;
    color: #2D2D2D;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 24px;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #2D2D2D;
    box-shadow: 3px 3px 0px #2D2D2D;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #2D2D2D;
    background: #FFF8DC;
}

.connect-btn {
    background: white;
    color: #2D2D2D;
    border: 2px solid #2D2D2D;
    box-shadow: 3px 3px 0px #2D2D2D;
    padding: 8px 24px;
    border-radius: 24px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', cursive, sans-serif;
}

.connect-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #2D2D2D;
}

.connect-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #2D2D2D;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-switcher {
    position: relative;
}

.lang-btn {
    background: white;
    color: #2D2D2D;
    border: 2px solid #2D2D2D;
    box-shadow: 3px 3px 0px #2D2D2D;
    padding: 8px 12px;
    border-radius: 24px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', cursive, sans-serif;
    min-width: 50px;
}

.lang-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #2D2D2D;
}

.lang-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #2D2D2D;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 2px solid #2D2D2D;
    box-shadow: 4px 4px 0px #2D2D2D;
    border-radius: 12px;
    padding: 8px;
    min-width: 150px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
}

.language-switcher.active .lang-dropdown {
    display: flex;
}

.lang-option {
    background: #FFF8DC;
    color: #2D2D2D;
    border: 2px solid #2D2D2D;
    box-shadow: 2px 2px 0px #2D2D2D;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', cursive, sans-serif;
    text-align: left;
}

.lang-option:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #2D2D2D;
    background: #FFD93D;
}

.lang-option:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #2D2D2D;
}

.mobile-menu-btn {
    display: none;
    background: white;
    color: #2D2D2D;
    border: 2px solid #2D2D2D;
    box-shadow: 3px 3px 0px #2D2D2D;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', cursive, sans-serif;
}

.mobile-menu-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #2D2D2D;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #2D2D2D;
}

.nav-mobile.active {
    display: flex;
}

/* Hero Section */
.hero {
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.hero-logo-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.hero-logo-emoji {
    font-size: 120px;
    line-height: 1;
}

.hero-title {
    font-size: 64px;
    font-weight: bold;
    color: #2D2D2D;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 32px;
    color: #2D2D2D;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 20px;
    color: #2D2D2D;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta-btn {
    background: #FFD93D;
    color: #2D2D2D;
    border: 3px solid #2D2D2D;
    box-shadow: 4px 4px 0px #2D2D2D;
    padding: 16px 48px;
    border-radius: 32px;
    font-weight: bold;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', cursive, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-cta-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #2D2D2D;
}

.hero-cta-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #2D2D2D;
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: #FFF8DC;
}

.section-title {
    font-size: 48px;
    font-weight: bold;
    color: #2D2D2D;
    text-align: center;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: #FFF8DC;
    border: 3px solid #2D2D2D;
    box-shadow: 4px 4px 0px #2D2D2D;
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #2D2D2D;
    background: #FFD93D;
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 24px;
    font-weight: bold;
    color: #2D2D2D;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 16px;
    color: #2D2D2D;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 20px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: white;
    border: 3px solid #2D2D2D;
    box-shadow: 4px 4px 0px #2D2D2D;
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

.step-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #2D2D2D;
    background: #FFF8DC;
}

.step-number {
    width: 64px;
    height: 64px;
    background: #FFD93D;
    border: 3px solid #2D2D2D;
    box-shadow: 3px 3px 0px #2D2D2D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: #2D2D2D;
    margin: 0 auto 16px;
}

.step-title {
    font-size: 24px;
    font-weight: bold;
    color: #2D2D2D;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 16px;
    color: #2D2D2D;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #FFD93D;
    padding: 40px 20px;
    border-top: 3px solid #2D2D2D;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-logo-emoji {
    font-size: 48px;
    line-height: 1;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-network {
    font-size: 16px;
    font-weight: bold;
    color: #2D2D2D;
}

.footer-made {
    font-size: 14px;
    color: #2D2D2D;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-link {
    color: #2D2D2D;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-cta-btn {
        font-size: 20px;
        padding: 14px 36px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-title {
        font-size: 24px;
    }
    
    .logo-subtitle {
        font-size: 11px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 14px;
        min-width: 40px;
    }
    
    .connect-btn {
        padding: 6px 16px;
        font-size: 12px;
    }
    
    .lang-dropdown {
        right: 0;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-cta-btn {
        font-size: 18px;
        padding: 12px 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .feature-card,
    .step-card {
        padding: 24px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 按钮脉冲动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero-cta-btn {
    animation: pulse 2s ease-in-out infinite;
}

/* 卡片悬停时的轻微旋转效果 */
.feature-card:hover,
.step-card:hover {
    transform: translate(-2px, -2px) rotate(1deg);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .hero-logo-img,
    .hero-logo-emoji {
        width: 120px !important;
        height: 120px !important;
        font-size: 100px !important;
    }
    
    .feature-card,
    .step-card {
        animation: fadeInUp 0.6s ease-out;
    }
}

/* 打印样式 */
@media print {
    .header,
    .footer,
    .connect-btn,
    .hero-cta-btn,
    .mobile-menu-btn {
        display: none;
    }
    
    body {
        background: white;
    }
}

