/* ============================================================
   手工刀具 · 首页与全站公共样式
   设计基准：1440×2160（视觉稿 03-ui/home-ui-desktop.png 折算）
   ============================================================ */


*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-cream);
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
  letter-spacing: .01em;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #17150f; }

.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #17150f;
  padding: 10px 16px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------- 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(183, 154, 108, .22);
  color: var(--cream-ink);
}
.header-inner {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .06em;
  color: var(--cream-ink);
  white-space: nowrap;
}
.brand-tag {
  font-size: 8.5px;
  letter-spacing: .14em;
  color: var(--cream-muted);
  white-space: nowrap;
  margin-top: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.nav a {
  position: relative;
  font-size: 13px;
  color: #ddd4c4;
  letter-spacing: .04em;
  padding: 6px 0;
  white-space: nowrap;
}
.nav a:hover { color: var(--accent); }
.nav a.is-active { color: var(--cream-ink); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}
.nav-index {
  border: 1px solid rgba(183, 154, 108, .65);
  border-radius: 3px;
  padding: 5px 12px !important;
  color: var(--accent) !important;
}
.nav-index:hover { background: rgba(183, 154, 108, .12); }
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 36px;
  background: none;
  border: 1px solid rgba(183, 154, 108, .5);
  border-radius: 3px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--cream-ink);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* ---------------------------------------------------------- 首屏 */
.hero {
  background: var(--bg-hero);
  color: var(--cream-ink);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 30%, rgba(80, 64, 42, .30), transparent 62%),
    linear-gradient(90deg, #211e19 0%, #211e19 38%, rgba(33, 30, 25, .35) 62%, rgba(33,30,25,0) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, .98fr);
  gap: 24px 36px;
  align-items: center;
  padding-top: 34px;
}
.hero-copy { max-width: 720px; }
.eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.22;
  letter-spacing: .02em;
  color: var(--cream-ink);
  white-space: nowrap;
}
.hero-sub {
  font-size: 18px;
  color: #d8cfc0;
  margin-top: 12px;
}
.hero-lead {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--cream-muted);
  max-width: 600px;
  margin-top: 14px;
}
.hero-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 30px;
  border-top: 1px solid rgba(183, 154, 108, .32);
  padding: 12px 0 14px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 13px;
  letter-spacing: .04em;
  border: 1px solid var(--accent);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn::after { content: "→"; font-size: 12px; }
.btn-solid { background: var(--accent); color: #1b1811; }
.btn-solid:hover { background: #cbb083; border-color: #cbb083; }
.btn-ghost { color: var(--accent); }
.btn-ghost:hover { background: rgba(183, 154, 108, .14); }
.hero-media {
  margin: 0;
  position: relative;
  aspect-ratio: 444 / 228;
  border: 1px solid rgba(183, 154, 108, .35);
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 1;
  min-width: 0;
}
.stat {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  padding-left: 14px;
  border-left: 1px solid rgba(183, 154, 108, .22);
}
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-icon {
  grid-row: 1 / span 2;
  align-self: center;
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.stat-label { font-size: 10.5px; letter-spacing: .12em; color: var(--cream-muted); }
.stat-value { font-size: 13px; color: var(--cream-ink); }

/* ---------------------------------------------------------- 通用区块头 */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 14px;
}
.section-head h2 {
  font-size: 30px;
  line-height: 1.3;
  color: var(--ink);
}
.section-head h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  background: var(--accent);
  margin: 10px auto 0;
}
.section-head p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------------------------------------------------------- 分类索引 */
.categories { padding: 22px 0 26px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cat-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px 11px;
  min-height: 150px;
  transition: border-color .18s ease, transform .18s ease;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cat-num {
  display: block;
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--accent-deep);
}
.cat-body h3 {
  font-size: 22px;
  margin-top: 2px;
  line-height: 1.3;
}
.cat-body p {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-top: 5px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.tags li {
  font-size: 9.5px;
  line-height: 1.6;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-soft);
}
.cat-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--accent-deep);
}
.cat-more::after { content: " →"; }
.cat-thumb {
  width: 92px;
  height: 100%;
  min-height: 92px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 2px;
  filter: saturate(.85);
}

/* ---------------------------------------------------------- 工序 */
.craft {
  background: var(--bg-cream-deep);
  padding: 16px 0 18px;
  border-top: 1px solid rgba(211, 200, 182, .8);
  border-bottom: 1px solid rgba(211, 200, 182, .8);
}
.craft-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-top: 12px;
  position: relative;
}
.craft-steps::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 16px;
  height: 1px;
  background: var(--accent);
  opacity: .55;
}
.step { position: relative; text-align: center; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg-cream-deep);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--accent-deep);
  position: relative;
  z-index: 1;
}
.step h3 {
  font-size: 16px;
  margin-top: 8px;
}
.step p {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-top: 6px;
  max-width: 200px;
  margin-inline: auto;
}

/* ---------------------------------------------------------- 品牌谱系 */
.brands { padding: 12px 0 12px; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.brand-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  min-height: 94px;
  transition: border-color .18s ease;
}
.brand-card:hover { border-color: var(--accent); }
.brand-card img {
  width: 92px;
  height: 100%;
  min-height: 80px;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(.85);
}
.brand-num { font-size: 10.5px; letter-spacing: .16em; color: var(--accent-deep); }
.brand-body h3 { font-size: 17px; margin-top: 0; }
.brand-body p { font-size: 11px; line-height: 1.6; color: var(--ink-soft); margin-top: 4px; }

/* ---------------------------------------------------------- 阅读 + 四问 */
.reading-wrap { padding: 24px 0 30px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.reading-head h2,
.checklist h2 {
  font-size: 28px;
  line-height: 1.3;
}
.reading-head p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 6px;
}
.reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.read-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px;
  transition: border-color .18s ease;
}
.read-card:hover { border-color: var(--accent); }
.read-card:nth-child(3) { grid-column: 1 / 2; }
.read-card img {
  width: 74px;
  height: 100%;
  min-height: 74px;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(.85);
}
.read-num { font-size: 10px; letter-spacing: .14em; color: var(--accent-deep); }
.read-topic {
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  margin-left: 8px;
}
.read-card h3 { font-size: 14px; line-height: 1.42; margin-top: 3px; }
.read-card p { font-size: 11px; line-height: 1.65; color: var(--ink-soft); margin-top: 3px; }
.checklist {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.check {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}
.check:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
.check svg { width: 20px; height: 20px; color: var(--accent-deep); }
.check h3 { font-size: 15px; margin-top: 6px; }
.check p { font-size: 11px; line-height: 1.6; color: var(--ink-soft); margin-top: 3px; }

/* ---------------------------------------------------------- CTA */
.cta {
  position: relative;
  color: var(--cream-ink);
  background: var(--bg-dark) url("../images/hero-knife.jpg") center 62% / cover no-repeat;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 16, 12, .92) 0%, rgba(18, 16, 12, .78) 55%, rgba(18, 16, 12, .52) 100%);
  z-index: -1;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 56px 24px;
}
.cta-line { font-family: var(--serif); font-size: 27px; line-height: 1.4; }
.cta-sub { font-size: 13px; color: var(--cream-muted); margin-top: 6px; }

/* ---------------------------------------------------------- 页脚 */
.site-footer {
  background: var(--bg-dark);
  color: var(--cream-muted);
  padding: 70px 0 40px;
  border-top: 1px solid rgba(183, 154, 108, .25);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .9fr .9fr 1.2fr;
  gap: 32px;
}
.f-brand .brand { margin-bottom: 10px; }
.f-brand p { font-size: 12px; line-height: 1.75; max-width: 300px; }
.f-col h3 {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--cream-ink);
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.f-col ul { columns: 2; column-gap: 18px; }
.f-col li { font-size: 11.5px; line-height: 1.9; break-inside: avoid; }
.f-col a:hover { color: var(--accent); }
.f-copy { display: block; }
.f-copy p { margin-top: 10px; font-size: 11px; line-height: 1.7; }

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1100px) {
  .nav { gap: 14px; }
  .nav a { font-size: 12px; }
  .brand-tag { display: none; }
  .hero h1 { font-size: 40px; white-space: normal; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; height: auto; min-height: 52px; padding-block: 8px; gap: 4px 18px; }
  .nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex: 1 1 100%;
    gap: 2px 16px;
    padding: 4px 0 2px;
    background: none;
    border-bottom: none;
    margin: 0;
  }
  .nav a {
    width: auto;
    padding: 5px 0;
    border-bottom: none;
    font-size: 12.5px;
  }
  .nav a.is-active::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 26px; gap: 20px; }
  .hero-media { aspect-ratio: 16 / 9; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-stats { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .checklist { border-left: 0; padding-left: 0; }
  .reading-grid { grid-template-columns: 1fr; }
  .read-card:nth-child(3) { grid-column: auto; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .hero-lead { font-size: 13px; }
  .hero-media { aspect-ratio: 4 / 3; }
  .section-head h2 { font-size: 24px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { grid-template-columns: minmax(0, 1fr) 80px; }
  .cat-thumb { width: 80px; }
  .craft-steps { grid-template-columns: 1fr; gap: 16px; }
  .craft-steps::before { display: none; }
  .step { text-align: left; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; }
  .step-num { grid-row: 1 / span 2; }
  .step h3 { margin-top: 0; }
  .step p { max-width: none; margin: 2px 0 0; }
  .brand-card { grid-template-columns: 84px minmax(0, 1fr); }
  .brand-card img { width: 84px; }
  .read-card { grid-template-columns: 72px minmax(0, 1fr); }
  .read-card img { width: 72px; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 28px 16px; }
  .cta-line { font-size: 21px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .f-col ul { columns: 2; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
