/* 全局样式 */
:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff6b35;
    --accent-color: #7c3aed;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-card: rgba(26, 26, 26, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 212, 255, 0.2);
    
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--danger-color));
}

/* 移动端优化 */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
        font-size: 16px; /* 防止iOS缩放 */
    }
}

/* 亮色主题 */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --bg-card: rgba(248, 250, 252, 0.8);
    --bg-glass: rgba(0, 0, 0, 0.05);
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 212, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* 导航栏样式 */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    text-decoration: none;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.5rem;
}

.brand-slogan {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid var(--border-color);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

/* 认证按钮样式 */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.auth-buttons .btn {
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    min-width: auto;
}

/* 语言切换器样式 */
.language-switcher {
    flex-shrink: 0;
}

.language-switcher .btn {
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    min-width: auto;
}

/* 主题切换器样式 */
.theme-toggle {
    flex-shrink: 0;
}

.theme-toggle button {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    min-width: auto;
}

.theme-toggle button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-primary);
}

/* 导航栏容器优化 */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.navbar-nav {
    flex-direction: row;
}

/* 汉堡菜单按钮优化 */
.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.375rem 0.75rem;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: var(--bg-glass);
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    transform: rotate(90deg);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .brand-slogan {
        display: none;
    }
    
    .auth-buttons .btn,
    .language-switcher .btn,
    .theme-toggle button {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 992px) {
    .navbar-nav {
        margin-right: 0.5rem;
    }
    
    .auth-buttons {
        gap: 0.25rem;
    }
    
    .auth-buttons .btn,
    .language-switcher .btn,
    .theme-toggle button {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 768px) {
    /* 整体页面宽度优化 */
    .container {
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* 导航栏宽度优化 */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* 确保导航栏默认收起 */
    .navbar-collapse:not(.show) {
        display: none !important;
    }
    
    .navbar-collapse {
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        border-radius: 10px;
        margin-top: 0.75rem;
        padding: 0.75rem;
        text-align: right;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: calc(100vw - 2rem);
    }
    
    .navbar-nav {
        flex-direction: column;
        margin-bottom: 1rem;
        margin-right: 0;
        margin-left: 0 !important;
        margin-start: 0 !important;
    }
    
    .nav-link {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center;
        text-align: right;
    }
    
    /* 移动端按钮组右对齐 */
    .auth-buttons {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-end;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .auth-buttons .btn {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        font-size: 1rem;
        white-space: nowrap;
        transition: all 0.3s ease;
        justify-content: flex-end !important;
    }
    
    .auth-buttons .btn:hover {
        background: var(--bg-glass);
    }
    
    .language-switcher,
    .theme-toggle {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 0.5rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .language-switcher .btn,
    .theme-toggle .btn {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        font-size: 1rem;
        white-space: nowrap;
        transition: all 0.3s ease;
        justify-content: flex-end !important;
    }
    
    .language-switcher .btn:hover,
    .theme-toggle .btn:hover {
        background: var(--bg-glass);
    }
    
    /* 移动端导航栏容器对齐 */
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .navbar-toggler {
        margin-left: auto;
    }
    
    /* 主要内容区域优化 */
    .hero-section {
        padding-top: 70px;
    }
    
    .hero-content {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* 页面整体间距优化 */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}


/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%),
                linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.crypto-animation {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.crypto-icon {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.crypto-icon.btc {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    color: #f7931a;
}

.crypto-icon.eth {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    color: #627eea;
}

.crypto-icon.chart {
    top: 30%;
    right: 30%;
    animation-delay: 4s;
}

.crypto-icon.network {
    bottom: 30%;
    left: 20%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

#networkCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    margin-bottom: 3rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.btn-outline-light {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    background: transparent;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--bg-glass);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-stats {
    padding: 2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trading-dashboard {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-header h5 {
    margin: 0;
    color: var(--text-primary);
}

.status-indicator {
    color: var(--success-color);
    font-size: 0.875rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.signal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.signal-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
}

.signal-item.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.symbol {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.trend {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-weight: 500;
    margin-top: 0.25rem;
    display: inline-block;
}

.trend.long {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.trend.short {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.signal-price {
    font-weight: 600;
    color: var(--primary-color);
}

/* Features Section */
.features-section {
    background: var(--bg-secondary);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    backdrop-filter: blur(20px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.advantage-card {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    margin-bottom: 1rem;
}

.advantage-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.advantage-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.advantage-content p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Pricing Section */
.pricing-section {
    background: var(--bg-primary);
    position: relative;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(20px);
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px var(--shadow-color);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.price {
    margin-bottom: 1rem;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.currency {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
}

.savings {
    color: var(--success-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.pricing-features li i {
    color: var(--success-color);
    margin-right: 0.75rem;
    width: 16px;
}

.payment-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 2rem;
}

/* Auth Section */
.auth-section {
    background: var(--bg-secondary);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.auth-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auth-tabs {
    display: flex;
    background: var(--bg-tertiary);
}

.auth-tab {
    flex: 1;
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.auth-tab.active {
    background: var(--bg-card);
    color: var(--primary-color);
}

.auth-form {
    padding: 2rem;
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--bg-glass);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-check-input {
    background-color: var(--bg-glass);
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--text-secondary);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-password:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-brand h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 整体页面宽度优化 */
    .container {
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* 导航栏优化 */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .brand-slogan {
        display: none;
    }
    
    .navbar-collapse {
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 10px;
        margin-top: 0.75rem;
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        margin-left: 0;
        margin-right: 0;
        text-align: right;
        width: 100%;
        max-width: calc(100vw - 2rem);
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-start: 0 !important;
        margin-end: 0 !important;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center;
    }
    
    .nav-link:hover {
        background: var(--bg-glass);
    }
    
    /* 按钮组优化 - 与导航链接保持一致 */
    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
        justify-content: flex-end;
        align-items: flex-end;
        margin-bottom: 1rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .auth-buttons .btn {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        font-size: 1rem;
        white-space: nowrap;
        transition: all 0.3s ease;
        justify-content: flex-end !important;
    }
    
    .auth-buttons .btn:hover {
        background: var(--bg-glass);
    }
    
    .language-switcher,
    .theme-toggle {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 0.5rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .language-switcher .btn,
    .theme-toggle .btn {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        font-size: 1rem;
        white-space: nowrap;
        transition: all 0.3s ease;
        justify-content: flex-end !important;
    }
    
    .language-switcher .btn:hover,
    .theme-toggle .btn:hover {
        background: var(--bg-glass);
    }
    
    /* 用户菜单优化 */
    .user-menu {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 1rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .user-menu .btn {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        font-size: 1rem;
        white-space: nowrap;
        transition: all 0.3s ease;
        justify-content: flex-end !important;
    }
    
    .user-menu .btn:hover {
        background: var(--bg-glass);
    }
    
    /* 内容区域优化 */
    .hero-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-subtitle {
        text-align: center;
        padding: 0 1rem;
    }
    
    /* 统计数据优化 */
    .hero-stats {
        padding: 1.5rem 1rem;
        margin: 2rem 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* 交易面板优化 */
    .trading-dashboard {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
    
    /* 定价卡片优化 */
    .pricing-card {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    /* 功能卡片优化 */
    .feature-card {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    /* 优势卡片优化 */
    .advantage-card {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .advantage-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    /* 认证表单优化 */
    .auth-container {
        margin: 1rem;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    /* 导航栏小屏优化 */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
        min-height: 44px;
        min-width: 44px;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* 整体页面间距优化 */
    section {
        padding: 3rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* 英雄区域优化 */
     .hero-section {
         min-height: 90vh;
         padding-top: 100px;
         padding-bottom: 2rem;
     }
     
     .hero-content .row {
         text-align: center;
     }
     
     .hero-title {
         font-size: 1.75rem;
         line-height: 1.3;
         margin-bottom: 1rem;
         padding: 0 0.5rem;
     }
     
     .hero-subtitle {
         font-size: 0.95rem;
         margin-bottom: 1.5rem;
         padding: 0 1rem;
         line-height: 1.5;
     }
    
    /* 按钮优化 */
     .btn-lg {
         padding: 0.875rem 2rem;
         font-size: 0.95rem;
         width: 100%;
         margin-bottom: 0.75rem;
         border-radius: 25px;
     }
     
     .hero-cta {
         display: flex;
         flex-direction: column;
         gap: 0.75rem;
         margin-bottom: 2rem;
         padding: 0 1rem;
     }
     
     .hero-cta .btn {
         margin-right: 0 !important;
         min-height: 48px;
         display: flex;
         align-items: center;
         justify-content: center;
     }
    
    /* 统计数据优化 */
     .hero-stats {
         padding: 1.5rem 1rem;
         margin-top: 2rem;
         margin-left: 1rem;
         margin-right: 1rem;
         border-radius: 15px;
     }
     
     .hero-stats .row {
         margin: 0;
     }
     
     .hero-stats .col-4 {
         padding: 0.5rem;
     }
     
     .stat-item {
         text-align: center;
         padding: 0.75rem 0.25rem;
     }
     
     .stat-number {
         font-size: 1.4rem;
         margin-bottom: 0.5rem;
         font-weight: 700;
     }
     
     .stat-label {
         font-size: 0.8rem;
         line-height: 1.3;
         color: var(--text-secondary);
     }
    
    /* 表单和卡片优化 */
     .auth-form {
         padding: 1rem;
         margin: 1rem 0;
     }
     
     .feature-card,
     .pricing-card {
         padding: 1rem;
         margin-bottom: 1rem;
     }
     
     /* 触摸优化 */
     .dropdown-toggle {
         min-height: 44px;
         display: flex;
         align-items: center;
         justify-content: center;
     }
     
     .btn {
         min-height: 44px;
         display: flex;
         align-items: center;
     }
     
     .nav-link {
         min-height: 44px;
         display: flex;
         align-items: center;
     }
     
     /* 间距优化 */
     .container {
         padding-left: 0.75rem;
         padding-right: 0.75rem;
     }
     
     .row {
         margin-left: -0.5rem;
         margin-right: -0.5rem;
     }
     
     .col,
      [class*="col-"] {
          padding-left: 0.5rem;
          padding-right: 0.5rem;
      }
      
      /* 文字可读性优化 */
      p, .text-muted, .text-secondary {
          line-height: 1.6;
      }
      
      /* 卡片间距优化 */
      .card, .feature-card, .pricing-card, .advantage-card {
          margin-bottom: 1.5rem;
      }
      
      /* 滚动优化 */
      .overflow-auto {
          -webkit-overflow-scrolling: touch;
      }
    
    /* 交易面板优化 */
     .trading-dashboard {
         margin-top: 2rem;
         padding: 1.25rem;
         margin-left: 1rem;
         margin-right: 1rem;
         border-radius: 15px;
     }
     
     .hero-visual {
         margin-top: 2rem;
         padding: 0 1rem;
     }
     
     .dashboard-header {
         margin-bottom: 1rem;
         padding-bottom: 0.75rem;
     }
     
     .dashboard-header h5 {
         font-size: 1rem;
     }
     
     .signal-item {
         padding: 0.75rem;
         margin-bottom: 0.5rem;
         border-radius: 8px;
     }
     
     .symbol {
         font-size: 0.9rem;
     }
     
     .signal-price {
         font-size: 0.9rem;
     }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 自定义按钮样式 */
.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

/* 输入组样式 */
.input-group .btn {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.input-group .btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选择文本样式 */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* 使用须知样式 */
.usage-notes-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.usage-notes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.usage-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.usage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.usage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
}

.usage-card:hover::before {
    opacity: 1;
}

.usage-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.usage-card h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.usage-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.usage-steps h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.steps-list {
    list-style: none;
    padding: 0;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.steps-list li i {
    color: var(--success-color);
    margin-right: 0.8rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* 邮箱显示框样式 */
.sender-email-display {
    margin: 1.5rem 0;
}

.email-box {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.email-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.email-box i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.email-box span {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.email-box button {
    transition: all 0.3s ease;
}

.email-box button:hover {
    transform: scale(1.1);
}

/* 配图说明样式 */
.usage-illustration {
    margin-top: 2rem;
}

.illustration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    justify-items: center;
}

.illustration-item {
    text-align: center;
}

.illustration-label {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 手机模拟器样式 */
.phone-mockup {
    width: 200px;
    height: 350px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: 0 auto;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #666;
    border-radius: 2px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-demo {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    backdrop-filter: blur(10px);
}

.notification-demo i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.notification-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* 邮件模拟器样式 */
.email-mockup {
    width: 280px;
    height: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.email-header {
    background: var(--bg-tertiary);
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-header i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.email-header span {
    font-weight: 600;
    color: var(--text-primary);
}

.email-content {
    padding: 20px;
}

.email-from {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.email-from i {
    color: var(--success-color);
    font-size: 1rem;
}

.email-from span {
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.email-subject {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .usage-card {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .usage-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .usage-card h4 {
        font-size: 1.3rem;
    }
    
    .usage-desc {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .steps-list li {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .illustration-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .phone-mockup {
        width: 160px;
        height: 280px;
        padding: 15px;
    }
    
    .email-mockup {
        width: 240px;
        height: 160px;
    }
    
    .email-content {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .usage-card {
        padding: 1rem;
    }
    
    .usage-card h4 {
        font-size: 1.2rem;
    }
    
    .usage-desc {
        font-size: 0.85rem;
    }
    
    .steps-list li {
        font-size: 0.85rem;
    }
}

/* 隐藏A股、美股、黄金的充值选项 */
/* 隐藏美股选项 (value="2") */
input[value="2"][id="usstocks"],
input[value="2"][id="type_us"],
.trading-type-card[onclick="toggleTradingType(2)"],
.card[data-type="2"] {
    display: none !important;
}

/* 隐藏黄金选项 (value="4") */
input[value="4"][id="gold"],
input[value="4"][id="type_gold"],
.trading-type-card[onclick="toggleTradingType(4)"],
.card[data-type="4"] {
    display: none !important;
}

/* 隐藏A股选项 (value="8") */
input[value="8"][id="cnstocks"],
input[value="8"][id="type_cn"],
.trading-type-card[onclick="toggleTradingType(8)"],
.card[data-type="8"] {
    display: none !important;
}