/* 全局样式重置 */
* {
    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;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 45px;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    color: #333;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 4px;
}

.main-nav a:hover {
    color: #1a73e8;
    background-color: rgba(26, 115, 232, 0.1);
}

/* 移动端导航样式 */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 移动端导航菜单 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    padding: 60px 20px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.active {
    transform: translateX(0);
}

/* 移动端导航关闭按钮 */
.mobile-nav-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.mobile-nav-close span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #333;
    position: absolute;
    top: 50%;
    left: 50%;
    transition: all 0.3s ease;
}

.mobile-nav-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-nav-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav-close:active {
    transform: scale(0.95);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin: 10px 0;
    text-align: center;
}

.mobile-nav a {
    display: block;
    padding: 15px;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav a:active {
    background: #e9ecef;
    transform: scale(0.98);
}

/* 防止页面滚动 */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* 通用section样式 */
section {
    padding: 40px 0;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

/* 主banner样式 */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 40px 0;
    overflow: hidden;
    margin-top: 45px;
    margin-bottom: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    color: #fff;
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 700;
}

.hero-text h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 500;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 特性板块 */
.features {
    background: #fff;
    padding: 60px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-item h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.feature-list li:before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
}

/* 交易服务 */
.trading {
    background: #f8f9fa;
    padding: 60px 0;
}

.trading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.trading-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.trading-item h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.trading-list {
    list-style: none;
}

.trading-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.trading-list li:before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
}

/* 下载板块 */
.download {
    background: #fff;
    padding: 60px 0;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.download-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.download-item h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.version-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    color: #666;
}

.download-features {
    margin: 20px 0;
}

.download-features h4 {
    color: #333;
    margin-bottom: 15px;
}

.download-features ul {
    list-style: none;
}

.download-features li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.download-features li:before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
}

.btn-download {
    display: inline-block;
    padding: 12px 30px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-download:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* 指南板块 */
.guide {
    background: #f8f9fa;
    padding: 60px 0;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.step {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.step-details {
    list-style: none;
}

.step-details li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.step-details li:before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
}

/* 新闻板块 */
.news {
    background: #fff;
    padding: 60px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-item h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.news-list li:before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
}

/* FAQ板块 */
.faq {
    background: #f8f9fa;
    padding: 60px 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.05);
}

.faq-item h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.faq-item ul {
    list-style: none;
}

.faq-item li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.faq-item li:before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content {
        gap: 20px;
    }
    
    .hero-text h2 {
        font-size: 1.9rem;
    }
    
    .hero-text h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 720px;
    }
    
    .hero {
        padding: 30px 0;
        margin-top: 45px;
        margin-bottom: 40px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .hero-text h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .features,
    .trading,
    .download,
    .guide,
    .news,
    .faq {
        padding: 40px 0;
    }
    
    .feature-grid,
    .trading-grid,
    .download-options,
    .guide-steps,
    .news-grid,
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    .header .container {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .mobile-nav {
        display: block;
    }
    
    /* 调整移动端导航样式 */
    .mobile-nav ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .mobile-nav li {
        margin: 0;
    }
    
    .mobile-nav a {
        padding: 15px;
        font-size: 1rem;
    }
    
    .hero {
        padding: 25px 0;
        margin-top: 40px;
        margin-bottom: 30px;
    }
    
    .hero-text h2 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    .hero-text h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .feature-grid,
    .trading-grid,
    .download-options,
    .guide-steps,
    .news-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features,
    .trading,
    .download,
    .guide,
    .news,
    .faq {
        padding: 30px 0;
    }
    
    .feature-item,
    .trading-item,
    .download-item,
    .step,
    .news-item,
    .faq-item {
        padding: 20px;
    }
    
    .feature-item h3,
    .trading-item h3,
    .download-item h3,
    .step h3,
    .news-item h3,
    .faq-item h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 20px 0;
        margin-top: 40px;
        margin-bottom: 25px;
    }
    
    .hero-text h2 {
        font-size: 1.4rem;
    }
    
    .hero-text h3 {
        font-size: 1.1rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .feature-item,
    .trading-item,
    .download-item,
    .step,
    .news-item,
    .faq-item {
        padding: 15px;
    }
    
    .feature-item h3,
    .trading-item h3,
    .download-item h3,
    .step h3,
    .news-item h3,
    .faq-item h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
    
    .mobile-nav {
        padding: 50px 15px 15px;
    }
    
    .mobile-nav a {
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* 优化触摸设备体验 */
@media (hover: none) {
    .feature-item:hover,
    .trading-item:hover,
    .download-item:hover,
    .step:hover,
    .news-item:hover,
    .faq-item:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .main-nav a:hover {
        color: inherit;
    }
}

/* 添加平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 优化滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1a73e8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d47a1;
}

/* 页脚样式 */
.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;
    padding: 0 15px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    margin: 10px 0;
    opacity: 0.8;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    margin-top: 15px;
}

.footer-links li {
    margin: 8px 0;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.3s;
    font-size: 14px;
}

.footer-links li:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
} 