/* --- 核心基础样式 (Base Styles) --- */
:root {
    --primary-color: #0f172a; /* 深蓝 - 信任与稳重 */
    --primary-light: #1e293b;
    --accent-color: #c29b40;  /* 暗金 - 专业金融感 */
    --accent-hover: #a38233;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --text-dark: #334155;
    --bg-light: #ffffff;
    --bg-gray: #f8fafc;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* --- 导航栏 (Navigation) --- */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    white-space: nowrap;
}
.logo span { color: var(--accent-color); }

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a { 
    font-size: 0.95rem; 
    font-weight: 500; 
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

nav a:hover { color: var(--accent-color); }
nav a:hover::after { width: 100%; }

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-btn {
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    border: 1px solid transparent;
}

.cta-btn:hover { 
    background-color: var(--accent-hover); 
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 汉堡菜单按钮 (默认隐藏) */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
    padding: 5px;
}

/* --- 首屏 Hero Section --- */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.7)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* 视差效果 */
    color: white;
    padding: 160px 5% 120px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #cbd5e1;
    font-weight: 300;
}

/* --- 通用区块样式 --- */
section { padding: 100px 5%; }

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* --- 核心价值 (Features) --- */
.features {
    background-color: var(--bg-gray);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 50px 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid transparent;
    transition: var(--transition);
}

.feature-card:hover {
    border-top: 4px solid var(--accent-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-card p {
    color: #64748b;
    line-height: 1.7;
}

/* --- 关于我们 (About) --- */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.8;
}

/* --- 联系方式 (Contact) --- */
.contact-section {
    background-color: #fff;
    text-align: center;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.contact-item:hover {
    transform: scale(1.05);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--bg-gray);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
}

.contact-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-item span {
    color: #64748b;
}

/* --- 页脚 (Footer) --- */
footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 80px 5% 40px;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
    border-bottom: 1px solid #334155;
    padding-bottom: 50px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.footer-col ul li { margin-bottom: 15px; }
.footer-col a:hover { color: var(--accent-color); padding-left: 5px; }

.address-box {
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
    line-height: 1.7;
    border-left: 3px solid var(--accent-color);
}

/* --- 风险披露 (Risk Disclaimer) --- */
.risk-disclosure {
    font-size: 0.8rem;
    line-height: 1.7;
    color: #64748b;
    text-align: justify;
    background-color: #020617;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 30px;
}

/* --- Cookie 弹窗样式 --- */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- 语言选择器 --- */
.lang-selector-container {
    position: relative;
    /* margin-left: 15px; */
}

#language-selector {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

#language-selector:hover {
    background: rgba(255,255,255,0.2);
}

#language-selector option {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- 动画类 --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* --- 移动端适配 (Mobile Responsive) --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    section { padding: 80px 5%; }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1002;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%; /* 默认移出屏幕 */
        width: 70%;
        height: 100vh;
        background-color: var(--primary-color);
        padding: 80px 30px;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        z-index: 1001;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    nav a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 10px;
    }

    /* 遮罩层 */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero {
        padding: 140px 5% 80px;
    }

    .hero h1 { 
        font-size: 2.2rem; 
    }
    
    .hero p {
        font-size: 1.1rem;
    }

    .contact-grid { 
        flex-direction: column; 
        gap: 40px; 
    }
    
    #cookie-banner { 
        flex-direction: column; 
        text-align: center; 
        gap: 15px; 
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
    }

    .header-right {
        /* 在移动端，我们将CTA按钮也放入菜单中或者隐藏，视情况而定 */
        /* 这里选择保留语言切换，隐藏CTA（因为菜单里可以有） */
        display: none; 
    }

    /* 在移动端导航里显示 CTA 和 语言选择 */
    nav .mobile-extras {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
        width: 100%;
    }

    nav .mobile-extras .cta-btn {
        text-align: center;
    }
}
