/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #FF8C00;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #FFD700, #FF8C00);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 语言切换器样式 */
.language-switcher {
    display: flex;
    gap: 5px;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: 2px solid #FF8C00;
    color: #FF8C00;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: white;
    border-color: #FFD700;
}

.lang-btn.active {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: white;
    border-color: #FFD700;
}

/* 移动端菜单切换按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主要内容区域 */
main {
    margin-top: 70px;
}

/* 首页英雄区域 */
.hero {
    background: linear-gradient(135deg, #FF4500 0%, #FF8C00 50%, #FFD700 100%);
    color: white;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    font-weight: 600;
}

.cta-button:hover {
    background: linear-gradient(135deg, #FF8C00, #FF4500);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

/* 邮箱输入区域 */
.email-input-section {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-email-input {
    flex: 1;
    min-width: 300px;
    padding: 15px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-size: 1.1rem;
    background-color: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-email-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.hero-email-input:focus {
    outline: none;
    border-color: #FFD700;
    background-color: rgba(255,255,255,0.2);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.2);
}

.email-hint {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-top: 10px;
    font-style: italic;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Logo样式 */
.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    filter: drop-shadow(0 2px 8px rgba(255,107,53,0.3));
}

.hero-logo {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 10px 30px rgba(255,107,53,0.4));
    animation: logoFloat 3s ease-in-out infinite;
}

.web-logo-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.3));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.placeholder-image {
    width: 300px;
    height: 300px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px dashed rgba(255,255,255,0.3);
}

/* 通用部分样式 */
.section {
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

/* 关于部分 */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #3498db;
}

/* 服务部分 */
.services-section {
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}


/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    border-top: 3px solid #FF8C00;
}

/* 响应式设计 - 平板设备 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 20px;
        justify-content: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 60px 20px;
    }


    .section {
        padding: 60px 20px;
    }

    .section h2 {
        font-size: 2rem;
    }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .nav-logo h2 {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .placeholder-image {
        width: 250px;
        height: 250px;
    }

    .hero-logo {
        width: 150px;
        height: 150px;
    }

    .email-input-section {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-email-input {
        min-width: auto;
        width: 100%;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 100%;
        max-width: 300px;
    }

    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-card,
    .service-card {
        padding: 30px 20px;
    }

    .section {
        padding: 40px 15px;
    }

    .section h2 {
        font-size: 1.8rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-card,
.service-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* 按钮点击效果 */
.cta-button:active,
.contact-form button:active {
    transform: scale(0.95);
}

/* 交易部分样式 */
.trading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.trading-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.trading-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.2);
    border-color: #FF8C00;
}

.trading-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.trading-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* 市場部分样式 */
.markets-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
}

.markets-section h2 {
    color: white;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.market-card {
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,140,0,0.1));
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,140,0,0.3);
    transition: all 0.3s ease;
}

.market-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,140,0,0.2));
    border-color: rgba(255,215,0,0.5);
    box-shadow: 0 8px 25px rgba(255,140,0,0.2);
}

.market-symbol {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFD700;
}

.market-price {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.market-change {
    font-size: 1rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.market-change.positive {
    background-color: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.market-change.negative {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* 实时数据动画效果 */
.market-volume {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.live-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #27ae60;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

.price-updating {
    animation: priceFlash 0.5s ease-in-out;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes priceFlash {
    0% { background-color: transparent; }
    50% { background-color: rgba(255, 215, 0, 0.2); }
    100% { background-color: transparent; }
}

/* 价格变化指示器 */
.market-card.price-up {
    border-color: rgba(39, 174, 96, 0.5);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.2);
}

.market-card.price-down {
    border-color: rgba(231, 76, 60, 0.5);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.2);
}

/* 下载部分样式 */
.download-section {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 50%, #FF4500 100%);
    color: white;
}

.download-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 15px;
}

.download-section p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 200px;
}

.download-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.web-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-color: #ff6b35;
    position: relative;
    overflow: hidden;
}

.web-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.web-btn:hover::before {
    left: 100%;
}

.web-btn:hover {
    background: linear-gradient(135deg, #ff7b45, #ffa31e);
    border-color: #ff7b45;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255,107,53,0.3);
}

.download-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-icon svg {
    width: 40px;
    height: 40px;
    color: currentColor;
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.download-version {
    font-size: 0.9rem;
    opacity: 0.8;
}

.download-info {
    text-align: center;
}

.download-info p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

/* FTK主题色彩 - 基于logo的黄色橙色渐变 */
