:root{
  --sh-adminbar-offset:0px;
  --sh-adminbar-space:0px;
  --sh-header-height:82px;
  --sh-fabric:#f4efe6;
  --sh-linen:#eae3d5;
  --sh-gold:#d38c3b;
  --sh-orange:#e26d3c;
  --sh-denim:#2c3a47;
  --sh-white:#fdfcfa;
  --sh-font:"Microsoft JhengHei","PingFang TC","Noto Sans TC",Arial,sans-serif;
}
*{box-sizing:border-box}
/* WordPress injects html{margin-top:32/46px!important} for the admin bar.
   We neutralize that root margin and let runtime metrics be the single source of truth.
   This prevents a phantom 46px gap when the admin bar element is hidden but body.admin-bar remains. */
html:root{margin-top:0!important;scroll-behavior:smooth}
body{margin:0;padding-top:var(--sh-adminbar-space,0px);font-family:var(--sh-font);color:var(--sh-denim);background:var(--sh-fabric)}
body *{font-family:var(--sh-font)}
a{color:inherit}
button,input,select,textarea{font:inherit}

.sh-site-header{
  position:fixed;
  top:var(--sh-adminbar-offset,0px);
  right:0;
  bottom:auto;
  left:0;
  width:100%;
  z-index:10000;
  padding:17px 0;
  background:rgba(244,239,230,.92);
  border-bottom:2px dashed rgba(211,140,59,.24);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  transition:background .32s ease,box-shadow .32s ease;
}
.sh-site-header.is-scrolled{background:rgba(244,239,230,.97);box-shadow:0 8px 25px rgba(44,58,71,.08)}
.sh-header-inner{width:min(1400px,calc(100% - 48px));margin:auto;display:flex;align-items:center;justify-content:space-between;gap:26px;min-width:0}
.sh-brand{display:inline-flex;align-items:center;gap:10px;min-width:0;text-decoration:none;font-size:23px;font-weight:700;letter-spacing:.055em;white-space:nowrap}
.sh-brand img{display:block;max-width:190px;max-height:46px;width:auto;height:auto}
.sh-brand-icon{flex:0 0 32px;width:32px;height:32px;color:var(--sh-gold);transition:transform .3s ease}
.sh-brand-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.sh-main-nav{display:flex;align-items:center;gap:30px;min-width:0}
.sh-main-nav>a{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:10px 0;text-decoration:none;font-size:16px;font-weight:700;letter-spacing:.025em;white-space:nowrap}
.sh-main-nav>a:not(.sh-nav-cta)::after{content:"";position:absolute;left:0;right:100%;bottom:2px;height:2px;background:var(--sh-gold);transition:right .3s cubic-bezier(.16,1,.3,1)}
.sh-main-nav>a:not(.sh-nav-cta):hover::after{right:0}
.sh-nav-cta{padding:11px 18px!important;background:var(--sh-denim);color:var(--sh-fabric);border:2px dashed var(--sh-gold);transition:background .25s ease,transform .25s ease,box-shadow .25s ease}
.sh-nav-cta:hover{background:var(--sh-gold);transform:translateY(-2px);box-shadow:0 8px 20px rgba(44,58,71,.14)}

.sh-menu-toggle{display:none;position:relative;flex:0 0 48px;width:48px;height:48px;margin:0;padding:0;border:0;background:transparent;color:var(--sh-denim);cursor:pointer}
.sh-menu-toggle span{position:absolute;left:10px;right:10px;height:2px;margin:0;background:currentColor;transform-origin:center;transition:top .26s cubic-bezier(.16,1,.3,1),transform .26s cubic-bezier(.16,1,.3,1),opacity .2s ease}
.sh-menu-toggle span:nth-child(1){top:14px}
.sh-menu-toggle span:nth-child(2){top:23px}
.sh-menu-toggle span:nth-child(3){top:32px}
.sh-menu-toggle[aria-expanded="true"] span:nth-child(1){top:23px;transform:rotate(45deg)}
.sh-menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.sh-menu-toggle[aria-expanded="true"] span:nth-child(3){top:23px;transform:rotate(-45deg)}
.sh-mobile-nav,.sh-mobile-backdrop{display:none}
.sh-menu-open{overflow:hidden!important}

.sh-site-footer{position:relative;background:var(--sh-denim);color:var(--sh-fabric);padding:78px 0 34px;overflow:hidden}
.sh-footer-stitch{position:absolute;top:22px;left:3vw;right:3vw;height:2px;background:repeating-linear-gradient(90deg,var(--sh-gold) 0 9px,transparent 9px 16px);opacity:.68}
.sh-footer-wrap{width:min(1200px,calc(100% - 48px));margin:auto;display:grid;grid-template-columns:1.1fr .8fr 1fr;gap:38px}
.sh-footer-brand strong{font-size:28px;font-weight:700;letter-spacing:.035em}
.sh-footer-brand img{max-width:190px;max-height:58px;width:auto;height:auto;object-fit:contain}
.sh-footer-brand p{margin:13px 0 0;color:#d7d0c5;line-height:1.7}
.sh-footer-contact,.sh-footer-company{display:grid;align-content:start;gap:9px;font-size:14px;line-height:1.7}
.sh-footer-contact a{text-decoration:none}.sh-footer-contact a:hover{color:#e8ad68}.sh-footer-company{color:#d7d0c5}
.sh-footer-copy{grid-column:1/-1;padding-top:24px;margin-top:12px;border-top:1px dashed rgba(244,239,230,.25);font-size:12px;color:#bcb7af}.sh-footer-copy a{text-decoration:none;color:inherit}
.sh-back-top{position:fixed;right:22px;bottom:22px;z-index:900;width:44px;height:44px;border:1px solid rgba(244,239,230,.7);background:var(--sh-denim);color:#fff;opacity:0;pointer-events:none;transform:translateY(10px);transition:.25s ease;cursor:pointer}.sh-back-top.is-visible{opacity:1;pointer-events:auto;transform:none}.sh-back-top:hover{background:var(--sh-gold)}
.sh-default-page{min-height:70vh;padding:140px 0 90px}.sh-default-wrap{width:min(960px,calc(100% - 40px));margin:auto}.sh-default-wrap h1{font-size:clamp(36px,5vw,60px);font-weight:700}.entry-content{font-size:16px;line-height:1.9}.sh-404{text-align:center}.sh-404>span{font-size:90px;font-weight:700;line-height:1;color:var(--sh-gold)}.sh-404 a{display:inline-block;margin-top:20px;padding:12px 20px;background:var(--sh-denim);color:#fff;text-decoration:none}

.sh-menu-toggle:focus-visible,.sh-main-nav>a:focus-visible,.sh-mobile-nav a:focus-visible,.sh-back-top:focus-visible{outline:3px solid rgba(211,140,59,.34);outline-offset:3px}

/* Fixed header + section-aware navigation */
.shenghui-home section[id]{scroll-margin-top:calc(var(--sh-adminbar-offset,0px) + var(--sh-header-height,82px) + 14px)!important}
.sh-main-nav>a.is-current:not(.sh-nav-cta){color:var(--sh-gold)}
.sh-main-nav>a.is-current:not(.sh-nav-cta)::after{right:0}
.sh-nav-cta.is-current{background:var(--sh-gold);box-shadow:0 8px 20px rgba(44,58,71,.14)}

@media(hover:hover) and (pointer:fine){.sh-brand:hover .sh-brand-icon{transform:rotate(7deg) scale(1.04)}}

@media(max-width:1160px){
  .sh-header-inner{width:min(100% - 40px,1400px)}
  .sh-main-nav{gap:20px}.sh-main-nav>a{font-size:16px}
}

@media(max-width:980px){
  .sh-site-header{padding:10px 0}
  .sh-header-inner{width:min(100% - 28px,900px);gap:16px}
  .sh-main-nav{display:none}
  .sh-menu-toggle{display:block;z-index:10003}

  /* Chengen-style mobile drawer: viewport-level backdrop + full-height right panel. */
  .sh-mobile-backdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:100100;
    margin:0;
    padding:0;
    border:0;
    background:rgba(31,40,49,.36);
    -webkit-backdrop-filter:blur(2px);
    backdrop-filter:blur(2px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    cursor:default;
    transition:opacity .32s ease,visibility 0s linear .32s;
  }
  body.sh-menu-open .sh-mobile-backdrop{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transition:opacity .32s ease,visibility 0s linear 0s;
  }

  .sh-mobile-nav{
    display:flex!important;
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    left:auto;
    width:min(82vw,430px);
    height:100vh;
    height:100dvh;
    z-index:100110;
    flex-direction:column;
    padding:0;
    background:rgba(244,239,230,.985);
    border-left:1px solid rgba(211,140,59,.20);
    box-shadow:-24px 0 60px rgba(44,58,71,.20);
    -webkit-backdrop-filter:blur(18px) saturate(110%);
    backdrop-filter:blur(18px) saturate(110%);
    overflow:hidden;
    transform:translate3d(100%,0,0);
    visibility:hidden;
    pointer-events:none;
    transition:transform .46s cubic-bezier(.16,1,.3,1),visibility 0s linear .46s;
  }
  body.sh-menu-open .sh-mobile-nav{
    transform:translate3d(0,0,0);
    visibility:visible;
    pointer-events:auto;
    transition:transform .46s cubic-bezier(.16,1,.3,1),visibility 0s linear 0s;
  }
  body.sh-menu-open .sh-menu-toggle{opacity:0;pointer-events:none}

  .sh-mobile-nav-head{
    flex:0 0 auto;
    min-height:74px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:max(12px,env(safe-area-inset-top)) 18px 12px 22px;
    border-bottom:1px dashed rgba(211,140,59,.30);
    background:rgba(244,239,230,.96);
  }
  .sh-mobile-nav-brand{display:flex;align-items:center;min-width:0;gap:9px;font-size:18px;font-weight:700;letter-spacing:.03em;white-space:nowrap}
  .sh-mobile-nav-brand img{display:block;max-width:150px;max-height:40px;width:auto;height:auto}
  .sh-mobile-nav-brand-icon{display:block;flex:0 0 29px;width:29px;height:29px;color:var(--sh-gold)}
  .sh-mobile-nav-brand-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .sh-mobile-close{
    position:relative;
    flex:0 0 46px;
    width:46px;
    height:46px;
    margin:0 -5px 0 0;
    padding:0;
    border:0;
    background:transparent;
    color:var(--sh-denim);
    cursor:pointer;
  }
  .sh-mobile-close span{position:absolute;left:10px;right:10px;top:22px;height:2px;background:currentColor;transform-origin:center}
  .sh-mobile-close span:first-child{transform:rotate(45deg)}
  .sh-mobile-close span:last-child{transform:rotate(-45deg)}

  .sh-mobile-nav-links{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:20px 20px max(30px,env(safe-area-inset-bottom));
    scrollbar-width:thin;
    scrollbar-color:rgba(44,58,71,.34) transparent;
  }
  .sh-mobile-nav-links a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    min-height:62px;
    padding:14px 8px;
    border-bottom:1px dashed rgba(44,58,71,.16);
    color:var(--sh-denim);
    text-decoration:none;
    font-size:18px;
    font-weight:700;
    letter-spacing:.02em;
    transition:color .24s ease,background .24s ease,padding .24s ease,border-color .24s ease;
  }
  .sh-mobile-nav-links a::after{content:"→";color:var(--sh-gold);font-size:20px;font-weight:400;transition:transform .24s ease}
  .sh-mobile-nav-links a.is-current{
    position:relative;
    padding-left:17px;
    color:var(--sh-gold);
    background:rgba(211,140,59,.075);
    border-left:3px solid var(--sh-gold);
  }
  .sh-mobile-nav-links a.is-current::after{transform:translateX(3px)}
  .sh-mobile-nav-links a:last-child{
    margin-top:18px;
    padding:16px 18px;
    color:var(--sh-fabric);
    background:var(--sh-denim);
    border:2px dashed var(--sh-gold);
  }
  .sh-mobile-nav-links a:last-child::after{color:var(--sh-fabric)}
  .sh-mobile-nav-links a:last-child.is-current{color:var(--sh-fabric);background:var(--sh-gold);border-left:2px dashed var(--sh-fabric)}

  body.admin-bar .sh-mobile-nav,
  body.admin-bar .sh-mobile-backdrop{top:0}
}

@media(max-width:720px){
  .sh-header-inner,.sh-footer-wrap{width:calc(100% - 28px)}
  .sh-brand{font-size:20px;letter-spacing:.035em}.sh-brand img{max-width:150px;max-height:40px}.sh-brand-icon{flex-basis:30px;width:30px;height:30px}
  .sh-menu-toggle{flex-basis:46px;width:46px;height:46px}
  .sh-menu-toggle span{left:9px;right:9px}.sh-menu-toggle span:nth-child(1){top:13px}.sh-menu-toggle span:nth-child(2){top:22px}.sh-menu-toggle span:nth-child(3){top:31px}.sh-menu-toggle[aria-expanded="true"] span:nth-child(1),.sh-menu-toggle[aria-expanded="true"] span:nth-child(3){top:22px}
  .sh-mobile-nav-links{padding-inline:18px}.sh-mobile-nav-links a{font-size:18px;min-height:60px}
  .sh-footer-wrap{grid-template-columns:1fr;gap:28px}.sh-footer-copy{grid-column:auto}.sh-site-footer{padding:62px 0 max(30px,env(safe-area-inset-bottom))}.sh-footer-brand strong{font-size:25px}.sh-footer-contact a{min-height:38px;display:flex;align-items:center}.sh-footer-copy{line-height:1.7}.sh-back-top{right:12px;bottom:max(12px,env(safe-area-inset-bottom));width:46px;height:46px}
}

@media(max-width:420px){
  .sh-header-inner,.sh-footer-wrap{width:calc(100% - 24px)}
  .sh-brand{font-size:18px;gap:8px}.sh-brand-icon{flex-basis:28px;width:28px;height:28px}.sh-brand img{max-width:136px}
  .sh-menu-toggle{flex-basis:44px;width:44px;height:44px}
  .sh-mobile-nav-links{padding-inline:14px}.sh-mobile-nav-links a{font-size:17px;min-height:58px}
  .sh-footer-brand p,.sh-footer-contact,.sh-footer-company{font-size:13px}
}

@media(prefers-reduced-motion:reduce){.sh-site-header,.sh-mobile-nav,.sh-mobile-backdrop,.sh-menu-toggle span,.sh-brand-icon,.sh-nav-cta{transition:none!important}}

