/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa, #ffb6c1);
    color: #333;
    overflow-x: hidden;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 顶部导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder:hover {
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
}

.nav-menu ul {
    list-style: none;
    display: flex;
}

.nav-menu ul li {
    margin: 0 10px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #ff69b4;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: background 0.3s, transform 0.3s;
}

.nav-menu ul li a:hover {
    background: #98fb98;
    transform: translateY(-3px);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.lang-switcher {
    padding: 5px;
    border-radius: 10px;
    background: #98fb98;
    color: white;
    border: none;
}

/* 英雄区 */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 80px 20px 20px;
    flex-wrap: wrap;
}

.hero-content {
    max-width: 50%;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    color: #ff69b4;
    background: linear-gradient(to right, #ff69b4, #9370db);
    -webkit-background-clip: text;
    color: transparent;
    animation: bounce 2s infinite;
}

.hero p {
    font-size: 20px;
    color: #666;
    margin: 15px 0;
}

.hero-buttons .btn {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 20px;
    background: #98fb98;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
    min-width: 120px;
}

.hero-buttons .btn:hover {
    transform: scale(1.1);
}

.mascot-placeholder {
    max-width: 400px;
    max-height: 400px;
    min-width: 260px;
    min-height: 260px;
    animation: float 3s infinite;
}

.mascot-placeholder img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 特色介绍区 */
.features {
    padding: 40px 20px;
    text-align: center;
}

.features h2 {
    font-size: 30px;
    color: #ff69b4;
    margin-bottom: 30px;
}

.feature-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    width: 200px;
    padding: 15px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, background 0.3s;
}

.card:hover {
    transform: translateY(-10px) rotate(2deg);
    background: #ffe4e1;
}

.card-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 20px;
    color: #9370db;
}

.card p {
    font-size: 14px;
    color: #666;
}

/* 其他部分样式 */
.section {
    padding: 60px 20px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section h2 {
    font-size: 36px;
    color: #ff69b4;
    margin-bottom: 20px;
}

.content {
    max-width: 800px;
    margin: 0 auto;
}

.content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    word-break: break-word; /* 强制长单词或连续字符换行 */
    overflow-wrap: break-word; /* 兼容性更强的换行属性 */
    white-space: normal; /* 确保文本正常换行 */
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    background: #98fb98;
    color: white;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.1);
}

.illustration {
    font-size: 80px;
    position: absolute;
    opacity: 0.2;
    z-index: -1;
}

.whitepaper-illus {
    top: 20%;
    right: 10%;
}

.community-illus {
    bottom: 10%;
    left: 15%;
}

.buy-illus {
    top: 30%;
    right: 15%;
}

.social-links {
    margin-top: 20px;
}

.social-btn {
    padding: 10px 20px;
    margin: 5px;
    background: #ff69b4;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: transform 0.2s;
}

.social-btn:hover {
    transform: scale(1.1);
    background: #9370db;
}

/* 合约地址样式 */
.contract-address {
    margin-top: 20px;
    display: flex;
    flex-direction: column; /* 改为垂直排列，确保按钮在新行 */
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.contract-address p {
    font-size: 16px;
    color: #666;
}

.contract-address #contract {
    font-family: monospace;
    color: #9370db;
}

.copy-btn {
    background: #9370db;
    margin: 10px 0; /* 可选：调整上下间距 */
}

.copy-btn:hover {
    background: #ff69b4;
}

/* 动画 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes float {
    0%, 100% { transform: translateY(-35px); }
    50% { transform: translateY(-50px); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
        text-align: center;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .nav-menu ul li {
        margin: 10px 0;
    }

    .hero {
        flex-direction: column;
        padding: 120px 10px 20px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .mascot-placeholder {
        margin-top: 20px;
        max-width: 150px;
        max-height: 150px;
        min-width: 80px;
        min-height: 80px;
    }

    .mascot-placeholder img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .feature-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 80%;
    }

    .section h2 {
        font-size: 28px;
    }

    .content {
        max-width: 100%; /* 在小屏幕上占满可用宽度 */
        padding: 0 10px; /* 添加左右内边距，避免贴边 */
    }

    .content p {
        font-size: 16px;
    }

    .btn, .social-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .illustration {
        font-size: 50px;
    }

    .contract-address p {
        font-size: 14px;
    }
}
