/* 自定义字体 */
@font-face {
    font-family: "阿里巴巴普惠体";
    src: url("../fonts/puhuiti-300-thin.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "阿里巴巴普惠体";
    src: url("../fonts/puhuiti-400-light.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "阿里巴巴普惠体";
    src: url("../fonts/puhuiti-regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "阿里巴巴普惠体";
    src: url("../fonts/puhuiti-500-medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "阿里巴巴普惠体";
    src: url("../fonts/puhuiti-600-semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "阿里巴巴普惠体";
    src: url("../fonts/puhuiti-700-bold.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* 基础样式 */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* 首页公司简介 */
main > section:first-child p {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 90%;
    margin: 0 auto;
    text-align: justify;
    text-indent: 2em;
}

/* 产品区域样式 */
.aspect-square {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 产品区布局 */
@media (min-width: 768px) {
    .carousel-container {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .carousel-content {
        height: 100%;
        flex: 1;
        max-height: 550px;
    }
    
    .carousel-img {
        max-height: 100%;
        object-fit: contain;
    }
    
    .skeleton-loader {
        height: 100%;
    }
    
    /* 产品图区域宽度调整 */
    .product-carousel-container {
        width: 100% !important;
        margin: 0 auto;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 下载区域横向排列 */
    .download-container {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        width: 100%;
        max-width: 90%;
    }
    
    .download-container .glass-card-secondary {
        flex: 1;
        height: auto;
        padding: 10px;
        margin: 0 5px;
    }
}

/* 移动端产品区域样式 */
@media (max-width: 767px) {
    .carousel-container {
        height: 350px;
    }
    
    .carousel-content {
        height: 100%;
    }
}

/* 玻璃态卡片效果 */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* 50%透明度的卡片 */
.glass-card-50 {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-card-50:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.glass-card-secondary {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.glass-card-secondary:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* 轮播图区域 */
.carousel-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.carousel-content {
    width: 100%;
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.carousel-img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-img.active {
    display: block;
    opacity: 1;
    z-index: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.left-btn {
    left: 15px;
}

.right-btn {
    right: 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .left-btn {
        left: 5px;
    }
    
    .right-btn {
        right: 5px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
}

/* 图片和占位符 */
.download-img, .qrcode-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.download-img:hover, .qrcode-img:hover {
    transform: scale(1.05);
}

/* 商标弹窗动画 */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(0, 20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

/* 骨架屏动画 */
.skeleton-loader {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 下载卡片样式 */
.scale-90 {
    transform: scale(0.9);
}

/* 产品信息区域高度控制 */
.product-info-container,
.download-container-wrapper {
    height: 50%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    box-sizing: border-box;
}

.product-info-container {
    padding-bottom: 20px;
}

.download-container-wrapper {
    padding-top: 20px;
}

/* 下载图卡片描述文字样式 */
.download-container .flex-col p {
    margin-top: 12px;
    padding-top: 4px;
}

.flex-col.space-y-4 .glass-card-secondary {
    transition: all 0.3s ease;
    height: calc(100% / 3 - 1rem);
}

.flex-col.space-y-4 .glass-card-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.flex-col.space-y-4 {
    height: 100%;
}

@media (max-width: 767px) {
    .aspect-square {
        height: 100px;
    }
    
    .download-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .download-container .glass-card-secondary {
        margin: 0;
    }
}

/* 页脚样式 */
footer .gap-4 span {
    display: inline-flex;
    align-items: center;
}

footer .gap-4 span:not(:last-child) {
    margin-right: 0.25rem;
}

@media (max-width: 640px) {
    footer .gap-4 span:not(:last-child) {
        margin-right: 0.1rem;
    }
    
    footer .gap-4 {
        gap: 0.5rem !important;
    }
}

/* 背景图样式 */
.bg-pattern {
    background-image: url('../pic/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* 如果使用背景图，可能需要调整卡片透明度 */
.bg-pattern .glass-card,
.bg-pattern .glass-card-secondary,
.bg-pattern .glass-card-50 {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
} 