:root {
    --primary-color: #FFAD0A;
    --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('../images/banner.png');
    background-size: cover;
    background-position: center;
    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;
    padding: 0.5vw;
    background: white;
}

.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: #c19b2a;
    border-color: #c19b2a;
}

.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%, #FFAD0A);
    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);
}

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

    /* 移动端禁用全屏滚动 */
    body {
        height: auto;
        overflow-y: auto;
        scroll-snap-type: none;
    }

    /* 电脑端/移动端视图切换 */
    .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;
    }

    /* ============== 移动端 Hero 样式（参考 foca-mid） ============== */
    .mobile-hero {
        width: 100%;
        overflow: hidden;
    }

    .mobile-slider-wrapper {
        overflow: hidden;
        touch-action: pan-y pinch-zoom;
    }

    .mobile-slider-container {
        display: flex;
        width: 400%;
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .m-section {
        width: 25%;
        flex-shrink: 0;
        height: 122.245vw;
        background-size: cover;
        background-position: center;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        color: white;
    }

    .m-section-1 {
        background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.7)),
        url('../images/banner.png');
        background-size: cover;
        background-position: center;
    }

    .m-section .hero-title {
        font-size: 8vw;
        font-weight: bold;
        line-height: 1.4;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
        padding: 0 5vw;
    }

    .m-section .hero-subtitle {
        font-size: 3.5vw;
        opacity: 0.9;
        padding: 0 8vw;
        margin-top: 3vw;
    }

    /* 移动端信息区域 */
    .mobile-info-section {
        background-color: #f4f4f4;
        color: #333;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4.63vw;
        padding: 8vw 4vw;
        min-height: calc(100vh - 122.245vw);
    }

    .mobile-info-section .info-logo {
        width: 20vw;
        height: 20vw;
        border-radius: 4vw;
        object-fit: contain;
    }

    .mobile-info-section .info-text {
        font-size: 3.5vw;
        color: #666666;
        text-align: center;
        line-height: 1.6;
    }

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

    .m-button .arrow {
        width: 2.5vw;
        height: 4vw;
        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%, #FFAD0A);
        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;
}
