:root {
  --zuola-navy-950: #071b2b;
  --zuola-navy-900: #0b2942;
  --zuola-navy-800: #153f63;
  --zuola-blue-700: #1d4f7a;
  --zuola-orange-700: #b94f0b;
  --zuola-orange-500: #f27a24;
  --zuola-slate-950: #0f172a;
  --zuola-slate-700: #334155;
  --zuola-slate-600: #475569;
  --zuola-slate-400: #94a3b8;
  --zuola-slate-200: #e2e8f0;
  --zuola-slate-100: #f1f5f9;
  --zuola-slate-50: #f8fafc;
  --zuola-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body {
  background: #fff;
  color: var(--zuola-slate-700);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
}
a { color: var(--zuola-blue-700); text-underline-offset: 4px; transition: color 200ms ease, border-color 200ms ease, background 200ms ease, transform 200ms ease; }
a:hover { color: var(--zuola-orange-700); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--zuola-blue-700);
  outline-offset: 3px;
}
h1, h2, h3, h4, h5, h6 { color: var(--zuola-slate-950); font-weight: 700; letter-spacing: -0.025em; line-height: 1.22; }
p { margin: 1.15em 0; }
#page { margin: 0 auto; max-width: none; width: 100%; }
.site-inner { min-width: 0; overflow: visible; width: 100%; }
.site-content { min-width: 0; width: 100%; }
.site-shell, .site-content > .wrapper { box-sizing: border-box; margin: 0 auto; max-width: 1200px; padding-left: 40px; padding-right: 40px; width: 100%; }

.skip-link {
  background: var(--zuola-slate-950);
  border-radius: 8px;
  color: #fff;
  left: 16px;
  padding: 8px 16px;
  position: fixed;
  text-decoration: none;
  top: 12px;
  transform: translateY(-100px);
  transition: transform 200ms ease;
  z-index: 10000;
}
.skip-link:focus { color: #fff; transform: translateY(0); }

header.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--zuola-slate-200);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 999;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.admin-bar header.site-header { top: 32px; }
.site-nav { align-items: center; display: flex; gap: 20px; justify-content: space-between; min-height: 74px; }
.brand-link { align-items: center; color: var(--zuola-slate-950); display: flex; flex-shrink: 0; gap: 12px; text-decoration: none; }
.brand-link:hover { color: var(--zuola-slate-950); }
.brand-logo { display: block; height: 52px; object-fit: contain; width: 148px; }
.brand-mark, .brand-title { display: none; }
.nav-toggle { align-items: center; background: transparent; border: 1px solid #cbd5e1; border-radius: 8px; color: var(--zuola-slate-700); display: none; height: 44px; justify-content: center; padding: 0; width: 44px; }
.nav-toggle-lines { background: currentColor; display: block; height: 2px; position: relative; width: 20px; }
.nav-toggle-lines::before, .nav-toggle-lines::after { background: currentColor; content: ""; height: 2px; left: 0; position: absolute; width: 20px; }
.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }
.nav-menu { display: flex; }
.nav-list { align-items: center; display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { margin: 0; padding: 0; }
.nav-list > li + li { margin-top: 0; }
.nav-link {
  align-items: center;
  border-bottom: 2px solid transparent;
  border-radius: 8px;
  color: var(--zuola-slate-700);
  display: flex;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  min-height: 44px;
  padding: 8px 10px;
  text-decoration: none;
}
.nav-link:hover { background: var(--zuola-slate-50); border-color: var(--zuola-orange-500); color: var(--zuola-navy-900); }
.nav-link[aria-current="page"] { background: #dbeafe; border-color: var(--zuola-navy-800); box-shadow: 0 1px 2px rgba(15,23,42,.08); color: var(--zuola-navy-950); }

.button-primary, .button-secondary {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  text-decoration: none;
}
.button-primary { background: #1e3a5f; color: #fff; }
.button-primary:hover { background: var(--zuola-navy-950); box-shadow: var(--zuola-shadow); color: #fff; transform: translateY(-2px); }
.button-secondary { background: #fff; border-color: #cbd5e1; color: var(--zuola-slate-950); }
.button-secondary:hover { border-color: var(--zuola-orange-500); color: var(--zuola-orange-700); transform: translateY(-2px); }
.site-content > .wrapper { padding-bottom: 96px; padding-top: 96px; }
body.layout-two-columns .site-content > .wrapper {
  align-items: start;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
}
body.layout-two-columns .content-area,
body.layout-two-columns .sidebar-primary {
  float: none;
  margin: 0;
  max-width: none;
  min-width: 0;
  padding: 0;
  width: auto;
}
.site-main .hentry {
  background: #fff;
  border: 1px solid var(--zuola-slate-200);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.055);
  cursor: pointer;
  margin-bottom: 28px;
  overflow: hidden;
  padding: 30px;
  position: relative;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.site-main .hentry:hover, .site-main .hentry:focus-within { border-color: #93c5fd; box-shadow: var(--zuola-shadow); transform: translateY(-2px); }
.archive-post-wrap .entry-title { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.35; margin: 0 0 14px; }
.archive-post-wrap .entry-title a { color: var(--zuola-slate-950); text-decoration: none; }
.archive-post-wrap .entry-title a::after { content: ""; inset: 0; position: absolute; z-index: 1; }
.archive-post-wrap .entry-title a:hover { color: var(--zuola-blue-700); }
.archive-post-wrap .entry-container { min-width: 0; padding: 0 !important; }
.post-media-column { min-width: 0; }
.post-media-column .featured-image { margin: 0; }
.post-media-column .featured-image img { border-radius: 10px; display: block; height: auto; width: 100%; }
.entry-meta { color: #475569; font-size: 15.5px; line-height: 1.6; }
.post-media-column .entry-meta { margin-top: 14px; }
.archive-post-wrap .entry-meta .post-time.screen-reader-text { clip: auto; clip-path: none; height: auto; margin: 0 4px 0 0; overflow: visible; padding: 0; position: static !important; white-space: normal; width: auto; }
.archive-post-wrap .featured-image a, .archive-post-wrap .entry-meta a, .archive-post-wrap .entry-summary a { position: relative; z-index: 2; }
.entry-summary, .entry-content { color: var(--zuola-slate-600); }
.entry-summary { line-height: 1.75; }
.entry-summary > :first-child { margin-top: 0; }
.entry-content { font-size: 17px; line-height: 1.85; max-width: 75ch; }
.entry-content, .entry-summary, .widget { overflow-wrap: anywhere; }
.entry-content img, .entry-content video, .entry-content iframe, .entry-content table { height: auto; max-width: 100%; }
.entry-content pre { max-width: 100%; overflow-x: auto; }
.entry-content h2 { font-size: 2rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.5rem; margin-top: 1.8em; }
.entry-content img { border-radius: 12px; height: auto; max-width: 100%; }
.entry-content blockquote { background: var(--zuola-slate-50); border-left: 4px solid var(--zuola-navy-800); border-radius: 0 12px 12px 0; color: var(--zuola-slate-700); padding: 18px 24px; }
.entry-summary .readmore { background: transparent; border: 0; display: block; margin-top: 22px; padding: 0; }
.entry-summary .readmore a, .more-link, input[type="submit"], button[type="submit"] { background: var(--zuola-navy-800); border: 0; border-radius: 8px; color: #fff !important; display: inline-flex; font-weight: 700; min-height: 44px; padding: 10px 20px; text-decoration: none; }
.entry-summary .readmore a:hover, .more-link:hover, input[type="submit"]:hover, button[type="submit"]:hover { background: var(--zuola-navy-950); color: #fff !important; }
.sidebar-primary .widget { background: var(--zuola-slate-50); border: 1px solid var(--zuola-slate-200); border-radius: 16px; margin: 0 0 24px; padding: 24px; }
.sidebar-primary .widget-title { color: var(--zuola-navy-950); font-size: 1.15rem; }
input[type="search"], input[type="text"], input[type="email"], input[type="url"], textarea {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: var(--zuola-slate-950);
  font-size: 16px;
  min-height: 44px;
  padding: 10px 12px;
}

.final-cta { background: var(--zuola-navy-900); color: #fff; padding: 72px 0; }
.final-cta-inner { align-items: center; display: flex; gap: 32px; justify-content: space-between; margin: 0 auto; max-width: 1200px; padding: 0 40px; }
.final-cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.6rem); margin: 0; }
.final-cta p { color: #cbd5e1; margin: 12px 0 0; max-width: 680px; }
.final-cta-actions { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 12px; }
.final-cta .button-primary { background: #fff; color: var(--zuola-navy-950); }
.final-cta .button-primary:hover { background: #eff6ff; color: var(--zuola-navy-950); }
.final-cta .button-secondary { background: transparent; border-color: #64748b; color: #fff; }
.final-cta .button-secondary:hover { border-color: #fdba74; color: #fed7aa; }
.newsletter-form { max-width: 520px; width: 100%; }
.newsletter-label { color: #fff; display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.newsletter-fields { align-items: stretch; display: flex; gap: 12px; }
.newsletter-fields input[type="email"] { background: #fff; border-color: rgba(255,255,255,.35); color: var(--zuola-slate-950); flex: 1 1 auto; height: 56px; line-height: 1.2; margin: 0; max-height: 56px; min-height: 56px; min-width: 0; padding: 0 16px; }
.newsletter-fields input[type="email"]:focus { border-color: #fb923c; box-shadow: 0 0 0 3px rgba(251,146,60,.22); outline: 0; }
.final-cta .newsletter-fields .button-primary { align-self: stretch; background: #c2410c; border-color: #c2410c; color: #fff; flex: 0 0 auto; height: 56px; line-height: 1; margin: 0; min-height: 56px; padding: 0 24px; white-space: nowrap; }
.final-cta .newsletter-fields .button-primary:hover { background: #9a3412; border-color: #9a3412; color: #fff; }
.newsletter-note { color: #cbd5e1; font-size: 14px; line-height: 1.6; margin: 10px 0 0; }
.newsletter-note a { color: #fff; }
.newsletter-note a:hover { color: #fdba74; }

footer.site-footer { background: var(--zuola-navy-950); color: #cbd5e1; padding: 48px 0; }
.footer-nav { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; margin: 0; padding: 0; }
.footer-nav > li { margin: 0; padding: 0; }
.footer-nav > li + li { margin-top: 0; }
.footer-nav a { align-items: center; color: #e2e8f0; display: inline-flex; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; }
.footer-nav a:hover { color: #fdba74; }
.footer-meta { border-top: 1px solid rgba(255,255,255,.1); color: var(--zuola-slate-400); font-size: 14px; line-height: 1.75; margin-top: 28px; padding-top: 24px; }
.footer-meta a { color: #cbd5e1; }
.footer-meta a:hover { color: #fdba74; }
@media screen and (min-width: 720px) {
  .site-main .hentry.has-post-thumbnail .archive-post-wrap {
    align-items: start;
    display: grid;
    gap: clamp(24px, 3vw, 34px);
    grid-template-columns: minmax(180px, 36%) minmax(0, 1fr);
  }
}

@media screen and (max-width: 1023px) {
  .site-shell, .site-content > .wrapper { padding-left: 28px; padding-right: 28px; }
  .nav-toggle { display: inline-flex; }
  .nav-menu { background: #fff; border-bottom: 1px solid var(--zuola-slate-200); box-shadow: var(--zuola-shadow); display: none; left: 0; max-height: calc(100vh - 74px); overflow-y: auto; padding: 16px 28px; position: absolute; right: 0; top: 74px; }
  .nav-menu.is-open { display: block; }
  .nav-list { align-items: stretch; flex-direction: column; gap: 4px; }
  .nav-link { padding-left: 12px; padding-right: 12px; }
  body.nav-open { overflow: hidden; }
  body.layout-two-columns .site-content > .wrapper { display: block; }
  .layout-two-columns .content-area, .sidebar-primary { float: none; max-width: none; padding-left: 0; width: 100%; }
  .sidebar-primary { margin-top: 48px; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; padding-left: 28px; padding-right: 28px; }
}

@media screen and (max-width: 782px) { .admin-bar header.site-header { top: 46px; } }
@media screen and (max-width: 640px) {
  .site-shell, .site-content > .wrapper { padding-left: 20px; padding-right: 20px; }
  .brand-logo { display: none; }
  .brand-mark { display: block; height: 44px; width: 44px; }
  .brand-title { color: var(--zuola-slate-950); display: block; font-size: 14px; font-weight: 700; line-height: 1.3; max-width: 176px; }
  .nav-menu { padding-left: 20px; padding-right: 20px; }
  .final-cta-actions { flex-direction: column; width: 100%; }
  .button-primary, .button-secondary { width: 100%; }
  .newsletter-fields { flex-direction: column; }
  .site-content > .wrapper { padding-bottom: 64px; padding-top: 64px; }
  .site-main .hentry { padding: 22px; }
  .entry-content { font-size: 16px; line-height: 1.78; }
  .final-cta { padding: 56px 0; }
  .final-cta-inner { padding-left: 20px; padding-right: 20px; }
}

@media screen and (max-width: 420px) {
  .site-shell, .site-content > .wrapper { padding-left: 16px; padding-right: 16px; }
  .brand-title { max-width: 150px; }
  .nav-menu { padding-left: 16px; padding-right: 16px; }
  .site-main .hentry, .sidebar-primary .widget { border-radius: 12px; padding: 18px; }
  .final-cta-inner { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms; }
}
