/* =============================================
   和纸 · 朱印 — 亚洲标准,日本精工
   yazhouyiji.net.cn Design System
   ============================================= */

:root {
  --paper: #F7F4ED;
  --paper-deep: #EDE6DA;
  --paper-mid: #FBF9F4;
  --ink: #1A1820;
  --ink-soft: rgba(26, 24, 32, 0.65);
  --ink-faint: rgba(26, 24, 32, 0.35);
  --vermilion: #C73E2E;
  --vermilion-dark: #A93226;
  --vermilion-light: rgba(199, 62, 46, 0.08);
  --matcha: #4A6B54;
  --matcha-light: rgba(74, 107, 84, 0.12);
  --line: rgba(26, 24, 32, 0.1);
  --shadow-sm: 0 2px 14px rgba(26, 24, 32, 0.06);
  --shadow-md: 0 8px 28px rgba(26, 24, 32, 0.08);
  --radius: 4px;
  --radius-lg: 8px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 和纸质感背景 — 微妙的噪点渐变 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(255,255,255,0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(199,62,46,0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ============ 核心布局 ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--paper-deep);
}

/* ============ 导航 — 固定顶部 ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(247, 244, 237, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.site-header:hover {
  box-shadow: 0 2px 20px rgba(26, 24, 32, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--vermilion);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(199, 62, 46, 0.28);
  position: relative;
}

/* logo-icon上生成印章式白痕 */
.logo-icon::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  transition: color 0.25s ease;
  position: relative;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--vermilion);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:not(.nav-cta):hover {
  color: var(--vermilion);
}

.main-nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  padding: 9px 22px;
  border-radius: var(--radius);
  color: #fff !important;
  background: var(--vermilion);
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--vermilion-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-mid);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--ink);
}

/* ============ Hero — 日式杂志风 ============ */
.hero {
  min-height: 86vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 72px;
  background:
    linear-gradient(120deg, rgba(247,244,237,0.98) 0%, rgba(247,244,237,0.82) 60%, rgba(237,230,218,0.65) 100%),
    radial-gradient(circle at 85% 50%, rgba(199,62,46,0.06) 0%, transparent 45%);
  overflow: hidden;
}

/* 巨大的汉字水印 */
.hero::before {
  content: '雅';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30vw;
  font-weight: 900;
  color: rgba(26, 24, 32, 0.035);
  line-height: 1;
  z-index: 0;
  letter-spacing: -0.05em;
  user-select: none;
}

/* 朱印方形装饰 */
.hero::after {
  content: '';
  position: absolute;
  right: 8%;
  top: 18%;
  width: 96px;
  height: 96px;
  border: 2px solid var(--vermilion);
  border-radius: var(--radius);
  opacity: 0.22;
  z-index: 1;
  box-shadow:
    inset 0 0 0 6px var(--paper),
    inset 0 0 0 8px rgba(199, 62, 46, 0.15);
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  padding: 6px 16px;
  border-radius: var(--radius);
  background: var(--vermilion);
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(199, 62, 46, 0.22);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--ink);
}

.hero h1 .accent-char {
  color: var(--vermilion);
  position: relative;
}

.hero p {
  font-size: 1.08rem;
  opacity: 0.75;
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: var(--vermilion);
  box-shadow: 0 4px 16px rgba(199, 62, 46, 0.25);
}

.btn-primary:hover {
  background: var(--vermilion-dark);
  box-shadow: 0 8px 22px rgba(199, 62, 46, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--vermilion);
  color: var(--vermilion);
  background: var(--vermilion-light);
}

/* ============ 标签 / 标题 ============ */
.section-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  margin-bottom: 14px;
  color: var(--vermilion);
  text-transform: uppercase;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--vermilion);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.section-desc {
  max-width: 600px;
  opacity: 0.72;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ============ 卡片网格 ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: var(--paper-mid);
  border: 1px solid var(--line);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 卡片顶部细朱红线 */
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--vermilion) 0%, var(--vermilion) 50%, transparent 50%);
  background-size: 60px 3px;
  background-repeat: repeat-x;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(199, 62, 46, 0.22);
}

.category-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--matcha-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  color: var(--matcha);
  transition: background 0.3s ease, color 0.3s ease;
}

.category-card:hover .card-icon {
  background: var(--vermilion);
  color: #fff;
}

.card-link {
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.card-link:hover {
  color: var(--vermilion);
}

.card-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* ============ 特性块 ============ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  position: relative;
}

.feature-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(199, 62, 46, 0.15) 100%);
  z-index: 1;
  pointer-events: none;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-image:hover img {
  transform: scale(1.02);
}

.feature-text {
  position: relative;
}

.feature-list {
  list-style: none;
  margin-top: 8px;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.5;
}

.feature-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--matcha-light);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--matcha);
  font-weight: 900;
  font-size: 0.7rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234A6B54' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 10 8 14 16 6'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* ============ 数据条 ============ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 36px 24px 32px;
  border-radius: var(--radius-lg);
  background: var(--paper-mid);
  border: 1px solid var(--line);
  border-top: 3px solid var(--vermilion);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.1;
  display: block;
}

.stat-number::after {
  content: '+';
  color: var(--vermilion);
  font-weight: 800;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 8px;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ============ 内容墙 ============ */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.content-wall-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-mid);
  border: 1px solid var(--line);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.content-wall-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.02);
  transition: filter 0.3s ease, transform 0.4s ease;
}

.content-wall-item:hover img {
  filter: saturate(1.1);
  transform: scale(1.01);
}

.content-wall-body {
  padding: 22px 24px;
}

.content-wall-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.4;
}

.content-wall-body p {
  font-size: 0.88rem;
  opacity: 0.65;
  line-height: 1.6;
}

/* ============ FAQ — 日式手风琴 ============ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper-mid);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(199, 62, 46, 0.25);
}

.faq-item.open {
  border-color: rgba(199, 62, 46, 0.35);
  box-shadow: var(--shadow-sm);
}

.faq-item .faq-question {
  padding: 18px 24px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.faq-item .faq-question::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  opacity: 0.5;
  margin-top: -4px;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-item .faq-answer {
  padding: 0 24px 20px;
  display: none;
  opacity: 0.72;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
  animation: faqFade 0.3s ease;
}

@keyframes faqFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 0.72;
    transform: translateY(0);
  }
}

/* ============ CTA横幅 ============ */
.cta-banner {
  padding: 64px 48px;
  text-align: center;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, #C73E2E 0%, #A93226 60%, #8F2A1F 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(199, 62, 46, 0.28);
}

/* CTA上的日式底纹 */
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 45%, rgba(255,255,255,0.07) 45%, rgba(255,255,255,0.07) 50%, transparent 50%),
    linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.05) 45%, rgba(255,255,255,0.05) 50%, transparent 50%);
  background-size: 24px 24px;
  z-index: 0;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

.cta-banner p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--vermilion);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

/* ============ 页脚 ============ */
.site-footer {
  padding: 64px 0 32px;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  max-width: 260px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.6;
  line-height: 1.7;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--ink);
  opacity: 0.9;
}

.footer-col a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: color 0.2s ease;
  line-height: 1.5;
}

.footer-col a:hover {
  color: var(--vermilion);
}

.footer-bottom {
  border-top: 1px solid rgba(26, 24, 32, 0.08);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.83rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

/* ============ 工具类 ============ */
.text-accent {
  color: var(--vermilion);
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0.7;
  line-height: 1.7;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============ 附加日式细节 ============ */

/* Section标题的装饰性旁注 */
.section-title {
  position: relative;
}

.section-title::before {
  content: '●';
  color: var(--vermilion);
  font-size: 0.6em;
  vertical-align: super;
  margin-right: 6px;
  opacity: 0.8;
}

.section-label::after {
  content: '— KUROKUMA —';
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  margin-left: 4px;
}

/* 图片frame装饰 */
.feature-image::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}

/* 内容墙的时间戳风格 */
.content-wall-item .content-wall-body .card-meta {
  font-size: 0.75rem;
  color: var(--vermilion);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

/* hero中竖排小字 */
.hero-eyebrow::before {
  content: none;
}

/* button的图标间距 */
.btn svg, .btn img {
  width: 16px;
  height: 16px;
}

/* 选择器禁止默认高亮色，改用朱红 */
::selection {
  background: var(--vermilion);
  color: #fff;
}

/* 滚动条日式木色 */
::-webkit-scrollbar {
  width: 8px;
  background: var(--paper-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(26, 24, 32, 0.25);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--matcha);
}

/* 页面加载淡入 */
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content, .section-label, .section-title {
  animation: pageEnter 0.6s ease both;
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .feature-block {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: calc(100vh - 72px);
    padding-top: 72px;
  }

  .hero::before {
    font-size: 50vw;
    right: -30px;
  }

  .feature-block {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--paper-mid);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(26, 24, 32, 0.1);
    border-radius: 0 0 12px 12px;
  }

  .main-nav.open a {
    font-size: 1rem;
  }

  .main-nav.open .nav-cta {
    text-align: center;
  }

  .cta-banner {
    padding: 48px 24px;
  }
}

@media (max-width: 480px) {
  .cards-grid,
  .content-wall,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 64px 0;
  }

  .stat-item {
    padding: 24px 20px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* 更小的屏幕 */
@media (max-width: 380px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding: 0 16px;
  }

  .logo {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
}