/* 全局样式 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* 页面加载优化 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* 页面加载时的过渡效果 */
.page-transition {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.page-transition.loaded {
    opacity: 1;
}

/* Banner Section */
.banner {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    min-height: 500px;
    display: flex;
    align-items: center;
}

.banner h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* 实时报价卡片 */
.live-quotes .card {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.live-quotes .card:hover {
    transform: translateY(-5px);
}

.live-quotes .card-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.live-quotes .card-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 平台优势卡片 */
.platform-features .card {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.platform-features .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.platform-features .card-body {
    padding: 2rem;
}

.platform-features .fa-3x {
    color: var(--primary-color);
}

/* MT5平台部分 */
.mt5-platform {
    background-color: #f8f9fa;
}

.mt5-platform img {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 三步交易部分 */
.trading-steps .card {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.trading-steps .card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .banner {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .banner h1 {
        font-size: 2.5rem;
    }
    
    .banner img {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .banner h1 {
        font-size: 2rem;
    }
    
    .platform-features .card-body {
        padding: 1.5rem;
    }
}

/* 导航栏样式 */
.navbar {
    padding: 1rem 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
}

/* 语言选择器样式 */
.language-selector {
    border-bottom: 1px solid #e9ecef;
}

.form-select-sm {
    padding: 0.25rem 2rem 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* 页脚样式 */
footer {
    /*height: 284px;*/
    background-color: var(--dark-color);
}

footer h5 {
    color: var(--light-color);
    margin-bottom: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 工具类 */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 表单样式 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

/* Market Page Styles */
.market-overview .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.market-overview .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.market-overview .card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.market-overview .card-text {
    color: #666;
    margin-bottom: 1.5rem;
}

.market-overview .list-unstyled li {
    margin-bottom: 0.5rem;
    color: #555;
}

.market-overview .fa-check {
    color: var(--success-color);
}

.contract-specs {
    background-color: #f8f9fa;
}

.contract-specs .table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contract-specs .table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    border: none;
}

.contract-specs .table td {
    vertical-align: middle;
    border: 1px solid #dee2e6;
}

.contract-specs .table tr:hover {
    background-color: rgba(0,0,0,0.02);
}

@media (max-width: 768px) {
    .market-overview .card {
        margin-bottom: 1rem;
    }
    
    .contract-specs .table-responsive {
        margin: 0 -15px;
    }
}

/* Help Page Styles */
.help-center {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.help-center .input-group {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.help-center .form-control {
    border: 2px solid #e9ecef;
    padding: 1rem;
}

.help-center .form-control:focus {
    border-color: #0d6efd;
    box-shadow: none;
}

.help-center .btn {
    padding: 1rem 2rem;
}

/* FAQ Styles */
.faq .accordion-item {
    border: none;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq .accordion-button {
    padding: 1.25rem;
    font-weight: 500;
    background-color: #fff;
}

.faq .accordion-button:not(.collapsed) {
    color: #0d6efd;
    background-color: #f8f9fa;
}

.faq .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.faq .accordion-body {
    padding: 1.25rem;
    background-color: #fff;
}

/* Contact Support Styles */
.contact-support .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-support .card:hover {
    transform: translateY(-5px);
}

.contact-support .card-body {
    padding: 2rem;
}

.contact-support .fa-3x {
    color: #0d6efd;
}

.contact-support .btn {
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
}

/* User Guides Styles */
.user-guides .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.user-guides .card:hover {
    transform: translateY(-5px);
}

.user-guides .card-body {
    padding: 2rem;
}

.user-guides .card-title {
    color: #212529;
    margin-bottom: 1rem;
}

.user-guides .card-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.user-guides .btn-outline-primary {
    padding: 0.75rem 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .help-center .input-group {
        flex-direction: column;
    }

    .help-center .btn {
        width: 100%;
        margin-top: 1rem;
    }

    .contact-support .card,
    .user-guides .card {
        margin-bottom: 1rem;
    }
}

/* 价格页面样式 */
.price {
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table td {
    vertical-align: middle;
}

/* 价格变化动画 */
@keyframes price-up {
    0% { background-color: rgba(40, 167, 69, 0.1); }
    100% { background-color: transparent; }
}

@keyframes price-down {
    0% { background-color: rgba(220, 53, 69, 0.1); }
    100% { background-color: transparent; }
}

.price-up {
    animation: price-up 1s ease-out;
}

.price-down {
    animation: price-down 1s ease-out;
}

/* 标签页样式 */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    margin-right: 0.5rem;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: #0d6efd;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border: none;
    border-bottom: 2px solid #0d6efd;
    margin-bottom: -2px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .table-responsive {
        margin: 0 -1rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* 交易按钮样式 */
.btn-primary {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* DataTables 自定义样式 */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 1rem;
}

/* 表格悬停效果 */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.announcement-content {
    line-height: 1.8;
    color: #333;
}

.announcement-content h5 {
    color: #0d6efd;
    font-weight: 600;
    margin-top: 2rem;
}

.announcement-content ul,
.announcement-content ol {
    padding-left: 1.5rem;
}

.announcement-content li {
    margin-bottom: 0.5rem;
}

.announcement-content table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.announcement-content table td,
.announcement-content table th {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: center;
}

.announcement-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.announcement-content strong {
    color: #0d6efd;
} 