@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #f7f7f7;
    color: #1e293b;
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ========== 头部 & 导航 (移动优先优化) ========== */
.header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.2s;
}

.nav {
    position: relative;  /* 为下拉菜单提供定位基准 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: #3ec8b5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(62, 200, 181, 0.2);
}

.logo strong {
    font-size: 18px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.logo small {
    color: #7c8ba0;
    font-size: 11px;
    font-weight: normal;
    white-space: nowrap;
}

/* 桌面端菜单样式 */
.menu {
    display: flex;
    gap: 32px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.menu a {
    color: #334155;
    font-weight: 500;
    font-size: 15px;
    transition: 0.2s;
    padding: 6px 0;
    position: relative;
}

.menu a:hover {
    color: #3ec8b5;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.consult-btn {
    background: #3ec8b5;
    color: #fff;
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.25s;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(62, 200, 181, 0.2);
}

.consult-btn:hover {
    background: #31b19f;
    transform: translateY(-1px);
}

/* 汉堡按钮默认隐藏 (仅移动显示) */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: #3ec8b5;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 30px;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.hamburger:active {
    background: rgba(62, 200, 181, 0.1);
}

/* ========== 移动端专属样式 ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav {
        padding: 10px 0;
        gap: 8px;
    }

    /* 隐藏头部在线咨询按钮 */
    .header-right .consult-btn {
        display: none;
    }

    /* 调整右侧区域：仅显示汉堡菜单，并和logo保持同行右对齐 */
    .header-right {
        width: auto;
        margin: 0;
        justify-content: flex-end;
        flex: 0 0 auto;
    }

    /* 汉堡菜单按钮显示 */
    .hamburger {
        display: flex;
    }

    /* 桌面菜单转为全屏下拉 */
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
        border-top: 1px solid #edf2f7;
        z-index: 1050;
        padding: 8px 0;
        border-radius: 0 0 24px 24px;
    }

    .menu.show {
        display: flex;
    }

    .menu a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        text-align: center;
        font-size: 16px;
        border-bottom: 1px solid #f0f2f5;
        font-weight: 500;
        color: #1e293b;
    }

    .menu a:last-child {
        border-bottom: none;
    }

    .menu a:active {
        background: #f8fafc;
    }
    
    /* footer */
    .footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 24px 0;
    }

    /* 悬浮按钮调整大小与距离 */
    .float {
        right: 12px;
        bottom: 20px;
        gap: 12px;
    }

    .float a {
        width: 48px;
        height: 48px;
        border-radius: 28px;
        font-size: 22px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    /* 防止logo文字换行 */
    .logo strong, .logo small {
        white-space: nowrap;
    }
    .logo {
        flex-wrap: nowrap;
    }
}


/* Footer */
footer {
    margin-top: 40px;
    background: #ffffff;
    border-top: 1px solid #eef2f6;
    padding: 28px 0;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer strong {
    color: #2d3a5e;
}

/* 悬浮联系组件 */
.float {
    position: fixed;
    right: 20px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 998;
}

.float a {
    width: 52px;
    height: 52px;
    border-radius: 30px;
    background: #3ec8b5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    transition: 0.2s;
    backdrop-filter: blur(2px);
}

.float a:active {
    transform: scale(0.94);
    background: #2ba191;
}

.custom-icon {
    width: 52px;
    height: 52px;
    display: block;
    object-fit: contain;
}

/* 辅助点击效果 */
button, .btn, .consult-btn, .float a, .menu a {
    cursor: pointer;
}

/* 平滑滚动兼容 */
html {
    scroll-behavior: smooth;
}

/* 修正滚动条美观 */
.market-card::-webkit-scrollbar {
    height: 5px;
}

.market-card::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
}

.market-card::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.disclaimer {
    font-size: 11px;
    color: #8a99b0;
    text-align: center;
    margin-top: 16px;
    line-height: 1.4;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

