*{box-sizing:border-box}
:root{
  --bg:#3e3f41;
  --blue:#00adee;
  --white:#ffffff;
  --light:#d0d2d3;
  --inactive:#9b9b9b;
  --line:#707173;
}
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}

.site-header{height:160px}
.header-inner{height:100%;position:relative}
.top-nav{
  position:absolute;left:0;top:52px;
  display:flex;align-items:center;gap:13px;
  font-size:20px;line-height:1
}
body[data-lang="zh"] .top-nav,
body[data-lang="zh"] .bottom-nav{font-size:18px}
.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:92px;top:32px;
  min-height:32px;
  display:flex;align-items:flex-start;gap:7px;
  font-size:20px;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:32px;width:53px}
.yybd-logo img,.footer-logo img{width:100%;height:auto;display:block}

.hero{min-height:830px;padding-top:40px;display:flex;flex-direction:column}
.hero-brand{display:block;width:100%;max-width:1241px;height:auto}
.hero-copy{margin-top:auto;padding-bottom:88px}
.hero h1{margin:0;font-size:95px;line-height:1.02;font-weight:400;letter-spacing:-2px}
.hero .lead{margin:30px 0 0;font-size:30px;line-height:1.5;color:var(--light)}
.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)}
.hero-button{margin-top:30px;min-width:188px;min-height:53px;font-size:20px}

.problem-section{padding-top:100px}
.section-heading h2{margin:0;font-size:60px;line-height:1.08;font-weight:400}
.cyan-rule{height:10px;background:var(--blue);margin-top:34px}
.problem-list{margin-top:30px}
.problem-row{
  min-height:315px;border-bottom:2px solid var(--line);
  display:grid;grid-template-columns:1fr 330px;align-items:center;gap:60px
}
.problem-copy h3{margin:0;font-size:34px;font-weight:400;line-height:1.27}
body[data-lang="en"] .problem-copy h3{font-size:37px}
.problem-copy p{margin:18px 0 0;max-width:690px;color:var(--light);font-size:20px;line-height:1.6}
.problem-icon{justify-self:end;max-width:300px;max-height:180px;width:auto;height:auto;object-fit:contain}

.expertise-section{padding-top:170px}
.services{margin-top:58px}
.service{display:grid;grid-template-columns:48px 1fr;gap:12px;padding:26px 0 46px}
.service .num{font-size:20px}
.service h3{margin:0;font-size:74px;line-height:1.05;font-weight:400}
body[data-lang="en"] .service h3{font-size:76px}
.service p{margin:24px 0 0;max-width:880px;color:var(--light);font-size:24px;line-height:1.55}

.work-section{padding-top:140px}
.work-grid{display:grid;grid-template-columns:1fr 1fr;gap:70px 60px;margin-top:68px}
.project-image{display:block;aspect-ratio:16/10;overflow:hidden}
.project-image img{width:100%;height:100%;display:block;object-fit:cover}
.project-meta{margin-top:18px}
.project-meta h3{margin:0;font-size:40.9px;font-weight:400}
.project-meta p{margin:8px 0 0;color:var(--light);font-size:25px}
.view-all{text-align:center;margin:75px 0 0}
.outline-button.all{min-width:324px;height:69px;font-size:20px}

.about-section{padding-top:160px}
.about-layout{display:grid;grid-template-columns:280px 1fr;gap:70px;margin-top:70px}
.about-layout h3{margin:0;font-size:40.9px;font-weight:400}
.about-copy p{margin:0 0 34px;color:var(--light);font-size:30px;line-height:1.58}
.about-copy strong{color:var(--white);font-weight:400}
.brand-logos{display:block;width:100%;max-width:780px;height:auto;margin-top:46px}

.contact-section{padding-top:180px;padding-bottom:150px}
.section-heading.no-rule h2{font-size:95px}
.contact-copy>p{margin:34px 0 0;color:var(--light);font-size:30px;line-height:1.55}
.contact-details{margin-top:62px;display:grid;gap:30px}
.contact-details div{display:flex;flex-direction:column}
.contact-details small{font-size:25px;color:var(--light);margin-bottom:7px}
.contact-value{display:block}
.email-value{font-size:72px;line-height:1}
.wechat-value{font-size:60px;line-height:1.08}

.site-footer{padding:50px 0 45px}
.footer-inner{position:relative;min-height:260px}
.footer-logo{position:absolute;left:0;top:0;width:60px}
.footer-brand-block{position:absolute;right:0;top:15px;text-align:right}
.footer-weprodesign{display:block;width:340px;height:auto;margin-left:auto}
.footer-slogan{margin-top:8px;color:var(--white);font-size:14px}
.footer-rule{position:absolute;left:0;right:0;top:165px;height:10px;background:var(--blue)}
.bottom-nav{position:absolute;left:0;bottom:0;display:flex;align-items:center;gap:13px;font-size:20px}

@media(max-width:900px){
  .header-inner,.section-wide,.footer-inner{width:min(100% - 40px,1241px)}
  .site-header{height:130px}
  .top-nav{font-size:15px;gap:8px;top:45px}
  body[data-lang="zh"] .top-nav,body[data-lang="zh"] .bottom-nav{font-size:14px}
  .language-switch{right:64px;top:30px;font-size:16px}
  .yybd-logo{width:44px;top:30px}
  .hero{min-height:650px}
  .hero h1{font-size:54px}
  .hero .lead{font-size:20px}
  .problem-row{grid-template-columns:1fr;gap:25px;padding:40px 0}
  .problem-icon{justify-self:start;max-width:220px}
  .section-heading h2{font-size:42px}
  .service h3,body[data-lang="en"] .service h3{font-size:48px}
  .service p{font-size:18px}
  .work-grid{grid-template-columns:1fr}
  .about-layout{grid-template-columns:1fr}
  .about-copy p{font-size:22px}
  .section-heading.no-rule h2{font-size:56px}
  .email-value{font-size:38px}
  .wechat-value{font-size:32px}
  .footer-weprodesign{width:220px}
}


/* === v3 refinements from 2026-08-20 feedback === */

/* Hero slogan / lead reduced ~20% */
.hero .lead{
  font-size:24px;
}

/* Work images: enforce visible block layout and stable sizing */
.project-image{
  background:#4f5052;
}
.project-image img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  opacity:1 !important;
  visibility:visible !important;
}

/* About section: reduce all text except section label "公司介绍/About YYBD" by ~20% */
.about-layout{
  grid-template-columns:280px 1fr;
  align-items:start;
}
.about-copy{
  width:100%;
}
.about-copy p{
  font-size:24px;
  line-height:1.58;
  max-width:none;
  width:100%;
  text-align:left;
}
.about-copy .zh,
.about-copy .en{
  width:100%;
}

/* Ensure about text spans to the same right edge as the cyan rule */
.about-section .about-layout{
  width:100%;
}
.about-section .about-copy{
  padding-right:0;
}

/* Brand logos ~30% smaller */
.brand-logos{
  max-width:546px;
  margin-top:38px;
}

/* Match WeChat size to email size */
.wechat-value{
  font-size:72px;
  line-height:1;
}

/* Footer proportions based on supplied reference */
.site-footer{
  padding:52px 0 48px;
}
.footer-inner{
  min-height:300px;
}
.footer-left{
  position:absolute;
  left:0;
  top:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.footer-logo{
  position:static;
  width:74px;
}
.footer-company{
  margin-top:28px;
  font-size:18px;
  line-height:1.25;
  color:var(--white);
  white-space:nowrap;
}

.footer-brand-block{
  top:0;
}
.footer-weprodesign{
  width:470px;
}
.footer-slogan{
  margin-top:14px;
  font-size:28px;
  line-height:1.2;
  color:var(--white);
}
.footer-rule{
  top:215px;
  height:10px;
}
.bottom-nav{
  bottom:0;
}

/* Slightly rebalance footer on narrower screens */
@media(max-width:900px){
  .hero .lead{font-size:18px}
  .about-copy p{font-size:20px}
  .brand-logos{max-width:380px}
  .wechat-value{font-size:38px}
  .footer-logo{width:58px}
  .footer-company{font-size:14px;margin-top:18px}
  .footer-weprodesign{width:280px}
  .footer-slogan{font-size:18px}
  .footer-rule{top:180px}
  .footer-inner{min-height:260px}
}


/* === v4 refinements: top composition + footer baseline alignment === */

/* Desktop composition based on the supplied Chinese / English screenshots */
@media (min-width: 901px){

  .site-header{
    height:170px;
  }

  .header-inner{
    position:relative;
    height:170px;
  }

  /* Top navigation: smaller and closer to the screenshot */
  .top-nav{
    left:0;
    top:98px;
    font-size:17px;
    gap:11px;
  }

  body[data-lang="zh"] .top-nav{
    font-size:16px;
  }

  /* Language switch aligned with the top edge of the YYBD mark */
  .language-switch{
    right:116px;
    top:88px;
    min-height:24px;
    font-size:18px;
    line-height:1;
    align-items:flex-start;
  }

  /* YYBD logo reduced and moved slightly down/right to match reference */
  .yybd-logo{
    right:0;
    top:83px;
    width:74px;
  }

  /* Hero: large weprodesign icon dominates the upper half */
  .hero{
    min-height:810px;
    padding-top:36px;
  }

  .hero-brand{
    width:100%;
    max-width:none;
    height:auto;
    display:block;
    margin-top:4px;
  }

  /* Copy block sits lower and keeps the proportions from the screenshots */
  .hero-copy{
    margin-top:auto;
    padding-bottom:72px;
  }

  .hero h1{
    font-size:58px;
    line-height:1.08;
    letter-spacing:-0.5px;
  }

  body[data-lang="en"] .hero h1{
    font-size:62px;
  }

  .hero .lead{
    margin-top:26px;
    font-size:24px;
    line-height:1.55;
    max-width:930px;
  }

  .hero-button{
    margin-top:30px;
    min-width:192px;
    min-height:56px;
    font-size:18px;
  }

  /* Footer: left company name and right slogan must share the same baseline */
  .footer-inner{
    min-height:300px;
  }

  .footer-left,
  .footer-brand-block{
    top:0;
  }

  .footer-company,
  .footer-slogan{
    position:absolute;
    top:132px;
    margin:0;
    line-height:1.2;
    white-space:nowrap;
  }

  .footer-company{
    left:0;
    font-size:18px;
  }

  .footer-brand-block{
    right:0;
    width:470px;
    text-align:right;
  }

  .footer-weprodesign{
    width:470px;
    margin-left:auto;
  }

  .footer-slogan{
    right:0;
    width:100%;
    font-size:28px;
    text-align:right;
  }

  .footer-rule{
    top:190px;
  }
}


/* === v5 refinements === */
@media (min-width: 901px){

  /* Reduce the blank space above the top navigation.
     The previous version left more breathing room than the supplied reference needs. */
  .site-header{
    height:132px;
  }

  .header-inner{
    height:132px;
  }

  .top-nav{
    top:58px;
  }

  .language-switch{
    top:48px;
  }

  .yybd-logo{
    top:43px;
  }

  /* Chinese hero only: reduce the vertical gap between the weprodesign mark
     and “我们用设计解决包装问题” by roughly one Chinese-character height. */
  body[data-lang="zh"] .hero{
    min-height:752px;
  }

  /* Footer: enlarge only the weprodesign icon by 30%.
     Keep the slogan and company-name text size/position unchanged. */
  .footer-brand-block{
    width:611px;
  }

  .footer-weprodesign{
    width:611px;
  }

  .footer-slogan{
    width:470px;
    right:0;
    top:132px;
  }
}


/* v6 addition: same project-image hover as the Work Overview page */
.project-image img{
  transition:filter .20s ease;
}
.project-image:hover img,
.project-image:focus-visible img{
  filter:brightness(.88);
}

/* ===== 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){
 .hero{min-height:auto!important;padding-top:36px!important;padding-bottom:72px!important}
 .hero-brand{width:100%!important;margin:0 0 52px!important}
 .hero-copy{margin:0!important;padding:0!important}
 .hero h1{font-size:44px!important;line-height:1.05!important;letter-spacing:-.5px!important}
 body[data-lang="en"] .hero h1{font-size:46px!important}
 .hero .lead{margin-top:22px!important;font-size:18px!important;line-height:1.55!important}
 .hero-button{margin-top:24px!important;min-width:150px!important;min-height:48px!important;font-size:16px!important}
 .problem-section,.expertise-section,.work-section,.about-section,.contact-section{padding-top:88px!important}
 .section-heading h2{font-size:38px!important;line-height:1.08!important}
 .cyan-rule{height:6px!important;margin-top:24px!important}
 .problem-list{margin-top:14px!important}
 .problem-row{min-height:0!important;grid-template-columns:1fr!important;gap:28px!important;padding:34px 0 40px!important;align-items:start!important}
 .problem-copy h3,body[data-lang="en"] .problem-copy h3{font-size:28px!important;line-height:1.22!important}
 .problem-copy p{margin-top:14px!important;font-size:17px!important;line-height:1.55!important}
 .problem-icon{justify-self:start!important;max-width:190px!important;max-height:130px!important}
 .services{margin-top:32px!important}
 .service{grid-template-columns:28px 1fr!important;gap:8px!important;padding:20px 0 34px!important}
 .service .num{font-size:16px!important}
 .service h3,body[data-lang="en"] .service h3{font-size:42px!important;line-height:1.02!important}
 .service p{margin-top:16px!important;font-size:17px!important;line-height:1.55!important}
 .work-grid{grid-template-columns:1fr!important;gap:52px!important;margin-top:44px!important}
 .project-image{aspect-ratio:16/10!important}
 .project-meta{margin-top:14px!important}
 .project-meta h3{font-size:30px!important}
 .project-meta p{margin-top:5px!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}
 .about-layout{grid-template-columns:1fr!important;gap:26px!important;margin-top:44px!important}
 .about-layout h3{font-size:30px!important}
 .about-copy p{font-size:19px!important;line-height:1.6!important;margin-bottom:24px!important}
 .brand-logos{max-width:100%!important;margin-top:34px!important}
 .section-heading.no-rule h2{font-size:48px!important}
 .contact-copy>p{font-size:19px!important;line-height:1.55!important}
 .contact-details{margin-top:42px!important;gap:26px!important}
 .contact-details small{font-size:16px!important}
 .email-value,.wechat-value{font-size:30px!important;line-height:1.08!important;overflow-wrap:anywhere}
 .site-footer{padding:46px 0 36px!important}
 .footer-inner{min-height:0!important;display:flex!important;flex-direction:column!important;gap:34px!important}
 .footer-left,.footer-brand-block{position:static!important;width:100%!important}
 .footer-logo{position:static!important;width:58px!important}
 .footer-company{position:static!important;margin-top:16px!important;font-size:14px!important;white-space:normal!important}
 .footer-brand-block{text-align:left!important}
 .footer-weprodesign{width:min(100%,320px)!important;margin:0!important}
 .footer-slogan{position:static!important;width:auto!important;margin-top:10px!important;text-align:left!important;font-size:20px!important;white-space:normal!important}
 .footer-rule{position:static!important;height:6px!important;width:100%!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){

  /* Chinese hero title must stay on one line */
  body[data-lang="zh"] .hero h1{
    font-size:34px !important;
    line-height:1.06 !important;
    white-space:nowrap !important;
    letter-spacing:-.4px !important;
  }

  /* Brand experience logos 20% smaller on mobile */
  .brand-logos{
    width:80% !important;
    max-width:80% !important;
  }

  /* Keep requested Chinese problem headings as explicit two-line titles */
  .problem-copy h3 .zh{
    display:inline !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 homepage fixes ===== */
@media(max-width:767px){

  /* Ensure language visibility rules win inside problem headings.
     Fixes English page showing Chinese + English simultaneously. */
  body[data-lang="en"] .problem-copy h3 .zh{
    display:none !important;
  }
  body[data-lang="en"] .problem-copy h3 .en{
    display:inline !important;
  }
  body[data-lang="zh"] .problem-copy h3 .en{
    display:none !important;
  }
  body[data-lang="zh"] .problem-copy h3 .zh{
    display:inline !important;
  }

  /* Chinese hero title reduced to 80% of previous mobile size (34px -> 27.2px). */
  body[data-lang="zh"] .hero h1{
    font-size:27.2px !important;
    line-height:1.05 !important;
    white-space:nowrap !important;
  }
}
