﻿/* 全局样式 */
:root {
    --primary-color: #0081FF;
    --secondary-color: #1E2329;
    --accent-color: #00C087;
    --danger-color: #F6465D;
    --light-color: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #666666;
    --font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--secondary-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

section {
    padding: 80px 0;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: #0070e0;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.btn-secondary:hover {
    background-color: #2c3540;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.btn-download {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-download i {
    font-size: 1.8rem;
    margin-right: 10px;
}

.btn-download span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-download small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.btn-download:hover {
    background-color: #2c3540;
    transform: translateY(-2px);
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-weight: 600;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
}

.language-selector {
    margin-right: 20px;
}

.language-selector select {
    padding: 8px 12px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    background-color: var(--light-color);
    font-family: var(--font-family);
    cursor: pointer;
}

.auth-buttons {
    display: flex;
}

.auth-buttons .btn {
    margin-left: 10px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* 英雄区 */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #f5f9ff 0%, #ecf5ff 100%);
    position: relative;
    overflow: hidden;
}

/* 使用伪元素添加背景图案，如果图片不存在也不会影响显示 */
.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 129, 255, 0.03); /* 添加一个淡蓝色背景作为备选 */
    z-index: 0;
}

/* 单独的伪元素用于背景图片 */
.hero:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://39hun.com/static/okx2/css/images/hero-pattern.webp');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    margin-left: 40px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 数据统计 */
.stats {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 加密货币行情 */
.crypto-market {
    background-color: var(--light-color);
    padding: 80px 0;
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* 加密货币加载状态 */
.crypto-grid .loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--dark-gray);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.crypto-grid .loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

.crypto-grid .no-data,
.crypto-grid .error {
    text-align: center;
    padding: 40px 20px;
    color: var(--dark-gray);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.crypto-grid .error {
    color: var(--danger-color);
}

.crypto-item {
    background-color: var(--light-color);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.crypto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.crypto-rank {
    font-size: 0.9rem;
    color: var(--dark-gray);
    font-weight: 600;
    min-width: 30px;
}

.crypto-info {
    flex: 1;
    margin: 0 15px;
}

.crypto-symbol {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.crypto-name {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.crypto-price {
    text-align: right;
    margin-right: 15px;
}

.price-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.price-change {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.price-change.positive {
    color: var(--accent-color);
}

.price-change.negative {
    color: var(--danger-color);
}

.price-change i {
    margin-right: 4px;
    font-size: 0.8rem;
}

.crypto-market-cap {
    text-align: right;
    min-width: 80px;
}

.market-cap-label {
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-bottom: 2px;
}

.market-cap-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* 加密货币动画效果 */
.crypto-item.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.crypto-more {
    text-align: center;
    margin-top: 30px;
}

/* 欧易优势 */
.advantages {
    background-color: var(--light-color);
}

.advantages-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -15px;
}

.advantage-item {
    flex: 1;
    min-width: 250px;
    margin: 15px;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.advantage-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.advantage-item p {
    color: var(--dark-gray);
}

/* 产品功能 */
.products {
    background-color: var(--light-gray);
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.product-item {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.product-item:nth-child(even) {
    flex-direction: row-reverse;
}

.product-image {
    flex: 1;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.product-content {
    flex: 1;
    padding: 40px;
}

.product-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.product-content p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.product-features {
    margin-top: 20px;
}

.product-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.product-features li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* 注册流程 */
.registration {
    background-color: var(--light-color);
}

.registration-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.step {
    flex: 1;
    min-width: 220px;
    text-align: center;
    padding: 20px;
    position: relative;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 70px;
    right: -30px;
    width: 60px;
    height: 2px;
    background-color: var(--medium-gray);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.step p {
    color: var(--dark-gray);
}

.registration-cta {
    text-align: center;
    margin-top: 30px;
}

/* 安全保障 */
.security {
    background-color: var(--light-gray);
}

.security-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.security-image {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.security-features {
    flex: 1;
    min-width: 300px;
}

.security-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.security-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 20px;
    min-width: 40px;
}

.security-text h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.security-text p {
    color: var(--dark-gray);
}

/* 合作伙伴 */
.partners {
    background-color: var(--light-color);
    text-align: center;
}

.partners-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-logo {
    flex: 0 0 auto;
    padding: 20px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.partner-logo img {
    max-height: 60px;
}

/* 常见问题 */
.faq {
    background-color: var(--light-gray);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ加载状态 */
.faq-list .loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.faq-list .loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.faq-list .no-data,
.faq-list .error {
    text-align: center;
    padding: 40px 20px;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.faq-list .error {
    color: var(--danger-color);
}

.faq-item {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.faq-item:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(0, 129, 255, 0.05);
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.faq-toggle {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item:hover .faq-toggle {
    transform: translateX(5px);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--dark-gray);
    display: none;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    display: block;
}

/* FAQ动画效果 */
.faq-item.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-more {
    text-align: center;
    margin-top: 30px;
}

/* 下载APP */
.download {
    background: linear-gradient(135deg, #1E2329 0%, #2c3540 100%);
    color: var(--light-color);
}

.download .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.download-content {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.download p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
}

.download-image {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.download-image img {
    max-height: 500px;
}

/* 页脚 */
.footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 80px 0 30px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #aaa;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    margin-bottom: 20px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--light-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.qr-code {
    text-align: center;
}

.qr-code img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    background-color: var(--light-color);
    padding: 5px;
    border-radius: 5px;
}

.qr-code p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.language-selector-footer select {
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--border-radius);
    color: var(--light-color);
    font-family: var(--font-family);
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .step:not(:last-child):after {
        display: none;
    }
    
    .crypto-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .main-nav {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        transition: var(--transition);
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 0;
        border-bottom: 1px solid var(--medium-gray);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .product-item, .product-item:nth-child(even) {
        flex-direction: column;
    }
    
    .security-content {
        flex-direction: column;
    }
    
    .security-image {
        margin-bottom: 30px;
    }
    
    .download .container {
        flex-direction: column;
    }
    
    .download-content {
        text-align: center;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        margin-bottom: 20px;
    }
    
    .crypto-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 15px;
    }
    
    .crypto-item {
        padding: 15px;
    }
    
    .crypto-info {
        margin: 0 10px;
    }
    
    .crypto-price {
        margin-right: 10px;
    }
    
    .crypto-market-cap {
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-item {
        min-width: 150px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .advantage-item {
        min-width: 100%;
    }
    
    .step {
        min-width: 100%;
        margin-bottom: 30px;
    }
    
    .crypto-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .crypto-info {
        margin: 0;
    }
    
    .crypto-price,
    .crypto-market-cap {
        margin-right: 0;
        text-align: center;
    }
    
    .price-change {
        justify-content: center;
    }
} 