:root {
  color-scheme: light;
  --bg: #f8f6fb; --surface: #fff; --surface-soft: #f1edf7;
  --ink: #251d35; --muted: #6f677b; --primary: #67499c; --primary-deep: #4d3478;
  --primary-soft: #e9e0f6; --green: #73985a; --green-soft: #e7eedf;
  --border: #e1dbe9; --focus: #a5ce7f; --shadow: 0 18px 45px rgba(57,38,89,.09);
  --radius: 18px; --container: 1140px;
}
html[data-theme="dark"] {
  color-scheme: dark; --bg: #17131f; --surface: #211b2c; --surface-soft: #2a2236;
  --ink: #f8f3ff; --muted: #beb2cb; --primary: #c0a4ed; --primary-deep: #d3bcf4;
  --primary-soft: #3b2d4f; --green: #a8cf88; --green-soft: #2e3c29;
  --border: #40334e; --focus: #b8e292; --shadow: 0 18px 45px rgba(0,0,0,.28);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) { color-scheme: dark; --bg:#17131f; --surface:#211b2c; --surface-soft:#2a2236; --ink:#f8f3ff; --muted:#beb2cb; --primary:#c0a4ed; --primary-deep:#d3bcf4; --primary-soft:#3b2d4f; --green:#a8cf88; --green-soft:#2e3c29; --border:#40334e; --focus:#b8e292; --shadow:0 18px 45px rgba(0,0,0,.28); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif; font-size:1rem; line-height:1.7; text-rendering:optimizeLegibility; }
img { max-width:100%; }
a { color:var(--primary); text-underline-offset:.18em; }
a:hover { color:var(--primary-deep); }
button,input,textarea,select { font:inherit; }
button,input,textarea,select { min-height:24px; }
input[type=checkbox],input[type=radio] { width:24px; height:24px; }
button,a { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
.container { width:min(calc(100% - 40px),var(--container)); margin-inline:auto; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; z-index:20; left:14px; top:-60px; padding:8px 14px; border-radius:8px; background:var(--primary-deep); color:#fff; font-weight:700; }
.skip-link:focus { top:14px; }
.site-header { position:sticky; z-index:10; top:0; border-bottom:1px solid var(--border); background:color-mix(in srgb,var(--bg) 91%,transparent); backdrop-filter:blur(14px); }
.header-inner { min-height:76px; display:flex; align-items:center; gap:28px; }
.brand { display:inline-flex; align-items:center; gap:11px; color:var(--ink); text-decoration:none; font-weight:800; letter-spacing:-.02em; white-space:nowrap; }
.brand img { width:36px; height:36px; }
.brand-name { font-size:1.07rem; }
.site-nav { display:flex; align-items:center; gap:21px; margin-left:auto; }
.site-nav a { color:var(--muted); font-size:.92rem; font-weight:650; text-decoration:none; }
.site-nav a:hover,.site-nav a[aria-current="page"] { color:var(--primary); }
.header-actions { display:flex; align-items:center; gap:9px; }
.site-search { display:flex; }
.site-search input { width:142px; padding:7px 11px; border:1px solid var(--border); border-radius:999px; background:var(--surface); color:var(--ink); font-size:.87rem; }
.site-search input::placeholder { color:var(--muted); }
.theme-toggle { display:inline-flex; align-items:center; gap:6px; padding:7px 10px; border:1px solid var(--border); border-radius:999px; background:var(--surface); color:var(--muted); cursor:pointer; font-size:.83rem; }
.theme-toggle:hover { color:var(--primary); border-color:var(--primary); }
.theme-toggle-icon { font-size:1rem; line-height:1; }
.site-footer { border-top:1px solid var(--border); background:var(--surface); }
.footer-inner { display:flex; justify-content:space-between; gap:30px; padding-top:38px; padding-bottom:34px; }
.footer-brand { max-width:300px; }
.footer-brand .brand { margin-bottom:12px; }
.footer-brand p,.footer-meta { margin:0; color:var(--muted); font-size:.84rem; }
.footer-links { display:flex; flex-wrap:wrap; align-items:start; justify-content:end; gap:12px 20px; }
.footer-links a { color:var(--muted); font-size:.84rem; text-decoration:none; }
.footer-links a:hover { color:var(--primary); }
.footer-bottom { border-top:1px solid var(--border); padding:15px 0; color:var(--muted); font-size:.75rem; }
.footer-bottom p { margin:0; }
.hero { display:grid; grid-template-columns:minmax(0,1.03fr) minmax(350px,.97fr); align-items:center; gap:clamp(40px,8vw,110px); min-height:550px; padding-top:68px; padding-bottom:80px; }
.eyebrow { display:flex; align-items:center; gap:8px; margin:0 0 18px; color:var(--green); font-size:.75rem; font-weight:800; letter-spacing:.14em; }
.eyebrow-dot { width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px var(--green-soft); }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { letter-spacing:-.045em; line-height:1.17; }
h1 { margin-bottom:24px; font-size:clamp(3.4rem,7vw,6.1rem); font-weight:850; }
h1 span { color:var(--primary); }
.hero-lede { max-width:510px; margin-bottom:32px; color:var(--muted); font-size:1.1rem; }
.hero-search { max-width:540px; }
.hero-search>label { display:block; margin-bottom:8px; font-size:.85rem; font-weight:750; }
.search-input-wrap { display:flex; align-items:center; gap:8px; padding:6px; border:1px solid var(--border); border-radius:13px; background:var(--surface); box-shadow:0 8px 24px rgba(57,38,89,.06); }
.search-mark { padding-left:9px; color:var(--muted); font-size:1.35rem; line-height:1; }
.search-input-wrap input { min-width:0; flex:1; border:0; outline:0; background:transparent; color:var(--ink); }
.search-input-wrap input::placeholder { color:var(--muted); }
.search-note { margin:8px 0 0; color:var(--muted); font-size:.79rem; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:8px 17px; border:1px solid transparent; border-radius:9px; font-weight:750; cursor:pointer; text-decoration:none; }
.button-primary { background:var(--primary); color:#fff; }
.button-primary:hover { background:var(--primary-deep); color:#fff; }
.button-secondary { border-color:var(--border); background:var(--surface); color:var(--ink); }
.button-secondary:hover { border-color:var(--primary); color:var(--primary); }
.hero-art { position:relative; min-height:380px; display:grid; place-items:center; isolation:isolate; }
.onion-halo { position:absolute; width:min(82%,355px); aspect-ratio:1; border-radius:50%; background:radial-gradient(circle,var(--green-soft),transparent 65%); opacity:.9; }
.onion-rings { position:relative; width:min(73vw,340px); aspect-ratio:1; }
.onion-ring { position:absolute; inset:0; display:block; border-radius:54% 46% 49% 51% / 48% 53% 47% 52%; background:var(--primary); box-shadow:inset 0 0 0 2px rgba(255,255,255,.2),0 18px 30px rgba(74,47,116,.11); transition:transform .55s cubic-bezier(.22,.75,.25,1); }
.ring-outer { transform:rotate(12deg); background:#9b79c4; }
.ring-five { inset:10%; transform:rotate(-8deg); background:#8765b4; }
.ring-four { inset:20%; transform:rotate(16deg); background:#7250a1; }
.ring-three { inset:30%; transform:rotate(-13deg); background:#633f91; }
.ring-two { inset:40%; transform:rotate(12deg); background:#522f7f; }
.ring-core { inset:47%; transform:rotate(-6deg); background:var(--green); box-shadow:inset 0 0 0 2px rgba(255,255,255,.23),0 8px 18px rgba(61,91,42,.18); }
.hero-art:hover .ring-outer,.hero-art:focus .ring-outer { transform:translate(8px,-9px) rotate(18deg) scale(1.03); }
.hero-art:hover .ring-five,.hero-art:focus .ring-five { transform:translate(-10px,-4px) rotate(-14deg); }
.hero-art:hover .ring-four,.hero-art:focus .ring-four { transform:translate(8px,7px) rotate(21deg); }
.hero-art:hover .ring-three,.hero-art:focus .ring-three { transform:translate(-7px,6px) rotate(-19deg); }
.hero-art:hover .ring-two,.hero-art:focus .ring-two { transform:translate(4px,-6px) rotate(17deg); }
.hero-art:hover .ring-core,.hero-art:focus .ring-core { transform:translate(-2px,3px) scale(1.08); }
.art-caption { position:absolute; right:0; bottom:18px; margin:0; color:var(--muted); font-size:.82rem; }
.tool-section { padding-top:42px; padding-bottom:94px; scroll-margin-top:70px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:36px; margin-bottom:28px; }
.section-heading h2,.trust-section h2 { margin-bottom:0; font-size:clamp(2rem,4vw,3rem); }
.section-intro { max-width:370px; margin:0; color:var(--muted); font-size:.96rem; }
.category-row { display:flex; flex-wrap:wrap; gap:9px; margin-bottom:21px; }
.category-chip { display:inline-flex; align-items:center; gap:7px; padding:8px 13px; border:1px solid var(--border); border-radius:999px; color:var(--muted); background:var(--surface); font-family:inherit; font-size:.87rem; cursor:pointer; }
.category-chip span { display:inline-grid; place-items:center; min-width:21px; height:21px; padding-inline:4px; border-radius:999px; background:var(--surface-soft); font-size:.71rem; }
.category-chip:hover,.category-chip.is-active { border-color:var(--primary); color:var(--primary); background:var(--primary-soft); }
.tool-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; }
.tool-card { position:relative; display:flex; min-height:207px; flex-direction:column; padding:20px 19px 18px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); color:var(--ink); text-decoration:none; transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease; }
[hidden] { display:none !important; }
.tool-card:hover { border-color:var(--primary); box-shadow:var(--shadow); transform:translateY(-3px); }
.tool-icon { display:inline-grid; place-items:center; width:39px; height:39px; margin-bottom:20px; border-radius:11px; color:var(--primary-deep); background:var(--primary-soft); font-size:.91rem; font-weight:850; letter-spacing:-.08em; }
.icon-ink { font-size:1.1rem; }
.icon-link { font-size:1.4rem; }
.icon-clock { font-size:1.7rem; font-weight:400; }
.icon-color { color:var(--green); background:var(--green-soft); font-size:1.4rem; }
.tool-card-body { display:flex; min-width:0; flex:1; flex-direction:column; }
.tool-category { margin-bottom:4px; color:var(--green); font-size:.7rem; font-weight:800; letter-spacing:.05em; }
.tool-card strong { margin-bottom:7px; font-size:1.06rem; letter-spacing:-.025em; }
.tool-card-body>span:last-child { color:var(--muted); font-size:.83rem; line-height:1.55; }
.tool-arrow { position:absolute; top:19px; right:20px; color:var(--muted); font-size:1.15rem; }
.tool-card:hover .tool-arrow { color:var(--primary); }
.tool-empty { margin:20px 0 0; padding:20px; border:1px dashed var(--border); border-radius:13px; color:var(--muted); text-align:center; }
.tool-workspace { padding:32px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); }
.workspace-head { display:flex; justify-content:space-between; align-items:start; gap:24px; margin-bottom:22px; }
.workspace-head h1,.workspace-head h2 { margin:0; font-size:clamp(1.65rem,4vw,2.4rem); }
.workspace-head p { margin:7px 0 0; color:var(--muted); }
.dropzone { display:grid; place-items:center; min-height:160px; padding:24px; border:1.5px dashed var(--primary); border-radius:14px; background:var(--primary-soft); color:var(--primary-deep); text-align:center; }
.dropzone small { color:var(--muted); }
.field { display:grid; gap:7px; margin-bottom:17px; }
.field label { font-size:.85rem; font-weight:750; }
textarea,.input,.field input,.field select { width:100%; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--ink); padding:11px 13px; }
textarea { min-height:180px; resize:vertical; }
textarea::placeholder,.field input::placeholder { color:var(--muted); }
.form-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.result-panel { margin-top:24px; padding:20px; border:1px solid var(--border); border-radius:12px; background:var(--surface-soft); }
.result-panel h2,.result-panel h3 { margin:0 0 10px; font-size:1.1rem; }
.result-panel pre { overflow:auto; margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.badge { display:inline-flex; align-items:center; padding:3px 8px; border-radius:999px; background:var(--green-soft); color:var(--green); font-size:.74rem; font-weight:800; }
.data-table { width:100%; border-collapse:collapse; font-size:.9rem; }
.data-table th,.data-table td { padding:10px 12px; border-bottom:1px solid var(--border); text-align:left; }
.data-table th { color:var(--muted); font-size:.75rem; letter-spacing:.04em; }
.content-page { padding-top:76px; padding-bottom:100px; }
.content-header { max-width:720px; padding-bottom:42px; }
.content-header .eyebrow { margin-bottom:16px; }
.content-header p:last-child { margin:20px 0 0; color:var(--muted); font-size:1.07rem; }
.prose { max-width:760px; }
.prose h2 { margin:42px 0 12px; font-size:1.35rem; }
.prose h3 { margin:26px 0 8px; font-size:1.06rem; }
.prose p,.prose li { color:var(--muted); }
.prose ul { padding-left:1.35em; }
.prose li+li { margin-top:8px; }
.notice-box { margin:26px 0; padding:17px 19px; border-left:4px solid var(--green); border-radius:0 10px 10px 0; background:var(--green-soft); }
.notice-box p { margin:0; color:var(--ink); font-size:.9rem; }
.tutorial-banner { width:min(calc(100% - 40px),var(--container)); margin:16px auto 0; padding:10px 16px; border:1px solid var(--border); border-left:4px solid var(--primary); border-radius:0 10px 10px 0; background:var(--primary-soft); font-size:.85rem; }
.tutorial-banner a { color:var(--primary-deep); font-weight:750; text-decoration:none; }
.tutorial-banner a:hover { text-decoration:underline; }
.contact-card { display:inline-flex; flex-direction:column; gap:2px; margin-top:8px; padding:17px 20px; border:1px solid var(--border); border-radius:13px; background:var(--surface); box-shadow:var(--shadow); }
.contact-card strong { color:var(--ink); }
.contact-card span { color:var(--muted); font-size:.85rem; }
.trust-section { display:grid; grid-template-columns:120px 1fr; align-items:center; gap:45px; max-width:900px; padding-top:58px; padding-bottom:66px; border-top:1px solid var(--border); }
.trust-section p:last-child { max-width:680px; margin:16px 0 0; color:var(--muted); }
.trust-mark { position:relative; height:102px; }
.trust-mark span { position:absolute; display:block; border:3px solid var(--primary); border-radius:50%; transform:rotate(-20deg); }
.trust-mark span:nth-child(1) { width:70px; height:88px; left:32px; top:5px; }
.trust-mark span:nth-child(2) { width:55px; height:75px; left:22px; top:14px; border-color:var(--green); }
.trust-mark span:nth-child(3) { width:40px; height:59px; left:12px; top:23px; }
.ad-slot,.ad-placeholder { min-height:122px; display:grid; place-items:center; align-content:center; gap:1px; border:1px dashed var(--border); border-radius:14px; color:var(--muted); text-align:center; }
.ad-slot p,.ad-placeholder p { margin:7px 0 0; font-size:.85rem; }
.ad-slot small,.ad-placeholder small { font-size:.72rem; }
.ad-label { padding:3px 7px; border-radius:4px; background:var(--surface-soft); color:var(--muted); font-size:.67rem; font-weight:800; letter-spacing:.1em; }
.ad-section { padding-bottom:76px; }
@media (max-width:900px) {
  .header-inner { gap:14px; }
  .site-nav { gap:12px; }
  .site-search input { width:110px; }
  .hero { grid-template-columns:1fr; gap:10px; min-height:0; padding-top:64px; }
  .hero-art { min-height:350px; }
  .tool-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px) {
  .container { width:min(calc(100% - 28px),var(--container)); }
  .site-header { position:static; }
  .header-inner { min-height:68px; flex-wrap:wrap; padding-block:10px; }
  .site-nav { order:3; width:100%; justify-content:space-between; padding-top:1px; }
  .site-nav a { font-size:.8rem; }
  .site-search { display:none; }
  .theme-toggle { margin-left:auto; }
  .hero { padding-top:52px; padding-bottom:50px; }
  h1 { font-size:clamp(3rem,15vw,4.6rem); }
  .hero-lede { font-size:1rem; }
  .hero-art { min-height:285px; }
  .onion-rings { width:min(66vw,275px); }
  .art-caption { right:5px; bottom:5px; font-size:.72rem; }
  .section-heading { display:block; }
  .section-intro { margin-top:14px; }
  .tool-section { padding-bottom:66px; }
  .tool-grid { grid-template-columns:1fr; gap:10px; }
  .tool-card { min-height:150px; }
  .tool-icon { margin-bottom:12px; }
  .tool-workspace { padding:18px; }
  .workspace-head { display:block; }
  .form-row { grid-template-columns:1fr; gap:0; }
  .trust-section { grid-template-columns:1fr; gap:20px; padding-top:42px; }
  .trust-mark { transform:scale(.75); transform-origin:left center; margin-bottom:-12px; }
  .footer-inner { display:block; padding-top:30px; }
  .footer-links { justify-content:start; margin-top:25px; }
  .content-page { padding-top:52px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* Shared related-tools rail: same width, rhythm and visual language on every tool page. */
.content-section.related-tools {
  width: min(100%, var(--container));
  margin: 48px auto 0;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.content-section.related-tools h2 { margin: 0 0 8px; font-size: 1.35rem; }
.content-section.related-tools > p { margin: 0 0 14px; color: var(--muted); }
.content-section.related-tools .related-tools-nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.content-section.related-tools .related-tools-nav a {
  display: block;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--primary-deep);
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.content-section.related-tools .related-tools-nav a:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); }
@media (max-width: 600px) {
  .content-section.related-tools { width: 100%; margin-top: 32px; padding: 22px 20px; }
  .content-section.related-tools .related-tools-nav ul { grid-template-columns: 1fr; gap: 9px; }
}
