:root {
  --brand: #00afc8;
  --brand-deep: #007a9a;
  --brand-dark: #063849;
  --brand-ink: #062b38;
  --accent: #f3cf20;
  --surface: #f3f9fa;
  --surface-blue: #e4f5f7;
  --white: #fff;
  --text: #173f49;
  --muted: #617b82;
  --line: #cee3e7;
  --shadow: 0 26px 70px rgba(0, 72, 94, .15), 0 10px 24px rgba(6, 43, 56, .08);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 14px; background: var(--brand-dark); color: white; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(206, 227, 231, .8);
  background: rgba(255, 255, 255, .91);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand-ink); }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-size: 20px; letter-spacing: .08em; }
.brand small { margin-top: 6px; color: var(--brand-deep); font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 700; }
.site-nav > a:not(.nav-cta) { position: relative; padding-block: 10px; }
.site-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--brand); transition: right .25s ease; }
.site-nav > a:not(.nav-cta):hover::after, .site-nav > a:not(.nav-cta):focus-visible::after { right: 0; }
.nav-cta { padding: 10px 18px; border-radius: 5px; background: var(--brand-deep); color: white; transition: transform .2s ease, background .2s ease; }
.nav-cta:hover { transform: translateY(-2px); background: var(--brand-dark); }
.nav-toggle { display: none; border: 0; background: transparent; width: 46px; height: 46px; padding: 11px; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--brand-ink); transition: .25s ease; }

.hero { position: relative; overflow: hidden; min-height: 720px; background: linear-gradient(115deg, #fff 0 58%, #edf9fb 58% 100%); }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(0, 175, 200, .18); border-radius: 50%; right: -180px; top: 38px; box-shadow: 0 0 0 58px rgba(0,175,200,.035), 0 0 0 116px rgba(0,175,200,.025); }
.hero-grid { position: absolute; inset: 0 0 0 58%; opacity: .3; background-image: linear-gradient(rgba(0,122,154,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(0,122,154,.11) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent); }
.hero-layout { min-height: 720px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; padding-block: 88px; position: relative; }
.eyebrow { margin: 0 0 22px; display: flex; align-items: center; gap: 10px; color: var(--brand-deep); font-size: 12px; font-weight: 850; letter-spacing: .19em; }
.eyebrow span { width: 28px; height: 2px; background: var(--accent); }
.eyebrow.light { color: #77d9e5; }
.hero h1, .section h2, .contact h2 { margin: 0; color: var(--brand-ink); font-size: clamp(42px, 5vw, 68px); font-weight: 750; line-height: 1.16; letter-spacing: -.045em; }
.hero h1 em { color: var(--brand-deep); font-style: normal; }
.hero-lead { max-width: 650px; margin: 26px 0 0; color: var(--muted); font-size: 18px; line-height: 1.9; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; padding: 12px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; border: 1px solid transparent; border-radius: 5px; font-size: 15px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--brand-deep); color: white; box-shadow: 0 13px 30px rgba(0, 122, 154, .22); }
.button-primary:hover { background: var(--brand-dark); box-shadow: 0 16px 34px rgba(0, 73, 93, .24); }
.button-secondary { border-color: var(--line); background: white; color: var(--brand-ink); }
.button-secondary:hover { border-color: var(--brand); background: var(--surface); }
.hero-proof { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hero-proof div { display: grid; gap: 3px; }
.hero-proof strong { color: var(--brand-deep); font-size: 18px; letter-spacing: .08em; }
.hero-proof span { color: var(--muted); font-size: 12px; }
.hero-visual { position: relative; min-height: 510px; }
.hero-image { position: absolute; inset: 52px 0 auto 0; aspect-ratio: 930 / 320; border-radius: 8px; background: linear-gradient(rgba(0, 50, 76, .05), rgba(0, 50, 76, .05)), url("yongfa-banner.jpg") center / cover no-repeat; box-shadow: var(--shadow); }
.hero-image::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.45); border-radius: inherit; pointer-events: none; }
.service-panel { position: absolute; right: -26px; bottom: 0; width: min(360px, 88%); padding: 22px; border: 1px solid rgba(206,227,231,.95); border-radius: 7px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.panel-label { margin: 0 0 10px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.panel-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid #e5eff1; }
.panel-row strong { font-size: 14px; }
.panel-row small { color: var(--brand-deep); font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(0,175,200,.12); }

.intro-strip { border-block: 1px solid var(--line); background: var(--brand-ink); color: white; }
.strip-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.strip-inner p { margin: 0; font-size: 13px; font-weight: 750; letter-spacing: .22em; }
.strip-inner span { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.section { padding-block: 120px; }
.section-heading { margin-bottom: 66px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; }
.section h2 { font-size: clamp(36px, 4.1vw, 54px); }
.section-heading > p { max-width: 520px; margin: 0 0 8px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.services { background: white; }
.service-list { border-top: 1px solid var(--brand-ink); }
.service-item { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(260px, .7fr); gap: 36px; align-items: center; padding: 40px 8px; border-bottom: 1px solid var(--line); transition: background .25s ease, padding .25s ease; }
.service-item:hover { padding-inline: 22px; background: var(--surface); }
.service-number { align-self: start; padding-top: 5px; color: var(--brand); font-family: ui-monospace, monospace; font-size: 13px; font-weight: 800; }
.service-content h3 { margin: 0 0 8px; color: var(--brand-ink); font-size: 26px; letter-spacing: -.02em; }
.service-content p { max-width: 600px; margin: 0; color: var(--muted); }
.service-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.service-tags span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--brand-deep); background: white; font-size: 12px; font-weight: 700; }

.approach { overflow: hidden; position: relative; background: var(--brand-dark); color: white; }
.approach::after { content: ""; position: absolute; width: 640px; height: 640px; right: -340px; bottom: -360px; border: 1px solid rgba(119,217,229,.18); border-radius: 50%; box-shadow: 0 0 0 70px rgba(119,217,229,.025), 0 0 0 140px rgba(119,217,229,.02); }
.approach-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 110px; position: relative; z-index: 1; }
.approach h2, .contact h2 { color: white; font-size: clamp(38px, 4.2vw, 56px); }
.approach-copy > p:not(.eyebrow) { margin: 28px 0; color: rgba(255,255,255,.69); font-size: 17px; }
.text-link { display: inline-flex; gap: 12px; align-items: center; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.45); color: white; font-weight: 750; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.24); }
.process-list li { display: grid; grid-template-columns: 62px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.19); }
.process-list > li > span { color: var(--accent); font-family: ui-monospace, monospace; font-size: 13px; }
.process-list h3 { margin: -4px 0 6px; font-size: 22px; }
.process-list p { margin: 0; color: rgba(255,255,255,.66); }

.about { background: var(--surface); }
.about-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 100px; align-items: center; }
.about-mark { min-height: 460px; display: grid; place-items: center; position: relative; background: white; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 71, 90, .09); }
.about-mark::before, .about-mark::after { content: ""; position: absolute; width: 80px; height: 80px; border-color: var(--accent); }
.about-mark::before { left: 18px; top: 18px; border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); }
.about-mark::after { right: 18px; bottom: 18px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); }
.about-mark img { width: min(240px, 65%); }
.about-copy > p:not(.eyebrow) { margin: 24px 0 0; color: var(--muted); font-size: 17px; }
.company-facts { margin: 38px 0 0; border-top: 1px solid var(--line); }
.company-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 26px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.company-facts dt { color: var(--muted); font-size: 13px; }
.company-facts dd { margin: 0; color: var(--brand-ink); font-weight: 750; }

.contact { padding-block: 100px; overflow: hidden; position: relative; background: var(--brand-deep); color: white; }
.contact::before { content: "YF"; position: absolute; right: -20px; bottom: -100px; color: rgba(255,255,255,.045); font-size: 340px; font-weight: 900; line-height: 1; letter-spacing: -.1em; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; position: relative; z-index: 1; }
.contact-copy > p:not(.eyebrow) { max-width: 570px; margin: 28px 0 0; color: rgba(255,255,255,.75); font-size: 17px; }
.contact-card { padding: 4px 30px; border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.1); box-shadow: 0 25px 65px rgba(0, 41, 55, .18); }
.contact-card > * { min-height: 100px; display: grid; grid-template-columns: 115px 1fr 24px; gap: 18px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.2); }
.contact-card > *:last-child { border-bottom: 0; }
.contact-card span { color: rgba(255,255,255,.65); font-size: 13px; }
.contact-card strong { overflow-wrap: anywhere; font-size: 16px; line-height: 1.55; }
.contact-card b { font-size: 18px; transition: transform .2s ease; }
.contact-card a:hover b { transform: translate(3px, -3px); }

.site-footer { background: var(--brand-ink); color: white; }
.footer-main { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-brand { color: white; }
.footer-brand img { width: 48px; height: 48px; background: white; border-radius: 4px; }
.footer-brand small { color: #7ad9e4; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; color: rgba(255,255,255,.72); font-size: 13px; }
.footer-links a:hover { color: white; }
.footer-bottom { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.48); font-size: 12px; }
.footer-bottom p { margin: 0; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.revealed { opacity: 1; transform: none; }
.js .reveal-delay { transition-delay: .16s; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

@media (max-width: 980px) {
  .hero { background: linear-gradient(180deg, #fff 0 55%, #edf9fb 55%); }
  .hero-grid { inset: 55% 0 0; }
  .hero-layout { grid-template-columns: 1fr; gap: 60px; padding-block: 70px 90px; }
  .hero-visual { min-height: 470px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .service-item { grid-template-columns: 58px 1fr; }
  .service-tags { grid-column: 2; justify-content: flex-start; }
  .approach-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 64px; }
  .about-mark { min-height: 360px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .nav-wrap { min-height: 70px; }
  .brand img { width: 46px; height: 46px; }
  .brand strong { font-size: 17px; }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 70px 0 auto; min-height: calc(100vh - 70px); padding: 40px 24px; display: none; flex-direction: column; align-items: stretch; gap: 8px; background: white; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 15px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-cta { margin-top: 16px; text-align: center; }
  .hero, .hero-layout { min-height: auto; }
  .hero-layout { padding-block: 56px 72px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-lead { font-size: 16px; }
  .hero-proof { grid-template-columns: 1fr; gap: 14px; }
  .hero-proof div { grid-template-columns: 62px 1fr; align-items: center; }
  .hero-visual { min-height: 390px; }
  .hero-image { inset: 20px 0 auto; }
  .service-panel { right: 10px; padding: 18px; }
  .strip-inner { min-height: 62px; gap: 10px; }
  .strip-inner p { font-size: 10px; letter-spacing: .08em; }
  .section { padding-block: 82px; }
  .section-heading { margin-bottom: 44px; }
  .section h2, .approach h2, .contact h2 { font-size: 38px; }
  .service-item { grid-template-columns: 42px 1fr; gap: 16px; padding: 30px 0; }
  .service-item:hover { padding-inline: 0; }
  .service-tags { grid-column: 1 / -1; padding-left: 58px; }
  .service-content h3 { font-size: 22px; }
  .approach-layout, .about-layout, .contact-layout { gap: 48px; }
  .process-list li { grid-template-columns: 46px 1fr; gap: 12px; }
  .about-mark { min-height: 290px; }
  .company-facts div { grid-template-columns: 90px 1fr; gap: 12px; }
  .contact-card { padding-inline: 18px; }
  .contact-card > * { grid-template-columns: 90px 1fr 18px; gap: 10px; }
  .footer-main { padding-block: 38px; flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 16px 22px; }
  .footer-bottom { padding-block: 20px; flex-direction: column; align-items: flex-start; justify-content: center; }
}

@media (max-width: 420px) {
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-visual { min-height: 340px; }
  .panel-row { grid-template-columns: 10px 1fr; }
  .panel-row small { grid-column: 2; }
  .contact-card > * { grid-template-columns: 1fr 20px; padding-block: 18px; }
  .contact-card span { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
