/* style.css */
.contract-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.contract-address {
    word-break: break-all;
    margin-right: 8px;
}
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.scroll-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.left-scroll-btn {
    left: 20px;
}
.right-scroll-btn {
    right: 20px;
}
:root {
    --primary-color: #0071e3;
    --secondary-color: #2997ff;
    --text-color: #1d1d1f;
    --bg-color: #ffffff;
    --card-bg: #f5f5f7;
    --accent-color: #ff375f;
    --button-color: #4CAF50; 
    --button-hover-color: #45a049; 
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.dark-mode {
    --text-color: #f5f5f7;
    --bg-color: #1d1d1f;
    --card-bg: #2c2c2e;
    --button-color: #4CAF50; 
    --button-hover-color: #45a049; 
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}
/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(var(--bg-color-rgb), 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 22px;
    color: var(--primary-color);
}
.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}
.nav-links {
    display: flex;
    gap: 30px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover {
    color: var(--primary-color);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}
.lang-toggle {
    background: var(--button-color);
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.lang-toggle:hover {
    background: var(--button-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}
.theme-toggle {
    background: var(--button-color);
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover {
    background: var(--button-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(41, 151, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/picture.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    opacity: 0.9;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 1000;
    background: linear-gradient(90deg, #0071e3, #ff375f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    max-width: 1000px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
/* 章节通用样式 */
.section {
    padding: 100px 5%;
}
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}
/* 黄皮书部分 */
.yellowpaper {
    background-color: rgba(0, 113, 227, 0.03);
    border-radius: 30px;
    margin: 0 5%;
    padding: 60px;
    text-align: center;
}
.yellowpaper p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}
.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.btn {
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.6);
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: rgba(0, 113, 227, 0.1);
}
/* 参与部分 */
.participate-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.participate-box {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.participate-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.participate-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}
.token-info {
    margin-bottom: 25px;
}
.token-info p {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    /* 合约地址自动换行 */
    word-break: break-all;
    /* 修改字体大小 */
    font-size: 21px;
}
/* 优化合约地址显示 */
.contract-address {
    display: inline-block;
    word-break: break-all;
    font-size: 21px;
}
.copy-icon {
    cursor: pointer;
    margin-left: 8px;
    color: var(--primary-color);
    font-size: 14px;
}
.exchange-rates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}
.rate-box {
    background: rgba(0, 113, 227, 0.1);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}
.rate-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}
.platform-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.platform-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.platform-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
}
.platform-btn.pancake {
    background: linear-gradient(135deg, #d6249f 0%, #285AEB 100%);
}
.platform-btn.cex {
    background: linear-gradient(135deg, #F0B90B 0%, #F8D12F 100%);
}
/* 风险提示 */
.risk-warning {
    background-color: rgba(255, 55, 95, 0.1);
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #ff375f;
    border: 1px solid rgba(255, 55, 95, 0.2);
}
/* 应用部分 */
.apps-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}
.apps-scroller {
    display: flex;
    gap: 25px;
    padding: 30px 0;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.apps-scroller::-webkit-scrollbar {
    display: none;
}
.app-card {
    scroll-snap-align: start;
    min-width: 280px;
    height: 320px;
    background-color: var(--card-bg);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.app-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(41,151,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}
.app-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.app-card:hover::before {
    opacity: 1;
}
.app-card h3 {
    font-size: 1.4rem;
    margin: 20px 0 10px;
    z-index: 1;
}
.app-card p {
    color: #666;
    z-index: 1;
    font-size: 0.9rem;
}
.app-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    z-index: 1;
}
/* 路线图部分 */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 30px 40px;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-content {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.timeline-date {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.timeline-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}
/* 页脚样式 */
footer {
    background-color: var(--card-bg);
    padding: 60px 5% 30px;
    text-align: center;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
.copyright {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.8;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    font-size: 20px;
    transition: var(--transition);
}
.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}
/* 应用详情弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.active {
    display: flex;
    opacity: 1;
}
.modal-content {
    background-color: var(--bg-color);
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}
.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
.app-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.app-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
}
.app-detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}
.app-detail-title {
    font-size: 1.8rem;
}
.app-detail-content {
    line-height: 1.8;
}
.app-detail-content p {
    margin-bottom: 15px;
}
.app-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}
.feature-item {
    background: rgba(0, 113, 227, 0.1);
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.feature-item:hover {
    background: rgba(0, 113, 227, 0.15);
    transform: translateY(-3px);
}
/* 响应式设计 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .participate-box {
        min-width: 100%;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
        left: 0 !important;
    }
    .app-features {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .navbar {
        padding: 15px 5%;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 70px 5%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .yellowpaper {
        padding: 40px 20px;
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .exchange-rates {
        grid-template-columns: 1fr;
    }
}
/* 动画效果 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.floating {
    animation: float 6s ease-in-out infinite;
}

/* 语言切换提示 */
.language-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 3000;
    display: none;
}

/* 复制成功提示 */
.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 3000;
    display: none;
}

/* 应用简写样式 */
.app-short {
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
    margin-left: 5px;
}