/* 首頁使用淡綠銀杏背景，保留梅紫品牌色。 */
@font-face{
  font-family:'LU Home Serif';
  src:url('assets/home-title-tc.woff2') format('woff2');
  font-weight:250 900;
  font-style:normal;
  font-display:swap;
}
body[data-site-page='home']{
  --home-ink:#47263e;
  --home-muted:#624c49;
  --home-line:#b99969;
  --home-accent:#765326;
  --home-font:var(--sunway-ui-font);
  --home-serif:'LU Home Serif','Songti TC','PMingLiU',serif;
  --home-services-title-size:clamp(22px,2.45vw,31px);
  --home-services-title-leading:1.55;
  --sunway-scene-wash:linear-gradient(90deg,#f8f6e6c7,#f5f3e67d 42%,#f1f3e019 77%);
  --sunway-bg:var(--sunway-scene-paper);
  --sunway-cream:var(--home-ink);
  --sunway-mid:var(--home-muted);
  --sunway-line:var(--home-line);
  --sunway-rose:var(--home-accent);
  color:var(--home-ink);
  font-family:var(--home-font);
}
body[data-site-page='home'] .site-header.home-header.portal-header{
  min-height:72px;
  padding:12px max(40px,calc((100% - 1240px)/2));
  border:0;
  background:transparent;
}
@media(min-width:1081px){
  body[data-site-page='home'] .site-header .site-nav-wrap{justify-content:flex-start}
  body[data-site-page='home'] .site-header .site-menu{
    gap:5px;
    padding:4px 6px;
    border-radius:14px;
    box-shadow:0 4px 16px var(--site-nav-shadow),inset 0 1px #faf9ee;
  }
}
body[data-site-page='home'] .home-main.portal-main{background:transparent;color:var(--home-ink)}
body[data-site-page='home'] .portal-hero{
  --hero-title-size:clamp(46px,5.4vw,72px);
  --hero-tagline-size:clamp(16px,1.5vw,18px);
  --hero-wordmark-gap:8px;
  --hero-title-leading:1.15;
  --hero-tagline-leading:1.65;
  --hero-brand-height:calc(var(--hero-title-size) * var(--hero-title-leading) + var(--hero-tagline-size) * var(--hero-tagline-leading) + var(--hero-wordmark-gap));
  display:grid;
  min-height:224px;
  border:0;
  background:transparent;
  color:var(--home-ink);
}
body[data-site-page='home'] .portal-hero-content{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  width:min(1320px,100%);
  padding:34px 40px;
}
body[data-site-page='home'] .portal-hero-identity{
  align-items:center;
  align-self:auto;
  gap:clamp(14px,2.2vw,26px);
  min-width:0;
}
body[data-site-page='home'] .portal-hero-mark{
  display:block;
  width:var(--hero-brand-height);
  height:var(--hero-brand-height);
  flex-shrink:0;
  isolation:isolate;
  overflow:hidden;
  padding:clamp(4px,.55vw,7px);
  border:1px solid #bd9a645c;
  border-radius:50%;
  background:radial-gradient(circle at 36% 30%,#fffdf4,#f3e4c9);
  box-shadow:0 5px 15px #70552f20,inset 0 1px #fffdf8;
}
body[data-site-page='home'] .portal-hero-mark img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  mix-blend-mode:multiply;
}
body[data-site-page='home'] .portal-hero-wordmark{gap:var(--hero-wordmark-gap);min-width:0}
body[data-site-page='home'] .portal-hero h1{
  margin:0;
  color:var(--home-ink);
  font:500 var(--hero-title-size)/var(--hero-title-leading) var(--home-serif);
  letter-spacing:.035em;
  white-space:nowrap;
}
body[data-site-page='home'] .portal-tagline{
  margin:0;
  color:var(--home-muted);
  font-family:var(--home-font);
  font-size:var(--hero-tagline-size);
  font-weight:400;
  line-height:var(--hero-tagline-leading);
  letter-spacing:.045em;
  white-space:nowrap;
}
body[data-site-page='home'] #services{
  max-width:1320px;
  margin:0 auto;
  padding:20px 40px 40px;
  background:transparent;
  font-family:inherit;
  scroll-margin-top:24px;
}
body[data-site-page='home'] #services .portal-services-heading{
  display:flex;
  align-items:center;
  gap:20px;
  margin:0 0 20px;
  padding:0;
}
body[data-site-page='home'] #services .portal-services-heading::after{
  content:"";
  flex:1;
  height:1px;
  background:linear-gradient(90deg,#ac814b,#cfa57177);
}
body[data-site-page='home'] #services .portal-services-heading h2{
  margin:0;
  color:var(--home-ink);
  font:500 var(--home-services-title-size)/var(--home-services-title-leading) var(--home-serif);
  letter-spacing:.04em;
}
body[data-site-page='home'] #services .portal-services-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;
  gap:18px;
}
body[data-site-page='home'] #services .portal-service{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto auto auto 1fr auto;
  align-items:start;
  gap:7px;
  min-width:0;
  min-height:0;
  padding:0 0 12px;
  border:1px solid var(--home-line);
  border-radius:16px;
  background:linear-gradient(155deg,#fffcf5f2,#f4e7d6ef);
  box-shadow:0 5px 16px #65402b14,inset 0 0 0 1px #fffaed;
  color:var(--home-ink);
  text-decoration:none;
  overflow:hidden;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
body[data-site-page='home'] #services .portal-service::after{display:none}
body[data-site-page='home'] #services .portal-service-image{
  display:block;
  grid-area:1 / 1;
  width:100%;
  height:auto;
  aspect-ratio:4/3;
  margin:0;
  border-radius:0;
  object-fit:cover;
  background:#e8cfab;
  filter:none;
}
body[data-site-page='home'] #services .portal-service-number{
  position:static;
  display:block;
  grid-area:2 / 1;
  margin:4px 16px 0;
  color:var(--home-accent);
  font:400 12px/1.55 var(--home-font);
  letter-spacing:.1em;
  opacity:1;
}
body[data-site-page='home'] #services .portal-service h3{
  grid-area:3 / 1;
  align-self:start;
  min-height:0;
  margin:0 16px;
  color:var(--home-ink);
  font:500 clamp(17px,1.55vw,23px)/1.5 var(--home-serif);
  letter-spacing:.015em;
  text-wrap:pretty;
  overflow-wrap:break-word;
}
body[data-site-page='home'] #services .portal-service>p{
  grid-area:4 / 1;
  align-self:start;
  max-width:none;
  margin:0 16px;
  color:var(--home-muted);
  font-size:15px;
  font-weight:400;
  line-height:1.75;
}
body[data-site-page='home'] #services .portal-service-action{
  display:flex;
  grid-area:5 / 1;
  align-items:center;
  justify-content:flex-end;
  align-self:end;
  justify-self:end;
  width:auto;
  min-height:25px;
  margin:0 16px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--home-ink);
  font-size:18px;
  line-height:1;
}
body[data-site-page='home'] #services .portal-service-action>span{font-size:21px;line-height:1;transition:transform .22s ease}
body[data-site-page='home'] #services .portal-service:focus-visible{
  outline:2px solid #6c4565;
  outline-offset:3px;
  border-color:#93663b;
}
body[data-site-page='home'] .portal-philosophy{
  width:calc(100% - 80px);
  max-width:1240px;
  margin:0 auto 32px;
  padding:28px 34px;
  gap:30px;
  align-items:start;
  border:1px solid #ba996a9c;
  border-radius:19px;
  background:linear-gradient(115deg,#fff8ed4d,#fff8eeeb 65%);
  box-shadow:0 5px 22px #65402b0d;
}
body[data-site-page='home'] .portal-philosophy .portal-eyebrow{
  color:var(--home-accent);
  font-family:var(--home-serif);
  font-size:14px;
  font-weight:500;
  line-height:1.6;
  letter-spacing:.19em;
}
body[data-site-page='home'] .portal-philosophy h2{
  margin:12px 0 0;
  color:var(--home-ink);
  font-family:var(--home-serif);
  font-size:clamp(16px,8cqw,32px);
  font-weight:500;
  line-height:1.55;
  letter-spacing:.025em;
}
body[data-site-page='home'] .portal-philosophy h2 span{color:var(--home-accent)}
body[data-site-page='home'] .portal-philosophy-copy{
  padding-inline-start:26px;
  border-inline-start:1px solid #b88e59a8;
  color:#55424b;
  font-family:var(--sunway-ui-font);
  font-size:clamp(15px,1.25vw,17px);
  line-height:1.9;
  letter-spacing:.025em;
}
body[data-site-page='home'] .portal-philosophy-copy strong{color:var(--home-ink);font-weight:600}
body[data-site-page='home'] .portal-philosophy-copy>p>strong{font-size:inherit;line-height:inherit}
body[data-site-page='home'] .portal-philosophy-copy .portal-line-cta{
  border-color:#b68a4f;
  background:linear-gradient(125deg,#fff0ce,#dfb879);
  color:var(--home-ink);
  box-shadow:0 4px 12px #79592f20,inset 0 1px #fffbec;
}
body[data-site-page='home'] .portal-line-cta-note{color:#604631}
body[data-site-page='home'] .portal-line-cta-arrow{border-color:#9c703e65;background:#fff6de80;color:#69471f}
body[data-site-page='home'] .portal-philosophy-copy .portal-line-cta:hover{border-color:#a97b42;background:linear-gradient(125deg,#fff4d8,#e6bf82)}
body[data-site-page='home'] .portal-philosophy-copy .portal-line-cta:focus-visible{outline-color:#6c4565}
body[data-site-page='home'] .home-main.portal-main>.site-footer{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  max-width:none;
  width:100%;
  margin:0;
  padding:25px 24px 30px;
}
body[data-site-page='home'] .site-footer .footer-partner-name{color:var(--home-ink);font-family:var(--home-serif)}
body[data-site-page='home'] .site-footer .footer-partner-cross{color:var(--home-accent)}
body[data-site-page='home'] .site-footer .footer-links{gap:10px 18px}
body[data-site-page='home'] .site-footer a:focus-visible{outline-color:#6c4565}

@media(hover:hover){
  body[data-site-page='home'] #services .portal-service:hover{
    transform:translateY(-4px);
    border-color:#93663b;
    box-shadow:0 10px 24px #65402b2c;
  }
  body[data-site-page='home'] #services .portal-service:hover .portal-service-action>span{transform:translateX(3px)}
}
@media(max-width:1099px){
  body[data-site-page='home'] .portal-hero-content{padding-inline:28px}
  body[data-site-page='home'] #services{padding:22px 28px 34px}
  body[data-site-page='home'] #services .portal-services-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-site-page='home'] #services .portal-service h3{font-size:22px}
  body[data-site-page='home'] .portal-philosophy{width:calc(100% - 56px);gap:24px;padding:25px}
}
@media(max-width:1080px){
  body[data-site-page='home']{
    --home-hero-height:max(224px,calc(21vw + 44px));
    --home-services-top:22px;
    --home-menu-rule-center:calc(var(--home-hero-height) + var(--home-services-top) + var(--home-services-title-size) * var(--home-services-title-leading) / 2);
  }
  body[data-site-page='home'] .portal-hero{min-height:var(--home-hero-height)}
  body[data-site-page='home'] #services{padding-top:var(--home-services-top)}
  html.site-menu-ready body[data-site-page='home'] .portal-hero-content{padding-top:70px}
}
@media(max-width:600px){
  body[data-site-page='home']{
    --sunway-scene-wash:linear-gradient(95deg,#f8f6e7c7,#f4f2e286 63%,#edf0dc14);
    --home-hero-height:226px;
    --home-services-top:16px;
    --home-services-title-size:clamp(15px,calc((100vw - 134px) / 12),23px);
  }
  body[data-site-page='home'] .portal-hero{
    --hero-title-size:clamp(45px,9.7vw,54px);
    --hero-tagline-size:clamp(14px,3.5vw,16px);
    --hero-wordmark-gap:7px;
  }
  body[data-site-page='home'] .portal-hero-content{
    padding-inline:16px;
    padding-bottom:24px;
  }
  body[data-site-page='home'] .portal-hero-identity{align-self:center;gap:15px}
  body[data-site-page='home'] .portal-hero-mark{padding:3px}
  body[data-site-page='home'] .portal-tagline{letter-spacing:.015em}
  body[data-site-page='home'] #services{padding:var(--home-services-top) 16px 28px}
  body[data-site-page='home'] #services .portal-services-heading{gap:12px;margin-bottom:16px}
  body[data-site-page='home'] #services .portal-services-grid{grid-template-columns:minmax(0,1fr);gap:15px}
  body[data-site-page='home'] #services .portal-service{border-radius:13px}
  body[data-site-page='home'] #services .portal-service h3{font-size:clamp(18px,5.4vw,22px)}
  body[data-site-page='home'] .portal-philosophy{
    grid-template-columns:minmax(0,1fr);
    width:calc(100% - 32px);
    margin:0 auto 28px;
    gap:16px;
    padding:22px 18px;
    background:linear-gradient(180deg,#fff8ed94,#fff8eeeb 70%);
  }
  body[data-site-page='home'] .portal-philosophy h2{font-size:clamp(19px,7.7cqw,30px)}
  body[data-site-page='home'] .portal-philosophy-copy{
    padding:16px 0 0;
    border:0;
    border-top:1px solid #b88e5980;
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-site-page='home'] :is(.portal-service,.portal-service-action>span){transition:none}
  body[data-site-page='home'] #services .portal-service:hover,
  body[data-site-page='home'] #services .portal-service:hover .portal-service-action>span{transform:none}
}
