* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background: white; /* 纯白色背景 */
}

/* 开头的预加载界面 - 高斯模糊 + 3D加载动画 */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 1.2s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* 高斯模糊背景层 - 添加兼容性前缀 */
.preloader-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* 半透明白色背景 */
    /* 兼容性前缀 */
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    z-index: 1;
    animation: blurReduce 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes blurReduce {
    0% {
        -webkit-backdrop-filter: blur(30px);
        backdrop-filter: blur(30px);
        opacity: 1;
    }
    70% {
        -webkit-backdrop-filter: blur(30px);
        backdrop-filter: blur(30px);
        opacity: 1;
    }
    100% {
        -webkit-backdrop-filter: blur(0px);
        backdrop-filter: blur(0px);
        opacity: 0;
    }
}

/* 开头的3D加载动画 */
.preloader-loading-content {
    text-align: center;
    color: white; /* Loading字体改为白色 */
    font-size: 24px;
    font-family: monospace;
    letter-spacing: 2px;
    z-index: 2;
    opacity: 0;
    animation: contentFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.preloader-loading-text {
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.preloader-loading-spinner {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    animation: rotate3d 3s linear infinite;
    transform-style: preserve-3d;
    /* 兼容性前缀 */
    -webkit-transform-style: preserve-3d;
}

@keyframes rotate3d {
    0% {
        transform: rotateX(10deg) rotateY(0deg);
        -webkit-transform: rotateX(10deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(10deg) rotateY(360deg);
        -webkit-transform: rotateX(10deg) rotateY(360deg);
    }
}

/* 加载进度条 */
.preloader-progress {
    width: 300px;
    height: 4px;
    background: rgba(0, 0, 0, 0.2); /* 在白色背景上使用深色进度条 */
    border-radius: 2px;
    margin: 25px auto 0;
    overflow: hidden;
    position: relative;
}

.preloader-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2196F3, #1976D2); /* 蓝色渐变进度条 */
    border-radius: 2px;
    transition: width 0.3s ease;
}

.preloader-progress-text {
    color: white; /* 进度条文字改为白色 */
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    background: white; /* 背景图片加载前的纯白背景 */
}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 1400px;
    height: 100vh;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 解锁加载界面 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.show {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    color: white; /* Loading字体改为白色 */
    font-size: 24px;
    font-family: monospace;
    letter-spacing: 2px;
}

.loading-text {
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    animation: rotate3d 3s linear infinite;
    transform-style: preserve-3d;
    /* 兼容性前缀 */
    -webkit-transform-style: preserve-3d;
}

.lock-screen {
    background: rgba(255, 255, 255, 0.2);
    /* 兼容性前缀 */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 40px 30px 60px; /* 增加底部padding以容纳备案信息 */
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    max-width: 90%;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* 高斯透明板淡入效果 */
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    animation: lockScreenFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes lockScreenFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.lock-screen.hiding {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
}

.title {
    color: #333; /* 偏黑的灰色 */
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    animation: titleFadeIn 1s ease 0.8s forwards;
}

@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
    opacity: 0;
    transform: translateY(20px);
    animation: buttonsFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

@keyframes buttonsFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.unlock-btn {
    flex: 0 0 calc(20% - 8px);
    max-width: 80px;
    max-height: 80px;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.3);
    /* 兼容性前缀 */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.unlock-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.unlock-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.unlock-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.unlock-btn.active img {
    filter: brightness(0.7);
}

.progress-container-main {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    /* 兼容性前缀 */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 5px;
    margin: 25px 0 40px; /* 增加底部margin给备案信息留空间 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: visible;
    opacity: 0;
    transform: translateY(10px);
    animation: progressFadeIn 1s ease 1.3s forwards;
}

@keyframes progressFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-bar-main {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2196F3, #1976D2);
    transition: width 0.3s ease;
    border-radius: 5px;
}

.progress-icon {
    position: absolute;
    top: -22px;
    left: 0;
    width: 8vw;
    height: 8vw;
    min-width: 36px;
    min-height: 36px;
    max-width: 60px;
    max-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(-50%);
    z-index: 20;
    transition: left 0.3s ease, width 0.3s ease, height 0.3s ease;
    pointer-events: none;
}

.progress-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 返回上级按钮样式 */
.back-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(52, 152, 219, 0.8);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    z-index: 1001;
    /* 兼容性前缀 */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(41, 128, 185, 0.9);
    transform: translateY(-2px);
}

/* 主页布局 */
.main-content {
    display: none;
    height: auto;
    width: 100%;
    position: relative;
    background: transparent;
    min-height: 100vh;
}

.homepage {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    height: auto;
    width: 100%;
    padding: 30px;
    opacity: 0;
    animation: fadeInContent 1s ease 0.5s forwards;
}

@keyframes fadeInContent {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* 功能板块详细页面布局 */
.function-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    opacity: 0;
    animation: fadeInContent 0.8s ease forwards;
}

/* 带文本的高斯模糊透明卡片 - 透明度降低到30% */
.block1, .block2, .block3, .function-block {
    background: rgba(255, 255, 255, 0.3); /* 透明度调整到30% */
    /* 兼容性前缀 */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.block1 {
    grid-column: 1;
    grid-row: 1 / span 3; /* 延长到第3行 */
}

.block2 {
    grid-column: 2;
    grid-row: 1; /* 占据第一行 */
}

.block3 {
    grid-column: 2;
    grid-row: 2 / span 2; /* 延长到第3行 */
}

.block-title {
    font-size: 1.5rem;
    color: #333; /* 偏黑的灰色 */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(51, 51, 51, 0.5); /* 更深的边框颜色 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 功能板块网格布局 */
.function-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .function-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 功能项 - 透明度降低到30% */
.function-item {
    background: rgba(255, 255, 255, 0.3); /* 透明度调整到30% */
    /* 兼容性前缀 */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    min-height: 150px;
}

.function-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.4);
}

.function-title {
    font-size: 1.3rem;
    color: #333; /* 偏黑的灰色 */
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.function-desc {
    color: #444; /* 偏黑的灰色 */
    line-height: 1.5;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* 作品卡片 - 透明度降低到30% */
.item-card {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3); /* 透明度调整到30% */
    /* 兼容性前缀 */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.item-image {
    width: 100px;
    height: 130px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.item-content {
    flex: 1;
}

.item-title {
    font-size: 1.2rem;
    color: #333; /* 偏黑的灰色 */
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.item-description {
    color: #444; /* 偏黑的灰色 */
    line-height: 1.5;
    font-size: 0.95rem;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* 项目部署内容 - 透明度降低到30% */
.deployment-item {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.3); /* 透明度调整到30% */
    /* 兼容性前缀 */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.deployment-title {
    font-size: 1.2rem;
    color: #333; /* 偏黑的灰色 */
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.deployment-description {
    color: #444; /* 偏黑的灰色 */
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 0.95rem;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.deployment-steps {
    background: rgba(52, 152, 219, 0.3); /* 透明度调整到30% */
    /* 兼容性前缀 */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 12px;
    border-radius: 5px;
    border-left: 3px solid rgba(51, 51, 51, 0.7); /* 更深的边框颜色 */
    font-size: 0.9rem;
}

.deployment-steps h4 {
    margin-top: 0;
    color: #333; /* 偏黑的灰色 */
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.deployment-steps ol {
    padding-left: 20px;
    margin: 8px 0;
}

.deployment-steps li {
    margin-bottom: 6px;
    line-height: 1.4;
    color: #444; /* 偏黑的灰色 */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* 程序测试内容 */
.coding-content {
    line-height: 1.6;
    color: #333; /* 偏黑的灰色 */
}

.coding-content pre {
    background: rgba(45, 45, 45, 0.3); /* 透明度调整到30% */
    /* 兼容性前缀 */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: #333; /* 偏黑的灰色 */
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 备案信息样式 - 全局统一 */
.footer {
    position: relative;
    width: 100%;
    text-align: center;
    color: #444; /* 偏黑的灰色 */
    font-size: 12px;
    padding: 15px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(68, 68, 68, 0.1); /* 更深的边框颜色 */
    background: rgba(245, 245, 245, 0.3); /* 浅灰色背景 */
}

.footer a {
    color: #444; /* 偏黑的灰色 */
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #222; /* 更深的颜色 */
    text-decoration: underline;
}

.beian-separator {
    margin: 0 10px;
    color: #666; /* 中等灰色 */
}

/* 锁屏界面的备案信息 */
.footer-lock {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #444; /* 偏黑的灰色 */
    font-size: 12px;
}

.footer-lock a {
    color: #444; /* 偏黑的灰色 */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-lock a:hover {
    color: #222; /* 更深的颜色 */
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 100%;
        height: 100vh;
        padding: 5px;
    }
    
    .lock-screen {
        width: 95%;
        padding: 20px 15px 50px; /* 增加底部padding以容纳备案信息 */
        top: 40%;
    }
    
    .title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .buttons-container {
        gap: 8px;
        margin: 15px 0;
    }
    
    .unlock-btn {
        flex: 0 0 calc(25% - 6px);
        max-width: 60px;
        max-height: 60px;
    }
    
    .main-content {
        height: auto;
    }
    
    .preloader-loading-content,
    .loading-content {
        font-size: 18px;
    }
    
    .preloader-loading-spinner,
    .loading-spinner {
        width: 50px;
        height: 50px;
    }
    
    .preloader-progress {
        width: 220px;
    }
    
    .back-btn {
        bottom: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .homepage, .function-page {
        padding: 15px;
        gap: 15px;
    }
    
    .block-title {
        font-size: 1.2rem;
    }
    
    .function-title {
        font-size: 1.1rem;
    }
    
    .item-card {
        flex-direction: column;
    }
    
    .item-image {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .item-content {
        width: 100%;
    }
    
    /* 手机上三栏布局：上下结构 */
    .homepage {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .block1, .block2, .block3 {
        grid-column: 1;
        grid-row: auto;
    }
    
    .block1 {
        grid-row: 1;
    }
    
    .block2 {
        grid-row: 2;
    }
    
    .block3 {
        grid-row: 3;
    }
    
    .footer {
        font-size: 10px;
        padding: 10px 0;
    }
    
    .footer-lock {
        font-size: 10px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .unlock-btn {
        flex: 0 0 calc(33.333% - 5px);
        max-width: 70px;
        max-height: 70px;
    }
    
    .title {
        font-size: 16px;
    }
    
    .preloader-loading-content,
    .loading-content {
        font-size: 16px;
    }
    
    .preloader-loading-spinner,
    .loading-spinner {
        width: 45px;
        height: 45px;
    }
    
    .preloader-progress {
        width: 180px;
    }
    
    .homepage, .function-page {
        padding: 10px;
        gap: 10px;
    }
    
    .block1, .block2, .block3, .function-block {
        padding: 15px;
    }
    
    .block-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .function-title {
        font-size: 1.0rem;
        color: #333; /* 偏黑的灰色 */
    }
    
    .function-desc {
        font-size: 0.9rem;
        color: #444; /* 偏黑的灰色 */
    }
    
    .item-title {
        font-size: 1.1rem;
        color: #333; /* 偏黑的灰色 */
    }
    
    .item-description {
        font-size: 0.85rem;
        color: #444; /* 偏黑的灰色 */
    }
    
    .deployment-title {
        font-size: 1.1rem;
        color: #333; /* 偏黑的灰色 */
    }
    
    .deployment-description {
        font-size: 0.85rem;
        color: #444; /* 偏黑的灰色 */
    }
    
    .footer {
        font-size: 9px;
        padding: 8px 0;
    }
}

/* 微信内置浏览器兼容性处理 */
.wechat-browser {
    /* 针对微信浏览器的特殊样式 */
}

/* 隐藏backdrop-filter不支持的浏览器的透明效果 */
@supports not (backdrop-filter: blur(5px)) {
    .preloader-loading-content,
    .loading-content,
    .preloader-progress-text {
        color: white !important;
    }

    .block1,
    .block2,
    .block3,
    .function-block,
    .function-item,
    .item-card,
    .deployment-item,
    .deployment-steps,
    .coding-content pre {
        background: rgba(255, 255, 255, 0.8) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    .footer {
        background: rgba(245, 245, 245, 0.5) !important;
    }
}

/* 针对移动端的优化 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    /* Safari和Chrome移动端 */
    .homepage {
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }
}

/* 针对iOS设备的特殊处理 */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari */
    .container {
        -webkit-overflow-scrolling: touch;
    }
}