
/* Hero区域样式 */
.hero-section {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 背景图片网格样式 */
.background-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    z-index: 1;
    pointer-events: none;
}

.background-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    border-radius: 6px;
}

.hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}



.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.5;
}

/* CTA按钮样式 */
.cta-button {
    position: relative;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
    min-width: 200px;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 122, 255, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-ripple {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.cta-button:active .button-ripple {
    transform: scale(1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        aspect-ratio: 0.8;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 16px 35px;
        font-size: 1.1rem;
    }
    
    .image-grid {
        opacity: 0.25;
    }
    
    .image-grid img {
        margin: 1px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        aspect-ratio: 0.7;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* 微信浏览器特殊优化 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .cta-button {
        -webkit-appearance: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* 防止微信浏览器缩放 */
.hero-container,
.features-container{
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* 图片展示区域样式 */
.demo-section {
    padding: 80px 0;
    background: #000000;
    position: relative;
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.demo-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-showcase {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.demo-image-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

/* 滑动容器样式 */
.demo-slider {
    display: flex;
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.demo-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* 初始遮罩层样式 */
.demo-initial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

/* 触发按钮样式 */
.demo-trigger-button {
    background: linear-gradient(135deg, #007AFF, #0056CC);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
    letter-spacing: 0.5px;
}

.demo-trigger-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #0056CC, #003D99);
}

.demo-trigger-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

/* 重新开始按钮样式 */
.demo-restart-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.demo-restart-button:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.demo-restart-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 处理过程遮罩层样式 */
.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.demo-overlay.active {
    opacity: 1;
}

.demo-text-container {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    padding: 40px;
    max-width: 80%;
}

.demo-text-line {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.demo-text-line.visible {
    opacity: 1;
    transform: translateY(0);
}



/* 响应式设计 */
@media (max-width: 768px) {
    .demo-section {
        padding: 60px 0;
    }
    
    .demo-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .demo-text-container {
        font-size: 1.1rem;
        padding: 30px;
    }
    

}

@media (max-width: 480px) {
    .demo-title {
        font-size: 1.8rem;
    }
    
    .demo-text-container {
        font-size: 1rem;
        padding: 20px;
    }
    

}

/* 光影艺术馆样式 */
.gallery-section {
    padding: 80px 0;
    background: #000000;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 0;
    }
    
    .gallery-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .gallery-item {
        border-radius: 12px;
    }
}