:root {
    --primary-color: #ff6101;
    --secondary-color: #1a1a2e;
    --accent-color: #16213e;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

html {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--dark-color);
    margin: 0;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    /* Firefox */
}

body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

/* 全屏区块通用样式 */
.full-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    position: relative;
}

/* Nav Active 样式 */
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
}

.logo img {
    height: auto;
    width: 200px;
}

/* PC端显示，移动端隐藏 */
.pcpc {
    display: block;
}

.wapwap {
    display: none;
}

/* 响应式：移动端切换 logo */
@media (max-width: 768px) {
    .pcpc {
        display: none;
    }

    .wapwap {
        display: block;
    }

    .logo img {
        max-height: 35px;
        width: auto;
    }
}

.navbar {
    background-color: var(--secondary-color);
    z-index: 1000;
}

.navbar.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

ul.navbar-nav.ms-auto,
.nav-item {
    position: relative;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Hero Section - 全屏横幅 */
.hero-section {
    background: linear-gradient(rgba(26, 26, 46, 0.8), rgba(26, 26, 46, 0.8)),
        url('https://cdn.ytrwl.top/source/images/anto/logo-new/banner/banner_pc.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero-section .container {
    max-width: 800px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hero 内容样式 */
.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-desc {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Hero 二维码样式 */
.hero-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2vw;
}

.hero-qrcode img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hero-qrcode img:hover {
    transform: scale(1.05);
}

/* 二维码骨架屏 */
.hero-qrcode img.skeleton {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.qrcode-text {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* 移动端 Hero 样式 */
@media (max-width: 1080px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.85rem;
    }

    .hero-qrcode img {
        width: 120px;
        height: 120px;
    }

    .qrcode-text {
        font-size: 0.9rem;
    }
}

/* 内容区块 - 全屏样式 */
.content-section {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 80px 0;
    box-sizing: border-box;
    overflow-y: auto;
}

.content-section .container {
    max-width: 1200px;
    width: 100%;
}

.img-fluid {
    width: 100%;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    text-align: center;
}

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

.feature-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.price-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.price-up {
    color: #28a745;
}

.price-down {
    color: #dc3545;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.faq-question {
    background-color: var(--light-color);
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 1.5rem;
    background-color: white;
    display: none;
}

.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0 1.5rem;
    scroll-snap-align: start;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-color);
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 600;
}

.btn-primary-custom:hover {
    background-color: #e55800;
    border-color: #e55800;
}

/* 查看详细行情按钮包装器 */
.price-btn-wrapper {
    position: relative;
    display: inline-block;
}

/* 二维码弹出层 */
.price-qrcode-popup {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 弹出层箭头（向下指向按钮） */
.price-qrcode-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
}

/* hover 显示二维码 */
.price-btn-wrapper:hover .price-qrcode-popup {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

.price-qrcode-popup img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
}

.price-qrcode-popup img.skeleton {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.price-qrcode-text {
    margin-top: 10px;
    font-size: 12px;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

/* Bottom Bar 样式 - 照搬 foca-mid */
.bottom-bar {
    position: fixed;
    bottom: 2vw;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5vw;
    padding: 0.625vw 0.729vw;
    width: 46.875vw;
    height: 4.167vw;
    justify-content: space-between;
    z-index: 100;
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bottom-bar:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.95);
}

.bottom-bar-app {
    display: flex;
    align-items: center;
    gap: 1vw;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.bottom-bar-app:hover {
    transform: scale(1.05);
}

.bottom-bar-app img {
    width: 2.917vw;
    height: 2.917vw;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bottom-bar-app:hover img {
    transform: rotate(10deg) scale(1.1);
}

.bottom-bar-app span {
    color: var(--secondary-color);
    font-size: 1.458vw;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-bar-app:hover span {
    color: var(--primary-color);
}

.bottom-bar-button {
    width: 12.186vw;
    height: 2.917vw;
    background-image: linear-gradient(270deg, #fc8d56 10%, #ff6101);
    color: #FFFFFF;
    border: none;
    border-radius: 1.458vw;
    font-size: 1.042vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1vw;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bottom-bar-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-bar-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 97, 1, 0.4);
    background-image: linear-gradient(270deg, #ffaa7a 10%, #ff7a1a);
}

.bottom-bar-button:hover::before {
    left: 100%;
}

.bottom-bar-button:active {
    transform: translateY(0) scale(1.02);
}

.bottom-bar-button .arrow {
    width: 0.573vw;
    height: 0.998vw;
    background-image: url('https://mid-cdn.ytrwl.top/images/foca/mid/icon-right.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    transform: none;
    margin-top: 0.25vw;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-bar-button:hover .arrow {
    transform: translateX(5px);
}

/* 移动端在线开户按钮（电脑端隐藏） */
.mobile-open-account-btn {
    display: none;
}

/* ================================================== */
/* ============== 移动端样式 (< 1080px) ============== */
/* ================================================== */
@media (max-width: 1080px) {

    /* 移动端禁止滑动，首屏锁定 */
    html,
    body {
        height: 100vh;
        overflow: hidden !important;
        scroll-snap-type: none;
        position: fixed;
        width: 100%;
    }

    /* 隐藏汉堡菜单按钮 */
    .navbar-toggler {
        display: none !important;
    }

    /* 显示移动端在线开户按钮 */
    .mobile-open-account-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 2vw 4vw;
        color: #fff !important;
        font-size: 3.5vw;
        font-weight: bold;
        border-radius: 5vw;
        text-decoration: none;
        white-space: nowrap;
    }

    .mobile-open-account-btn:hover,
    .mobile-open-account-btn:active {
        background-color: #e55800;
        color: #fff !important;
    }

    /* 电脑端/移动端视图切换 */
    .desktop-view {
        display: none !important;
    }

    .mobile-view {
        display: block !important;
    }

    /* 移动端 hero 隐藏电脑版 */
    .hero-section {
        display: none !important;
    }

    /* 移动端其他区块恢复普通布局 */
    .content-section {
        height: auto;
        min-height: auto;
        scroll-snap-align: none;
        scroll-snap-stop: normal;
        padding: 60px 0;
    }

    .footer {
        scroll-snap-align: none;
    }

    /* 移动端 bottom-bar */
    .bottom-bar {
        display: none !important;
    }

    /* 移动端隐藏首屏以外的所有区块 */
    .content-section,
    .footer,
    #about,
    #products,
    #prices,
    #faq,
    #contact {
        display: none !important;
    }

    /* ============== 移动端 Hero 样式（参考 foca-mid） ============== */
    .mobile-hero {
        width: 100%;
        height: calc(100vh - 56px);
        /* 减去导航栏高度 */
        overflow: hidden;
    }

    .mobile-hero main {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .mobile-slider-wrapper {
        overflow: hidden;
        touch-action: none;
        /* 禁止触摸滑动 */
        flex: 0 0 50%;
        /* 占据45%高度 */
    }

    .mobile-slider-container {
        display: flex;
        width: 100%;
        /* 改为单个滑块 */
        height: 100%;
    }

    .m-section {
        width: 100%;
        flex-shrink: 0;
        height: 100%;
        background-size: cover;
        background-position: center;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        text-align: center;
        color: white;
        padding-bottom: 4vw;
        box-sizing: border-box;
    }

    .m-section-1 {
        background: #f1f1f1;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .m-section .info-logo {
        width: 18vw;
        height: 18vw;
        border-radius: 4vw;
        object-fit: contain;
        margin-bottom: 3vw;
    }

    .m-section .hero-title {
        font-size: 7vw;
        font-weight: bold;
        line-height: 1.3;
        color: #ff6101;
        padding: 0 5vw;
        margin-bottom: 8vw;
    }

    .m-section .hero-subtitle {
        font-size: 4vw;
        opacity: 0.9;
        padding: 0 6vw;
        margin-top: 4vw;
        color: #666666;
        text-align: center;
        line-height: 1.6;
    }

    /* 移动端信息区域 */
    .mobile-info-section {
        background-color: #f1f1f1;
        color: #333;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 8vw;
        padding: 20vw 4vw;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    /* 移动端按钮 */
    .m-button {
        width: 70vw;
        height: 15vw;
        border-radius: 10vw;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3.5vw;
        font-weight: bold;
        gap: 2vw;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .m-button .arrow {
        width: 2vw;
        height: 3.5vw;
        background-image: url('https://mid-cdn.ytrwl.top/images/foca/mid/icon-right.webp');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    /* 下载APP - Border 样式 */
    .btn-open-account {
        background-color: white;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
    }

    .btn-open-account:active {
        background-color: var(--secondary-color);
        color: white;
        transform: scale(0.95);
    }

    /* 前往官网 - 渐变背景 */
    .btn-website {
        background-image: linear-gradient(270deg, #fc8d56 10%, #ff6101);
        color: #FFFFFF;
        border: none;
    }

    .btn-website:active {
        transform: scale(0.95);
    }

    /* 移动端导航栏适配 */
    .navbar {
        padding: 2vw 3vw;
    }
}

/* 电脑端默认显示 */
.mobile-view {
    display: none;
}

/* 确保 hero-section 的 desktop-view 不影响 flex 布局 */
.hero-section.desktop-view {
    display: flex;
}