/* 遇见好软件·工具箱 — 纸张质感 · 杂志式宽幅排版 */
:root {
  --paper: #faf9f6;
  --paper-raised: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-mute: #8a8680;
  --line: #e5e2db;
  --line-strong: #cfcbc1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", SimSun, Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

a { color: inherit; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line-strong); }
.header-inner {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 24px; padding-bottom: 24px;
}
.logo { font-size: 18px; font-weight: 600; letter-spacing: .08em; text-decoration: none; }
.logo-dot { margin: 0 2px; color: var(--ink-mute); }
.header-tag {
  font-size: 12px; color: var(--ink-mute); letter-spacing: .18em;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- Hero：报头式，大标题横贯全宽 ---------- */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line-strong); }
.hero-kicker {
  font-size: 13px; color: var(--ink-mute); letter-spacing: .3em; margin-bottom: 24px;
  font-family: -apple-system, "PingFang SC", sans-serif;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.35; font-weight: 600; letter-spacing: .02em;
  margin-bottom: 40px;
}
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  flex-wrap: wrap;
}
.hero-sub { color: var(--ink-soft); }
.hero-stats {
  display: flex; gap: 28px;
  font-size: 13px; color: var(--ink-mute); letter-spacing: .1em; white-space: nowrap;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

/* ---------- Frontpage：头条 + 次级，报纸头版层级 ---------- */
.main-content { padding-bottom: 48px; }
.frontpage { padding-top: 48px; }
.front-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border: 1px solid var(--line-strong);
  background: var(--paper-raised);
}
.front-lead {
  padding: 44px 48px 48px;
  text-decoration: none;
  border-right: 1px solid var(--line);
  transition: background .2s;
  display: flex; flex-direction: column;
}
.front-lead:hover { background: #fffdf8; }
.front-lead-name { font-size: clamp(36px, 4vw, 52px); font-weight: 600; line-height: 1.25; margin: 6px 0 10px; }
.front-lead-tagline { font-size: 19px; color: var(--ink); }
.front-lead-desc { font-size: 15px; color: var(--ink-soft); margin-top: 18px; flex: 1; }
.front-meta {
  font-size: 12px; color: var(--ink-mute); margin-top: 22px; letter-spacing: .08em;
  font-family: -apple-system, "PingFang SC", sans-serif;
}
.front-side { display: flex; flex-direction: column; }
.front-second {
  flex: 1; padding: 30px 34px;
  text-decoration: none; transition: background .2s;
  display: flex; flex-direction: column;
}
.front-second:first-child { border-bottom: 1px solid var(--line); }
.front-second:hover { background: #fffdf8; }
.front-second-name { font-size: 24px; font-weight: 600; margin: 4px 0 6px; }
.front-second .tool-tagline { flex: 1; }

/* ---------- Catalog ---------- */
.catalog { padding-top: 64px; }
.catalog-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 0;
  flex-wrap: wrap; gap: 12px;
}
.catalog-title { font-size: 20px; font-weight: 600; letter-spacing: .1em; }
.catalog-nav {
  display: flex; gap: 20px; font-size: 13px; letter-spacing: .1em;
  font-family: -apple-system, "PingFang SC", sans-serif;
}
.catalog-nav a { color: var(--ink-mute); text-decoration: none; }
.catalog-nav a:hover { color: var(--ink); }
.category-block { padding-top: 36px; }
.category-title {
  font-size: 15px; font-weight: 600; color: var(--ink);
  letter-spacing: .3em; margin-bottom: 16px;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

/* ---------- Tool grid：报纸分栏，细线分隔 ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
.tool-cell {
  padding: 26px 28px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .2s;
  display: flex; flex-direction: column;
}
.tool-cell:hover { background: var(--paper-raised); }
.tool-kicker {
  font-size: 11px; color: var(--ink-soft); letter-spacing: .25em; margin-bottom: 14px;
  font-family: -apple-system, "PingFang SC", sans-serif;
}
.tool-cell-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tool-name { font-size: 22px; font-weight: 600; letter-spacing: .02em; }
.tool-stars {
  font-size: 13px; color: var(--ink-mute); white-space: nowrap;
  font-family: Georgia, serif; font-style: italic;
}
.tool-tagline { color: var(--ink-soft); font-size: 15px; margin-top: 10px; flex: 1; }
.tool-platforms {
  font-size: 12px; color: var(--ink-mute); margin-top: 16px; letter-spacing: .06em;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 13px; color: var(--ink-mute); padding: 26px 0 0;
  font-family: -apple-system, "PingFang SC", sans-serif; letter-spacing: .05em;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.crumb-sep { margin: 0 10px; color: var(--line-strong); }

/* ---------- Tool page：正文 + 右侧下载栏 双栏 ---------- */
.tool-page { padding: 40px 0 8px; }
.tool-header { padding-bottom: 36px; border-bottom: 1px solid var(--line-strong); }
.tool-header h1 { font-size: clamp(36px, 4.5vw, 52px); font-weight: 600; line-height: 1.3; }
.tool-header-tagline { font-size: 20px; color: var(--ink-soft); margin-top: 12px; }
.tool-meta {
  font-size: 13px; color: var(--ink-mute); margin-top: 20px; letter-spacing: .08em;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

.tool-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  padding-top: 8px;
}
.tool-main { min-width: 0; }

.tool-page h2, .more-tools h2 {
  font-size: 15px; font-weight: 600; color: var(--ink);
  letter-spacing: .3em; margin: 48px 0 20px;
  font-family: -apple-system, "PingFang SC", sans-serif;
}
.tool-aside h2 { margin-top: 48px; }

/* aside 下载栏 */
.aside-sticky { position: sticky; top: 24px; }
.download-list { border-top: 1px solid var(--line-strong); }
.download-item {
  display: block; padding: 18px 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none; transition: background .2s;
}
.download-item:hover { background: var(--paper-raised); }
.download-label { display: block; font-size: 16px; font-weight: 600; }
.download-item-secondary .download-label { font-weight: 400; color: var(--ink-soft); }
.download-domain {
  display: block; font-size: 12px; color: var(--ink-mute); margin-top: 3px; letter-spacing: .04em;
  font-family: -apple-system, "PingFang SC", sans-serif;
}
.download-note { font-size: 13px; color: var(--ink-mute); margin-top: 16px; }

/* ---------- Intro ---------- */
.intro-section p { margin: 14px 0; color: var(--ink-soft); }
.intro-section p:first-of-type { color: var(--ink); font-size: 17px; }
.intro-section strong { font-weight: 600; color: var(--ink); }
.intro-section ul { margin: 14px 0 14px 2px; list-style: none; }
.intro-section li { padding-left: 20px; position: relative; margin: 8px 0; color: var(--ink-soft); }
.intro-section li::before { content: "—"; position: absolute; left: 0; color: var(--ink-mute); }
.intro-section code {
  font-family: ui-monospace, Consolas, monospace; font-size: 14px;
  background: #f0eee8; padding: 1px 6px; border-radius: 3px;
}

/* ---------- Screenshots ---------- */
.screenshot { width: 100%; border: 1px solid var(--line); margin: 10px 0; display: block; }

/* ---------- Article ref ---------- */
.article-ref {
  margin-top: 48px; padding: 24px 28px;
  border-left: 2px solid var(--ink); background: var(--paper-raised);
}
.article-ref p { font-size: 14px; color: var(--ink-mute); }
.article-ref-title { font-size: 16px; color: var(--ink) !important; margin-top: 6px; font-weight: 600; }

/* ---------- More tools ---------- */
.more-tools { padding: 8px 0 56px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-strong); padding: 44px 0 52px; }
.footer-follow { display: flex; gap: 24px; align-items: center; }
.qrcode { width: 88px; height: 88px; border: 1px solid var(--line); }
.footer-brand { font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.footer-desc { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.footer-note {
  font-size: 12px; color: var(--ink-mute); margin-top: 30px; letter-spacing: .03em;
  font-family: -apple-system, "PingFang SC", sans-serif;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .front-grid { grid-template-columns: 1fr; }
  .front-lead { border-right: none; border-bottom: 1px solid var(--line); }
  .tool-body { grid-template-columns: 1fr; gap: 0; }
  .aside-sticky { position: static; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 48px 0 40px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-cell { padding: 22px 18px 24px; }
  .front-lead { padding: 28px 22px 32px; }
  .front-second { padding: 24px 22px; }
  .header-inner { flex-direction: column; gap: 4px; }
  .catalog-nav { display: none; }
}
