:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #64717c;
  --line: #dce3e8;
  --paper: #f4f7f8;
  --panel: #ffffff;
  --green: #0c7658;
  --green-soft: #e8f4ef;
  --amber: #a45b12;
  --amber-soft: #fff1dc;
  --blue: #1e5b86;
  --blue-soft: #e9f2f8;
  --red: #ad3c32;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; }
a { color: inherit; }
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.site-header-inner, .site-shell, .site-footer-inner, .footer-bottom { width: min(1800px, calc(100% - 28px)); margin: 0 auto; }
.site-header-inner { min-height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { color: var(--ink); font-size: 1.25rem; font-weight: 800; text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.brand span { color: var(--green); }
.primary-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.primary-nav a, .header-action { padding: 9px 12px; border-radius: 5px; text-decoration: none; color: var(--muted); font-weight: 650; }
.primary-nav a:hover, .primary-nav a.active { background: var(--green-soft); color: var(--green); }
.header-action { border: 1px solid var(--ink); color: var(--ink); }
.header-action:hover { background: var(--ink); color: #fff; }
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: #edf2f2; color: var(--muted); white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 46px; min-width: 100%; padding: 7px 0; animation: ticker 28s linear infinite; }
.ticker-track span::before { content: "•"; margin-right: 10px; color: var(--green); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.site-shell { padding: 22px 0 52px; }
.hero { padding: 10px 0; max-width: 1100px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.2; }
h1 { margin: 0 0 16px; font-size: 2.2rem; letter-spacing: .01em; }
h2 { margin: 0 0 12px; font-size: 1.65rem; }
h3 { margin: 0 0 8px; font-size: 1.08rem; }
.hero p, .lede { max-width: 720px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border: 1px solid var(--ink); border-radius: 5px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; }
.button.secondary { background: var(--panel); color: var(--ink); border-color: var(--line); }
.button:hover { filter: brightness(1.08); }
.page-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.site-sidebar { display: none; gap: 10px; }
.sidebar-label { color: var(--muted); font-size: .77rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-link { display: block; padding: 13px 14px; border-left: 3px solid var(--line); background: var(--panel); text-decoration: none; }
.sidebar-link:hover { border-left-color: var(--green); }
.sidebar-link strong, .sidebar-link span { display: block; }
.sidebar-link strong { font-size: .95rem; }
.sidebar-link span { margin-top: 3px; color: var(--muted); font-size: .82rem; }
.sidebar-link.tone-green { border-left-color: var(--green); }
.sidebar-link.tone-amber { border-left-color: var(--amber); }
.sidebar-link.tone-blue { border-left-color: var(--blue); }
.sidebar-link.tone-ink { border-left-color: var(--ink); }
.content-column, .tool-page-main { min-width: 0; }
.section-block { margin-top: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-head span, .muted { color: var(--muted); }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card, .content-panel, .detail-card, .tool-card, .archive-item, .info-card { border: 1px solid var(--line); background: var(--panel); border-radius: 7px; }
.card { min-height: 150px; padding: 18px; text-decoration: none; }
.card:hover, .tool-card:hover, .archive-item:hover { border-color: var(--green); }
.card p, .tool-card p, .info-card p { margin: 8px 0 0; color: var(--muted); }
.card.featured { border-top: 3px solid var(--green); }
.card-icon { color: var(--green); font-size: 1.4rem; margin-bottom: 14px; }
.content-panel { padding: 22px; }
.detail-card { padding: 22px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.summary-chip { padding: 5px 9px; border-radius: 4px; background: var(--green-soft); color: var(--green); font-size: .82rem; font-weight: 700; }
.subscription-notice { margin: 18px 0; padding: 16px; background: #f8faf9; border-left: 3px solid var(--green); }
.subscription-notice p { margin: 6px 0; color: var(--muted); }
.subscription-title { margin-top: 22px; }
.download-link { overflow-wrap: anywhere; color: var(--green); }
.archive-list { display: grid; gap: 12px; }
.archive-item { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 18px; text-decoration: none; }
.archive-item h3 { margin-bottom: 7px; }
.archive-meta { color: var(--muted); font-size: .92rem; }
.archive-count { align-self: center; color: var(--green); font-weight: 800; text-align: right; white-space: nowrap; }
.stat-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0; }
.stat { padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fafcfc; color: var(--muted); font-size: .88rem; }
.detail-layout { display: grid; gap: 16px; }
.detail-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.detail-list div { padding: 13px; background: #f7faf9; border-left: 3px solid var(--green); }
.detail-list dt { color: var(--muted); font-size: .82rem; }
.detail-list dd { margin: 3px 0 0; font-weight: 750; }
.download-box { display: flex; gap: 10px; align-items: stretch; margin-top: 16px; }
.download-box input { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fafcfc; color: var(--muted); }
.copy-btn { padding: 10px 14px; border: 0; border-radius: 5px; background: var(--green); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.copy-btn.done { background: var(--amber); }
.notice { padding: 13px 15px; border-left: 3px solid var(--amber); background: var(--amber-soft); color: #6d481c; }
.tool-category { margin-top: 28px; }
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tool-card { display: flex; min-height: 150px; flex-direction: column; padding: 18px; text-decoration: none; }
.tool-card .tool-link { margin-top: auto; padding-top: 15px; color: var(--green); font-weight: 750; }
.tool-tag { align-self: flex-start; margin-bottom: 11px; padding: 3px 7px; border-radius: 3px; background: var(--blue-soft); color: var(--blue); font-size: .75rem; font-weight: 750; }
.info-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.info-card { padding: 20px; }
.info-card b { color: var(--green); font-size: .8rem; letter-spacing: .08em; }
.site-footer { border-top: 1px solid var(--line); background: var(--panel); }
.site-footer-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 24px 0; }
.footer-brand { display: inline-block; }
.site-footer p { margin: 7px 0 0; color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--green); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.empty-state { padding: 28px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.error-state { color: var(--red); }
.loading { color: var(--muted); }
@media (min-width: 681px) and (max-width: 1199px) {
  .site-header-inner, .site-shell, .site-footer-inner, .footer-bottom { width: min(1800px, calc(100% - 36px)); }
  .site-sidebar-left { display: grid; }
  .page-grid { grid-template-columns: 160px minmax(0, 1fr); }
  .card-grid, .tool-grid, .info-grid, .detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer-inner { flex-direction: row; }
  h1 { font-size: 3rem; }
}
@media (min-width: 1200px) {
  .site-header-inner, .site-shell, .site-footer-inner, .footer-bottom { width: min(1800px, calc(100% - 48px)); min-width: 1200px; }
  .page-grid { grid-template-columns: 190px minmax(0, 1fr) 190px; gap: 24px; }
  .site-sidebar { display: grid; }
  .card-grid, .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-grid, .detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer-inner { flex-direction: row; gap: 30px; padding: 28px 0; }
  h1 { font-size: 4.25rem; }
}
@media (max-width: 680px) {
  .site-header-inner { flex-wrap: wrap; gap: 8px 14px; padding: 12px 0; }
  .primary-nav { order: 3; width: 100%; overflow-x: auto; }
  .primary-nav a { padding: 7px 8px; white-space: nowrap; }
  .header-action { margin-left: auto; padding: 7px 9px; font-size: .86rem; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .download-box, .section-head { align-items: stretch; flex-direction: column; }
  .archive-item { grid-template-columns: 1fr; gap: 8px; }
  .archive-count { text-align: left; }
}
