:root {
    --primary-color: #f39c12;
    --secondary-color: #e67e22;
    --bg-dark: #121212;
    --text-light: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', 'Roboto', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-light);
    background: #111;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('../images/bground/9142200.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bground/2209_w018_n002_1281a_p30_1281.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3;
    /* Overlay effect */
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 30%, rgba(243, 156, 18, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(230, 126, 34, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(243, 156, 18, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 20% 80%, rgba(230, 126, 34, 0.05) 0%, transparent 30%);
    animation: rotateBG 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotateBG {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Navbar - Refined Frosted Glass Logic */
.navbar {
    background: transparent !important;
    /* 容器透明，背景由伪元素提供 */
    border-bottom: 1px solid var(--primary-color);
    transition: var(--transition-smooth);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/bground/9142200.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    filter: blur(15px);
    /* 直接模糊背景图 */
    transform: scale(1.1);
    /* 防止边缘模糊留白 */
    z-index: -1;
    opacity: 0.95;
}

/* 增加叠加层以增强“磨砂”质感 */
.navbar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    /* 极细微的白光增强磨砂感 */
    backdrop-filter: blur(30px);
    /* 进一步增强通透度 */
    -webkit-backdrop-filter: blur(30px);
    z-index: -1;
}

.navbar.navbar-shrunk {
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar.navbar-shrunk::before {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/bground/9142200.jpg');
    filter: blur(20px);
}

.navbar-brand {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Dropdown Menu - Frosted Glass Effect */
.dropdown-menu {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: var(--transition-smooth);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color) !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background: var(--primary-color);
    color: #000 !important;
}

.dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 0.4rem;
    opacity: 0.7;
}

/* Mobile Dropdown Adjustments */
@media (max-width: 991.98px) {
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.05);
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        margin-top: 0;
    }
}

.navbar-toggler {
    filter: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-brand img {
    height: 40px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-streaming {
    font-weight: 700 !important;
    background: linear-gradient(120deg, #ff8c00, #ff0080, #ff8c00);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: streamingText 3s linear infinite;
}

/* Removed .bg-overlay to avoid conflicts with new panning logic */
.content-wrap {
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero-carousel {
    height: calc(66vh + 50px);
    min-height: 550px;
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: calc(66vh + 50px);
    min-height: 550px;
}

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    /* Subtle dark mask */
    z-index: 1;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    /* Slightly larger for panning */
    height: 110%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* Fix for jumping issues */
    animation: kenBurns 15s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

.bg-slide-2 {
    background-position: center 20% !important;
    /* Avoid obscuring face in the second slide */
}

.hero-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
    /* Ensure content is above background for interaction */
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    background: linear-gradient(120deg, #fff 15%, #f39c12 35%, #fff 50%, #e67e22 65%, #fff 85%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: streamingText 12s linear infinite;
    margin-bottom: 1.5rem;
    /* Clean gradient only, no complex shadows */
    text-shadow: none;
}

@keyframes streamingText {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #ffffff !important;
    opacity: 0.95;
    margin-bottom: 2rem;
    /* Removed heavy shadows for a cleaner, modern look */
    text-shadow: none;
    font-weight: 500;
}

/* Image Buttons for Slide 2 */
.img-btn-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.img-btn {
    width: 180px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: softPulse 4s ease-in-out infinite;
    /* Continuous jumping effect */
}

.img-btn:nth-child(2) {
    animation-delay: 0.5s;
}

.img-btn:nth-child(3) {
    animation-delay: 1s;
}

@keyframes softPulse {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.img-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.img-btn:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.img-btn:hover img {
    transform: scale(1.1);
}

.img-btn-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

/* Buttons - Tangerine Orange */
.btn-premium {
    background: linear-gradient(135deg, #ff8c00, #ff4500);
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
    color: white;
}

.btn-sm-compact {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.95rem;
}

.mockup-container {
    perspective: 2000px;
    position: relative;
    padding: 20px;
    display: inline-block;
    animation: floatingMockup 5s ease-in-out infinite;
    /* Continuous jumping effect for the whole stack */
}

@keyframes floatingMockup {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.mockup-wrapper {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4) !important;
    border-radius: 40px !important;
    transform: none;
    /* Flat foreground as requested */
}

.mockup-stack-bg-1,
.mockup-stack-bg-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 560px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    transform-origin: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mockup-stack-bg-1 {
    z-index: 5;
    /* Offset left/outward and tilt TOP outward (towards viewer) - Moved 30px right */
    transform: translate(-84%, -50%) rotateY(-35deg) rotateX(-10deg) scale(0.9);
    opacity: 0.7;
}

.mockup-stack-bg-2 {
    z-index: 2;
    /* Offset right/outward and tilt TOP outward (towards viewer), scale increased to 0.8 */
    transform: translate(-10%, -50%) rotateY(45deg) rotateX(-15deg) scale(0.8);
    opacity: 0.5;
}

.mockup-inner {
    background: radial-gradient(circle at top right, rgba(243, 156, 18, 0.2), #111) !important;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes floating {
    0% {
        transform: translateY(0px) rotateY(-15deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-15px) rotateY(-10deg) rotateX(3deg);
    }

    100% {
        transform: translateY(0px) rotateY(-15deg) rotateX(5deg);
    }
}

/* Custom Indicators - Circular Countdown (Full to Zero) */
.carousel-indicators-custom {
    bottom: 30px;
}

.carousel-indicators-custom [data-bs-target] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0 12px;
    position: relative;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-indicators-custom [data-bs-target].active {
    opacity: 1;
    border-color: transparent;
}

/* Conic gradient countdown animation - Syncs with 8s interval */
.carousel-indicators-custom [data-bs-target].active::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) var(--progress, 360deg), transparent 0deg);
    mask: radial-gradient(transparent 58%, #000 60%);
    -webkit-mask: radial-gradient(transparent 58%, #000 60%);
    animation: countdownIndicatorSync 8s linear forwards;
}

/* Inner dot for active state */
.carousel-indicators-custom [data-bs-target].active::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--primary-color);
    border-radius: 50%;
}

@keyframes countdownIndicatorSync {
    0% {
        --progress: 360deg;
    }

    100% {
        --progress: 0deg;
    }
}

/* Register property for Firefox/Safari fallback? No, standard CSS variables for Chromium. 
   Adding a secondary transform for cross-browser visual support. */
@property --progress {
    syntax: '<angle>';
    initial-value: 360deg;
    inherits: false;
}

@keyframes countdownIndicator {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

/* Stats Section */
.stats-section {
    padding: 6rem 0;
    background: transparent;
    position: relative;
}


.stat-item {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 24px;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    display: block;
    filter: drop-shadow(0 0 15px rgba(243, 156, 18, 0.6));
    /* 增强发光感 */
}

.stat-number {
    font-size: 3rem;
    /* 增加数字默认大小 */
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    word-break: break-all;
    /* 防止超长数字溢出卡片 */
}

.stat-label {
    text-transform: none;
    font-size: 0.85rem;
    opacity: 0.5;
    /* 弱化标签 */
    letter-spacing: 0.5px;
    color: #fff;
}

/* Section Styling */
.section-padding {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    /* 更轻薄的背景 */
    backdrop-filter: blur(15px);
    /* 增加模糊度 */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* 细腻的边框 */
    border-radius: 24px;
    padding: 2.2rem 1.5rem;
    transition: var(--transition-smooth);
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.1);
}

.hover-zoom {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover .hover-zoom {
    transform: scale(1.1);
}

.card-img-top {
    border-radius: 15px;
    margin-bottom: 1.5rem;
    object-fit: cover;
}

/* Logos */
.partners-section {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('../images/bground/2209_w018_n002_1281a_p30_1281.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* 改为随动加载，确保不影响其它区域 */
    color: #ffffff;
    position: relative;
    z-index: 2;
    overflow: hidden;
    /* 增强局部边界控制 */
    border-top: 1px solid var(--primary-color);
    /* 添加橙色顶边条 */
}

.partners-section .section-title {
    color: #ffffff;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.logo-item {
    filter: grayscale(1) brightness(2);
    /* 提高亮度以适配深色背景 */
    opacity: 0.6;
    transition: var(--transition-smooth);
    text-align: center;
    color: #ffffff;
}

.logo-item:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background: #0a0a0a;
    border-top: 1px solid var(--glass-border);
}

.footer-snow-adapter {
    padding-bottom: 120px !important;
    /* Default fallback */
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Download Modal - Compact & Premium */
.modal-compact .modal-content {
    background: #0a0a0a;
    background-image:
        radial-gradient(at 0% 0%, rgba(243, 156, 18, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(230, 126, 34, 0.1) 0px, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 0 50px rgba(243, 156, 18, 0.1);
}

.modal-compact .modal-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

.modal-compact .modal-body {
    padding: 1.5rem 2rem 2.5rem;
}

.modal-compact .qr-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 24px;
    display: inline-block;
}

.modal-compact .qr-container {
    background: white;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Weixin Alert Overlay */
#wx-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    color: #fff;
    text-align: right;
    padding: 30px 20px;
}

#wx-overlay p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 0;
}

#wx-overlay i {
    font-size: 3rem;
    color: var(--primary-color);
}

.btn-premium-download {
    background: linear-gradient(120deg, #ff8c00, #ff0080, #ff8c00);
    background-size: 200% auto;
    color: white !important;
    font-weight: 800;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: none;
    width: 85%;
    margin: 0.5rem auto 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: streamingText 4s linear infinite;
}

.btn-premium-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 128, 0.5);
    filter: brightness(1.1);
}

.modal-divider {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 1.2rem auto;
}

/* Responsive Optimization */

/* Tablet & Large Screens Support */
@media (max-width: 1200px) {
    .hero-carousel {
        padding-top: 80px !important;
    }

    /* 默认两行排版（竖屏适配） */
    .hero-title {
        font-size: 2.8rem;
        white-space: normal;
        display: inline-block;
        max-width: 90%;
    }

    .hero-title br {
        display: block;
    }

    .hero-subtitle {
        max-width: 90%;
    }

    .stat-number {
        font-size: 2.2rem !important;
    }

    .footer-snow-adapter {
        padding-bottom: 135px !important;
        /* 115px height + 20px gap */
    }
}

/* 仅在横屏模式下强制单行以优化空间 */
@media (max-width: 1200px) and (orientation: landscape) {
    .hero-title {
        font-size: 3rem;
        white-space: nowrap;
    }

    .hero-title br {
        display: none;
    }
}

/* Mobile & Standard Tablet */
@media (max-width: 768px) {

    /* 竖屏下显示两行，字号缩小以与描述文字宽度同步 */
    .hero-title {
        font-size: 2.4rem;
        white-space: normal;
    }

    .hero-title br {
        display: block;
    }

    .hero-carousel {
        height: auto;
        padding-top: 60px !important;
        padding-bottom: 4rem;
    }

    .stat-number {
        font-size: 1.8rem !important;
    }

    .stat-item {
        padding: 1.5rem 1rem !important;
    }

    .footer-snow-adapter {
        padding-bottom: 110px !important;
        /* 90px height + 20px gap */
    }
}

@media (max-width: 576px) {
    .stat-number {
        font-size: 1.4rem !important;
    }

    .stat-item {
        padding: 1.25rem 0.5rem !important;
    }
}/* 2K+ specifically for footer adapter */
@media (min-width: 2000px) {
    .footer-snow-adapter {
        padding-bottom: 170px !important; /* 150px height + 20px gap */
    }
}
