/* =========================================
   1. 核心变量 & 重置 (Design System)
   ========================================= */
:root {
    --bg-body: #f5f7fa;
    --bg-white: #ffffff;
    --bg-gray: #f7f9fc;
    --text-main: #0a0b0d;
    --text-muted: #5e6473;

    /* 更小、更锐利的圆角，提升专业商务感 */
    --card-radius: 4px;
    --btn-radius: 2px;

    /* 核心颜色 */
    --profit-green: #00d16c;
    /* 象征盈利的亮绿色 */
    --profit-hover: #00b05b;
    --loss-red: #ff3b30;
    --dark-blue: #030b1c;
    /* 历史卡片深蓝背景 */
    --footer-bg: #0b0c10;

    /* 阴影 */
    --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: clip; 
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

/* 核心容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 背景交替设计 */
.section-gap {
    padding: 80px 0;
}

.bg-white {
    background-color: var(--bg-white);
}

.bg-gray {
    background-color: var(--bg-gray);
}

/* 标题浅绿色下划线高亮特效 */
.title-hl {
    background: linear-gradient(transparent 60%, rgba(0, 209, 108, 0.4) 60%);
    display: inline;
}

/* === 按钮系统 === */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: var(--btn-radius);
    /* 普通按钮保持锐利 */
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: var(--profit-green);
    color: #000;
}

.btn:hover {
    background: var(--profit-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 209, 108, 0.3);
}

/* 专属的完全圆角类，仅应用于 Line 相关按钮 */
.btn-pill {
    border-radius: 50px !important;
}

/* =========================================
   2. 顶部导航 (Navigation)
   ========================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #1e222d;
    z-index: 1000;
    padding: 8px 0;
    border-top: 3px solid var(--profit-green);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    height: 26px;
    width: auto;
}

.nav-links a {
    font-weight: 600;
    color: #ffffff;
    margin-right: 24px;
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--profit-green);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    position: relative;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    padding: 0 12px;
    height: 32px;
    /* 固定高度 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: var(--btn-radius);
    box-sizing: border-box;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--card-radius);
    overflow: hidden;
    display: none;
    flex-direction: column;
    width: 120px;
    color: var(--text-main);
    padding-top: 4px;
    /* 增加微小内边距，配合伪元素桥接 */
}

.lang-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: -1;
    /* 透明桥梁，防止鼠标滑出 */
}

.lang-switch:hover .lang-dropdown {
    display: flex;
}

.lang-opt {
    padding: 12px 16px;
    transition: 0.2s;
}

.lang-opt:hover {
    background: #f0f2f5;
    color: var(--profit-green);
}

.nav-line-btn {
    height: 32px;
    /* 固定高度 */
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-sizing: border-box;
}

/* =========================================
   Footer
   ========================================= */
footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 80px 0 40px;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-left {
    max-width: 300px;
}

.footer-logo {
    height: 36px;
    margin-bottom: 20px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    transition: 0.2s;
}

.footer-col a:hover {
    color: var(--profit-green);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: space-between;
}

/* =========================================
   手机端悬浮按钮
   ========================================= */
.mobile-float {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    width: calc(100% - 48px);
    max-width: 400px;
    background: var(--profit-green);
    color: #000;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 209, 108, 0.4);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-float.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 209, 108, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 209, 108, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 209, 108, 0);
    }
}

.mobile-float.show {
    animation: pulse-green 2s infinite;
}

.mobile-float:active {
    transform: translateX(-50%) scale(0.96);
    animation: none;
}

/* =========================================
   响应式适配 (公共部分)
   ========================================= */
@media (max-width: 900px) {
    .footer-inner {
        flex-direction: column;
        text-align: left;
        gap: 40px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-left {
        gap: 15px;
    }

    .nav-logo {
        height: 22px;
    }

    .nav-right {
        gap: 10px;
    }

    .nav-line-btn {
        display: inline-flex;
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .mobile-float {
        display: block;
    }
}

/* =========================================
   全局 Toast 弹窗提示
   ========================================= */
.global-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(30, 34, 45, 0.95);
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.global-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}