:root {
  --ink: #17211d;
  --muted: #657069;
  --paper: #f7f4ed;
  --white: #fffefa;
  --red: #c72134;
  --green: #1d6149;
  --line: #ddd9ce;
  --shadow: 0 24px 70px rgba(23, 33, 29, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "Noto Sans TC", "PingFang TC", system-ui, sans-serif; line-height: 1.7; }
a { color: inherit; text-underline-offset: 3px; }
.skip-link { position: fixed; z-index: 20; top: -70px; left: 1rem; padding: .7rem 1rem; color: white; background: var(--ink); }
.skip-link:focus { top: 1rem; }
.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: min(1060px, calc(100% - 2.5rem)); margin: 0 auto; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.wordmark > span { display: grid; place-items: center; width: 38px; height: 38px; color: white; background: var(--ink); border-radius: 50%; font-family: Georgia, "Noto Serif TC", serif; font-size: 1rem; }
.wordmark strong { font-family: Georgia, "Noto Serif TC", serif; font-size: 1.05rem; letter-spacing: .08em; }
.site-header nav, footer nav { display: flex; flex-wrap: wrap; gap: .55rem 1.15rem; }
.site-header nav a, footer nav a { color: var(--muted); font-size: .85rem; font-weight: 700; text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible, footer nav a:hover, footer nav a:focus-visible { color: var(--red); }
main { width: min(1060px, calc(100% - 2.5rem)); margin: 0 auto; }
.intro { min-height: 510px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 760px; padding: 5rem 0; }
.domain, .section-heading > p { margin: 0 0 .55rem; color: var(--red); font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: Georgia, "Noto Serif TC", serif; line-height: 1.28; }
h1 { margin-bottom: .8rem; font-size: clamp(3.2rem, 10vw, 6.5rem); letter-spacing: .06em; }
.intro-copy { max-width: 640px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2.5vw, 1.25rem); }
.primary-link { display: inline-flex; align-items: center; min-height: 46px; margin-top: 1.7rem; padding: .65rem 1rem; color: white; background: var(--ink); border-radius: 8px; font-weight: 800; text-decoration: none; }
.primary-link:hover, .primary-link:focus-visible { background: var(--red); }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(1.7rem, 4vw, 2.35rem); }
.tool-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; margin-top: 1.7rem; padding: clamp(1.3rem, 4vw, 2.2rem); background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.tool-mark { display: grid; place-items: center; width: 64px; height: 64px; color: white; background: var(--red); border-radius: 5px 20px 5px 5px; font-family: Georgia, serif; font-size: 2.2rem; font-weight: 700; }
.tool-meta { display: flex; flex-wrap: wrap; gap: .45rem; }
.tool-meta span { padding: .2rem .5rem; color: var(--green); background: #e9f3ed; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.tool-card h3 { margin: .55rem 0 .3rem; font-size: 1.55rem; }
.tool-card p { margin: 0; color: var(--muted); }
.independent-note { margin-top: .7rem !important; font-size: .8rem; }
.tool-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 46px; padding: .65rem .9rem; color: white; background: var(--red); border-radius: 8px; font-size: .9rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.tool-link:hover, .tool-link:focus-visible { background: #9f1728; }
.information { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 1.6fr); gap: clamp(2rem, 7vw, 6rem); }
.information-copy p { margin: 0; color: var(--muted); }
.information-copy p + p { margin-top: .9rem; }
.email-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 1rem; color: var(--green); font-weight: 800; }
footer { display: flex; justify-content: space-between; gap: 2rem; width: min(1060px, calc(100% - 2.5rem)); margin: 0 auto; padding: 2rem 0 3rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .82rem; }
footer p { margin: 0; }
footer strong { color: var(--ink); }

@media (max-width: 720px) {
  .site-header { align-items: flex-start; }
  .site-header nav { justify-content: flex-end; max-width: 220px; gap: .35rem .8rem; }
  .intro { min-height: 450px; padding: 4rem 0; }
  .tool-card { grid-template-columns: auto 1fr; }
  .tool-link { grid-column: 1 / -1; justify-content: center; }
  .information { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 460px) {
  .site-header, main, footer { width: min(100% - 1.25rem, 1060px); }
  .site-header { gap: .7rem; }
  .wordmark strong { display: none; }
  .site-header nav { max-width: none; }
  .site-header nav a { font-size: .76rem; }
  h1 { font-size: clamp(2.8rem, 18vw, 4.1rem); }
  .tool-card { grid-template-columns: 1fr; }
  .tool-mark { width: 54px; height: 54px; }
  .tool-link { grid-column: auto; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
