/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 2.084vw !important;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    overflow: hidden;
    cursor: grab;
    opacity: 1;
}

body:active {
    cursor: grabbing;
}

/* 顶部导航栏 */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 1.9rem;
    background-color: #ffffff;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2.5rem;
    margin: 0 auto;
}

.nav-logo img {
    height: 1.2rem;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-size: 0.4rem;
    font-weight: 800;
    padding: 0.3rem 0.5rem;
    border-radius: 0.2rem;
    transition: all 0.3s ease;
}

.nav-link.active {
    color: #A63C12;
    font-weight: 800;
}

/* 全屏滚动容器 */
.fullpage-container {
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* 页面区块 */
.page-section {
    height: 100vh;
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    display: none;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
    backdrop-filter: blur(10px);
}

.page-section.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: translateY(0);
}

/* 区块内容样式 */
.section-content {
    position: absolute;
    left: 2.5rem;
    bottom: 2.75rem;
    text-align: left;
    max-width: 800px;
    padding: 40px;
    color: #333;
    animation: fadeInUp 0.8s ease;
}

.section-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    text-align: left;
}

.section-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #34495e;
}

.section-content h3 {
    font-size: 1.3rem;
    text-align: left;
}

.section-content span {
    color: #fff;
}

.section-content p {
    font-size: 0.4rem;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 20px;
    color: #555;
}

.section-content ul {
    list-style: none;
    padding: 0;
}

.section-content li {
    font-size: 1.1rem;
    margin: 10px 0;
    padding: 10px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.section-content li:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateX(10px);
}

/* 导航指示器 */
.navigation-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* .dot::after {
    content: attr(title);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
} */

/* .dot:hover::after {
    opacity: 1;
} */

/* 操作提示 */
/* .instructions {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 14px;
    text-align: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.instructions p {
    margin: 5px 0;
    opacity: 0.9;
} */

/* 底部导航样式 */
.endnav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background-color: #262626;
    z-index: 1000;
}

.endnav-item {
    position: absolute;
    left: 2.5rem;
    top: 10%;
    padding-bottom: 10%;
    width: 70%;
}

.endnav-container {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

.endnav-item-content span {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 800;
}

.endnav-item-content h3 {
    font-size: 0.5rem;
    color: #fefefe;
    font-weight: 800;
}

.endqrcode {
    position: absolute;
    right: 2.5rem;
    top: 10%;
    width: 30%;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

.endqrcode-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}

.endqrcode-content img {
    width: 100%;
    height: 100%;
}

.endqrcode-content p {
    font-size: 0.4rem;
    color: #fefefe;
    font-weight: 800;
}

.endnav-copyright {
    position: absolute;
    width: 100%;
    bottom: 20px;
    text-align: center;
    color: #fffdfd2b;
    font-size: 12px;
    font-weight: 800;
}

.endnav-copyright a {
    color: #fffdfd2b;
    text-decoration: none;
}

.endcontent {
    font-size: 0.6rem !important;
}

/* 子页面容器 */
.subpage-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 子页面样式 */
.subpage {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 子页面背景图片 */
#subpage1 {
    background-image: url('https://ybymoss.oss-cn-shenzhen.aliyuncs.com/res/core/images/p3bg.png');
}

#subpage2 {
    background-image: url('https://ybymoss.oss-cn-shenzhen.aliyuncs.com/res/core/images/p3bg02.png');
}

#subpage3 {
    background-image: url('https://ybymoss.oss-cn-shenzhen.aliyuncs.com/res/core/images/p3bg03.png');
}

#subpage4 {
    background-image: url('https://ybymoss.oss-cn-shenzhen.aliyuncs.com/res/core/images/p3bg04.png');
}

.subpage.active {
    opacity: 1;
    transform: translateX(0);
}

.subpage.prev {
    transform: translateX(-100%);
}

/* 子页面导航样式 */
.subpage-navigation {
    position: absolute;
    bottom: 10vh;
    left: 2.5rem;
    /* transform: translateX(-50%); */
    display: flex;
    gap: 0.5rem;
    z-index: 1000;
    width: 80%;
    justify-content: center;
    padding-left: 40px;
}


.subpage-dot {
    flex: 1;
    height: 12px;
    /* background: rgba(255, 255, 255, 0.6); */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

/* .subpage-dot:first-child {
    border-radius: 0.2rem 0 0 0.2rem;
}

.subpage-dot:last-child {
    border-radius: 0 0.2rem 0.2rem 0;
} */

.subpage-dot span {
    text-align: left;
    width: 50%;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
    margin-right: 0.2rem;
}

.subpage-dot p {
    text-align: right !important;
    width: 50%;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    text-align: left;
}

/* .subpage-dot:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
} */

.subpage-dot.active {
    /* background: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); */
    border-top: 1px solid #ffffff;
    
}

.subpage-dot.active span,
.subpage-dot.active p {
    color: #ffffff;
}

.more-btn {
    text-align: left;
    text-decoration: none;
    position: absolute;
    margin-top: 0.3rem;
    /* left: 2.5rem; */
    padding: 0.3rem 0.5rem;
    background-color: #A63C12;
    color: #ffffff;
    font-size: 0.4rem;
    font-weight: 400;
    border-radius: 4px;
    transition: all 0.3s ease;
}


/* 子页面控制按钮 */
.subpage-controls {
    position: absolute;
    bottom: 10vh;
    right: 30px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.subpage-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.subpage-btn:hover {
    transform: scale(1.1);
}

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

.subpage-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

/* 汉堡菜单样式 */
.mobile-hamburger {
    display: none;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 4rem;
    height: 4rem;
    z-index: 10000;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    border-radius: 0.3rem;
    padding: 0.3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-hamburger span {
    display: block;
    width: 100%;
    height: 0.5rem;
    background-color: #ffffff;
    border-radius: 0.05rem;
    transition: all 0.3s ease;
}

.mobile-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.4rem, 0.4rem);
}

.mobile-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.mobile-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.4rem, -0.4rem);
}

/* 移动端侧边栏样式 */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.881);
    z-index: 10001;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.mobile-sidebar-logo img {
    height: 5.2rem;
    width: auto;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    font-size: 5.5rem;
    color: #333;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 0.2rem;
    transition: background-color 0.3s ease;
}

.mobile-sidebar-close:hover {
    background-color: #f5f5f5;
}

.mobile-sidebar-menu {
    flex: 1;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar-link {
    display: block;
    padding: 3rem 2.5rem;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.mobile-sidebar-link:hover {
    background-color: #f8f9fa;
    color: #A63C12;
}

.mobile-sidebar-link.active {
    color: #A63C12;
}

/* 移动端遮罩层样式 */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 页面背景图片 */
.page-section:nth-child(1) {
    background-image: url("https://ybymoss.oss-cn-shenzhen.aliyuncs.com/res/core/images/p1bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.page-section:nth-child(1) .section-content h1,
.page-section:nth-child(1) .section-content h2,
.page-section:nth-child(1) .section-content p {
    color: white;
}

.page-section:nth-child(2) {
    background-image: url("https://ybymoss.oss-cn-shenzhen.aliyuncs.com/res/core/images/p2bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.page-section:nth-child(2) .section-content h1,
.page-section:nth-child(2) .section-content h2,
.page-section:nth-child(2) .section-content p {
    color: white;
}

.page-section:nth-child(3) {
    background-image: url("https://ybymoss.oss-cn-shenzhen.aliyuncs.com/res/core/images/p3bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.page-section:nth-child(3) .section-content h1,
.page-section:nth-child(3) .section-content h2,
.page-section:nth-child(3) .section-content p {
    color: white;
}

.page-section:nth-child(4) {
    background-image: url("https://ybymoss.oss-cn-shenzhen.aliyuncs.com/res/core/images/p4bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.page-section:nth-child(4) .section-content h1,
.page-section:nth-child(4) .section-content h2,
.page-section:nth-child(4) .section-content p {
    color: white;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 触摸设备样式 */
.touch-device .instructions {
    display: none;
}

body.loaded {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section-content {
        left: 1.5rem;
        bottom: 15rem;
    }
    
    .section-content h1 {
        font-size: 5rem;
    }
    
    .section-content h2 {
        font-size: 1.8rem;
    }
    
    .section-content h3 {
        font-size: 2.8rem;
        text-align: left;
    }
    
    .section-content p {
        font-size: 2rem;
    }
    
    .navigation-dots {
        right: 15px;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
    
    .instructions {
        bottom: 10px;
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .endnav img {
        width: 40%;
        height: auto;
    }
    
    .endnav-item {
        width: 100%;
    }
    
    .endnav-item-content {
        width: 100%;
        margin-top: 3rem;
    }
    
    .endnav-item-content span {
        font-size: 1.5rem;
    }
    
    .endnav-item-content h3 {
        font-size: 1.5rem;
        width: 100%;
    }
    
    .endnav-container {
        gap: 1.5rem;
    }
    
    .endqrcode {
        width: 100%;
        gap: 1.5rem;
        position: absolute;
        top: 20vh;
        left: 2.5rem;
    }
    
    .endqrcode-content {
        width: 50%;
        display: block;
    }
    
    .endqrcode-content p {
        font-size: 1.5rem;
        font-weight: 800;
    }
    
    .endcontent {
        font-size: 1.5rem !important;
    }
    
    .subpage-navigation {
        gap: 0.5rem;
    }
    
    .subpage-dot {
        height: 10px;
    }
    
    .subpage-dot span {
      display: none;
    }
    
    .subpage-dot p {
        display: none;
    }
    
    .subpage-controls {
        display: none;
    }
    
    .top-navbar {
        display: none;
    }
    
    .mobile-hamburger {
        display: flex;
    }
    .more-btn {
        text-align: left;
        text-decoration: none;
        position: absolute;
        margin-top: 0.3rem;
        /* left: 2.5rem; */
        padding: 2.3rem 6.5rem;
        background-color: #A63C12;
        color: #ffffff;
        font-size: 2rem;
        font-weight: 400;
        border-radius: 4px;
        transition: all 0.3s ease;
    }
} 