/* 基础样式优化 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --success-color: #22c55e;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', var(--font-primary);
    --accent-color: #00c087;
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-color);
    margin: 0;
    padding: 0;
}

/* 导航栏优化 */
header {
    background: var(--card-background);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 英雄区域优化 */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
}

.hero h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: var(--text-xl);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto;
}

.stat-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    text-align: center;
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

/* 交易数据展示优化 */
.proof {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.proof-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.proof-stats {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.transaction-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.transaction-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.transaction-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.transaction-pair {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.transaction-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.transaction-right {
    text-align: right;
    flex-shrink: 0;
}

.transaction-profit {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
}

.trading-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 评论区优化 */
.testimonials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonial-item {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* 移动端适配 */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }
    
    nav ul {
        display: none; /* 在移动端隐藏导航菜单 */
    }
    
    .hero h1 {
        font-size: var(--text-3xl);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .stat-item {
        padding: 1rem;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    }
    
    .stat-item .stat-number {
        font-size: 2rem;
    }
    
    .stat-item .stat-label {
        font-size: 1rem;
    }
    
    .proof-content {
        gap: 1rem;
    }
    
    .trading-summary {
        grid-template-columns: 1fr;
    }
    
    .proof-stats {
        padding: 1rem;
    }

    .transaction-item {
        padding: 0.75rem 0;
    }

    .transaction-info {
        display: flex;
        flex-direction: row; /* 保持水平布局 */
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .transaction-left {
        display: flex;
        flex-direction: column; /* 交易对和时间垂直排列 */
        align-items: flex-start;
        gap: 0.25rem;
    }

    .transaction-pair {
        font-size: 0.9rem;
    }

    .transaction-time {
        font-size: 0.8rem;
    }

    .transaction-right {
        text-align: right;
    }

    .transaction-profit {
        font-size: 0.9rem;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .transaction-pair {
        font-size: 0.85rem;
    }

    .transaction-time {
        font-size: 0.75rem;
    }

    .transaction-profit {
        font-size: 0.85rem;
    }
}

/* 动画效果 */
@-webkit-keyframes fadeIn {
    from { opacity: 0; -webkit-transform: translateY(10px); transform: translateY(10px); }
    to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.transaction-item {
    -webkit-animation: fadeIn 0.3s ease-out;
    animation: fadeIn 0.3s ease-out;
}

/* 按钮样式优化 */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-color), #00a870);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 2rem;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 192, 135, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 功能区块优化 */
.features {
    background: var(--background-color);
    padding: 4rem 1rem;
}

.features h2 {
    font-size: var(--text-3xl);
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-item h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-item p {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .features h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
}

/* 数据显示优化 */
.summary-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.profit {
    color: var(--success-color);
    font-weight: bold;
}

.hero::before {
    display: none;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.trust-badge {
    margin-top: 20px;
    color: #81d4fa;
    font-size: 0.9em;
}

.features, .about, .contact {
    padding: 40px 20px;
    text-align: center;
}

form {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

form input, form button {
    padding: 10px;
}

form button {
    background-color: #00aa66;
    color: white;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #008844;
}

footer {
    background-color: #1c1c1c;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0088cc;  /* Telegram的品牌色 */
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2em;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,136,204,0.3);
}

.contact-button:hover {
    background: #0077b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,136,204,0.4);
}

.telegram-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.contact-button:hover .telegram-icon {
    transform: scale(1.1);
}

/* 移除原有的表单样式 */
.contact form {
    display: none;
}

/* 添加触摸设备的交互优化 */
@media (hover: none) {
    .cta-button:hover,
    .contact-button:hover,
    .feature-item:hover,
    .transaction-item:hover,
    .testimonial-item:hover {
        transform: none;
        box-shadow: none;
    }
}

/* 添加到现有CSS文件末尾 */
.loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1a237e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

/* 关于我们部分样式 */
.about {
    background: var(--background-color);
    padding: 4rem 1rem;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-box {
    padding: 1.5rem;
    text-align: center;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.stat-box .stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

.stat-box .stat-label {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-secondary);
}

.about-intro {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 2rem;
    line-height: 1;
}

.feature-text h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.feature-text p {
    margin: 0;
    color: var(--text-secondary);
}

/* 合作伙伴样式更新 */
.about-partners {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.about-partners h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.partner-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.partner-category {
    padding: 1rem;
}

.partner-category h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.partner-link {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.partner-link:hover {
    color: var(--secondary-color);
    transform: translateX(10px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .partner-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .partner-category {
        padding: 0.5rem;
    }
    
    .partner-link {
        font-size: 1rem;
        padding: 0.4rem 0;
    }
    
    .stat-box {
        padding: 1rem;
    }
    
    .stat-box .stat-number {
        font-size: var(--text-2xl);
    }
    
    .stat-box .stat-label {
        font-size: var(--text-base);
    }
}

/* 语言选择器样式 */
.language-selector {
    position: relative;
    margin-left: 2rem;
}

.current-lang {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    background: white;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.current-lang:hover {
    background: #f8f9fa;
    border-color: var(--secondary-color);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    margin-top: 0.5rem;
    display: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.lang-dropdown.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    width: 100%;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-option:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 1rem;
    }
    
    .current-lang {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .lang-option {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* 添加动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}