﻿/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body {
    background: #fff;
    color: #111;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.section {
    padding: 60px 0;
}
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

/* 导航栏 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-img {
    height: 40px;
}
.nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-link {
    text-decoration: none;
    color: #111;
    font-weight: 500;
}
.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}
.lang-btn, .theme-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}
.download-btn {
    background: #0052ff;
    color: #fff;
    padding: 10px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
}

/* 无缝兑换板块 */
.swap-hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}
.swap-hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}
.swap-hero-subtitle {
    font-size: 18px;
    color: #333;
    margin-bottom: 32px;
}
.swap-hero-btn {
    background: #0052ff;
    color: #fff;
    padding: 12px 32px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
}
.swap-hero-img {
    max-width: 500px;
}

/* 永续合约板块 */
.perps {
    background: #f5f5f7;
    border-radius: 16px;
}
.perps-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 40px;
}
.perps-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
}
.perps-list {
    list-style: none;
    margin-bottom: 32px;
}
.perps-list li {
    font-size: 18px;
    margin-bottom: 8px;
}
.perps-buttons {
    display: flex;
    gap: 16px;
}
.perps-btn {
    padding: 12px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
}
.perps-btn.primary {
    background: #0052ff;
    color: #fff;
}
.perps-btn.secondary {
    background: none;
    color: #0052ff;
    border: 1px solid #0052ff;
}
.perps-img {
    max-width: 300px;
}

/* 操作步骤板块 */
.steps-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    background: #f5f5f7;
    border-radius: 16px;
    padding: 40px;
}
.steps-img {
    max-width: 300px;
}
.steps-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
}
.steps-list {
    margin-bottom: 32px;
    padding-left: 20px;
}
.steps-list li {
    font-size: 18px;
    margin-bottom: 12px;
}
.steps-btn {
    background: #0052ff;
    color: #fff;
    padding: 12px 32px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
}

/* 热门代币兑换板块 */
.popular-swap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.swap-card {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 24px;
}
.swap-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.swap-label {
    font-size: 12px;
    color: #666;
}
.swap-token {
    display: flex;
    align-items: center;
    gap: 8px;
}
.token-icon {
    width: 24px;
    height: 24px;
}
.swap-divider {
    text-align: center;
    margin: 12px 0;
    font-size: 20px;
}
.popular-swap-banner {
    background: #0052ff;
    color: #fff;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.popular-swap-banner p {
    font-size: 24px;
    font-weight: 600;
}
.banner-btn {
    background: #fff;
    color: #0052ff;
    padding: 12px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
}
.banner-img {
    position: absolute;
    right: 40px;
    bottom: 0;
    max-width: 200px;
}

/* 兑换优势板块 */
.swap-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 32px;
}
.feature-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}
.feature-card-desc {
    font-size: 16px;
    color: #333;
    margin-bottom: 24px;
}
.feature-card-img {
    max-width: 100%;
}

/* 常见问题板块 */
.faq-list {
    border-top: 1px solid #eee;
}
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}
.faq-answer {
    margin-top: 12px;
    color: #333;
}

/* 博客板块 */
.blogs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}
.blogs-all {
    text-decoration: none;
    color: #0052ff;
    font-weight: 600;
}
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-card {
    background: #f5f5f7;
    border-radius: 16px;
    overflow: hidden;
}
.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-title {
    font-size: 18px;
    font-weight: 600;
    padding: 16px;
}
.blog-desc {
    font-size: 14px;
    color: #333;
    padding: 0 16px 16px;
}

/* 新闻板块 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-card {
    background: #f5f5f7;
    border-radius: 16px;
    overflow: hidden;
}
.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-date {
    font-size: 12px;
    color: #666;
    padding: 16px 16px 8px;
}
.news-title {
    font-size: 18px;
    font-weight: 600;
    padding: 0 16px 12px;
}
.news-desc {
    font-size: 14px;
    color: #333;
    padding: 0 16px 16px;
}

/* 页脚 */
.footer {
    background: #f5f5f7;
    padding: 60px 0;
    border-radius: 16px;
}
.footer-inner {
    display: flex;
    gap: 60px;
}
.footer-logo-img {
    height: 60px;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr) auto;
    gap: 32px;
}
.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 8px;
}
.footer-column ul li a {
    text-decoration: none;
    color: #333;
}
.new-tag {
    background: #e0e7ff;
    color: #0052ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 4px;
}
.footer-cert {
    display: flex;
    gap: 16px;
}
.cert-img {
    height: 50px;
}

/* 回到顶部按钮 */
#backToTop {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
#backToTop.show {
    opacity: 1;
    visibility: visible;
}