/* ==========================================================================
   墨韵堂湖笔 · 古风样式
   ========================================================================== */

:root {
  --paper: #f5efe3;        /* 宣纸底色 */
  --paper-deep: #ede4d3;   /* 深一度纸色 */
  --ink: #26211a;          /* 墨色 */
  --ink-soft: #5c5346;     /* 淡墨 */
  --cinnabar: #a03a2a;     /* 朱砂 */
  --cinnabar-deep: #7e2b1f;
  --teal: #3d5a56;         /* 黛青 */
  --gold: #9a7b4f;         /* 茶金 */
  --line: rgba(60, 45, 30, .28);
  --serif: "KaiTi", "STKaiti", "Kaiti SC", "Songti SC", "SimSun", serif;
  --shadow: 0 14px 40px rgba(50, 35, 20, .12);
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  letter-spacing: .04em;
  /* 宣纸肌理 */
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: min(1120px, 92vw); margin-inline: auto; }

::selection { background: rgba(160, 58, 42, .25); }

/* ---------- 印章 ---------- */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  background: linear-gradient(160deg, var(--cinnabar), var(--cinnabar-deep));
  color: #f7efdf;
  font-size: 15px;
  letter-spacing: .28em;
  padding: 8px 5px 4px;
  border-radius: 3px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, .35), 0 2px 6px rgba(126, 43, 31, .3);
  text-shadow: 0 0 1px rgba(255, 255, 255, .3);
  user-select: none;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .35s, box-shadow .35s;
}
.site-header.is-solid {
  background: rgba(245, 239, 227, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: .12em;
}
.site-header:not(.is-solid) .brand-name { color: var(--ink); text-shadow: 0 0 6px rgba(245,239,227,.8); }
.brand-name small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: .3em;
}
.nav-menu {
  display: flex;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}
.nav-menu a {
  text-decoration: none;
  font-size: 17px;
  padding: 8px 14px;
  border-radius: 4px;
  color: var(--ink);
  position: relative;
  transition: color .25s;
}
.site-header:not(.is-solid) .nav-menu a { text-shadow: 0 0 6px rgba(245,239,227,.85); }
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.nav-menu a:hover::after,
.nav-menu a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -40px;
  background: url("../img/hero-fuchun.jpg") center / cover no-repeat;
  animation: drift 36s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1) translateX(0); }
  to   { transform: scale(1.07) translateX(-14px); }
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding-top: 90px;
}
.hero-vert {
  writing-mode: vertical-rl;
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: .55em;
  color: var(--ink-soft);
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 14px;
  align-self: stretch;
}
.hero-title {
  font-size: clamp(46px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
  text-shadow: 0 0 22px rgba(245, 239, 227, .8), 0 0 8px rgba(245, 239, 227, .5);
}
.hero-sub {
  margin-top: 14px;
  font-size: clamp(16px, 2vw, 21px);
  color: var(--ink-soft);
  letter-spacing: .22em;
  text-shadow: 0 0 10px rgba(245, 239, 227, .95), 0 0 5px rgba(245, 239, 227, .9);
}
.hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: inherit;
  font-size: 17px;
  letter-spacing: .3em;
  padding: 12px 30px 12px 34px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--cinnabar);
  color: #f7efdf;
  box-shadow: 0 6px 18px rgba(126, 43, 31, .3);
}
.btn-primary:hover { background: var(--cinnabar-deep); }
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(245, 239, 227, .5);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; text-align: center; }

.hero-seal {
  position: absolute;
  right: clamp(10px, 6vw, 80px);
  bottom: clamp(90px, 18vh, 180px);
  font-size: 18px;
  padding: 12px 7px 6px;
  opacity: .92;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: .4em;
  text-decoration: none;
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- 通用区块 ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }

.sec-head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); position: relative; }
.sec-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--cinnabar);
  border-radius: 50%;
  color: var(--cinnabar);
  font-size: 20px;
  margin-bottom: 14px;
}
.sec-head h2 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: .3em;
  padding-left: .3em;
}
.sec-en {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
}
.sec-lead { margin-top: 16px; color: var(--ink-soft); font-size: 17px; letter-spacing: .12em; }

/* 墨迹分隔：标题下的小笔触 */
.sec-head::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(38, 33, 26, .65), transparent 92%);
}

/* ---------- 企业简介 ---------- */
.about { background: linear-gradient(var(--paper), var(--paper-deep) 85%, var(--paper)); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.about-fig {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transform: rotate(-1.2deg);
}
.about-fig img { transition: transform .8s ease; }
.about-fig:hover img { transform: scale(1.04); }
.about-fig figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 16px 10px;
  background: linear-gradient(transparent, rgba(20, 15, 8, .65));
  color: #f0e8d8;
  text-align: center;
  letter-spacing: .3em;
  font-size: 14px;
}
.about-text h3 {
  font-size: 24px;
  letter-spacing: .18em;
  margin-bottom: 16px;
  color: var(--teal);
}
.about-text p { margin-bottom: 14px; text-align: justify; }
.about-text b { color: var(--cinnabar); font-weight: 700; }
.about-points {
  list-style: none;
  margin-top: 18px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
.about-points li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 4px; top: .9em;
  width: 9px; height: 9px;
  background: var(--cinnabar);
  transform: rotate(45deg);
}

.stats {
  margin-top: clamp(44px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  text-align: center;
}
.stats > div { padding: 22px 8px; position: relative; }
.stats > div + div::before {
  content: "";
  position: absolute;
  left: 0; top: 22%;
  height: 56%;
  width: 1px;
  background: var(--line);
}
.stats dt {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  color: var(--cinnabar);
  letter-spacing: .05em;
}
.stats dt span { font-size: .55em; }
.stats dd { color: var(--ink-soft); letter-spacing: .3em; font-size: 15px; }

/* ---------- 传承沿革 ---------- */
.history { background: var(--paper); }
.timeline {
  list-style: none;
  position: relative;
  max-width: 880px;
  margin-inline: auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(var(--line), var(--cinnabar), var(--line));
}
.timeline li {
  position: relative;
  width: calc(50% - 34px);
  padding: 14px 20px;
  margin-bottom: 34px;
  background: rgba(255, 252, 244, .7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(50, 35, 20, .07);
}
.timeline li:nth-child(odd)  { margin-left: auto; }
.timeline li::before {
  content: "";
  position: absolute;
  top: 24px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 0 4px rgba(160, 58, 42, .18);
}
.timeline li:nth-child(odd)::before  { left: -41px; }
.timeline li:nth-child(even)::before { right: -41px; }
.timeline time {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.timeline h3 { font-size: 18px; letter-spacing: .2em; margin-bottom: 6px; }
.timeline p { font-size: 15px; color: var(--ink-soft); text-align: justify; }

/* ---------- 制笔工艺 ---------- */
.craft { background: linear-gradient(var(--paper), var(--paper-deep)); }
.craft-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.craft-grid li {
  background: rgba(255, 252, 244, .75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px 20px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.craft-grid li:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.craft-grid i {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 22px;
}
.craft-grid li:nth-child(odd) i { background: var(--teal); }
.craft-grid h3 { font-size: 20px; letter-spacing: .25em; padding-left: .25em; margin-bottom: 8px; }
.craft-grid p { font-size: 14.5px; color: var(--ink-soft); text-align: justify; }

.craft-quote {
  margin: clamp(36px, 5vw, 56px) auto 0;
  max-width: 760px;
  text-align: center;
  font-size: clamp(19px, 2.4vw, 24px);
  letter-spacing: .2em;
  color: var(--ink);
  border-block: 1px solid var(--line);
  padding: 26px 10px;
}
.craft-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-style: normal;
  color: var(--cinnabar);
  letter-spacing: .3em;
}

/* ---------- 湖笔雅集 ---------- */
.filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.filter-btn {
  font-family: inherit;
  font-size: 16px;
  letter-spacing: .2em;
  padding: 8px 22px 8px 24px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .25s;
}
.filter-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.filter-btn.is-active {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #f7efdf;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  background: rgba(255, 252, 244, .85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s, opacity .35s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card.is-hidden { display: none; }
.p-art, .p-img {
  height: 170px;
  object-fit: cover;
  border-radius: 4px;
  background:
    radial-gradient(120% 90% at 30% 20%, #fbf6ea, #efe5d2);
  border: 1px solid rgba(60, 45, 30, .16);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}
.p-img { width: 100%; }
.product-card h3 { font-size: 20px; letter-spacing: .12em; margin-bottom: 6px; }
.p-desc { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.p-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.p-price { font-size: 22px; font-weight: 700; color: var(--cinnabar); }
.p-tag {
  font-size: 13px;
  color: var(--teal);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 2px 8px;
  letter-spacing: .15em;
}
.products-note {
  margin-top: 26px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: .08em;
}

/* ---------- 引言横幅 ---------- */
.quote-band {
  background: var(--ink);
  color: #e8dfcc;
  padding: clamp(56px, 7vw, 88px) 0;
  text-align: center;
  position: relative;
}
.quote-band::before,
.quote-band::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, 70vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 223, 204, .5), transparent);
}
.quote-band::before { top: 26px; }
.quote-band::after  { bottom: 26px; }
.quote-text { font-size: clamp(22px, 3.4vw, 32px); letter-spacing: .22em; }
.quote-text span { display: block; margin-top: 10px; font-size: 15px; color: #b3a68b; letter-spacing: .3em; }
.quote-sub { margin-top: 18px; color: #c8bda4; letter-spacing: .25em; font-size: 15.5px; }

/* ---------- 联系我们 ---------- */
.contact { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.contact-fig {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.contact-fig figcaption {
  padding: 12px;
  text-align: center;
  background: var(--paper-deep);
  font-size: 14px;
  letter-spacing: .3em;
  color: var(--ink-soft);
}
.contact-list { list-style: none; }
.contact-list li {
  display: flex;
  gap: 16px;
  padding: 12px 2px;
  border-bottom: 1px dashed var(--line);
  font-size: 16px;
}
.contact-list b {
  flex: 0 0 auto;
  color: var(--teal);
  letter-spacing: .3em;
  font-weight: 700;
}
.contact-list a { color: var(--cinnabar); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

.contact-form {
  background: rgba(255, 252, 244, .9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
  position: relative;
}
.contact-form::before {
  content: "留言订笔";
  position: absolute;
  top: -16px;
  left: 24px;
  background: var(--cinnabar);
  color: #f7efdf;
  font-size: 15px;
  letter-spacing: .4em;
  padding: 4px 14px 4px 18px;
  border-radius: 3px;
}
.contact-form h3 { font-size: 22px; letter-spacing: .2em; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 15px;
  letter-spacing: .25em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 14px;
  letter-spacing: .05em;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(160, 58, 42, .12);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-hint {
  margin-top: 12px;
  font-size: 14.5px;
  min-height: 1.6em;
  letter-spacing: .05em;
}
.form-hint.is-ok { color: var(--teal); }
.form-hint.is-err { color: var(--cinnabar); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: linear-gradient(#2c2620, #201b15);
  color: #cfc4ac;
  padding: 44px 0 30px;
  font-size: 14.5px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 14px; line-height: 1.7; letter-spacing: .15em; }
.footer-nav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.footer-nav a {
  color: #cfc4ac;
  text-decoration: none;
  padding: 4px 12px;
  letter-spacing: .2em;
  transition: color .25s;
}
.footer-nav a:hover { color: #f0e6cf; }
.footer-copy { letter-spacing: .1em; opacity: .75; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 60;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(160, 58, 42, .4);
  background: rgba(245, 239, 227, .9);
  color: var(--cinnabar);
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .35s;
  box-shadow: var(--shadow);
}
.to-top.is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--cinnabar); color: #f7efdf; }

/* ---------- 滚动进场 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .scroll-cue { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .craft-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    padding: 90px 8vw 30px;
    background: rgba(245, 239, 227, .98);
    flex-direction: column;
    gap: 6px;
    transform: translateY(-105%);
    transition: transform .4s ease;
    box-shadow: 0 20px 40px rgba(50, 35, 20, .18);
    z-index: -1;
  }
  .nav-menu.is-open { transform: translateY(0); }
  .nav-menu a { display: block; font-size: 19px; padding: 12px 6px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-title { white-space: normal; }
  .hero-vert { writing-mode: horizontal-tb; border: 0; padding: 0; }
  .hero-seal { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3)::before { display: none; }
  .timeline::before { left: 8px; }
  .timeline li,
  .timeline li:nth-child(odd) {
    width: auto;
    margin: 0 0 22px 34px;
  }
  .timeline li:nth-child(odd)::before,
  .timeline li:nth-child(even)::before { left: -32px; right: auto; }
}

@media (max-width: 560px) {
  .craft-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; text-align: center; }
}
