/* ==================== */
/* Google Fonts Import  */
/* ==================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;900&display=swap');

/* ==================== */
/* Reset & Base Styles  */
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Noto Sans SC', 'HarmonyOS Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 
                 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #ffffff;
    color: #7a7575;
}

/* ==================== */
/* Animations           */
/* ==================== */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.06);
        opacity: 0.9;
    }
}

/* ==================== */
/* Desktop Layout       */
/* ==================== */
.web-container {
    display: block;
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    overflow: hidden;
}

.phone-container {
    display: none;
}

/* Background Pattern */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bg-img-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: breathe 5s ease-in-out infinite;
}

/* Main Content */
.main-content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 97.22vw;
    max-width: 1560px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

/* Header */
.header {
    position: relative;
    width: 100%;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.brand-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    max-height: 20px;
    width: auto;
    display: block;
}

.header-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    width: 100%;
    background-color: #e0e0e0;
}

/* Content Area */
.content-area {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Icon Frames - 固定尺寸，横向滚动，隐藏滚动条 */
.icon-frames {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    /* 隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏滚动条 - Chrome, Safari, Opera */
.icon-frames::-webkit-scrollbar {
    display: none;
}

/* Frame Item - 固定尺寸 256px，不缩放 */
.frame-item {
    position: relative;
    width: 256px;
    height: 256px;
    flex-shrink: 0;
}

.frame-item img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Coming Soon Text */
.coming-soon-text {
    position: absolute;
    bottom: min(2.5vh, 24px);
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    text-transform: uppercase;
    text-align: center;
    color: #7a7575;
    font-style: normal;
}

.title-img {
    width: auto;
    height: clamp(30px, 3.5vw, 50px);
    display: block;
    margin-bottom: min(1.46vh, 14px);
}

.subtitle {
    font-size: clamp(12px, 1.11vw, 16px);
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

/* Footer */
.footer {
    position: relative;
    width: 100%;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.footer-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    width: 100%;
    background-color: #e0e0e0;
}

/* ==================== */
/* Mobile Layout        */
/* ==================== */
@media screen and (max-width: 768px) {
    .web-container {
        display: none;
    }
    
    .phone-container {
        display: block;
        position: relative;
        width: 100vw;
        height: 100vh;
        background-color: #ffffff;
        overflow: hidden;
    }
    
    /* Background Pattern - Mobile */
    .bg-pattern-phone {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .bg-img-wrapper-phone {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .bg-img-phone {
        width: 100%;
        height: 100%;
        object-fit: cover;
        animation: breathe 5s ease-in-out infinite;
    }
    
    /* Main Content - Mobile */
    .main-content-phone {
        position: absolute;
        top: 0;
        left: 8px;
        right: 8px;
        width: auto;
        height: 100vh;
        display: flex;
        flex-direction: column;
        z-index: 10;
    }
    
    /* Header - Mobile */
    .header-phone {
        position: relative;
        width: 100%;
        height: 64px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    
    .brand-logo-phone {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        height: auto;
        max-height: 20px;
        width: auto;
        display: block;
    }
    
    .header-line-phone {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        width: 100%;
        background-color: #e0e0e0;
    }
    
    /* Content Area - Mobile */
    .content-area-phone {
        position: relative;
        width: 100%;
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    
    /* Icon Frames - Mobile - 固定尺寸，横向滚动，隐藏滚动条 */
    .icon-frames-phone {
        position: absolute;
        top: 8px;
        left: 0;
        right: 0;
        display: flex;
        gap: 8px;
        align-items: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
        /* 隐藏滚动条 */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    /* 隐藏滚动条 - Chrome, Safari, Opera */
    .icon-frames-phone::-webkit-scrollbar {
        display: none;
    }
    
    /* Frame Item - Mobile - 固定尺寸 256px，不缩放 */
    .frame-item-phone {
        position: relative;
        width: 256px;
        height: 256px;
        flex-shrink: 0;
    }
    
    .frame-item-phone img {
        width: 100%;
        height: 100%;
        display: block;
    }
    
    /* Coming Soon Text - Mobile */
    .coming-soon-text-phone {
        position: absolute;
        bottom: min(2.96vh, 24px);
        left: 50%;
        transform: translateX(-50%);
        width: fit-content;
        text-transform: uppercase;
        text-align: center;
        color: #7a7575;
        font-style: normal;
    }
    
    .title-img-phone {
        width: auto;
        height: clamp(32px, 12vw, 48px);
        display: block;
        margin-bottom: min(1.72vh, 14px);
    }
    
    .subtitle-phone {
        font-size: clamp(14px, 4.27vw, 16px);
        font-weight: 400;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
    }
    
    /* Footer - Mobile */
    .footer-phone {
        position: relative;
        width: 100%;
        height: 64px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    
    .footer-line-phone {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        width: 100%;
        background-color: #e0e0e0;
    }
}

/* ==================== */
/* Tablet Adjustments   */
/* ==================== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .main-content {
        width: 95vw;
    }
    
    .title {
        font-size: 3.5vw;
    }
    
    .subtitle {
        font-size: 1.5vw;
    }
}

/* ==================== */
/* Small Mobile Adjustments */
/* ==================== */
@media screen and (max-width: 480px) {
    .main-content-phone {
        left: 8px;
        right: 8px;
    }
    
    .title-img-phone {
        height: 10vw;
    }
    
    .subtitle-phone {
        font-size: 3.5vw;
    }
}

/* ==================== */
/* Landscape Mode       */
/* ==================== */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .header,
    .header-phone {
        height: 50px;
    }
    
    .footer,
    .footer-phone {
        height: 50px;
    }
    
    .title-img,
    .title-img-phone {
        height: clamp(24px, 5vh, 36px);
        margin-bottom: 8px;
    }
    
    .subtitle,
    .subtitle-phone {
        font-size: clamp(10px, 2.5vh, 14px);
    }
    
    .coming-soon-text,
    .coming-soon-text-phone {
        bottom: 15px;
    }
    
    /* 横屏模式下图标框架缩小 */
    .frame-item,
    .frame-item-phone {
        width: 180px;
        height: 180px;
    }
}

/* ==================== */
/* Very Small Screens   */
/* ==================== */
@media screen and (max-width: 360px) {
    .title-img-phone {
        height: 9vw;
    }
    
    .subtitle-phone {
        font-size: 3vw;
    }
}

/* ==================== */
/* Large Desktop        */
/* ==================== */
@media screen and (min-width: 1600px) {
    .main-content {
        max-width: 1560px;
    }
    
    .title-img {
        height: 50px;
    }
    
    .subtitle {
        font-size: 16px;
    }
}

@media screen and (min-width: 1920px) {
    .main-content {
        max-width: 1800px;
    }
}
