/* ============================================
   第一会所文学 · 翰墨纸境设计系统
   暖纸底 × 朱砂印 × 硬边框 × 衬线大标题
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --paper: #F7F2E9;
  --paper-deep: #EDE4D4;
  --ink: #2B2622;
  --ink-soft: rgba(43, 38, 34, 0.66);
  --cinnabar: #C14E2A;
  --teal: #3A6065;
  --gold: #D9A441;
  --paper-glass: rgba(247, 242, 233, 0.92);
  --border-w: 2px;
  --shadow-teal: 6px 6px 0 rgba(58, 96, 101, 0.9);
  --shadow-ink: 6px 6px 0 rgba(43, 38, 34, 0.85);
  --ease: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

::selection {
  background: var(--cinnabar);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
  border-left: 1px solid rgba(43, 38, 34, 0.15);
}

::-webkit-scrollbar-thumb {
  background: var(--teal);
  border: 2px solid var(--ink);
  border-radius: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

body {
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", "PingFang SC", "Microsoft YaHei", system-ui, serif;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(43, 38, 34, 0.03) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.75;
}

/* ---------- 核心布局 ---------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 168px;
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--cinnabar) 0, var(--cinnabar) 4px,
    transparent 4px, transparent 8px
  );
  z-index: 3;
}

.hero.section::before,
.cta-banner.section::before {
  content: none;
}

.section:nth-child(even) {
  background: var(--paper-deep);
}

/* ---------- 导航 ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--paper-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--border-w) solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.22rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.12em;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: 2px solid var(--ink);
  background: var(--cinnabar);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--ink);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  transition: var(--ease);
  position: relative;
  padding: 3px 0;
  letter-spacing: 0.05em;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--cinnabar);
  transition: width 0.3s;
}

.main-nav a:hover {
  color: var(--cinnabar);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 9px 22px;
  border-radius: 0;
  background: var(--cinnabar);
  color: #fff !important;
  font-weight: 700;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: var(--ease) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--teal);
  border-color: var(--ink);
  color: #fff !important;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--cinnabar);
}

.menu-toggle {
  display: none;
}

/* ---------- 首页 Hero ---------- */

.hero {
  min-height: 90vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px;
  position: relative;
  overflow: hidden;
  padding-top: 76px;
  background:
    radial-gradient(ellipse at 88% 10%, rgba(217, 164, 65, 0.16) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(193, 78, 42, 0.09) 0%, transparent 42%),
    var(--paper);
}

.hero::before {
  content: '文';
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 42vw;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(43, 38, 34, 0.06);
  pointer-events: none;
  z-index: 1;
}

.hero .container:not(.hero-content) {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}

.hero .container:not(.hero-content) > .hero-content:only-child {
  grid-column: 1 / -1;
  max-width: 780px;
}

.hero > .container.hero-content {
  flex: 1 1 100%;
  max-width: 860px;
}

.hero > .hero-content {
  flex: 0 1 620px;
  margin: 0;
}

.hero > .hero-image {
  flex: 0 1 420px;
  max-width: 420px;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-content::after {
  content: '';
  position: absolute;
  width: 72px;
  height: 72px;
  border: 2px solid var(--cinnabar);
  top: -32px;
  left: -32px;
  opacity: 0.38;
  z-index: -1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 6px 16px;
  border-radius: 0;
  border: 2px solid var(--ink);
  background: var(--gold);
  color: var(--ink);
  margin-bottom: 24px;
  box-shadow: 3px 3px 0 var(--ink);
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: '◆';
  font-size: 0.6rem;
  color: var(--cinnabar);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-wrap: balance;
}

.hero h1 strong {
  color: var(--cinnabar);
  font-weight: 900;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.7;
  max-width: 560px;
  margin-bottom: 36px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--ink);
  background: var(--paper-deep);
  box-shadow: 10px 10px 0 rgba(58, 96, 101, 0.85);
  transform: rotate(1deg);
  transition: var(--ease);
  z-index: 2;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(43, 38, 34, 0.25);
  pointer-events: none;
  z-index: 1;
}

.hero-image:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 14px 14px 0 rgba(193, 78, 42, 0.85);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 0;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--ink);
  text-decoration: none;
  transition: var(--ease);
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.btn:hover {
  transform: translate(-2px, -2px);
}

.btn-primary {
  background: var(--cinnabar);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary:hover {
  background: var(--teal);
  box-shadow: 6px 6px 0 var(--ink);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--teal);
}

.btn-outline:hover {
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--cinnabar);
  color: var(--cinnabar);
}

/* ---------- 标签与标题 ---------- */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  margin-bottom: 14px;
  color: var(--cinnabar);
  text-transform: uppercase;
  position: relative;
  padding-left: 20px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border: 1.5px solid var(--ink);
  transform: rotate(45deg);
}

.section-title {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--ink);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--cinnabar);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-desc {
  max-width: 600px;
  opacity: 0.68;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ---------- 卡片网格 ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.category-card {
  border-radius: 0;
  padding: 32px;
  border: 2px solid var(--ink);
  background: #FFFDF8;
  transition: var(--ease);
  position: relative;
}

.category-card::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  background: var(--gold);
  border: 1.5px solid var(--ink);
  z-index: 1;
  transition: var(--ease);
}

.category-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 rgba(58, 96, 101, 0.9);
  background: #fff;
}

.category-card:hover::before {
  transform: rotate(45deg);
  background: var(--cinnabar);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: var(--paper-deep);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cinnabar);
}

.card-link {
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--cinnabar);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  transition: var(--ease);
  border-bottom: 2px solid transparent;
}

.card-link:hover {
  border-bottom-color: var(--cinnabar);
  gap: 10px;
}

/* ---------- 特性块 ---------- */

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-block > .feature-text:only-child {
  grid-column: 1 / -1;
}

.feature-image {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--gold);
}

.feature-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--cinnabar) 0, var(--cinnabar) 8px,
    transparent 8px, transparent 16px
  );
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-text {
  font-size: 1.05rem;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  border-bottom: 1px dashed rgba(43, 38, 34, 0.18);
}

.feature-list li::before {
  content: '✓';
  font-weight: 900;
  color: var(--paper);
  background: var(--teal);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
}

/* ---------- 数据条 ---------- */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--gold);
}

.stat-item {
  padding: 32px 24px;
  text-align: center;
  background: var(--paper);
  border-right: 2px solid var(--ink);
  transition: var(--ease);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: #FFF9EE;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--cinnabar);
  font-family: "Georgia", "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 8px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ---------- 内容墙 ---------- */

.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.content-wall-item {
  border-radius: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
  transition: var(--ease);
  position: relative;
}

.content-wall-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}

.content-wall-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-ink);
}

.content-wall-item:hover::after {
  transform: scaleX(1);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: grayscale(28%);
  transition: var(--ease);
}

.content-wall-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.content-wall-body {
  padding: 22px;
}

.content-wall-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 900;
}

.content-wall-body p {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 2px solid var(--ink);
  border-radius: 0;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper);
  transition: var(--ease);
}

.faq-item:hover {
  box-shadow: 3px 3px 0 var(--gold);
}

.faq-item .faq-question {
  padding: 18px 22px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--cinnabar);
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 22px 20px;
  display: none;
  opacity: 0.7;
  border-top: 1px dashed rgba(43, 38, 34, 0.18);
  padding-top: 14px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ---------- CTA 横幅 ---------- */

.cta-banner {
  padding: 64px 24px;
  text-align: center;
  border-radius: 0;
  color: #fff;
  background: var(--cinnabar);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '文';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  pointer-events: none;
}

.cta-banner h2 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto 28px;
  opacity: 0.9;
}

.cta-banner .btn {
  position: relative;
  z-index: 2;
}

.cta-banner .btn-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.cta-banner .btn-primary:hover {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 64px 0 28px;
  background: var(--paper-deep);
  border-top: 4px solid var(--ink);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 160px;
  height: 2px;
  background: var(--cinnabar);
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.footer-brand span {
  color: var(--cinnabar);
}

.footer-col {
  font-size: 0.92rem;
}

.footer-col h4 {
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cinnabar);
  border-bottom: 2px solid var(--ink);
  display: inline-block;
  padding-bottom: 4px;
}

.footer-col a {
  color: var(--ink);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: var(--ease);
}

.footer-col a:hover {
  color: var(--cinnabar);
  padding-left: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(43, 38, 34, 0.2);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ---------- 工具类 ---------- */

.text-accent {
  color: var(--cinnabar);
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0.7;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* ---------- 响应式 ---------- */

@media (max-width: 992px) {
  .hero .container:not(.hero-content) {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 48px;
  }

  .hero::before {
    display: none;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .feature-block {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
  }

  .stat-item:nth-child(2n) {
    border-right: none;
  }

  .stat-item:nth-child(n+3) {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    border: 2px solid var(--ink);
    background: var(--paper);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--ink);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--paper);
    padding: 20px 24px;
    border-bottom: 2px solid var(--ink);
    box-shadow: var(--shadow-ink);
    gap: 16px;
  }

  .main-nav.open a {
    width: 100%;
    padding: 10px 4px;
    border-bottom: 1px dashed rgba(43, 38, 34, 0.2);
  }

  .nav-cta {
    text-align: center;
  }

  .cta-banner {
    padding: 48px 20px;
  }
}

@media (max-width: 480px) {
  .cards-grid,
  .content-wall,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2.4rem;
  }

  .stat-item {
    border-right: none !important;
    border-bottom: 2px solid var(--ink);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    justify-content: center;
  }

  .cta-banner h2 {
    font-size: 1.7rem;
  }
}