﻿/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    color: #1a73e8;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #1a73e8;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    padding: 160px 0 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-text h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.hero-image {
    text-align: center;
}

.hero-showcase {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.hero-showcase:hover {
    transform: scale(1.02);
}

.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 60px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    opacity: 0.9;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    margin: 0 10px;
}

.hero-buttons {
    margin-top: 20px;
}

.hero-buttons .btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 10px 10px 0;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-android {
    background-color: #3DDC84;
    color: #000000;
}

.btn-ios {
    background-color: #007AFF;
    color: #FFFFFF;
}

.btn-register {
    background-color: #FF6B00;
    color: #FFFFFF;
}

.hero-buttons .btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #fff;
    color: #1a73e8;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 特性区域样式 */
.features {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 50px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
    text-align: left;
}

.feature-list li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.feature-list li:before {
    content: "✓";
    color: #1a73e8;
    position: absolute;
    left: 0;
}

/* 交易服务样式 */
.trading {
    padding: 80px 0;
}

.trading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.trading-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.trading-features {
    list-style: none;
    margin-top: 20px;
}

.trading-features li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.trading-features li:before {
    content: "•";
    color: #1a73e8;
    position: absolute;
    left: 0;
}

/* 安全保障样式 */
.security {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.security-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.security-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 下载区域样式 */
.download {
    padding: 80px 0;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.download-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.version-info {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.version-info span {
    color: #666;
}

.btn-download {
    background-color: #1a73e8;
    color: #fff;
    margin-top: 20px;
}

/* 注册指南样式 */
.guide {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #1a73e8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

.step-details {
    list-style: none;
    margin-top: 20px;
    text-align: left;
}

.step-details li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.step-details li:before {
    content: "→";
    color: #1a73e8;
    position: absolute;
    left: 0;
}

/* FAQ样式 */
.faq {
    padding: 80px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: #f8f9fa;
}

.faq-item h3 {
    color: #1a73e8;
    margin-bottom: 15px;
}

/* FAQ加载状态和错误信息样式 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    grid-column: 1 / -1;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #d32f2f;
    font-size: 16px;
    grid-column: 1 / -1;
    background: #ffebee;
    border-radius: 10px;
    border: 1px solid #ffcdd2;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #fff;
}

.friendly-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.friendly-link {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    font-size: 0.9em;
}

.friendly-link:hover {
    opacity: 1;
    color: #1a73e8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .hero-text h2 {
        font-size: 2.2em;
    }

    .hero-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    /* 头部导航响应式 */
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    .logo h1 {
        font-size: 20px;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        margin-top: 15px;
        width: 100%;
    }

    .main-nav li {
        margin: 8px 0;
    }

    /* 英雄区域响应式 */
    .hero {
        padding: 120px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h2 {
        font-size: 1.8em;
    }

    .hero-text p {
        font-size: 1.1em;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }

    .stat-item {
        flex: 0 0 45%;
    }

    .hero-showcase {
        max-width: 85%;
        margin: 0 auto;
    }

    /* 按钮响应式 */
    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        margin: 0;
        text-align: center;
    }

    /* 特性区域响应式 */
    .features-grid,
    .trading-grid,
    .security-content,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card,
    .trading-card,
    .security-item,
    .faq-item {
        padding: 20px;
    }

    /* 下载区域响应式 */
    .download-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .download-card {
        padding: 20px;
    }

    /* 注册指南响应式 */
    .guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step {
        padding: 15px;
    }

    /* 页脚响应式 */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .friendly-links,
    .social-links {
        align-items: center;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .main-nav a {
        display: block;
        padding: 10px;
        font-size: 1.1em;
    }

    /* 汉堡菜单动画 */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* 遮罩层 */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h2 {
        font-size: 1.6em;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item {
        flex: 0 0 100%;
    }

    .section-title {
        font-size: 1.8em;
    }

    .hero-showcase {
        max-width: 90%;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.download-card,
.step,
.trading-card,
.security-item,
.faq-item {
    animation: fadeIn 0.5s ease-out forwards;
}

/* App preview styles */
.app-preview {
    margin-bottom: 20px;
    text-align: center;
}

.app-image {
    max-width: 200px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.app-image:hover {
    transform: scale(1.05);
}

/* Guide step image styles */
.step-image {
    margin: 15px 0;
    text-align: center;
}

.guide-image {
    max-width: 150px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 下载区域新样式 */
.download-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.app-showcase {
    text-align: center;
}

.showcase-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.showcase-image:hover {
    transform: scale(1.02);
}

/* 注册指南新样式 */
.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.guide-image-section {
    position: sticky;
    top: 100px;
    text-align: center;
}

.guide-showcase {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .download-showcase,
    .guide-content {
        grid-template-columns: 1fr;
    }

    .guide-image-section {
        position: static;
        margin-bottom: 30px;
    }

    .showcase-image,
    .guide-showcase {
        max-width: 80%;
    }
}

/* 动画优化 */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .download-card,
    .step,
    .trading-card,
    .security-item,
    .faq-item,
    .hero-showcase {
        animation: none;
        transition: none;
    }
}

/* Crypto Market Section */
.crypto-market {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.crypto-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.crypto-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
    display: none; /* Initially hidden */
}

.crypto-table th, .crypto-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    white-space: nowrap;
}

.crypto-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 12px;
}

.crypto-table tbody tr:last-child td {
    border-bottom: none;
}

.crypto-table tbody tr:hover {
    background-color: #f1f3f5;
}

.crypto-table .positive {
    color: #28a745;
}

.crypto-table .negative {
    color: #dc3545;
} 