/* CnCraftAgent — 样式表
   部署方式：与 html 文件同目录上传即可，无构建步骤 */

:root {
  --ink: #1f1c18;
  --ink-soft: #54504a;
  --paper: #faf8f5;
  --card: #ffffff;
  --line: #e4dfd7;
  --indigo: #2d4356;
  --cinnabar: #a5452f;
  --cinnabar-soft: #f4ebe7;
  --radius: 4px;
}

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

html { font-size: 16px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.6rem; margin-bottom: 1.1rem; }
h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo {
  font-family: Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.logo span { color: var(--cinnabar); }
nav { display: flex; gap: 1.6rem; align-items: center; }
nav a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}
nav a:hover { color: var(--ink); text-decoration: none; }
nav a.active { color: var(--ink); }

.btn {
  display: inline-block;
  background: var(--indigo);
  color: #fff !important;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: #22323f; text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--indigo) !important;
  border: 1px solid var(--indigo);
}
.btn-ghost:hover { background: var(--indigo); color: #fff !important; }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 3.5rem; }
.hero .eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cinnabar);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.hero h1 { max-width: 22ch; margin-bottom: 1.4rem; }
.hero .lede {
  font-size: 1.12rem;
  max-width: 62ch;
  margin-bottom: 2rem;
  color: var(--ink-soft);
}
.hero .cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.trust-bar .wrap { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.trust-bar strong { color: var(--ink); font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 66ch; margin-bottom: 2.5rem; }
.section-head p { font-size: 1.05rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card p { font-size: 0.95rem; }

.steps { counter-reset: s; }
.step {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1.1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: none; }
.step::before {
  counter-increment: s;
  content: counter(s);
  font-family: Georgia, serif;
  font-size: 1.5rem;
  color: var(--cinnabar);
  line-height: 1;
  padding-top: 0.15rem;
}
.step h3 { margin-bottom: 0.25rem; }
.step p { margin: 0; font-size: 0.95rem; }

.cat-list { list-style: none; }
.cat-list li {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.cat-list li:last-child { border-bottom: none; }
.cat-list h3 { margin-bottom: 0.2rem; }
.cat-list p { margin: 0; font-size: 0.93rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--ink); font-size: 0.88rem; }
td { color: var(--ink-soft); }

.faq { max-width: 76ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 1.05rem 0;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::after { content: "+"; color: var(--cinnabar); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 1.15rem; }
.faq .answer p { font-size: 0.96rem; }

.callout {
  background: var(--cinnabar-soft);
  border-left: 3px solid var(--cinnabar);
  padding: 1.3rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.callout p { margin: 0; color: var(--ink); font-size: 0.98rem; }

.cta-block {
  background: var(--indigo);
  color: #fff;
  padding: 3.4rem 0;
}
.cta-block h2 { color: #fff; }
.cta-block p { color: rgba(255,255,255,0.82); max-width: 56ch; margin-bottom: 1.6rem; }
.cta-block .btn { background: #fff; color: var(--indigo) !important; }
.cta-block .btn:hover { background: var(--paper); }

.quote {
  font-family: Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink);
  border-left: 3px solid var(--cinnabar);
  padding-left: 1.4rem;
  margin: 1.5rem 0;
  max-width: 60ch;
}

.page-head { padding: 3.6rem 0 2.6rem; }
.page-head .eyebrow {
  font-size: 0.82rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--cinnabar); font-weight: 600; margin-bottom: 0.9rem;
}
.page-head p { font-size: 1.08rem; max-width: 68ch; }

/* ---------- Form ---------- */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.62rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--indigo); background: #fff;
}
.field textarea { min-height: 118px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.req { color: var(--cinnabar); }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.9rem; }

.contact-alt { margin-top: 2.5rem; }
.contact-alt h3 { margin-bottom: 0.7rem; }
.contact-alt p { font-size: 0.96rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 2.6rem 0 2rem;
  font-size: 0.86rem;
}
.site-footer .cols { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.site-footer nav { flex-direction: column; gap: 0.55rem; }
.disclosure {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 92ch;
  line-height: 1.7;
}

@media (max-width: 780px) {
  h1 { font-size: 1.9rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  nav { gap: 1.05rem; }
  nav a.hide-sm { display: none; }
  .trust-bar .wrap { gap: 1.1rem; }
  section { padding: 2.9rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
}

/* ---------- Craft Notes ---------- */
.article-list { list-style: none; }
.article-list li {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.article-list li:last-child { border-bottom: none; }
.article-list .meta {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cinnabar);
  margin-bottom: 0.4rem;
}
.article-list h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.article-list h3 a { color: var(--ink); }
.article-list h3 a:hover { color: var(--indigo); text-decoration: none; }
.article-list p { margin: 0; font-size: 0.95rem; }
.article-list .soon { opacity: 0.5; }

.article { max-width: 68ch; margin: 0 auto; }
.article .meta {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cinnabar);
  margin-bottom: 1rem;
}
.article h2 { font-size: 1.35rem; margin: 2.4rem 0 0.9rem; }
.article h3 { font-size: 1.05rem; margin: 1.8rem 0 0.6rem; }
.article p { font-size: 1.02rem; line-height: 1.75; margin-bottom: 1.1rem; color: #3a3630; }
.article ul, .article ol { margin: 0 0 1.2rem 1.3rem; }
.article li { margin-bottom: 0.55rem; color: #3a3630; line-height: 1.7; }
.article blockquote {
  border-left: 3px solid var(--cinnabar);
  padding-left: 1.3rem;
  margin: 1.8rem 0;
  font-family: Georgia, serif;
  font-size: 1.08rem;
  color: var(--ink);
}
.article strong { color: var(--ink); }
.article .backlink { font-size: 0.9rem; margin-bottom: 2rem; display: inline-block; }
