*{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,.footer-inner{
  width:min(1241px,calc(100% - 64px));
  margin:0 auto;
}

/* Shared with confirmed Homepage v5 */
.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,
body[data-lang="zh"] .bottom-nav{font-size:16px}
.top-nav i,.bottom-nav i,.language-switch i{color:var(--blue);font-style:normal}
.top-nav a,.bottom-nav a{transition:color .15s ease}
.top-nav a:hover,.bottom-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}

/* Work page: latest SVG is the visual/content baseline.
   Only the project image aspect ratio is intentionally overridden to 16:10 per user instruction. */
.work-page{
  padding-top:78px;
  padding-bottom:120px;
}
.work-heading h1{
  margin:0;
  font-size:60px;
  line-height:1.08;
  font-weight:400;
}
body[data-lang="zh"] .work-heading h1{
  font-size:65px;
}
.cyan-rule{
  height:10px;
  margin-top:36px;
  background:var(--blue);
}

.work-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px 60px;
  margin-top:70px;
}
.project-card{min-width:0}
.project-image{
  display:block;
  aspect-ratio:16/10;
  overflow:hidden;
}
.project-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.project-meta{
  margin-top:22px;
}
.project-meta h2{
  margin:0;
  font-size:40.9px;
  line-height:1.1;
  font-weight:400;
}
.project-meta p{
  margin:8px 0 0;
  color:var(--light);
  font-size:25px;
  line-height:1.35;
}

/* Bottom navigation follows the same shared language / hover rules as Homepage v5 */
.compact-footer{
  padding:0 0 48px;
}
.footer-inner{
  position:relative;
  min-height:150px;
}
.footer-rule{
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:10px;
  background:var(--blue);
}
.bottom-nav{
  position:absolute;
  left:0;
  bottom:0;
  display:flex;
  align-items:center;
  gap:11px;
  font-size:17px;
}

@media(max-width:900px){
  .header-inner,.section-wide,.footer-inner{
    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,
  body[data-lang="zh"] .bottom-nav{font-size:14px}
  .language-switch{right:64px;top:39px;font-size:16px}
  .yybd-logo{top:37px;width:52px}
  .work-page{padding-top:54px}
  .work-heading h1,
  body[data-lang="zh"] .work-heading h1{font-size:42px}
  .cyan-rule{height:6px}
  .work-grid{grid-template-columns:1fr;gap:54px;margin-top:48px}
  .project-meta h2{font-size:32px}
  .project-meta p{font-size:19px}
  .bottom-nav{font-size:15px;gap:8px}
}


/* v2 additions */

/* Subtle hover: make project images feel clickable without adding overlays or text. */
.project-image img{
  transition:filter .20s ease;
}
.project-image:hover img,
.project-image:focus-visible img{
  filter:brightness(.88);
}

/* Bottom-right problemdesign icon based on the supplied SVG/footer composition. */
.compact-footer .footer-inner{
  min-height:230px;
}
.footer-problemdesign{
  position:absolute;
  right:0;
  top:28px;
  width:300px;
  height:auto;
  display:block;
}
.compact-footer .footer-rule{
  top:142px;
}
.compact-footer .bottom-nav{
  bottom:0;
}

@media(max-width:900px){
  .footer-problemdesign{
    width:210px;
    top:25px;
  }
  .compact-footer .footer-rule{
    top:125px;
  }
}


/* v3: View All Work button — same size/behavior as confirmed Homepage */
.view-all{
  text-align:center;
  margin:75px 0 0;
}
.outline-button{
  border:2px solid var(--blue);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:color .15s ease;
}
.outline-button:hover{
  color:var(--blue);
}
.outline-button.all{
  min-width:324px;
  height:69px;
  font-size:20px;
}


/* v4 footer refinement based on supplied reference:
   - remove cyan footer rule
   - keep footer navigation unchanged
   - align problemdesign icon bottom visually with navigation baseline */
.compact-footer .footer-rule{
  display:none;
}

.compact-footer .footer-inner{
  min-height:230px;
}

.footer-problemdesign{
  right:0;
  top:auto;
  bottom:0;
  width:300px;
  height:auto;
}

.compact-footer .bottom-nav{
  bottom:0;
}

/* Preserve all navigation typography / spacing from v3 */
@media(max-width:900px){
  .footer-problemdesign{
    width:210px;
    top:auto;
    bottom:0;
  }
}

/* ===== 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){
 .work-page{padding-top:58px!important;padding-bottom:78px!important}
 .work-heading h1,body[data-lang="zh"] .work-heading h1{font-size:44px!important;line-height:1.05!important}
 .cyan-rule{height:6px!important;margin-top:24px!important}
 .work-grid{grid-template-columns:1fr!important;gap:50px!important;margin-top:42px!important}
 .project-image{aspect-ratio:16/10!important}
 .project-meta{margin-top:14px!important}
 .project-meta h2{font-size:30px!important}
 .project-meta p{margin-top:6px!important;font-size:18px!important}
 .view-all{margin-top:54px!important}
 .outline-button.all{min-width:220px!important;height:58px!important;font-size:17px!important}
 .compact-footer{padding:24px 0 34px!important}
 .compact-footer .footer-inner{min-height:150px!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;gap:26px!important}
 .footer-problemdesign{position:static!important;width:min(100%,260px)!important;align-self:flex-end!important}
 .compact-footer .footer-rule{display:none!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){

  /* Mobile: right-align problemdesign icon.
     Desktop stays untouched and keeps its original alignment. */
  .footer-problemdesign{
    align-self:flex-end !important;
    margin-left:auto !important;
    margin-right:0 !important;
  }
}


/* Mobile Responsive v3 correction:
   Work Overview footer problemdesign icon is LEFT aligned on mobile only.
   Desktop alignment remains exactly as in the confirmed desktop version. */
@media(max-width:767px){
  .footer-problemdesign{
    align-self:flex-start !important;
    margin-left:0 !important;
    margin-right:auto !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);
  }
}
