@font-face {
  font-family: 'EnFont';
  src: url("/wp-content/themes/kyy2026/assets/css/EnFont.woff") format("woff"), url("/wp-content/themes/kyy2026/assets/css/EnFont.otf") format("opentype"); 
} 

/* --- 基础重置与全局样式 --- */
* {margin: 0;padding: 0; box-sizing:border-box;}
html {height:100%;}
body {position:relative;min-height:100%;padding:120px 0;font-family: "EnFont", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;line-height: 1;color:#0D0D0D;background: #FFF;}

a {text-decoration: none;color: inherit;}

ul {list-style: none;}
body .entext {font-family:"EnFont", system-ui, -apple-system, sans-serif;font-weight: 300;}

/* --- 顶部导航栏 --- */
/* .site-header {position: fixed;top: 0;left:145px;right:145px;min-width:1920px;height:150px;padding:0;z-index: 10;border-bottom:2px solid #99A2AB;background: #FFF;} */
.site-header {position: fixed;top: 0;width:100%;min-width:1920px;height:150px;padding:0;z-index: 999;background: #FFF;}
.header-wrap {position:relative;width:1920px;;margin:0 auto;}
.header-wrap::before {display: block;position:absolute;top:148px;width:120%;height:2px;margin:0 -10%;background:#99A2AB;font-size:0px;line-height:0;content:" ";z-index:0;}
.header-logo {float:left;width:204px;height:150px;padding-top:58px;}
.header-nav {position:static;padding:58px 0 0 247px;z-index: 10;}
.header-language {position: absolute;top:18px;right: 0;width:51px;height:20px;overflow:hidden;z-index: 20;}
.header-language a {display: block;height:100%;padding-top:40px;background: url(../img/icons.png) 0 -50px;}

.header-search {position: absolute;top: 55px;right: 0;width:350px;height: 54px;border: 2px solid #99A2AB; overflow:hidden;border-radius: 6px;background: #F5F5F5;}
.header-search .screen-reader-text {display:none;}
.header-search #s {float:left;width: 298px;height:50px;padding:2px 5px;border:none;line-height: 50px;font-size:20px;background: #F5F5F5;}
.header-search #searchsubmit {float:right;width: 32px;height:100%;padding-top:50px;margin-right:10px;overflow:hidden;border:none;background:transparent url(../img/icons.png) 0 10px no-repeat;}

/* 下拉菜单 */
.primary-menu .menu-item {float:left;height:92px;font-size:20px;background:rgba(255, 255, 255, 0);}
.primary-menu .menu-text {display: block; margin: 0 31px;height:90px;line-height:48px;color:#000;cursor:pointer;}
.primary-menu .menu-text:hover {border-bottom:3px solid #626262;}
.primary-menu .menu-item > .sub-menu-wrap {position:absolute;top:150px;left:50%;z-index: 7;width:500%;height:0;overflow:hidden;visibility:hidden;margin-left:-250%;background: #FFF;box-shadow: 0 6px 6px rgba(0,0,0,0.3);transition: height 0.2s;}
.primary-menu .menu-item:hover .sub-menu-wrap {visibility: visible;height: 470px; }
.primary-menu .sub-menu {display:flex;position:relative;width:1920px;height:440px;margin:auto;padding:40px 0;}
.primary-menu .sub-menu .menu-item-has-children {flex:none;width:auto;min-width:20em;}
.primary-menu .sub-menu a {display: block;text-wrap:nowrap;text-overflow: ellipsis; font-size:16px;line-height:38px;color: #7A838B;}
.primary-menu .term-label {display: block;color:#003F69;line-height:36px;}
.primary-menu .list-posts {columns: 40px 2; column-fill: auto;column-gap: 40px;width:100%;height: 100%;}
.primary-menu .list-posts li {break-inside: avoid;}

/* 主内容区 */
.site-main {clear:both;position:relative;width: 100%;height: 100%;background:#FFF;}
.site-main > .wrap {width: 1920px;margin:0 auto;}

/* 首页 */
.home .wrap > h1 {display: none;}
.home .wp-block-gallery {position: relative;width:1920px;height:990px;overflow: hidden;margin:auto;}
.home .wp-block-gallery .wp-block-image {float:left;;width: 100%;height: 100%;}

/* --- 轮播图区域 --- */
.hero-section {
    height: 100vh; /* 全屏高度 */
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例填满屏幕 */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide-image.active {
    opacity: 1;
    z-index: 2;
}

/* 箭头 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #fff;
    background: rgba(0,0,0,0.1);
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s;
}

.slider-arrow:hover {
    background: rgba(0,0,0,0.3);
}

.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

/* 圆点指示器 */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #fff;
}

/* 右侧文字叠加层 (可选，如果需要完全还原) */
.hero-text-overlay {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    text-align: right;
    z-index: 4;
    color: #005555; /* 深青色 */
}

.hero-text-overlay h1 {
    font-size: 48px;
    font-weight: normal;
    margin-bottom: 5px;
}

/* --- 底部版权栏 --- */
.site-footer {
    background-color: #4ECDC4; /* 青绿色背景 */
    padding: 20px 0;
    color: #fff;
    text-align: right; /* 右下角对齐 */
    position: absolute;
    bottom: 0;
    width: 100%;
    height:150px;
    font-size: 12px;
}


/*---- 产品/器械页 ----*/
.pruduct-page {position: relative;min-height:100%;}
.product-gallery {position: absolute;left:105px;top:0;width:856px;height:856px;}
.product-info {position:relative;margin-left:1100px;padding-top:110px;}
.product-info .product-name-en {font-size:60px;line-height:69px;}
.product-info .product-name-cn {margin-bottom:34px;font-size:35px;line-height:84px;}
.product-info .product-intro {height:54px;overflow:hidden;margin-bottom:68px;font-size:20px;line-height:27px;color:#838383;text-overflow: ellipsis;}

/* 图片 */
.product-gallery .gallery-image {position:relative;width:100%;height:100%;overflow: hidden;text-align: center;}

/* 箭头按钮 */
.product-gallery .arrow {position: absolute;top: 50%;transform: translateY(-50%);z-index:5;width: 93px;height: 93px;overflow: hidden;padding-top:93px;border: 1px solid #ddd;border-radius: 50%;font-size:0;background:rgba(255,255,255,.7);cursor: pointer;}
.product-gallery .arrow::after {position: absolute;left:50%;top:50%;transform: translate(-50%,-50%) ;content:" ";width:13px;height: 21px;overflow: hidden;background:url(../img/icons.png) no-repeat center -350px;}
.product-gallery .arrow-left { left:-46px; }
.product-gallery .arrow-right::after {background-position: 50% -400px; }
.product-gallery .arrow-right { right: -46px;}

/* 规格下拉菜单 */
.product-info .spec-select {position:relative;width:585px;height:auto;background:#FFF;font-size: 23px;line-height: 72px;z-index:3;}
.product-info .spec-selected {position:relative;width:100%;height:74px;overflow:hidden;border:1px solid #DEDEDE;cursor: pointer;}
.product-info .spec-selected::after {position:absolute;right:20px;top:31px;;width:20px;height:10px;overflow:hidden;content:" ";background:url(../img/icons.png) no-repeat center -300px;font-size:0;line-height:0;}
.product-info .spec-options {position:absolute;width:100%;height:0;overflow: hidden;transition: height 0.2s;border:1px solid #DEDEDE;border-top:0 none;background:#FFF;cursor: pointer;}
.product-info .spec-options.drop {height:100%;}
.product-info .spec-options li {clear:both;height:72px;}
.product-info .spec-options .active {background:#EDEDED;}
.product-info .spec-select span{display: inline-block;}
.product-info .product-unit {padding-left:27px;padding-right:10px;}
.product-info .product-unit::after {display:inline-block;padding-left:10px;content:"|";}
.product-info .product-price {float:right;padding-right:73px;}
.product-info .product-price::before {display: inline-block;content:"￥";}
.product-info .product-links {width:585px;margin-top:154px;}
.product-info .buy-group {clear:both;display:flex;flex-direction: row;flex-wrap: nowrap;justify-content:space-between;align-items: center;}
.product-info .buy-group .buy-link {display:block;width:278px;height:60px;border:1px solid #003F69;border-radius:30px;color:#FFF;background: #003F69;font-size:22px;line-height:60px;text-align: center;}
.product-info .buy-group .buy-link:hover {color:#003F69;background: #FFF;} 

/* 缩略图 */
.spec-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.thumb {
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
}
.thumb.active {
  border-color: #007bff;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 主图容器 */
.gallery-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}
.main-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}



/* --- 响应式调整 (简单适配) --- */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo {
        order: -1; /* Logo放最上面 */
    }
    .hero-text-overlay {
        right: 5%;
        text-align: right;
    }
    .hero-text-overlay h1 {
        font-size: 32px;
    }
}
