@font-face{font-family:'Noto Serif TC';font-style:normal;font-weight:500;font-display:swap;src:url('assets/services-serif-tc.woff2') format('woff2')}
@font-face{font-family:'Noto Sans TC';font-style:normal;font-weight:400;font-display:swap;src:url('assets/services-sans-tc.woff2') format('woff2')}
/* 沿用參考站的色票與柔和底圖，依需求移除底圖人物與卦爻；棋子及列印報告配色不變。 */
:root{--sunway-bg:#332b33;--sunway-bg-2:#3d343d;--sunway-cream:#f2ece8;--sunway-mid:#c9beb8;--sunway-muted:#a6979e;--sunway-line:#4a404a;--sunway-rose:#d89a8e;--sunway-sage:#8fafa0;--sunway-violet:#9098c4;--sunway-quote:#2a232a;--sunway-scene-paper:#eeedde;--sunway-scene-image:url('assets/home-ginkgo.webp')}
:root{--sunway-work-paper:#f8f5ee;--sunway-work-surface:#fffdf8;--sunway-work-line:#e1d6d9;--sunway-work-ink:#443944;--sunway-work-muted:#776c73;--sunway-work-purple:#62465e;--sunway-work-sage:#3f6658;--sunway-work-rose:#946258}
:root{--sunway-ui-font:'PingFang TC','Microsoft JhengHei','Noto Sans CJK TC',system-ui,sans-serif;--sunway-footer-ink:#422e29}
/* 淡綠銀杏水波底圖共用於首頁與內頁。 */
body,body:has(>.home-header){
  position:relative;
  isolation:isolate;
  min-height:100vh;
  background:var(--sunway-scene-paper);
  color:var(--sunway-work-ink);
  font-family:var(--sunway-ui-font);
}
body::before,body::after{
  content:"";
  position:absolute;
  inset-inline:0;
  z-index:-1;
  pointer-events:none;
  background-image:var(--sunway-scene-image);
  background-repeat:no-repeat;
  background-size:max(100%,590px) auto;
}
body::before{
  top:0;
  height:clamp(345px,42vw,620px);
  background-image:var(--sunway-scene-wash,linear-gradient(90deg,#f8f6e8a8,#eef1e015 70%)),var(--sunway-scene-image);
  background-size:100% 100%,max(100%,590px) auto;
  background-position:right top;
  mask-image:linear-gradient(#000 52%,transparent);
}
body::after{
  bottom:0;
  height:clamp(390px,37vw,560px);
  background-position:left bottom;
  mask-image:linear-gradient(transparent,#000 44%);
}
.site-header.home-header.portal-header{background:var(--sunway-bg);border-color:var(--sunway-line);color:var(--sunway-cream)}
.portal-header .portal-brand,.portal-brand-name{color:var(--sunway-cream)}
.portal-brand-cross{color:var(--sunway-rose)}
.portal-nav a{color:var(--sunway-mid)}
.portal-nav a:hover{color:var(--sunway-cream)}
.portal-header a:focus-visible{outline-color:var(--sunway-rose)}
.portal-hero{background:var(--sunway-bg);border-color:var(--sunway-line);color:var(--sunway-cream)}
.portal-hero-art{object-fit:cover}
.portal-hero-divider{background:linear-gradient(transparent,var(--sunway-rose),transparent)}
.portal-hero h1{color:var(--sunway-cream)}
.portal-tagline{color:var(--sunway-cream)}
.portal-eyebrow{color:var(--sunway-rose)}
.portal-services-heading h2{color:var(--sunway-cream)}
.portal-services-heading{padding-block:6px}
.portal-philosophy .portal-eyebrow{font-size:16px}
.portal-service{--service-paper:var(--sunway-bg-2);--service-ink:var(--sunway-sage);--service-tint:#8fafa014;--service-line:var(--sunway-line);background:var(--service-paper);box-shadow:none}
.portal-service-chart{--service-ink:var(--sunway-rose);--service-tint:#d89a8e14}
.portal-service-numbers{--service-ink:#b7bce0;--service-tint:#9098c414}
.portal-service-luck{--service-ink:#d5ba90;--service-tint:#d5ba9014}
.portal-service:after{border-color:#f2ece80b}
.portal-service-number{color:var(--sunway-muted)}
.portal-service-icon{border-color:currentColor}
.portal-service h3{color:var(--sunway-cream)}
.portal-service>p{color:var(--sunway-mid)}
.portal-service-action{border-color:var(--sunway-line)}
.portal-service:hover{border-color:var(--service-ink)}
.portal-service:focus-visible{outline-color:var(--sunway-rose)}
.portal-philosophy{border-color:var(--sunway-line);background:var(--sunway-quote);padding:38px;border-radius:16px}
.portal-philosophy>div:first-child{min-width:0;container-type:inline-size}
.portal-philosophy h2{color:var(--sunway-cream);font-size:clamp(14px,10.3cqw,36px);letter-spacing:.02em;white-space:nowrap}
.portal-philosophy h2 span{color:var(--sunway-rose)}
.portal-philosophy-copy,.portal-philosophy-copy strong{color:var(--sunway-cream)}
.portal-philosophy-copy>p>strong{font-size:17px}
.portal-philosophy-copy .portal-line-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px;padding:18px 20px;border:1px solid #c8a67c;border-radius:12px;background:radial-gradient(ellipse at 0 0,#fffaf28c,transparent 68%),linear-gradient(115deg,#f5ecdf,#e7d2b2);color:#563648;text-decoration:none;box-shadow:0 6px 20px #110c141a,inset 0 1px 0 #fffaf3a6}
.portal-line-cta-copy{display:grid;gap:6px;min-width:0}.portal-line-cta-title{font-size:16px;font-weight:600;line-height:1.5;letter-spacing:.5px}.portal-line-cta-note{color:#6d554d;font-size:12px;font-weight:400;line-height:1.75;overflow-wrap:anywhere}.portal-line-cta-arrow{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border:1px solid #a986565c;border-radius:50%;background:#fffaf04d;color:#89673c;font-size:20px;line-height:1}
.portal-philosophy-copy .portal-line-cta:hover{border-color:#b28d5d;background:linear-gradient(115deg,#fbf2e7,#eddbbd)}.portal-philosophy-copy .portal-line-cta:focus-visible{outline:2px solid #dfc18c;outline-offset:4px}
.home-main.portal-main>.site-footer{
  max-width:none;
  width:100%;
  padding:28px 24px 34px;
  border-top:0;
  background:transparent;
  color:var(--sunway-footer-ink);
  font-weight:500;
  text-shadow:0 0 6px #fff9ee,0 1px 2px #fff9ee;
}
.site-footer .footer-partner-name{color:#47263e}
.site-footer .footer-partner{color:inherit;text-decoration:none}
.footer-partner-cross{color:#5e421e}
.site-footer .footer-links{flex-wrap:wrap;gap:10px 18px}
.site-footer .footer-mail-icon,.site-footer .footer-email-address{color:var(--sunway-footer-ink)}
.site-footer .footer-terms{border-color:#8c6a4785;color:var(--sunway-footer-ink)}
.site-footer .footer-terms>span{color:var(--sunway-rose)}
.site-footer a:focus-visible{outline-color:var(--sunway-sage)}
/* 服務工作區保留淺色閱讀面，讓底圖透出。 */
.portal-main>:is(#divination-view,#chart-view,#numerology-view,#lucky-view){width:100%;max-width:none;margin-inline:0;padding:30px max(32px,calc((100% - 1236px)/2)) 36px;border-block:1px solid #d8c9ce;border-radius:24px;background-color:#fbf7efdf;background-image:url('assets/lu-paper.svg'),radial-gradient(ellipse at 50% 0,#fffdf799 10%,transparent 76%);background-size:320px 320px,100% 100%;color:var(--sunway-work-ink)}
body.clearing-overview #divination-view .workspace{background:var(--sunway-work-paper) url('assets/lu-paper.svg') repeat}
/* 政策文件沿用同一淺色閱讀面。 */
.terms-page{color:var(--sunway-work-muted)}
.terms-page h1,.terms-page h2{color:var(--sunway-work-purple)}
.terms-page section{background:var(--sunway-work-surface);border-color:var(--sunway-work-line);box-shadow:0 4px 18px #44394404}
.terms-page .terms-date,.terms-page .terms-back{color:var(--sunway-work-muted)}
.terms-page a{color:var(--sunway-work-sage);text-underline-offset:3px}
.terms-page .terms-notice{background:var(--sunway-work-paper);border-color:var(--sunway-work-rose)}
.terms-page .terms-contact{background:var(--sunway-work-sage);color:var(--sunway-work-surface)}
.terms-page footer{border-color:var(--sunway-work-line);color:var(--sunway-work-muted)}
@media(max-width:540px){.portal-hero-identity{gap:22px}.portal-philosophy{padding:27px 22px}.site-footer .footer-email{flex-basis:100%;justify-content:center}.site-footer .footer-terms{padding-left:0;border:0}}
@media(max-width:360px){.portal-hero-identity{gap:17px}}
@media(max-width:760px){.portal-main>:is(#divination-view,#chart-view,#numerology-view,#lucky-view){padding-inline:16px;border-radius:18px}}
/* 桌機縮短品牌橫幅，四項服務並排呈現；手機沿用原有尺寸。 */
@media(min-width:1100px){
 .portal-hero{--hero-title-size:52px;--hero-tagline-size:18px;min-height:190px}
 .portal-hero-content{flex-direction:row;justify-content:flex-start;gap:72px;width:min(1760px,100%);padding:34px 40px}
 .portal-hero-identity{gap:34px}.portal-hero-wordmark{gap:14px}
 .portal-services{max-width:1760px;padding:32px 40px 32px}
 .portal-services-heading{display:flex;align-items:baseline;gap:20px;margin-bottom:30px}
 .portal-services-heading h2{margin:0;font-size:32px}
 .portal-services-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
 .portal-service{display:grid;grid-template-columns:46px minmax(0,1fr);grid-template-rows:auto 1fr auto;align-items:start;gap:18px 16px;min-height:320px;padding:34px 26px 26px}
 .portal-service-number{top:12px;right:18px;font-size:11px;line-height:1.4}
 .portal-service-icon{grid-column:1;grid-row:1;align-self:center;margin:0}
 .portal-service h3{grid-column:2;grid-row:1;align-self:center;margin:0;font-size:24px;line-height:1.45;text-wrap:balance}
 .portal-service>p{grid-column:1/-1;grid-row:2;max-width:none;margin:0;font-size:17px;line-height:1.75}
 .portal-service-action{grid-column:1/-1;grid-row:3;margin:0;padding-top:14px;font-size:16px}
}
@media(max-width:760px){
 .portal-philosophy .portal-eyebrow{font-size:15px}
 .portal-philosophy-copy>p>strong{font-size:16px}
}
@media(max-width:540px){
 .portal-hero-content{padding-inline:20px}.portal-hero-identity{align-self:flex-start;gap:28px}
 .portal-services{padding-top:47px}
 .portal-philosophy-copy .portal-line-cta{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:16px 14px}
 .portal-line-cta-copy{display:contents}.portal-line-cta-title{grid-column:1;grid-row:1;white-space:nowrap}
 .portal-line-cta-note{grid-column:1/-1;grid-row:2;min-width:0;font-size:clamp(11px,3vw,12px);white-space:nowrap;overflow-wrap:normal}
 .portal-line-cta-arrow{grid-column:2;grid-row:1;width:30px;height:30px}
}
@media(max-width:360px){
 .portal-hero-content{padding-inline:14px}.portal-hero-identity{gap:20px}
}
/* 服務區以輕量本機字型、透光色層及細節動效建立閱讀節奏。 */
#services{font-family:'Noto Sans TC','Microsoft JhengHei',sans-serif;background:radial-gradient(ellipse at 50% 30%,#b7a0c208,transparent 72%)}
#services .portal-services-heading{margin-bottom:22px}
#services .portal-services-heading h2{font:500 30px/1.6 'Noto Serif TC','PMingLiU',serif;letter-spacing:.06em}
#services .portal-service{--service-haze:#8fafa013;display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto 1fr auto;align-items:start;gap:18px 14px;min-height:300px;padding:36px 30px 28px;border:1px solid #eee1ed1c;border-radius:18px;background:radial-gradient(ellipse at 4% 0,var(--service-haze),transparent 70%),linear-gradient(145deg,#443946,#362d38);box-shadow:0 10px 30px #150d1714,inset 0 1px 0 #fffaf208;transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease}
#services .portal-service-chart{--service-haze:#d89a8e13}
#services .portal-service-numbers{--service-haze:#b7bce014}
#services .portal-service-luck{--service-haze:#d5ba9014}
#services .portal-service:after{inset:0;width:auto;height:auto;border:0;border-radius:inherit;background:linear-gradient(120deg,#ffffff03,transparent 45%)}
#services .portal-service-number{top:16px;right:24px;color:#b9adb8;font:400 11px/1.6 Georgia,serif;letter-spacing:.12em;opacity:.65}
#services .portal-service-icon{grid-column:1;grid-row:1;align-self:center;width:34px;height:34px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--service-ink);opacity:.82}
#services .portal-service h3{grid-column:2;grid-row:1;align-self:center;margin:0;font:500 25px/1.6 'Noto Serif TC','PMingLiU',serif;letter-spacing:.035em;color:#f1e9ed;text-wrap:balance}
#services .portal-service>p{grid-column:1/-1;grid-row:2;max-width:none;margin:0;color:#cfc3cd;font-size:16px;font-weight:400;line-height:1.8;letter-spacing:.025em}
#services .portal-service-action{grid-column:1/-1;grid-row:3;gap:14px;margin:0;padding-top:16px;border-color:#eddfeb13;color:var(--service-ink);font-size:14px;font-weight:400;line-height:1.8;letter-spacing:.06em;white-space:nowrap}
#services .portal-service-action>span{font-size:19px;line-height:1;transition:transform .28s ease}
#services .portal-service:hover{transform:none;border-color:#eee1ed1c}
#services .portal-service:focus-visible{outline:2px solid var(--service-ink);outline-offset:4px;border-color:#eadce64d}
@media(min-width:1100px){
 #services{padding-top:24px}
 #services .portal-services-grid{gap:20px}
 #services .portal-service{min-height:336px}
 #services .portal-service h3{font-size:clamp(24px,1.9vw,28px)}
 #services .portal-service>p{font-size:17px}
}
@media(max-width:540px){
 #services .portal-services-heading h2{font-size:25px}
 #services .portal-service{padding:32px 28px;gap:18px 12px}
}
@media(max-width:360px){
 #services .portal-services-heading h2{font-size:22px;letter-spacing:.025em}
 #services .portal-service{padding:30px 24px}
 #services .portal-service h3{font-size:24px}
}
@media(hover:hover) and (pointer:fine){
 #services .portal-service:hover{transform:translateY(-4px);border-color:#eadce64d;box-shadow:0 14px 34px #140d1b33,inset 0 1px 0 #fffaf20d}
 #services .portal-service:hover .portal-service-action>span{transform:translateX(3px)}
}
@media(prefers-reduced-motion:reduce){
 #services .portal-service,#services .portal-service-action>span{transition:none}
 #services .portal-service:hover,#services .portal-service:hover .portal-service-action>span{transform:none}
}
.site-header.home-header.portal-header{justify-content:flex-end;min-height:56px;padding-block:15px;flex-wrap:nowrap}
.site-header.home-header.portal-header .portal-nav{width:auto;gap:28px;padding-top:0;border:0}

.portal-hero-identity {
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}

.portal-hero-divider {
  height: 100px;
}
.portal-hero-divider {
  height: 100px;
  align-self: center;
  opacity: .35;
}
