/* 全局重置 & 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #333;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    background: transparent;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-outline {
    border: 1px solid #1890ff;
    color: #1890ff;
    background: transparent;
}

.btn-outline:hover {
    background-color: rgba(24, 144, 255, 0.1);
}

.btn-primary {
    background-color: #1890ff;
    color: #fff;
    border: 1px solid #1890ff;
}

.btn-primary:hover {
    background-color: #096dd9;
    border-color: #096dd9;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 16px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* 顶部通知栏 */
.top-notice {
    background-color: #fffbe6;
    color: #ed8936;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.top-notice i {
    font-size: 16px;
}

.top-notice a {
    color: #1890ff;
    margin-left: 8px;
    font-weight: 500;
}

/* 导航栏 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header-logo .logo {
    display: block;
}

.header-logo img {
    height: 40px;
}

/* 主导航 */
.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    display: inline-block;
}

.nav-link.active {
    color: #1890ff;
}

.nav-link:hover {
    color: #1890ff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1890ff;
}

/* 导航下拉菜单 */
.nav-item {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    width: 120px;
    padding: 8px 0;
    display: none;
    z-index: 999;
}

.nav-item:hover .nav-dropdown {
    display: block;
}

.nav-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #666;
}

.nav-dropdown a:hover {
    background-color: #f5fafe;
    color: #1890ff;
}

/* 右侧功能区 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
    color: #666;
}

.lang-btn.active {
    background-color: #1890ff;
    color: #fff;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.menu-btn {
    font-size: 24px;
    color: #333;
}

/* 移动端导航 */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    overflow: hidden;
    transition: width 0.3s ease;
}

.mobile-nav.show {
    width: 280px;
}

.mobile-nav-wrap {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.mobile-nav-list {
    margin-top: 80px;
}

.mobile-nav-item {
    margin-bottom: 16px;
}

.mobile-nav-link {
    display: block;
    font-size: 16px;
    color: #333;
    padding: 12px 0;
    position: relative;
}

.mobile-nav-link.active {
    color: #1890ff;
}

.mobile-nav-has-dropdown .mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-dropdown {
    padding-left: 16px;
    display: none;
    margin-top: 8px;
}

.mobile-nav-dropdown a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.mobile-nav-has-dropdown.active .mobile-nav-dropdown {
    display: block;
}

.mobile-nav-has-dropdown.active .fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-nav-register {
    color: #1890ff !important;
    font-weight: 500;
}

/* 英雄区轮播 */
.hero-slider {
    position: relative;
    height: 560px;
    overflow: hidden;
}

.slider-container {
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-item.active {
    opacity: 1;
    z-index: 1;
}

.slider-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    max-width: 800px;
}

.slider-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider-content p {
    font-size: 20px;
    margin-bottom: 32px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-slider {
    padding: 14px 32px;
    font-size: 18px;
    border-radius: 30px;
    background-color: #1890ff;
    color: #fff;
    border: none;
    font-weight: 600;
}

.btn-slider:hover {
    background-color: #096dd9;
    transform: translateY(-2px);
}

/* 轮播指示器 */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    width: 36px;
    border-radius: 6px;
    background-color: #fff;
}

/* 轮播箭头 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* 核心优势 */
.advantages {
    padding: 100px 0;
    background-color: #f9fafb;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.advantage-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon img {
    max-width: 100%;
    max-height: 100%;
}

.advantage-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.advantage-item p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* 热门交易对 */
.hot-pairs {
    padding: 100px 0;
}

.section-header .view-all {
    display: inline-block;
    margin-top: 8px;
    color: #1890ff;
    font-size: 14px;
    font-weight: 500;
}

.pairs-table {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.pairs-table table {
    width: 100%;
    border-collapse: collapse;
}

.pairs-table th,
.pairs-table td {
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
}

.pairs-table th {
    background-color: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}

.pairs-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
}

.pairs-table tbody tr:last-child {
    border-bottom: none;
}

.pairs-table tbody tr:hover {
    background-color: #f9fafb;
}

.pair-symbol .symbol-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pair-symbol img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.pair-price {
    font-weight: 500;
}

.pair-change.up {
    color: #f5222d;
}

.pair-change.down {
    color: #52c41a;
}

.pair-volume {
    color: #6b7280;
}

.btn-trade {
    padding: 6px 12px;
    background-color: #e6f7ff;
    color: #1890ff;
    border-radius: 4px;
    font-size: 13px;
}

.btn-trade:hover {
    background-color: #bae7ff;
}

/* 产品服务 */
.products-service {
    padding: 100px 0;
    background-color: #f9fafb;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-content {
    padding: 24px;
}

.product-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.product-content p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1890ff;
    font-weight: 500;
    font-size: 14px;
}

.product-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-link i {
    transform: translateX(4px);
}

/* 合作伙伴 */
.partners {
    padding: 80px 0;
	background-color: #e6f7ff;
}

.partners-slider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-item {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item img {
    max-width: 100%;
    max-height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-item img:hover {
    opacity: 1;
}

/* 注册引导 */
.register-guide {
    padding: 100px 0;
    margin: 40px 0;
}

.guide-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.guide-content {
    flex: 1;
}

.guide-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
}

.guide-content p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 32px;
}

.guide-steps {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.guide-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #1890ff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.guide-step span:last-child {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.btn-guide {
    padding: 16px 36px;
    font-size: 18px;
    border-radius: 30px;
    background-color: #1890ff;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.btn-guide:hover {
    background-color: #096dd9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
}

.guide-img {
    flex: 1;
    max-width: 400px;
}

.guide-img img {
    width: 100%;
    height: auto;
}

/* 页脚 */
.footer {
    background-color: #1f2937;
    color: #fff;
    padding: 80px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-logo p {
    font-size: 14px;
    color: #d1d5db;
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #1890ff;
    color: #fff;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    font-size: 14px;
    color: #d1d5db;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1890ff;
}

.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #d1d5db;
}

.contact-item i {
    margin-top: 4px;
    color: #1890ff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    font-size: 14px;
    color: #9ca3af;
}

.footer-policy {
    display: flex;
    gap: 24px;
}

.footer-policy a {
    font-size: 14px;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer-policy a:hover {
    color: #1890ff;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #1890ff;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #096dd9;
    transform: translateY(-2px);
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .advantages-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 2fr 1fr 1fr;
        row-gap: 40px;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .slider-content h1 {
        font-size: 36px;
    }

    .slider-content p {
        font-size: 18px;
    }

    .guide-wrap {
        flex-direction: column;
        text-align: center;
    }

    .guide-steps {
        justify-content: center;
    }

    .guide-img {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .header-wrap {
        height: 64px;
    }

    .hero-slider {
        height: 400px;
    }

    .slider-content h1 {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .slider-content p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .btn-slider {
        padding: 12px 24px;
        font-size: 16px;
    }

    .advantages,
    .hot-pairs,
    .products-service,
    .register-guide {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .advantages-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .guide-steps {
        flex-direction: column;
        gap: 20px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 320px;
    }

    .slider-content h1 {
        font-size: 24px;
    }

    .slider-content p {
        font-size: 14px;
    }

    .slider-indicators {
        bottom: 20px;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-policy {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 常见问题板块样式 */
/* 常见问题板块样式（优化版） */
.faq-section {
    padding: 80px 0;
    background-color: #fff; /* 保持白色背景 */
}

/* 调整标题居中+匹配图片颜色 */
.faq-section .section-title {
    text-align: center; /* 强制标题居中 */
    margin-bottom: 50px;
}

.faq-section .section-title h2 {
    font-size: 32px; /* 匹配原页面其他板块标题字号 */
    font-weight: 700;
    color: #1a202c; /* 图片同款深灰主色，可根据实际图片调整为 #333/#222 等 */
    /* 若图片中是蓝色系，替换为：color: #007bff; */
    /* 若图片中是黑色，替换为：color: #000; */
    margin: 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #f0f2f5;
}

.faq-question {
    width: 100%;
    padding: 20px 0;
    text-align: left;
    font-size: 18px;
    font-weight: 500;
    color: #333; /* 问题文字深灰色 */
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question i {
    font-size: 16px;
    color: #666;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-bottom: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 16px;
    color: #666; /* 回答文字浅灰色，匹配原页面风格 */
    line-height: 1.8;
}
.slider-tagline {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
