/*
Theme Name: 康蒂娜医疗
Theme URI: http://condiner.evd.cc
Author: 康蒂娜医疗
Author URI: http://condiner.evd.cc
Description: 康蒂娜医疗科技公司 WordPress 主题
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: condiner
*/

/* CSS 已通过 functions.php wp_enqueue_style 加载，此处不再 @import */

/* WordPress 必要样式 */
.wp-caption {}
.wp-caption-text {}
.gallery-caption {}
.bypostauthor {}
.alignright {}
.alignleft {}
.aligncenter {}

/* ====== 白屏修复：原站 body{opacity:0} + JS 加载后加 .loaded 类才显示。
   禁用 index.js 后 .loaded 永远不会加，强制 body 可见 ====== */
body,
body:not(.loaded) {
    opacity: 1 !important;
}

/* ====== 动画覆盖：让 scroll-animate / alanFn 默认可见 ====== */
/* 原站 CSS 对 .scroll-animate 和 .alanFn 设置 visibility:hidden/opacity:0，
   需要 JS 触动动画才显示。此覆盖确保内容始终可见 */
/* 注意：.bus_block 不在此覆盖，保持原站动画效果 */
.scroll-animate,
.scroll-animate.animated,
.scroll-animate:not(.father),
.scroll-animate.classGo,
.scroll-animate.fontAni,
.alanFn {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
}
.scroll-animate.fontAni > div span font,
.alanFn > div span font {
    opacity: 1 !important;
    transform: none !important;
}

/* Footer 导航 .alan 类可见性修复 */
.foot_nav .alan,
.foot_nav .alan ol,
.foot_nav .alan li {
    visibility: visible !important;
    opacity: 1 !important;
}

/* ====== Banner 视频全屏适配 ====== */
.ind_body .ind_r1 .swiper-slide .pub_img_box video.video_box {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====== 导航搜索框交互（样式由原站 static/css/style.css 提供）====== */

/* ====== 导航栏滚动效果 ====== */
/* 原站 .nav_bg 有 display:none，改为 display:block 配合 JS 控制高度 */
.nav_bg {
    display: block !important;
}

/* ====== Banner 标题文字 ====== */
/* 原站 .pub_title { font-size:0 }，文字由 JS 拆分成 <font> 标签才有大小
   禁用 JS 后直接设置字体大小 */
.ind_body .ind_r1 .swiper-slide .ind_r1_txt .pub_title {
    font-size: 4.125vw !important;
    letter-spacing: 1vw !important;
}

/* ====== 鼠标跟随特效 ====== */
/* 原站用 GSAP 动画，这里用 CSS transition + JS 替代 */
.mos_box_case .mos_box {
    margin-top: 0 !important;
    margin-left: 0 !important;
    transform: scale(0);
    transform-origin: center center;
    /* transition 只用于背景色和文字透明度，transform 由 JS 直接设置（无抖动） */
    transition: background-color 0.3s ease !important;
}
.mos_box_case .mos_box span {
    transition: opacity 0.3s ease;
    opacity: 0;
}
/* mix_sty = 深蓝色 + 显示"更多"文字 */
.mos_box_case.mix_sty .mos_box {
    background-color: #0032a0 !important;
}
.mos_box_case.mix_sty .mos_box span {
    opacity: 1 !important;
}
/* ====== ind_r2 产品展示：原站用 CSS animation + --go 变量 + GSAP ScrollTrigger ====== */
/* 保持原站动画规则，设置足够的容器高度让四个卡片完整显示 */
.ind_body .ind_r2 .ind_r2_btm_case {
    height: 500vh !important;  /* 增加高度，确保四张卡片都有足够时间显示 */
}
/* 初始化 --go 变量（JS 会更新） */
.ind_body .ind_r2 .ind_r2_btm_case {
    --go: 0;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}
