/*
Theme Name: HashOne child simple
Template: hashone
Version: 1.0
*/

@import url("../hashone/style.css");

/* 官方正版 MiSans 含 200 ExtraLight */
@font-face {
    font-family: 'MiSans';
    src: url('https://cdn.jsdelivr.net/npm/misans@4.1.0/lib/Normal/MiSans-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'MiSans';
    src: url('https://cdn.jsdelivr.net/npm/misans@4.1.0/lib/Normal/MiSans-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'MiSans';
    src: url('https://cdn.jsdelivr.net/npm/misans@4.1.0/lib/Normal/MiSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'MiSans';
    src: url('https://cdn.jsdelivr.net/npm/misans@4.1.0/lib/Normal/MiSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

body,
button, input, select, textarea {
    font-family: 'MiSans', 'Helvetica Neue', 'Arial', sans-serif !important;
    font-weight: 300 !important;
    background: #F5F3EF !important;
    color: #1A1A1A !important;
    line-height: 1.8 !important;
    letter-spacing: 0.02em !important;
}

html {
    scroll-behavior: smooth;
}

h1,h2,h3,.hs-site-title,.hs-section-title {
    font-weight: 200 !important;
}

/* 导航 —— 只加垂直居中，不改变任何位置、布局 */
#hs-masthead {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    height: 60px !important;
    padding: 0 40px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    z-index: 9999 !important;
    line-height: 60px !important;
    display: flex !important;
    align-items: center !important;
}
#hs-masthead.fadeInDown {
    height: 60px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
}

.hs-site-title a {
    font-size: 22px !important;
    font-weight: 200 !important;
    color: #ffffff !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
}
#hs-masthead.fadeInDown .hs-site-title a {
    font-size: 18px !important;
    color: #1A1A1A !important;
}

.hs-main-navigation a {
    color: #ffffff !important;
    font-weight: 200 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    line-height: 60px !important;
    padding: 0 24px !important;
    height: 60px !important;
}
#hs-masthead.fadeInDown .hs-main-navigation a {
    font-size: 13px !important;
    color: #1A1A1A !important;
    line-height: 60px !important;
}

.hs-menu > ul > li > a:after {
    display: none !important;
}

/* 首屏banner */
#hs-home-slider-section,
.hs-slide {
    height: 100vh !important;
}
.hs-slide-caption {
    top: 50% !important;
    transform: translateY(-50%) !important;
    text-align: center !important;
    z-index: 2 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2) !important;
}
.hs-slide-cap-title {
    font-size: 44px !important;
    font-weight: 300 !important;
    margin-bottom: 12px !important;
    letter-spacing: 2px !important;
    color: #fff !important;
}
.hs-slide-cap-desc {
    font-size: 14px !important;
    color: #fff !important;
    opacity: 0.9 !important;
}

#hs-home-slider-section {
  position: relative !important;
}
#hs-home-slider-section .slide-banner-overlay,
#hs-home-slider-section .hs-slide-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.2) !important;
  z-index: 2 !important;
  opacity: 1 !important;
}
#hs-home-slider-section .hs-slide-caption {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 999 !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#hs-home-slider-section .hs-slide-cap-title span {
    font-size: 46px !important;
    font-weight: 200 !important;
    letter-spacing: 2px !important;
    line-height: 1.3 !important;
}
#hs-home-slider-section .hs-slide-cap-desc p {
    font-size: 16px !important;
    margin-top: 15px !important;
    opacity: 0.95 !important;
}

/* 通用区块（PC端） */
.hs-section {
    padding: 140px 20px !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    text-align: center !important;
    background: transparent !important;
}
.hs-section-title {
    font-size: 26px !important;
    font-weight: 200 !important;
    margin-bottom: 44px !important;
    letter-spacing: 1px !important;
    color: #1A1A1A !important;
}
.hs-section-tagline {
    font-size: 14px !important;
    color: #666 !important;
    max-width: 620px !important;
    margin: 0 auto 50px !important;
}

/* 产品卡片 */
.hs-portfolio,
.hs-featured-post {
    width: 260px !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1) !important;
}
.hs-portfolio:hover,
.hs-featured-post:hover {
    transform: scale(1.04) !important;
}
.hs-portfolio img,
.hs-featured-post img {
    width: 100% !important;
    background: #fff !important;
    padding: 30px !important;
    border-radius: 2px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.03) !important;
}
.hs-portfolio:hover img,
.hs-featured-post:hover img {
    box-shadow: 0 12px 30px rgba(0,0,0,0.06) !important;
}

/* 按钮 */
.entry-readmore a,
button, input[type="submit"] {
    background: none !important;
    color: #1A1A1A !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #1A1A1A !important;
    font-weight: 300 !important;
    transition: 0.3s !important;
}
.entry-readmore a:hover {
    opacity: 0.7 !important;
    background: none !important;
}

/* 标语墙 */
#hs-counter-section {
    background: #EAE7E0 !important;
    color: #333 !important;
    padding: 110px 20px !important;
}
.hs-counter-title {
    font-size: 20px !important;
    font-weight: 300 !important;
    color: #333 !important;
}

/* 页脚 */
#hs-top-footer, #hs-bottom-footer {
    background: #F5F3EF !important;
    color: #999 !important;
    text-align: center !important;
    padding: 60px 20px !important;
}
#hs-colophon a {
    color: #999 !important;
}
#hs-colophon a:hover {
    color: #666 !important;
}

/* 去掉母主题红色 */
.hs-site-title a:first-letter,
.hs-main-navigation .current_page_item > a,
.hs-main-navigation .current-menu-item > a {
    color: inherit !important;
}

/* 底部版权同行 */
#hs-bottom-footer .hs-container {
    text-align: center !important;
}
.hs-copy-right,
.hs-site-info {
    float: none !important;
    display: inline-block !important;
    vertical-align: middle !important;
    font-size: 12px !important;
    margin: 0 5px !important;
}

/* 导航默认白色文字 */
#hs-masthead:not(.fadeInDown) .hs-main-navigation li a {
    color: #ffffff !important;
}
#hs-masthead:not(.fadeInDown) .hs-main-navigation li.current_page_item a,
#hs-masthead:not(.fadeInDown) .hs-main-navigation li.current-menu-item a,
#hs-masthead:not(.fadeInDown) .hs-main-navigation li:hover a {
    color: #ffffff !important;
}
#hs-masthead.fadeInDown .hs-main-navigation li a {
    color: #1A1A1A !important;
}

/* 导航悬浮变白 */
#hs-masthead:not(.fadeInDown):hover {
  background: #ffffff !important;
}
#hs-masthead:not(.fadeInDown):hover .hs-main-navigation li a,
#hs-masthead:not(.fadeInDown):hover .hs-site-title a {
  color: #1A1A1A !important;
}

#hs-site-branding {
    height: 60px !important;
    line-height: 60px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.hs-main-navigation a {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
  position: relative !important;
}
.hs-main-navigation a:hover {
  transform: translateY(-1px) !important;
  opacity: 0.8 !important;
}

/* 回到顶部 */
#hs-back-top {
  background-color: #EAE7E0 !important;
  color: #1A1A1A !important;
}
#hs-back-top:hover {
  background-color: #d0ccc0 !important;
  color: #000 !important;
}

/* 自定义区块 */
#hs-myblock1-section,
#hs-myblock2-section,
#hs-myblock3-section,
#hs-myblock4-section {
  text-align: center !important;
}
#hs-myblock1-section .hs-section-title,
#hs-myblock2-section .hs-section-title,
#hs-myblock3-section .hs-section-title,
#hs-myblock4-section .hs-section-title {
  font-size: 26px !important;
  font-weight: 200 !important;
  margin-bottom: 44px !important;
  letter-spacing: 1px !important;
}
#hs-myblock1-section .hs-section-desc,
#hs-myblock2-section .hs-section-desc,
#hs-myblock3-section .hs-section-desc,
#hs-myblock4-section .hs-section-desc {
  font-size: 14px !important;
  font-weight: 300 !important;
  color: #666 !important;
  max-width: 620px !important;
  margin: 0 auto 50px !important;
  line-height: 1.8 !important;
}

/* 轮播进度条 */
#hs-home-slider-section {
  position: relative !important;
}
.slider-pager {
  position: absolute !important;
  bottom: 54px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: 6px !important;
  z-index: 999 !important;
  cursor: default !important;
}
.slider-pager-item {
  width: 208px !important;
  height: 1px !important;
  background: rgba(255,255,25,0.15) !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
}
.slider-pager-item::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 100% !important;
  width: 0%;
  background: rgba(255,255,255,0.5) !important;
}
.slider-pager-item.active::before {
  animation: pagerFill 5s cubic-bezier(0.18, 0.74, 0.32, 1) forwards;
}
@keyframes pagerFill {
  0%   { width: 0%; }
  100% { width: 100%; }
}
.slider-pager-item:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}
.slider-pager-item:hover::before {
  background: rgba(255, 255, 255, 0.8) !important;
}

.hs-site-info a {
    border-bottom: none !important;
}

/* 汉堡菜单 —— 完全保留原位置，只修复：点开变白+图标变黑 */
@media screen and (max-width: 1000px) {
    .hs-main-navigation .hs-menu{
        display: none;
        background: #FFF;
        float: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        border-top: 2px solid #fff !important;
    }
    .hs-main-navigation li{
        float: none;
        display: inline-block;
    }
    .hs-main-navigation ul ul li{
        display: block;
    }
    .hs-main-navigation a{
        color: #333 !important;
    }
    .hs-toggle-menu{
        display: block !important;
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        height: 24px !important;
        width: 24px !important;
        cursor: pointer !important;
        z-index: 9999 !important;
    }
    .hs-toggle-menu span{
        height: 1px !important;
        width: 24px !important;
        background: #ffffff !important;
        box-shadow: 0 7px 0 0 #ffffff, 0 -7px 0 #ffffff !important;
    }

    /* 修复：点击汉堡 → 导航变白 + 按钮变黑 */
    #hs-masthead.hs-menu-open {
        background: #fff !important;
    }
    #hs-masthead.hs-menu-open .hs-toggle-menu span,
    #hs-masthead.fadeInDown .hs-toggle-menu span {
        background: #1A1A1A !important;
        box-shadow: 0 7px 0 0 #1A1A1A, 0 -7px 0 #1A1A1A !important;
    }
    
    /* 手机菜单间距缩小，一行排列 */
    .hs-main-navigation li {
        margin:0 2px !important;
        padding:0 !important;
    }
    .hs-main-navigation a {
        padding:0 8px !important;
        font-size:13px !important;
        white-space:nowrap !important;
    }
}

/* 手机端样式 */
@media (max-width: 768px) {
    #hs-masthead {
        height: 60px !important;
        padding: 0 20px !important;
    }
    #hs-masthead.fadeInDown {
        height: 60px !important;
        background: #fff !important;
    }

    #hs-home-slider-section,
    .hs-slide {
        height: auto !important;
        min-height: unset !important;
        aspect-ratio: 9 / 16 !important;
        overflow: hidden !important;
    }
    .hs-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    #hs-home-slider-section .hs-slide-caption {
        bottom: 60px !important;
        top: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        padding: 0 20px !important;
        text-align: center !important;
    }

    .slider-pager {
        bottom: 54px !important;
    }
    .slider-pager-item {
        width: 208px !important;
        height: 1px !important;
    }

    .hs-section {
        padding: 70px 20px !important;
    }
    .hs-portfolio,
    .hs-featured-post {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto 30px !important;
    }
    #hs-counter-section {
        padding: 70px 20px !important;
    }
    #hs-top-footer,
    #hs-bottom-footer {
        padding: 50px 20px !important;
    }
    .hs-copy-right,
    .hs-site-info {
        font-size: 11px !important;
        display: block !important;
        margin: 4px 0 !important;
    }

    #hs-myblock1-section .hs-section-title,
    #hs-myblock2-section .hs-section-title,
    #hs-myblock3-section .hs-section-title,
    #hs-myblock4-section .hs-section-title,
    .hs-section-title,
    .hs-section-title.wow.fadeInUp,
    .hs-slide-cap-title span 
    {
        font-weight: 200 !important;
        font-size: 24px !important;
    }
}

@media (max-width: 414px) {
    #hs-masthead {
        padding: 0 15px !important;
    }
    #hs-home-slider-section .hs-slide-cap-title span {
        font-size: 24px !important;
    }
    #hs-home-slider-section .hs-slide-cap-desc p {
        font-size: 13px !important;
    }
    .slider-pager-item {
        width: 180px !important;
    }
    .hs-section {
        padding: 60px 15px !important;
    }
}

@media (max-width: 375px) {
    #hs-home-slider-section .hs-slide-cap-title span {
        font-size: 22px !important;
    }
    .slider-pager-item {
        width: 160px !important;
    }
}

@media (max-width: 320px) {
    #hs-home-slider-section .hs-slide-cap-title span {
        font-size: 20px !important;
    }
}