* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 添加外层旋转容器 */
.rotation-wrapper {
    position: absolute;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-3deg);
    transform-origin: center center;
}

        body {
            background: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            overflow: hidden;
            font-family: "Alibaba Sans", "Alibaba PuHuiTi 2.0", sans-serif;
            font-weight: 350; 
            position: relative;
            font-size: 14px;
        }

.container {
    display: grid;
    grid-gap: 0;
    padding: 0;
    margin: auto;
}

.grid-item {
    background: #fff;
    border: 0.1px solid rgba(220, 220, 220, 0.5);
    /* 移除固定尺寸，将由JS动态设置 */
}

/* 新增：小图片样式 */
.small-image {
    position: absolute;
    z-index: 10;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.small-image:hover {
    transform: scale(1.05);
}

/* 大正方形容器样式 */
.big-square-container {
    position: absolute;
    pointer-events: none; /* 让点击穿透到大方格 */
}

.big-square {
    position: absolute;
    border-radius: 0px;
    opacity: 1;
    pointer-events: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.8s ease, box-shadow 0.8s ease;
    cursor: pointer;
}

.big-square:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 确保标签容器可以点击 */
.label-container {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    display: inline-block;
    max-width: 90%;
    text-align: center;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    margin-bottom: 12px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    cursor: pointer; /* 添加手型光标，表示可点击 */
    transition: all 0.3s ease; /* 添加过渡效果 */
}

/* 为标签添加悬停效果 */
.label-container:hover {
    transform: scale(1.05);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
}

/* 移除三角形指示器 */
.label-container::after {
    display: none;
}

/* 为不同标签添加不同颜色 */
.big-square:nth-child(1) .label-container { background-color: rgba(103, 191, 92, 0.95); color: white; }
.big-square:nth-child(2) .label-container { background-color: rgba(235, 87, 87, 0.95); color: white; }
.big-square:nth-child(3) .label-container { background-color: rgba(247, 183, 49, 0.95); color: white; }
.big-square:nth-child(4) .label-container { background-color: rgba(74, 144, 226, 0.95); color: white; }
.big-square:nth-child(5) .label-container { background-color: rgba(149, 94, 210, 0.95); color: white; }
.big-square:nth-child(6) .label-container { background-color: rgba(51, 187, 210, 0.95); color: white; }

/* Logo样式 */
.logo-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.logo {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 底部导航和版权信息样式 */
.bottom-bar {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 1000;
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #1E88E5;
}

.separator {
    color: #666;
}

.copyright {
    color: #666;
    text-align: right;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* 移动端菜单样式 */
.menu-button {
    display: none;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #666;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.mobile-menu {
    position: fixed;
    bottom: 60px;
    left: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    display: none;
    z-index: 1001;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    color: #666;
    text-decoration: none;
    padding: 10px 20px;
    white-space: nowrap;
}

.mobile-menu a:hover {
    background-color: #f5f5f5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo {
        height: 38px;
    }
    
    .copyright {
        font-size: 11px;
        bottom: 10px;
        right: 10px;
    }
    
    /* 在移动设备上调整文字大小 */
    .label-container {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 1000px) {
    /* 隐藏桌面端链接，显示菜单按钮 */
    .footer-links {
        display: none;
    }

    .menu-button {
        display: block;
        font-size: 11px;
        /* 增加淡蓝色底框 */
        background-color: rgba(30, 136, 229, 0.1); /* 淡蓝色背景 */
        border: 1px solid #1E88E5; /* 蓝色边框 */
    }
}

@media (max-width: 480px) {
    .logo-container {
        top: 15px;
        left: 15px;
    }
    
    .logo {
        height: 28px;
    }
    
    .copyright {
        font-size: 10px;
        bottom: 8px;
        right: 8px;
        padding: 4px 8px;
    }
    
    /* 在非常小的设备上进一步调整文字 */
    .label-container {
        font-size: 12px;
        padding: 6px 12px;
    }

    .menu-button {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* 新增样式：多屏布局 */
.screen-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: transform 1s ease, opacity 1s ease, visibility 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 滑动效果相关样式 */
.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.screen.to-left {
    transform: translateX(-100%);
}

.screen.to-right {
    transform: translateX(100%);
}

/* 内容屏幕样式 */
.content-screen {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.content-text {
    flex: 1;
    padding: 20px;
}

.content-image {
    flex: 1;
    height: 70vh;
    background-size: contain; /* 改为contain确保完整显示 */
    background-position: center;
    background-repeat: no-repeat; /* 防止图片重复 */
    border-radius: 12px;
}

.content-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.content-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
}

/* 导航圆点样式 */
.nav-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 2px; /* 改为小圆角，呈现方形效果 */
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #1E88E5; /* 改为蓝色 */
    transform: scale(1.3);
}

/* 渐隐式分割线样式 */
.fade-divider {
    position: fixed;
    bottom: 50px;
    left: 0;
    right: 0;
    height: 0.5px;
    background: linear-gradient(90deg, 
        rgba(30, 136, 229, 0) 0%, 
        rgba(30, 136, 229, 0.8) 40%,
        rgba(103, 191, 92, 0.8) 60%,
        rgba(103, 191, 92, 0) 100%);
    z-index: 999;
}

/* 移动端调整分割线位置 */
@media (max-width: 768px) {
    .fade-divider {
        bottom: 45px;
    }
}

/* 响应式调整内容屏幕 */
@media (max-width: 768px) {
    .content-screen {
        flex-direction: column;
        padding: 20px;
    }

    .content-text, .content-image {
        width: 100%;
        flex: none;
    }

    .content-image {
        height: 40vh;
        margin-top: 20px;
    }

    .content-title {
        font-size: 1.8rem;
    }

    .content-description {
        font-size: 0.9rem;
    }

    /* 调整导航圆点位置 */
    .nav-dots {
        top: auto;
        bottom: 70px;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
    }

    /* 竖屏时调整第2-7屏的位置 */
    .screen .content-screen {
        transform: translateY(-5%);
    }
}

/* 新增：探索按钮样式 */
.explore-button {
    display: inline-block;
    background-color: #1E88E5;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(30, 136, 229, 0.3);
}

.explore-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(30, 136, 229, 0.4);
}

@media (max-width: 768px) {
    .explore-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}