/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* --- 标题系列 --- */
.s95 h1 {
  font-size: clamp(36px, calc(35px + 60 * ((100vw - 375px) / (2560 - 375))), 95px) !important;
}

.s80 h1 {
  font-size: clamp(30px, calc(16px + 64 * ((100vw - 375px) / (2560 - 375))), 80px) !important;
}

.s65 h1 {
  font-size: clamp(30px, calc(14px + 51 * ((100vw - 375px) / (2560 - 375))), 65px) !important;
}

.s50 h1 {
  font-size: clamp(24px, calc(14px + 36 * ((100vw - 375px) / (2560 - 375))), 50px) !important;
}

.s40 h2 {
  font-size: clamp(20px, calc(12px + 28 * ((100vw - 375px) / (2560 - 375))), 40px) !important;
}

.s32 h2 {
  font-size: clamp(20px, calc(10px + 22 * ((100vw - 375px) / (2560 - 375))), 32px) !important;
}

.s30 h2 {
  font-size: clamp(16px, calc(10px + 20 * ((100vw - 375px) / (2560 - 375))), 30px) !important;
}

/* --- 正文系列 --- */
.s24 p,.s24 li,.s24 span {
  font-size: clamp(14px, calc(10px + 14 * ((100vw - 375px) / (2560 - 375))), 24px) !important;
}

.s20 p,.s20 li,.s20 span {
  font-size: clamp(13px, calc(9px + 11 * ((100vw - 375px) / (2560 - 375))), 20px) !important;
}



/* 背景层（用伪元素模拟） */
.bgdh::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit; 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1);
  animation: zoomInOut 15s infinite alternate ease-in-out;
  will-change: transform;
}

.bgdh::before {
   z-index: 1; 
}

/* 保证内容层正常显示在上方 */
.bgdh {
  position: relative;
  z-index: 3;
	 overflow:hidden;
}

/* 动画关键帧 */
@keyframes zoomInOut {
  0% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.my-breadcrumb {
font-size: clamp(13px, calc(13px + 3 * ((100vw - 375px) / (2560 - 375))), 16px) !important;
}

:root :where(.is-layout-flow1111111111111111111111111111111) > * {
    margin-block-start: 0!important;
}


/* add this to your custom CSS in the site settings */

html {
  scroll-behavior: auto !important;
}
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}


/* 案例轮播样式 */
.case-carousel-container {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

/* 轨道 */
.case-track {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    transition: transform 0.5s ease;
}

/* 单个卡片 */
.case-item {
    flex: 0 0 calc((100% - 100px) / 3);
    box-sizing: border-box;
}

/* 翻转卡片 */
.flip-card {
    perspective: 1000px;
    height: auto;
}

.flip-inner {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.case-item:hover .flip-inner {
    transform: rotateY(180deg);
}

/* 正面 */
.flip-front {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;

    width: 100%;
    padding: 20px;

    background: #e6ecf3;
    border-radius: 25px;

    backface-visibility: hidden;
}

/* 背面 */
.flip-back {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    text-align: center;
    background-image: url('/wp-content/uploads/2026/04/filpboxbg.png');
    background-size: cover;
    background-position: center;
    border-radius: 25px;
    overflow: hidden;
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

/* 缩略图 */
.case-thumb {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.case-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 0.65;
    object-fit: cover;
    
}

/* 标签 */
.case-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    padding: 5px 12px;
    font-size: 14px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

/* 内容区 */
.case-content {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    padding: 10px;
}

/* logo */
.case-logo {
    margin-bottom: 10px;
}

.case-logo img {
    width: 30%;
    height: 60px;
    object-fit: contain;
}

/* 文案 */
.case-excerpt {
    margin-bottom: 20px;
    font-size: clamp(14px, calc(8px + 10 * ((100vw - 375px) / (2560 - 375))), 18px);
    line-height: 1.3em;
    color: #333;
}

/* 按钮 */
.case-more-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.case-more-btn img {
    width: 15px;
    height: 16px;
}

.case-more-btn span {
    font-size: clamp(12px, calc(8px + 8 * ((100vw - 375px) / (2560 - 375))), 16px);
    font-weight: bold;
    color: #666666;
}

/* 背面内容 */
.back-content-wrapper {
    width: 100%;
    padding: 20px;
}

.back-icon {
    width: 100px;
    height: auto;
    margin-bottom: 30px;
}

.stat-num {
    font-size: clamp(30px, calc(30px + 10 * ((100vw - 375px) / (2560 - 375))), 40px);
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    margin-top: 5px;
    font-size: clamp(14px, calc(8px + 10 * ((100vw - 375px) / (2560 - 375))), 18px);
    opacity: 0.8;
}

.back-divider {
    width: 80%;
    height: 1px;
    margin: 15px auto;

    background: rgba(255, 255, 255, 0.2);
}

.back-bottom-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.sub-stat {
    flex: 1;
}

.sub-label {
    font-size: clamp(14px, calc(8px + 10 * ((100vw - 375px) / (2560 - 375))), 18px);
    opacity: 0.7;
}

.sub-num {
    font-size: clamp(20px, calc(18px + 6 * ((100vw - 375px) / (2560 - 375))), 24px);
    font-weight: 600;
}

/* 左右按钮 */
.case-prev,
.case-next {
    position: absolute;
    top: 50%;
    z-index: 10;

    width: 40px;
    height: 40px;

    background: #fff;
    border: none;
    border-radius: 50%;

    cursor: pointer;

    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.case-prev {
    left: -20px;
}

.case-next {
    right: -20px;
}

/* 响应式 */
@media (max-width: 1024px) {

    .case-item {
        flex: 0 0 calc((100% - 50px) / 2);
    }

    .case-prev {
        left: 5px;
    }

    .case-next {
        right: 5px;
    }
}

@media (max-width: 767px) {

    .case-track {
        gap: 20px;
    }

    .case-item {
        flex: 0 0 100%;
    }
}