/* 
  纸间方舟 · 手帐视觉设计系统
  为 mrfzbz.com.cn 定制
  方舟笔下，万象皆可期
*/

:root {
  --primary: #C05A46;
  --primary-dark: #A34836;
  --secondary: #4A7C59;
  --accent: #DFA53F;
  --paper: #FAF5EC;
  --paper-deep: #F1EADF;
  --card: #FFFFFF;
  --ink: #2B2B26;
  --ink-mute: #6B6B60;
  --line: #E7DCC9;
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  background-color: var(--paper);
  color: var(--ink);
  padding-top: 68px;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

::selection {
  background: rgba(223, 165, 63, 0.45);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--paper-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 20px;
  border: 2px solid var(--paper-deep);
}

a {
  color: var(--primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  background-color: var(--paper);
  position: relative;
}

.section:nth-child(even) {
  background-color: var(--paper-deep);
}

/* 固定导航 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px dashed var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 45% 55% 50% 50% / 60% 50% 50% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--paper);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 2px 2px 8px rgba(192, 90, 70, 0.25);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  padding: 6px 2px;
  transition: color 0.2s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.main-nav a:not(.nav-cta):hover {
  color: var(--primary);
}

.main-nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  padding: 9px 22px !important;
  border-radius: 6px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(192, 90, 70, 0.22);
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.nav-cta::after {
  display: none !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px 12px;
  transition: background 0.2s, color 0.2s;
}

.menu-toggle:hover {
  background: var(--primary);
  color: #fff;
}

/* 首页 Hero */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 85% 20%, rgba(223, 165, 63, 0.18), transparent 200px),
    radial-gradient(circle at 8% 85%, rgba(74, 124, 89, 0.13), transparent 180px);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 64px;
  width: 100%;
}

.hero-content {
  flex: 1;
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 16px;
  border-radius: 30px;
  background: rgba(223, 165, 63, 0.18);
  color: #B8860B;
  margin-bottom: 20px;
  border: 1px dashed rgba(223, 165, 63, 0.5);
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 22px;
  position: relative;
}

.hero h1::after {
  content: '';
  position: absolute;
  left: 2px;
  bottom: -10px;
  width: 90px;
  height: 5px;
  background: var(--primary);
  border-radius: 3px;
}

.hero p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ink-mute);
  max-width: 520px;
  margin-bottom: 36px;
  margin-top: 22px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  position: relative;
  overflow: visible;
}

.hero-image::before {
  content: '✦';
  position: absolute;
  top: -18px;
  right: 10px;
  font-size: 1.4rem;
  color: var(--accent);
  z-index: 2;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 14px 14px 0 rgba(192, 90, 70, 0.12), 24px 24px 40px rgba(43, 43, 38, 0.06);
  transition: transform 0.4s ease;
}

.hero-image:hover img {
  transform: translateY(-4px) rotate(0.5deg);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(192, 90, 70, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(192, 90, 70, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 124, 89, 0.22);
}

/* 标签 / 标题 */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
  position: relative;
  padding-left: 28px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.section-label::after {
  content: '·';
  margin-left: 4px;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 14px;
}

.section-desc {
  max-width: 620px;
  color: var(--ink-mute);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 44px;
}

/* 卡片网格 */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.category-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 0 rgba(43, 43, 38, 0.02);
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 5px;
  background: rgba(223, 165, 63, 0.45);
  border-radius: 0 0 5px 5px;
}

.category-card:nth-child(odd) {
  transform: rotate(-0.8deg);
}

.category-card:nth-child(even) {
  transform: rotate(0.8deg);
}

.category-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 16px 32px rgba(43, 43, 38, 0.08), 0 4px 0 rgba(192, 90, 70, 0.08);
  border-color: rgba(192, 90, 70, 0.3);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px 12px 12px 4px;
  background: var(--paper-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  color: var(--primary);
  border: 1px dashed var(--line);
}

.category-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}

.category-card p {
  font-size: 0.9rem;
  color: var(--ink-mute);
  line-height: 1.7;
  margin-bottom: 18px;
}

.card-link {
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.card-link::after {
  content: '→';
  transition: transform 0.2s;
}

.card-link:hover {
  gap: 10px;
}

/* 特性块 */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 12px 12px 0 rgba(192, 90, 70, 0.1);
}

.feature-image::before {
  content: '📎';
  position: absolute;
  top: -8px;
  left: 28px;
  font-size: 1.4rem;
  z-index: 2;
  transform: rotate(-15deg);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.feature-text {
  position: relative;
}

.feature-text h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ink);
}

.feature-text p {
  color: var(--ink-mute);
  line-height: 1.8;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  margin-top: 8px;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 500;
}

.feature-list li::before {
  content: '✓';
  font-weight: 700;
  background: var(--secondary);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* 数据条 */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 32px 24px;
  border-radius: 12px;
  background: var(--card);
  border: 1.5px solid var(--line);
  box-shadow: 4px 4px 0 rgba(43, 43, 38, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(43, 43, 38, 0.06);
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* 内容墙 */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

.content-wall-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  border: 1.5px solid var(--line);
  transition: all 0.3s ease;
  position: relative;
}

.content-wall-item:nth-child(3n) {
  transform: rotate(0.6deg);
}

.content-wall-item:nth-child(3n+1) {
  transform: rotate(-0.6deg);
}

.content-wall-item:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 16px 32px rgba(43, 43, 38, 0.08);
  border-color: rgba(192, 90, 70, 0.25);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.content-wall-item:hover img {
  transform: scale(1.03);
}

.content-wall-body {
  padding: 20px 22px 24px;
}

.content-wall-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.content-wall-body p {
  font-size: 0.88rem;
  color: var(--ink-mute);
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-item:hover {
  border-color: rgba(192, 90, 70, 0.35);
}

.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 24px 18px;
  display: none;
  color: var(--ink-mute);
  font-size: 0.95rem;
  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: 1; transform: translateY(0); }
}

/* CTA 横幅 */
.cta-banner {
  padding: 64px 24px;
  text-align: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #D9823E 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(192, 90, 70, 0.2);
}

.cta-banner::before {
  content: '✦';
  position: absolute;
  top: -20px;
  right: 40px;
  font-size: 5rem;
  opacity: 0.15;
  transform: rotate(15deg);
}

.cta-banner::after {
  content: '✦';
  position: absolute;
  bottom: -30px;
  left: 30px;
  font-size: 4rem;
  opacity: 0.1;
  transform: rotate(-10deg);
}

.cta-banner h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

/* 页脚 */
.site-footer {
  padding: 64px 0 32px;
  background-color: #EDE6DA;
  color: var(--ink-mute);
  border-top: 2px dashed var(--line);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 300px;
  color: var(--ink-mute);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--ink-mute);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(43, 43, 38, 0.08);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-mute);
}

/* 工具类 */
.text-accent {
  color: var(--primary);
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--ink-mute);
  font-size: 1rem;
  line-height: 1.8;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero .container {
    flex-direction: column;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image {
    width: 100%;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--paper);
    padding: 28px 24px;
    gap: 20px;
    border-bottom: 1px dashed var(--line);
    box-shadow: 0 16px 32px rgba(43, 43, 38, 0.06);
  }

  .main-nav.open a {
    font-size: 1rem;
  }

  .nav-cta {
    text-align: center;
    width: 100%;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-banner h2 {
    font-size: 1.6rem;
  }
}

@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;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .btn {
    padding: 13px 26px;
  }
}