*{box-sizing:border-box}
:root{
  --bg:#3e3f41;
  --blue:#00adee;
  --white:#ffffff;
  --light:#d0d2d3;
  --inactive:#9b9b9b;
}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--white);
  font-family:Helvetica,Arial,"Source Han Sans CN","Noto Sans CJK SC","PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
}
body[data-lang="zh"] .en{display:none!important}
body[data-lang="en"] .zh{display:none!important}
a{color:inherit;text-decoration:none}
button{font:inherit}

.header-inner,.section-wide{
  width:min(1241px,calc(100% - 64px));
  margin:0 auto;
}

/* Shared global header rules from confirmed Homepage v6 */
.site-header{height:132px}
.header-inner{height:132px;position:relative}
.top-nav{
  position:absolute;
  left:0;
  top:58px;
  display:flex;
  align-items:center;
  gap:11px;
  font-size:17px;
  line-height:1;
}
body[data-lang="zh"] .top-nav{font-size:16px}
.top-nav i,.language-switch i{color:var(--blue);font-style:normal}
.top-nav a{transition:color .15s ease}
.top-nav a:hover{color:var(--blue)}

.language-switch{
  position:absolute;
  right:116px;
  top:48px;
  display:flex;
  align-items:flex-start;
  gap:7px;
  min-height:24px;
  font-size:18px;
  line-height:1;
}
.language-switch button{
  border:0;
  background:none;
  padding:0 3px;
  cursor:pointer;
  color:var(--inactive);
  font-weight:400;
}
.language-switch button.selected{color:var(--white);font-weight:700}
.language-switch button:hover{color:var(--blue)}

.yybd-logo{
  position:absolute;
  right:0;
  top:43px;
  width:74px;
}
.yybd-logo img{display:block;width:100%;height:auto}

/* Case page */
.case-page{
  padding-top:76px;
}
.case-title h1{
  margin:0;
  font-size:60px;
  line-height:1;
  font-weight:400;
}
.case-title p{
  margin:16px 0 0;
  font-size:40px;
  line-height:1.2;
}
.cyan-rule{
  height:10px;
  margin-top:42px;
  background:var(--blue);
}

.hero-image{
  margin:90px 0 0;
}
.hero-image img{
  display:block;
  width:100%;
  height:auto;
}

.case-content{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:72px;
  margin-top:150px;
  padding-bottom:160px;
}

.case-meta h2{
  margin:0 0 34px;
  color:var(--white);
  font-size:25.1px;
  line-height:1;
  font-weight:400;
}
.meta-block{margin-bottom:42px}
.meta-label{
  font-size:20px;
  line-height:1.2;
  color:var(--white);
}
.meta-value{
  margin-top:10px;
  color:var(--light);
  font-size:20px;
  line-height:1.5;
}

.case-story section{
  margin-bottom:72px;
}
.case-story h3{
  margin:0;
  font-size:50px;
  line-height:1.05;
  font-weight:400;
  color:var(--white);
}
.case-story p{
  margin:24px 0 0;
  color:var(--light);
  font-size:25.1px;
  line-height:1.6;
  max-width:860px;
}

/* Project navigation: exact relationship confirmed previously */
.project-footer{
  padding:18px 0 90px;
}
.project-nav{
  width:max-content;
  max-width:calc(100% - 64px);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
}
.project-link,
.all-work{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  white-space:nowrap;
  font-size:20px;
  line-height:1.1;
  transition:color .15s ease;
}
.project-link:hover,
.all-work:hover{color:var(--blue)}

.previous{
  text-align:right;
  margin-right:45px;
}
.next{
  text-align:left;
  margin-left:45px;
}

.arrow{
  width:12px;
  height:14px;
  display:block;
  position:relative;
  flex:0 0 12px;
}
.left-arrow{margin-right:45px}
.right-arrow{margin-left:45px}
.left-arrow::before,
.right-arrow::before{
  content:"";
  position:absolute;
  top:1px;
  width:0;height:0;
  border-top:7px solid transparent;
  border-bottom:7px solid transparent;
}
.left-arrow::before{
  left:0;
  border-right:12px solid var(--light);
}
.right-arrow::before{
  right:0;
  border-left:12px solid var(--light);
}

.all-work{
  width:177px;
  height:79.5px;
  border:2px solid var(--blue);
  align-items:center;
  text-align:center;
  flex:0 0 177px;
}

@media(max-width:900px){
  .header-inner,.section-wide{
    width:min(100% - 40px,1241px);
  }
  .site-header{height:118px}
  .header-inner{height:118px}
  .top-nav{top:48px;font-size:15px;gap:8px}
  body[data-lang="zh"] .top-nav{font-size:14px}
  .language-switch{right:64px;top:39px;font-size:16px}
  .yybd-logo{top:37px;width:52px}

  .case-page{padding-top:54px}
  .case-title h1{font-size:44px}
  .case-title p{font-size:25px}
  .cyan-rule{height:6px;margin-top:30px}
  .hero-image{margin-top:48px}

  .case-content{
    grid-template-columns:1fr;
    gap:54px;
    margin-top:72px;
    padding-bottom:90px;
  }
  .case-story h3{font-size:36px}
  .case-story p{font-size:18px}

  .project-nav{
    width:auto;
    flex-direction:column;
    gap:18px;
    align-items:flex-start;
  }
  .project-link,
  .all-work{
    font-size:17px;
  }
  .previous,.next{margin:0;text-align:left}
  .arrow{display:none}
  .all-work{
    width:auto;
    height:auto;
    padding:12px 18px;
    flex:0 0 auto;
  }
}

/* ===== Shared Mobile Responsive v1 ===== */
.mobile-menu-toggle,.mobile-menu{display:none}
@media(max-width:767px){
 html{scroll-padding-top:72px}
 body{overflow-x:hidden}
 .header-inner,.section-wide,.footer-inner{width:calc(100% - 40px)!important;margin-left:auto!important;margin-right:auto!important}
 .site-header,.header-inner{height:88px!important}
 .top-nav{display:none!important}
 .yybd-logo{left:0!important;right:auto!important;top:20px!important;width:50px!important}
 .language-switch{right:64px!important;top:22px!important;font-size:16px!important;min-height:auto!important;align-items:center!important}
 .mobile-menu-toggle{display:block;position:absolute;right:0;top:18px;z-index:60;border:0;background:transparent;color:var(--white);font-size:16px;line-height:1;padding:6px 0;cursor:pointer}
 .mobile-menu-toggle:hover,.mobile-menu-toggle:focus-visible{color:var(--blue)}
 .mobile-menu{display:none;position:absolute;z-index:55;left:-20px;right:-20px;top:88px;padding:24px 20px 28px;background:var(--bg);border-top:1px solid rgba(255,255,255,.14);border-bottom:1px solid rgba(255,255,255,.14)}
 .mobile-menu.open{display:flex;flex-direction:column;gap:18px}
 .mobile-menu a{color:var(--white);font-size:22px;line-height:1.1}
 .mobile-menu a:hover,.mobile-menu a:focus-visible{color:var(--blue)}
 .bottom-nav{position:static!important;display:flex!important;flex-wrap:wrap!important;gap:9px 10px!important;font-size:14px!important;line-height:1.35!important}
}

@media(max-width:767px){
 .case-page{padding-top:58px!important}
 .case-title h1{font-size:44px!important}
 .case-title p{margin-top:10px!important;font-size:22px!important;line-height:1.25!important}
 .cyan-rule{height:6px!important;margin-top:24px!important}
 .hero-image{margin-top:42px!important}
 .case-content{grid-template-columns:1fr!important;gap:50px!important;margin-top:66px!important;padding-bottom:86px!important}
 .case-meta h2{font-size:24px!important;margin-bottom:28px!important}
 .meta-label,.meta-value{font-size:17px!important}
 .case-story section{margin-bottom:52px!important}
 .case-story h3{font-size:36px!important}
 .case-story p{margin-top:18px!important;font-size:18px!important;line-height:1.6!important}
 .project-footer{padding:16px 20px 54px!important}
 .project-nav{width:100%!important;max-width:none!important;flex-direction:column!important;align-items:stretch!important;gap:14px!important}
 .project-link,.all-work{font-size:17px!important}
 .previous,.next{margin:0!important;text-align:left!important}
 .arrow{display:none!important}
 .all-work{width:100%!important;height:54px!important;flex:0 0 auto!important}
}


/* ===== Mobile Responsive v2 refinements ===== */
@media(max-width:767px){

  /* Align Menu and E|中 on the same top baseline */
  .language-switch{
    top:20px !important;
    align-items:flex-start !important;
    line-height:1 !important;
  }
  .mobile-menu-toggle{
    top:18px !important;
    line-height:1 !important;
    padding-top:2px !important;
  }
}


@media(max-width:767px){

  /* Restore desktop-style horizontal project navigation on mobile */
  .project-footer{
    padding:16px 20px 54px !important;
    overflow-x:auto;
  }

  .project-nav{
    width:max-content !important;
    max-width:none !important;
    margin:0 auto !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:center !important;
    gap:0 !important;
  }

  .project-link,
  .all-work{
    font-size:14px !important;
    white-space:nowrap !important;
  }

  .previous{
    margin-right:24px !important;
    text-align:right !important;
  }

  .next{
    margin-left:24px !important;
    text-align:left !important;
  }

  .arrow{
    display:block !important;
    width:9px !important;
    height:11px !important;
    flex:0 0 9px !important;
  }

  .left-arrow{
    margin-right:24px !important;
  }

  .right-arrow{
    margin-left:24px !important;
  }

  .left-arrow::before,
  .right-arrow::before{
    top:1px !important;
    border-top-width:5px !important;
    border-bottom-width:5px !important;
  }

  .left-arrow::before{
    border-right-width:9px !important;
  }

  .right-arrow::before{
    border-left-width:9px !important;
  }

  .all-work{
    width:132px !important;
    height:58px !important;
    flex:0 0 132px !important;
    padding:0 10px !important;
    text-align:center !important;
    align-items:center !important;
    justify-content:center !important;
  }
}


/* ===== Responsive v4 shared refinements ===== */
@media(max-width:767px){
  .mobile-menu{
    background:rgba(62,63,65,.85) !important;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
  }
}


/* ===== Responsive v4 case-page footer fit ===== */
@media(max-width:767px){

  .project-footer{
    padding-left:12px !important;
    padding-right:12px !important;
    overflow:hidden !important;
  }

  .project-nav{
    width:100% !important;
    max-width:100% !important;
    justify-content:space-between !important;
    margin:0 !important;
  }

  .project-link,
  .all-work{
    font-size:11.5px !important;
    line-height:1.05 !important;
  }

  .previous{
    margin-right:8px !important;
  }

  .next{
    margin-left:8px !important;
  }

  .left-arrow{
    margin-right:8px !important;
  }

  .right-arrow{
    margin-left:8px !important;
  }

  .arrow{
    width:7px !important;
    height:9px !important;
    flex:0 0 7px !important;
  }

  .left-arrow::before,
  .right-arrow::before{
    border-top-width:4px !important;
    border-bottom-width:4px !important;
  }

  .left-arrow::before{
    border-right-width:7px !important;
  }

  .right-arrow::before{
    border-left-width:7px !important;
  }

  .all-work{
    width:102px !important;
    height:50px !important;
    flex:0 0 102px !important;
    padding:0 6px !important;
  }
}


/* ===== Responsive v5 case navigation refinement ===== */
/* Apply to desktop and mobile:
   shorter labels, slightly smaller text, tighter arrow spacing. */
.project-link,
.all-work{
  font-size:17px !important;
}

.previous{
  margin-right:24px !important;
}

.next{
  margin-left:24px !important;
}

.left-arrow{
  margin-right:24px !important;
}

.right-arrow{
  margin-left:24px !important;
}

/* Keep the center button proportion close to the approved desktop version */
.all-work{
  width:165px !important;
  height:72px !important;
  flex:0 0 165px !important;
}

/* Mobile gets a tighter version of the same relationship */
@media(max-width:767px){
  .project-link,
  .all-work{
    font-size:11px !important;
  }

  .previous{
    margin-right:5px !important;
  }

  .next{
    margin-left:5px !important;
  }

  .left-arrow{
    margin-right:5px !important;
  }

  .right-arrow{
    margin-left:5px !important;
  }

  .all-work{
    width:94px !important;
    height:46px !important;
    flex:0 0 94px !important;
    padding:0 4px !important;
  }
}


/* ===== Responsive v6 case navigation mobile proportion fix ===== */
/* Keep the mobile spacing relationships proportional to desktop:
   Previous --24px-- arrow --24px-- View All Work --24px-- arrow --24px-- Next
   scaled down uniformly rather than redistributed by available width. */
@media(max-width:767px){

  .project-nav{
    width:max-content !important;
    max-width:none !important;
    justify-content:center !important;
    gap:0 !important;
    margin:0 auto !important;
  }

  .project-link,
  .all-work{
    font-size:11px !important;
  }

  /* Desktop spacing 24px -> mobile 12px (50% scale) */
  .previous{
    margin-right:12px !important;
  }

  .left-arrow{
    margin-right:12px !important;
  }

  .right-arrow{
    margin-left:12px !important;
  }

  .next{
    margin-left:12px !important;
  }

  /* Keep arrow size proportional as well */
  .arrow{
    width:6px !important;
    height:8px !important;
    flex:0 0 6px !important;
  }

  .left-arrow::before,
  .right-arrow::before{
    top:0 !important;
    border-top-width:4px !important;
    border-bottom-width:4px !important;
  }

  .left-arrow::before{
    border-right-width:6px !important;
  }

  .right-arrow::before{
    border-left-width:6px !important;
  }

  /* Center button scaled proportionally from desktop 165×72 */
  .all-work{
    width:108px !important;
    height:47px !important;
    flex:0 0 108px !important;
    padding:0 5px !important;
  }

  .project-footer{
    overflow-x:hidden !important;
  }
}
