/* CoinGate Style CSS - Bright Future Theme */
:root {
    /* Bright Future Color Palette */
    --primary-blue: #0066ff;
    --primary-blue-light: #3d8bff;
    --primary-blue-dark: #0052cc;
    --accent-purple: #6366f1;
    --accent-cyan: #06b6d4;
    --bright-bg: #ffffff;
    --bright-bg-secondary: #f8faff;
    --bright-bg-tertiary: #f1f5ff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --success-green: #10b981;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --card-shadow: 0 4px 20px rgba(0, 102, 255, 0.08);
    --card-shadow-hover: 0 8px 40px rgba(0, 102, 255, 0.12);
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #6366f1 100%);
    --gradient-hero: linear-gradient(135deg, #f8faff 0%, #e0f2fe 50%, #f1f5ff 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bright-bg);
    overflow-x: hidden;
    max-width: 100vw;
}

/* 多语言文本适配工具类 */
.text-adaptive {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
}

.text-adaptive-long {
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    line-height: 1.3;
}

/* 防止关键词换行 */
.no-wrap {
    white-space: nowrap;
}

.prevent-break {
    word-break: keep-all;
    hyphens: none;
    /* 允许正常换行但保持词汇完整 */
}

/* 移动端长文本处理 */
.mobile-text-wrap {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* 按钮文本自适应 */
.btn-text-adaptive {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.2;
    min-height: auto;
    height: auto;
    padding: 12px 24px;
}

/* 移动端文本优化 */
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(24px, 5vw, 28px) !important;
        line-height: 1.3 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .section-description {
        font-size: clamp(14px, 3.5vw, 16px) !important;
        line-height: 1.5 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* 特别处理长标题 */
    .section-title.prevent-break {
        word-break: break-word;
        hyphens: auto;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: clamp(20px, 4.5vw, 24px) !important;
        line-height: 1.4 !important;
        padding: 0 8px;
    }
    
    .section-description {
        font-size: clamp(13px, 3vw, 15px) !important;
        line-height: 1.6 !important;
        padding: 0 8px;
    }
    
    /* 特别处理超长文本 */
    .section-title.mobile-text-wrap {
        font-size: clamp(18px, 4vw, 22px) !important;
        line-height: 1.5 !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .section-description.mobile-text-wrap {
        font-size: clamp(12px, 2.8vw, 14px) !important;
        line-height: 1.7 !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* 超小屏幕额外优化 */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .section-title.mobile-text-wrap {
        font-size: clamp(16px, 3.5vw, 20px) !important;
        line-height: 1.6 !important;
    }
    
    .section-description.mobile-text-wrap {
        font-size: clamp(11px, 2.5vw, 13px) !important;
        line-height: 1.8 !important;
    }
    
    .features-section,
    .contact-section {
        padding-left: 4px;
        padding-right: 4px;
    }
}

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

/* Navigation */
.navbar {
    background: var(--gradient-hero);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(248, 250, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 102, 255, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    transition: transform 0.3s ease;
    margin-top: 2px; /* 稍微往下移动 */
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link.dropdown::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.nav-link.dropdown:hover::after {
    transform: rotate(180deg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-toggle {
    background: var(--bright-bg);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.04);
}

.language-toggle:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login {
    background: var(--bright-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.04);
}

.btn-login:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: 1px solid var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
    background: var(--bright-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.04);
}

.btn-secondary:hover {
    background: var(--bright-bg-tertiary);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
}

/* Hero Section - 内容驱动的弹性布局 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    min-height: auto;
    height: auto;
}

.hero-text {
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 24px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: clamp(12px, 2vw, 14px);
    color: var(--accent-purple);
    margin-bottom: 0;
    backdrop-filter: blur(10px);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-title {
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 18px);
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.feature-list {
    list-style: none;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.5vw, 16px);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0;
    font-size: clamp(14px, 2vw, 16px);
    color: var(--text-secondary);
    line-height: 1.4;
}

.feature-item span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    flex: 1;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-icon::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.hero-actions {
    display: flex;
    gap: clamp(12px, 2vw, 16px);
    margin-bottom: 0;
    flex-wrap: wrap;
    align-items: flex-start;
}

.btn-lg {
    padding: clamp(12px, 2.5vw, 16px) clamp(20px, 4vw, 32px);
    font-size: clamp(14px, 2vw, 16px);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.2;
    min-height: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.compliance-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(12px, 1.8vw, 14px);
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.product-preview {
    background: var(--gradient-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
}

.product-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.mockup-dashboard {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.mockup-balance {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.mockup-balance-label {
    font-size: 14px;
    color: var(--text-muted);
}

.mockup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.stat-card {
    background: var(--bright-bg);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.04);
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Trust Section */
.trust-section {
    background: var(--bright-bg-secondary);
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
}

.trust-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Company Logos Slider */
.company-logos {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.logos-track {
    display: flex;
    animation: scroll-logos 30s linear infinite;
    gap: 60px;
    align-items: center;
}

.logo-item {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    height: 40px;
    display: flex;
    align-items: center;
}

.logo-item:hover {
    opacity: 0.9;
}

.logo-item img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.company-logos:hover .logos-track {
    animation-play-state: paused;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--bright-bg);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

/* 移动端section-header优化 */
@media (max-width: 768px) {
    .section-header {
        max-width: 100%;
        margin: 0 auto 60px;
        padding: 0 16px;
    }
}

@media (max-width: 576px) {
    .section-header {
        margin: 0 auto 40px;
        padding: 0 12px;
    }
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* 移动端网格优化 */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 8px;
    }
    
    .feature-card {
        margin: 0 4px;
    }
}

.feature-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-blue);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 20px;
}

.feature-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-card-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--bright-bg-secondary);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    background: var(--bright-bg);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bright-bg);
    border-top: 1px solid var(--border-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links h3 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
}

.icp-beian {
    margin-top: 10px;
    font-size: 14px;
}

.icp-beian a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-beian a:hover {
    color: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        padding: 0 16px;
    }
    
    /* 确保内容不会超出边界 */
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bright-bg);
        border-top: 1px solid var(--border-light);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 4px 20px rgba(0, 102, 255, 0.08);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* 移动端导航右侧优化 */
    .nav-actions {
        gap: 8px;
    }

    .language-toggle {
        padding: 6px 10px;
        font-size: 12px;
        gap: 4px;
        border-radius: 6px;
    }

    .language-toggle i {
        font-size: 12px;
    }

    .btn-login,
    .btn-primary {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 6px;
        min-width: auto;
    }

    .btn-login {
        padding: 6px 12px;
    }

    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(32px, 6vw, 40px);
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: clamp(15px, 2.5vw, 18px);
        line-height: 1.5;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: clamp(10px, 2vw, 12px);
    }

    .btn-lg {
        padding: clamp(10px, 2vw, 14px) clamp(16px, 3vw, 24px);
        font-size: clamp(13px, 2vw, 15px);
        min-width: auto;
        flex: 1;
        max-width: 200px;
    }

    .feature-item {
        font-size: clamp(13px, 2vw, 15px);
        line-height: 1.4;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: clamp(16px, 3vw, 20px);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: clamp(30px, 5vw, 40px);
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 12px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* 超小屏幕额外优化 */
    body {
        overflow-x: hidden;
    }
    
    .features-section,
    .contact-section {
        padding-left: 8px;
        padding-right: 8px;
    }

    .navbar {
        padding: 12px 0;
    }

    .navbar-brand img {
        height: 36px;
    }

    /* 超小屏幕导航优化 */
    .nav-actions {
        gap: 6px;
    }

    .language-toggle {
        padding: 4px 8px;
        font-size: 11px;
        gap: 3px;
    }

    .btn-login {
        padding: 4px 8px;
        font-size: 11px;
    }

    .btn-primary {
        padding: 6px 12px;
        font-size: 11px;
    }

    .mobile-menu-toggle {
        font-size: 18px;
    }

    /* Hero Section - 超小屏幕优化 */
    .hero-section {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero-content {
        gap: clamp(20px, 4vw, 30px);
    }

    .hero-text {
        gap: clamp(10px, 1.5vw, 16px);
    }

    .hero-title {
        font-size: clamp(24px, 5vw, 28px);
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: clamp(14px, 2.2vw, 16px);
        line-height: 1.5;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: clamp(8px, 1.5vw, 12px);
    }

    .btn-lg {
        padding: clamp(10px, 2vw, 12px) clamp(14px, 3vw, 20px);
        font-size: clamp(12px, 2vw, 14px);
        width: 100%;
        max-width: 280px;
    }

    .feature-item {
        font-size: clamp(12px, 2vw, 14px);
        line-height: 1.4;
    }

    .feature-card {
        padding: clamp(16px, 3vw, 20px);
    }

    .section-title {
        font-size: 24px;
    }

    .section-description {
        font-size: 16px;
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; } 