:root {
    --primary: #F9A643;
    --primary-hover: #e6953a;
    --text-dark: #343434;
    --text-gray: #79828B;
    --text-muted: #666;
    --bg-light: #f8f8f8;
    --bg-cream: #f9e6c4;
    --white: #fff;
    --dark: #333;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.6;
    color: var(--text-dark);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(18px, 2.2vw, 22px) clamp(40px, 6vw, 100px);
    background: linear-gradient(99deg, #E3EDFF 1.31%, #B3CAFF 96.63%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: clamp(17px, 1.8vw, 19px);
    text-decoration: none;
    color: #1A1A1A;
}
.logo img {
    width: clamp(38px, 3.8vw, 44px);
    height: clamp(38px, 3.8vw, 44px);
    border-radius: 6px;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(24px, 3.5vw, 48px);
    margin: 0;
    padding: 0;
}
.nav-menu a {
    text-decoration: none;
    color: #333333;
    font-size: clamp(14px, 1.35vw, 15px);
    font-weight: 400;
    transition: color 0.3s;
}
.nav-menu a:hover, .nav-menu a.active {
    color: #2470FF;
    font-weight: 500;
}
.lang-selector { position: relative; }
.lang-toggle {
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lang-toggle:hover { background: rgba(255, 143, 40, 0.08); }
.lang-toggle img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}
.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    min-width: 150px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 8px 0;
}
.lang-dropdown.open { display: block; }
.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.lang-option:hover { background: #f5f5f5; }
.lang-option-left { display: flex; align-items: center; gap: 10px; }
.lang-flag { width: 20px; height: 15px; object-fit: contain; }
.lang-check { color: #2470FF; font-weight: bold; opacity: 0; }
.lang-option.selected .lang-check { opacity: 1; }

/* Hero Section - Flexbox 两列布局 */
.hero {
    background: linear-gradient(99deg, #E3EDFF 1.31%, #B3CAFF 96.63%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(40px, 6vw, 80px);
    padding: clamp(60px, 8vw, 100px) clamp(80px, 10vw, 150px);
    min-height: clamp(600px, 70vh, 800px);
}

/* Hero 文字内容区域 */
.hero-content {
    flex: 0 1 auto;
    max-width: 540px;
    text-align: left;
}
.hero h1 {
    font-size: clamp(36px, 5.5vw, 48px);
    color: #1A1A1A;
    margin-bottom: clamp(24px, 3.2vw, 28px);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.hero p {
    font-size: clamp(15px, 1.65vw, 18px);
    color: #666666;
    max-width: 500px;
    margin-bottom: clamp(36px, 4.5vw, 44px);
    line-height: 1.7;
    font-weight: 400;
}

/* Hero 图片区域 */
.hero-image {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 50%;
    position: relative; /* 为浮动卡片提供定位上下文 */
}
.hero-image img {
    width: 100%;
    height: auto;
    max-width: 600px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 1;
}

/* 浮动功能卡片样式 */
/* rem单位换算: 1rem = 16px */
.feature-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(0.625rem); /* 10px */
    -webkit-backdrop-filter: blur(0.625rem);
    border-radius: 1rem; /* 16px */
    padding: 1rem 1.25rem; /* 16px 20px */
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12); /* 0 8px 24px */
    display: flex;
    align-items: flex-start;
    gap: 0.75rem; /* 12px */
    z-index: 2;
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 0.0625rem solid rgba(255, 255, 255, 0.8); /* 1px */
}

.feature-card:hover {
    transform: translateY(-0.25rem) !important; /* -4px */
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.18); /* 0 12px 32px */
}

.card-icon {
    font-size: 1.25rem; /* 20px */
    flex-shrink: 0;
    width: 2rem; /* 32px */
    height: 2rem; /* 32px */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2470FF;
    border-radius: 0.5rem; /* 8px */
}

.card-text {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.4;
    margin: 0;
}

.card-subtitle {
    font-size: 0.75rem; /* 12px */
    color: #666666;
    line-height: 1.5;
    margin: 0.25rem 0 0 0; /* 4px 0 0 0 */
}

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* 各卡片的具体位置和动画延迟 - 使用calc()实现响应式定位 */
.card-1 {
    top: 8%;
    left:-4%;
    max-width:300px;
    animation-delay: 0s;
}

.card-2 {
    top: 18%;
    right: -20%;
    max-width: 300px;
    animation-delay: 0.5s;
}

.card-3 {
    top: 38%;
    left: -10%;
    max-width: 250px;
    animation-delay: 1s;
}

.card-4 {
    top: 48%;
    right: -4% ;
    max-width: 200px;
    animation-delay: 1.5s;
}

.card-5 {
    top: 62%;
    left:0%;
    max-width: 170px;
    animation-delay: 2s;
}

.card-6 {
    top: 68%;
    right:-6%;
    max-width: 170px;
    animation-delay: 2.5s;
}

.card-7 {
    bottom: 12%;
    left: 12%;
    max-width: 160px;
    animation-delay: 3s;
}

.card-8 {
    bottom: 8%;
    right: -2%;
    max-width:260px;
    animation-delay: 3.5s;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: clamp(13px, 1.7vw, 14px) clamp(32px, 3.8vw, 44px);
    background: #2470FF;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: clamp(14px, 1.45vw, 16px);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(255, 143, 40, 0.25);
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 143, 40, 0.35);
}
.cta-btn::after {
    content: "→";
    transition: transform 0.3s;
    font-size: 1.15em;
}
.cta-btn:hover::after { transform: translateX(4px); }

/* Features Section */
.features {
    padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 40px);
    background: var(--white);
    text-align: center;
}
.section-title {
    font-size: clamp(24px, 4vw, 48px);
    color: var(--text-dark);
    margin-bottom: 12px;
}
.section-subtitle {
    font-size: clamp(14px, 2vw, 24px);
    color: var(--text-dark);
    margin-bottom: clamp(30px, 4vw, 50px);
}
.phone-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 50px);
    max-width: 1440px;
    margin: 0 auto;
}
.phone-img {
    width: clamp(220px, 28vw, 360px);
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.phone-img:hover {
    transform: translateY(-8px);
}

/* Wallet Section */
.wallet {
    margin: 0 auto;
    max-width: 1440px;
    background: linear-gradient(96deg, #D3E0FF 4.12%, #B3CAFF 108.26%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px;
    gap: 40px;
}
.wallet-text { flex: 1; text-align: left; }
.wallet-text h2 {
    font-size: clamp(24px, 4vw, 48px);
    color: var(--text-dark);
    margin-bottom: 16px;
}
.wallet-text p {
    font-size: clamp(14px, 1.8vw, 20px);
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.6;
}
.wallet-image { flex: 0 0 auto; }
.wallet-image img {
    height: clamp(200px, 35vw, 450px);
    width: auto;
}

/* Download Section */
.download {
    padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 60px);
    text-align: center;
}
.download-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 2.5vw, 24px);
    margin-top: clamp(30px, 4vw, 50px);
    margin-bottom: clamp(40px, 5vw, 60px);
    flex-wrap: wrap;
}
.download-icon-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: clamp(100px, 12vw, 120px);
    height: clamp(100px, 12vw, 120px);
    background: #2470FF;
    border-radius: clamp(16px, 2vw, 20px);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: clamp(12px, 1.5vw, 16px);
}
.download-icon-btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 35px rgba(249, 166, 67, 0.4);
}
.download-icon-badge {
    position: absolute;
    top: clamp(8px, 1vw, 12px);
    right: clamp(8px, 1vw, 12px);
    width: clamp(20px, 2.5vw, 24px);
    height: clamp(20px, 2.5vw, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.download-icon-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.download-icon-btn img {
    width: clamp(24px, 5vw, 36px);
    width: clamp(24px, 5vw, 36px);
    margin-bottom: clamp(8px, 1vw, 12px);
    filter: brightness(0) invert(1);
}
.download-icon-label {
    color: var(--white);
    font-size: clamp(12px, 1.4vw, 14px);
    font-weight: 600;
    text-align: center;
}
.download-devices {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 clamp(20px, 4vw, 40px);
}
.download-devices img {
    width: 100%;
    max-width: 1344px;
    height: auto;
}

/* Web Chat Section */
.webchat {
    padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 60px) clamp(10px, 8vw, 10px) clamp(20px, 5vw, 60px);
    text-align: center;
    overflow: hidden;
}
.webchat-content {
    max-width: 1440px;
    margin: 0 auto;
}
.webchat-btn {
    margin-bottom: clamp(30px, 4vw, 50px);
}
.webchat-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.webchat-image {
    position: relative;
    z-index: 2;
    max-width: 100%;
}
.webchat-image img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 16px;
}
/* Footer */
.footer {
    padding: clamp(30px, 4vw, 50px) clamp(20px, 5vw, 60px);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1440px;
    margin: 0 auto;
}
.footer-left { flex-shrink: 0; }
.footer .logo { margin-bottom: 16px; }
.social-links { display: flex; gap: 20px; margin-bottom: 16px; }
.social-links a { display: block; }
.social-links img { width: 28px; height: 28px; }
.copyright { font-size: 12px; color: var(--text-gray); }
.footer-nav { display: flex; gap: clamp(30px, 5vw, 60px); }
.footer-nav ul { list-style: none; }
.footer-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 500;
}
.footer-nav a:hover { color: var(--primary); }

/* Responsive */
/* 1500px屏幕宽度的浮动卡片调整 */
@media (max-width: 1500px) and (min-width: 1201px) {
    /* 字体大小减小2px */
    .card-title {
        font-size: 0.75rem; /* 12px (原14px - 2px) */
    }
    .card-subtitle {
        font-size: 0.625rem; /* 10px (原12px - 2px) */
    }

    /* 重新定位所有卡片 */
    .card-1 {
        top: 6%;
        left: -26%;
        max-width: 240px;
    }
    .card-2 {
        top: 16%;
        right: -26%;
        max-width: 280px;
    }
    .card-3 {
        top: 36%;
        left: -22%;
        max-width: 260px;
    }
    .card-4 {
        top: 46%;
        right: -15%;
        max-width: 180px;
    }
    .card-5 {
        top: 60%;
        left: -6%;
        max-width: 170px;
    }
    .card-6 {
        top: 66%;
        right: -16%;
        max-width: 170px;
    }
    .card-7 {
        bottom: 14%;
        left: 0%;
        max-width: 160px;
    }
    .card-8 {
        bottom: 10%;
        right: -20%;
        max-width: 220px;
    }
}

/* 大屏幕平板设备 (1200px 以下) */
@media (max-width: 1200px) {
    /* 小于等于1200px时隐藏所有浮动卡片 */
    .feature-card {
        display: none;
    }
}

/* 平板设备 (1024px 以下) */
@media (max-width: 1024px) {
    .hero {
        padding: clamp(50px, 6vw, 80px) clamp(40px, 6vw, 60px);
        gap: clamp(30px, 4vw, 50px);
    }
    .hero-content {
        max-width: 480px;
    }
    .hero-image {
        max-width: 45%;
    }
}

/* 移动设备 (768px 以下) - 垂直堆叠布局 */
@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        gap: 12px 16px;
        padding: clamp(12px, 3vw, 16px) clamp(20px, 4vw, 24px);
    }
    .header nav {
        order: 3;
        width: 100%;
    }
    .nav-menu {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero 垂直堆叠：文字在上，图片在下 */
    .hero {
        flex-direction: column;
        padding: clamp(40px, 8vw, 60px) clamp(20px, 5vw, 30px);
        gap: clamp(30px, 6vw, 40px);
        min-height: auto;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero h1 {
        font-size: clamp(28px, 7vw, 36px);
    }
    .hero p {
        font-size: clamp(14px, 4vw, 16px);
        max-width: 100%;
    }

    /* 图片区域在移动端占满宽度 */
    .hero-image {
        max-width: 100%;
        width: 100%;
    }
    .hero-image img {
        max-width: 100%;
        width: 100%;
    }

    .wallet { flex-direction: column; text-align: center; }
    .wallet-text { text-align: center; }
    .wallet-text p { max-width: 100%; }
    .download-icons {
        gap: clamp(10px, 2vw, 16px);
    }
    .download-icon-btn {
        width: clamp(80px, 18vw, 100px);
        height: clamp(80px, 18vw, 100px);
        padding: clamp(8px, 1vw, 12px);
    }
    .download-icon-btn img {
        width: clamp(32px, 6vw, 40px);
        height: clamp(32px, 6vw, 40px);
    }
    .download-icon-label {
        font-size: clamp(10px, 1.2vw, 12px);
    }
    .footer { flex-direction: column; align-items: center; text-align: center; }
    .footer-nav { flex-wrap: wrap; justify-content: center; }

    .lang-selector {
        margin-left: auto;
    }
    .lang-dropdown {
        position: fixed;
        top: clamp(58px, 14vw, 76px);
        right: 16px;
        left: auto;
        width: 150px;
        min-width: 150px;
        max-width: calc(100vw - 32px);
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        z-index: 2000;
    }
    .lang-option {
        min-height: 44px;
    }
}