/* PPT设计页面专用样式 */

/* ===== 页面容器 ===== */
.ppt-design-page {
    width: 100%;
    height: 100vh; /* 固定高度为100vh */
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 隐藏溢出 */
}

/* ===== 页面标题区域 ===== */
.page-title-section {
    padding: 80px 0 35px 0; /* 再增加10px */
    background: #fff;
    flex-shrink: 0; /* 不缩小 */
}

.title-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 标题左侧紫色竖线 */
.title-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #7028aa;
}

.page-title {
    font-size: 1.8rem; /* 从2rem减小 */
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 15px; /* 减小下边距 */
    font-family: 'SweiSpring', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.page-subtitle {
    font-size: 0.85rem; /* 从0.9rem减小 */
    color: #999;
    margin: 0 0 0 15px;
    letter-spacing: 2px;
    font-family: 'RobotoEnglish', 'SourceHanSans', sans-serif;
}

/* ===== 案例展示区域 ===== */
.cases-display-section {
    flex: 1; /* 占据剩余空间 */
    /* padding: 20px 0; 减小padding */
    background: #fff;
    display: flex;
    align-items: center;
    min-height: 0; /* 允许缩小 */
}

.cases-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row; /* 强制横向排列 */
    gap: 30px; /* 减小gap */
    width: 100%;
    position: relative;
    min-height: 400px; /* 减小最小高度 */
}

/* 左侧大图 */
.case-large {
    flex: 0 0 60%; /* 占60%宽度 */
    z-index: 1;
    align-self: flex-start; /* 顶部对齐 */
    display: flex;
    justify-content: flex-end; /* 图片居右 */
}

.case-large .case-image {
    width: 100%;
    height: 100%; /* 填满容器高度 */
    max-height: 35vh; /* 限制最大高度 */
    display: block;
    border-radius: 0; /* 移除圆角 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    object-fit: cover; /* 改为cover，裁剪高度 */
    object-position: right center; /* 图片内容靠右居中 */
}

.case-large .case-image:hover {
    transform: scale(1.02);
}

/* 右侧区域 */
.case-right {
    flex: 0 0 35%; /* 占35%宽度 */
    position: absolute;
    right: 20px; /* 与容器右侧对齐 */
    top: 50%; /* 从中间开始 */
    transform: translateY(-25%); /* 向上偏移25%，让图片中心在容器中间偏下 */
    z-index: 2;
    width: calc(35% - 20px); /* 减去padding */
    display: flex;
    flex-direction: column; /* 垂直排列 */
}

/* 更多案例按钮 */
.more-cases-wrapper {
    position: relative; /* 改为相对定位 */
    margin-top: -80px; /* 向上移动 */
    margin-bottom: 15px; /* 减小与小图的间距 */
    padding-top: 80px; /* 增加内部高度 */
    min-height: 60px; /* 增加最小高度 */
    z-index: 3;
    display: flex;
    justify-content: flex-end; /* 内容靠右 */
    overflow: visible; /* 改为visible，允许下划线超出 */
}

.more-cases-link {
    display: flex;
    flex-direction: row; /* 横向排列 */
    align-items: flex-end; /* 底部对齐 */
    text-decoration: none;
    color: #333;
    position: relative;
    gap: 15px; /* 句号和下划线区域之间的间距 */
}

.more-dot {
    font-size: 1.5rem;
    color: #7028aa;
    line-height: 1;
    flex-shrink: 0; /* 不缩小 */
}

.more-text {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    font-family: 'SweiSpringSugar', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px; /* 文字和下划线之间的间距 */
}

/* 下划线 */
.more-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* 从右边开始 */
    width: 130%; /* 向左延伸 */
    height: 2px;
    background: #7028aa;
    transition: width 0.3s ease;
}

.more-cases-link:hover .more-text {
    color: #7028aa;
}

.more-cases-link:hover .more-text::after {
    width: 150%; /* hover时更长 */
}

/* 右侧小图 */
.case-small {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: flex-start; /* 图片居左 */
}

.case-small .case-image {
    width: 100%;
    height: 100%; /* 填满容器高度 */
    max-width: 100%;
    max-height: 25vh; /* 调整最大高度 */
    object-fit: cover; /* 改为cover，裁剪高度 */
    object-position: left center; /* 图片内容靠左居中 */
    display: block;
    border-radius: 0; /* 移除圆角 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* ===== 底部联系信息区域 ===== */
.ppt-design-page .contact-info-section {
    background: linear-gradient(135deg, #512587 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10px 0 !important; /* 设置小的padding */
    color: white;
    display: flex;
    flex-direction: column; /* 强制垂直排列 */
    align-items: center;
    flex-shrink: 0; /* 不缩小 */
    height: 20vh; /* 固定高度为20vh */
    justify-content: center; /* 垂直居中 */
}

.ppt-design-page .contact-content {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px; /* 和导航栏一样的padding */
    box-sizing: border-box; /* 确保padding包含在宽度内 */
}

/* 联系信息项容器 */
.ppt-design-page .contact-items {
    display: flex !important;
    align-items: flex-start !important; /* 顶部对齐 */
    justify-content: space-between !important;
    gap: 20px !important;
}

/* 缩小联系信息项 */
.ppt-design-page .qrcode-img {
    width: 60px !important; /* 缩小二维码 */
    height: 60px !important;
}

.ppt-design-page .qrcode-label {
    font-size: 10px !important; /* 缩小文字 */
}

.ppt-design-page .info-icon {
    width: 24px !important; /* 缩小图标容器 */
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-shrink: 0 !important; /* 不缩小 */
}

.ppt-design-page .info-icon img {
    height: 18px !important; /* 缩小图标 */
    width: auto !important;
    filter: brightness(0) invert(1) !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ppt-design-page .info-text {
    height: 32px !important; /* 固定高度，确保下划线对齐 */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow: visible !important; /* 允许下划线显示 */
    width: auto !important; /* 改为auto,让宽度由内容决定 */
    min-width: fit-content !important; /* 最小宽度适应内容 */
    padding: 0 !important;
}

.ppt-design-page .info-text p {
    font-size: 10px !important; /* 缩小文字 */
    line-height: 1.3 !important;
    margin: 2px 0 !important;
}

/* 确保联系信息项的图标位置正确 */
.ppt-design-page .contact-item.info-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.ppt-design-page .info-content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important; /* 减小间距 */
    width: auto !important; /* 改为auto,让宽度由内容决定 */
}

/* 确保所有info-icon高度一致 */
.ppt-design-page .info-content-wrapper .info-icon {
    height: 24px !important; /* 固定高度 */
    min-height: 24px !important;
    max-height: 24px !important;
}

/* 确保info-divider高度一致 */
.ppt-design-page .info-divider {
    height: 2px !important;
    background: white !important;
    width: auto !important; /* 改为auto,跟随内容宽度 */
    align-self: stretch !important; /* 拉伸到容器宽度 */
    margin: 0 !important;
    padding: 0 !important;
    display: block !important; /* 确保显示 */
    flex-shrink: 0 !important; /* 不缩小 */
}

/* 确保info-text位置一致 */
.ppt-design-page .info-content-wrapper .info-text {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 移除伪元素下划线,使用info-divider */
.ppt-design-page .info-text::before {
    display: none !important;
}

/* 版权信息 */
.ppt-design-page .copyright-info {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto; /* 取消margin */
    padding: 5px 20px 0; /* 和导航栏一样的左右padding */
    text-align: center;
    border-top: none; /* 取消上边框 */
    box-sizing: border-box;
}

.ppt-design-page .copyright-info p {
    font-size: 10px; /* 缩小字体 */
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-family: 'SweiSpringSugar', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ===== 响应式设计 ===== */

/* 平板设备 */
@media (max-width: 1024px) {
    .cases-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .case-large {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .case-right {
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 0;
    }
    
    .more-cases-wrapper {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    .page-title-section {
        padding: 100px 0 40px 0;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 0.8rem;
    }
    
    .cases-display-section {
        padding: 30px 0 60px 0;
    }
    
    .cases-container {
        gap: 20px;
    }
    
    .more-cases-wrapper {
        justify-content: center;
    }
}

/* 小屏幕移动设备 */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.3rem;
    }
    
    .page-subtitle {
        font-size: 0.75rem;
    }
    
    .more-text {
        font-size: 0.9rem;
    }
}

/* ===== 导航菜单二级菜单选中状态 ===== */
.ppt-design-page .nav-submenu a.active,
.ppt-design-page .nav-submenu a[href*="pptDesign"] {
    color: #7028aa !important;
    background: #f8f4ff !important;
    font-weight: 600 !important;
}
