/* 功能说明：让首页、三个核心工具和已发布 Pin 的文章入口共享一套视觉层级。
   职责边界：仅作用于明确使用 tool-site 的页面，保留旧文章与牌义页面的样式。 */

.tool-site {
  --ink: #26222a;
  --ink-soft: #5f5662;
  --ink-faint: #6e6471;
  --line: #e4dce5;
  --bg: #fffeff;
  --bg-soft: #f7f3f8;
  --accent: #54354e;
  --accent-deep: #43273f;
  --focus: #a05779;
  line-height: 1.6;
}

.tool-site .wrap { max-width: 760px; }
.tool-site header.site .wrap, .home-page main.wrap { max-width: 1160px; }
.tool-site header.site { padding: 14px 0; }
.tool-site header.site .wrap { align-items: center; }
.tool-site .brand { font-size: 18px; letter-spacing: 0; }
.tool-site nav.site { gap: 18px; }
.tool-site nav.site a { display: inline-flex; align-items: center; min-height: 36px; }
.tool-site :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.tool-site [id] { scroll-margin-top: 22px; }
.tool-site h2 { line-height: 1.22; }
.tool-site p { max-width: 62ch; }
.tool-site .btn {
  margin: 0;
  min-height: 44px;
  padding: 10px 19px;
  font-family: inherit;
  font-weight: 600;
  border-radius: 7px;
}
.tool-site .btn:hover { opacity: 1; background: var(--accent-deep); }
.tool-site .btn-ghost:hover { background: var(--bg-soft); }
.tool-site .tool-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 650;
  font-size: 14px;
}
.tool-site .tool-note { color: var(--ink-soft); font-size: 14px; }
.tool-site .tool-intro { padding: clamp(28px, 6vw, 64px) 0 24px; }
.tool-site .tool-intro h1, .home-hero h1 {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  font-size: clamp(39px, 6vw, 66px);
  letter-spacing: -.042em;
  line-height: 1.04;
}
.tool-site .tool-intro > p:last-child { color: var(--ink-soft); margin-bottom: 0; }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 7vw, 100px);
  padding: clamp(36px, 7vw, 100px) 0 clamp(40px, 7vw, 90px);
}
.home-hero h1 { font-size: clamp(56px, 7.4vw, 102px); }
.home-hero h1 em { font-weight: inherit; color: var(--accent); }
.home-hero .hero-lede { max-width: 30ch; margin: 24px 0 10px; font-size: clamp(18px, 2vw, 23px); }
.home-hero .tool-note { margin: 0; }
.tool-choices {
  padding: clamp(16px, 3vw, 30px);
  border-radius: 14px;
  background: var(--bg-soft);
}
.tool-choices h2 { margin: 0 0 16px; font-size: clamp(21px, 3vw, 28px); font-weight: 400; }
.tool-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 12px;
  border-radius: 7px;
  text-decoration: none;
}
.tool-choice + .tool-choice { margin-top: 4px; }
.tool-choice + .tool-choice:not(:last-child) { border-bottom: 1px solid var(--line); }
.tool-choice strong { display: block; line-height: 1.35; font-size: 17px; }
.tool-choice small { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 14px; }
.tool-choice > span:last-child { font-size: 21px; }
.tool-choice:hover { background: #eee6ef; }
.tool-choice-primary { color: white; background: var(--accent); }
.tool-choice-primary small { color: #f0e5ed; }
.tool-choice-primary:hover { background: var(--accent-deep); }

.tool-panel {
  padding: clamp(16px, 4vw, 32px);
  background: var(--bg-soft);
  border-radius: 14px;
}
.home-page main > section { max-width: 760px; margin: 0 auto; }
.home-page main > .faq { margin-top: 44px; }
.tool-panel-intro h2, .tool-panel > h2 { margin: 0; font-weight: 400; }
.tool-panel-intro > p { color: var(--ink-soft); margin: 6px 0 12px; }
.fact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.fact-fields label, #draft-title label { color: var(--ink); font-size: 15px; font-weight: 600; }
.tool-panel input, .tool-panel select, .tool-panel textarea { min-width: 0; }
.reflection-extras {
  margin: 18px 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.reflection-extras summary { cursor: pointer; padding: 5px 0; font-size: 15px; font-weight: 600; }
.reflection-extras textarea { min-height: 90px; }
.choice-check { display: flex; align-items: start; gap: 9px; font-size: 15px; color: var(--ink); }
.choice-check input { width: 17px; height: 17px; flex: 0 0 17px; margin: 4px 0 0; accent-color: var(--accent); }
.tool-site #fullReport { margin-top: 24px; }
.tool-site #fullReport > h2 { font-size: clamp(27px, 5vw, 36px); margin: 0 0 12px; font-weight: 400; }
.tool-site .report-section h3 { margin: 12px 0 4px; }
.tool-site .report-section p { margin: 4px 0 8px; }
.tool-site .next-step { border-top: 0; background: var(--bg); border-radius: 9px; padding: 16px; margin: 0 0 14px; }
.tool-site .next-step h3 { margin-top: 0; }
.tool-site .next-step .btn { margin-top: 6px; }
.reflection-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.reflection-cards img { display: block; max-width: 100%; height: auto; margin-bottom: 8px; border-radius: 5px; }
.reflection-cards p { font-size: 14px; margin-top: 4px; }

.tool-site .quiz-form, .tool-site .quiz-result {
  margin-top: 0;
  padding: clamp(16px, 4vw, 28px);
  background: var(--bg-soft);
  border: 0;
  border-radius: 14px;
}
.quiz-progress { color: var(--accent); font-size: 14px; font-weight: 650; margin: 0 0 14px; }
.tool-site .quiz-form fieldset { min-width: 0; padding: 0; margin: 0 0 16px; border: 0; }
.tool-site .quiz-form legend { padding: 0; font-family: var(--serif); font-size: clamp(22px, 4vw, 27px); font-weight: 400; margin-bottom: 12px; }
.tool-site .quiz-form label {
  align-items: center;
  min-height: 52px;
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 0 0 7px;
  cursor: pointer;
}
.tool-site .quiz-form label:has(:checked) { border-color: var(--accent); background: #f0e8f0; }
.tool-site .quiz-form input { margin: 0; padding: 0; }
.quiz-controls, .draft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.quiz-error { color: var(--danger); margin: 8px 0 0; font-size: 14px; }
.quiz-error:empty, .draft-status:empty, .tool-site .log-list:empty { display: none; }
.tool-site .quiz-result h2 { margin: 0 0 14px; font-weight: 400; }
.tool-site .quiz-result .btn { margin: 6px 6px 0 0; }
.draft-page #draft-title label { margin: 0 0 6px; }
.draft-page #urgeInput { font-size: 16px; min-height: 110px; display: block; }
.draft-actions { margin-top: 10px; }
.draft-actions a { font-size: 14px; }
.draft-status { font-size: 14px; color: var(--accent); margin-bottom: 0; }
.draft-page .streak-num { font-size: 48px; }
.tool-site .urge-text { overflow-wrap: anywhere; }
.guide-page h1 { margin: clamp(24px, 5vw, 52px) 0 12px; }
.guide-tool { margin: 16px 0 22px; padding: 13px 16px; background: var(--bg-soft); border-radius: 9px; }
.guide-tool p { margin: 0 0 9px; font-size: 15px; }

@media (max-width: 740px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 30px 0 36px; }
  .home-hero h1 { font-size: clamp(48px, 11vw, 68px); }
  .home-hero .hero-lede { margin: 12px 0 7px; }
}
@media (max-width: 440px) {
  .tool-site .wrap { padding: 0 18px; }
  .tool-site header.site .wrap { column-gap: 6px; row-gap: 2px; }
  .tool-site .brand { font-size: 16px; }
  .tool-site nav.site { gap: 10px; }
  .tool-site nav.site a { font-size: 13px; }
  .tool-site .tool-intro { padding-top: 26px; padding-bottom: 18px; }
  .tool-choices h2 { margin-bottom: 10px; }
  .tool-choice { padding: 10px 8px; gap: 8px; }
  .tool-choice strong { font-size: 16px; }
  .tool-choice small { font-size: 13px; }
  .fact-fields { grid-template-columns: minmax(0, 1fr); }
  .reflection-cards { gap: 9px; }
}
