/* Minimalist New Chinese Ink Wash Design System for jiuxiao.sbs */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,400;1,600&family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;600;700;900&display=swap');

:root {
  --bg-rice-paper: #F7F4EE;
  --ink-black: #1C1B18;
  --seal-red: #C8341F;
  --seal-red-dark: #A52614;
  --line-stone: #DDD5C4;
  --wood-dark: #2B2118;
  --wood-light: #3D2F23;
  --silk-white: #FAF8F5;
  --font-brush: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', cursive, serif;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'SongTi', serif;
  --font-latin: 'Cormorant Garamond', Garamond, Georgia, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-rice-paper);
  color: var(--ink-black);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
  background-image: radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Header & Nav */
.header-nav {
  position: sticky;
  top: 0;
  background-color: rgba(247, 244, 238, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-stone);
  z-index: 1000;
  padding: 16px 32px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-black);
}

.seal-logo-mark {
  width: 38px;
  height: 38px;
  background-color: var(--seal-red);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brush);
  font-size: 1.4rem;
  border-radius: 2px;
  box-shadow: 1px 1px 2px rgba(200, 52, 31, 0.3);
}

.brand-text {
  font-family: var(--font-brush);
  font-size: 1.7rem;
  letter-spacing: 2px;
  color: var(--ink-black);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--ink-black);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 4px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--seal-red);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--seal-red);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Primary Ink Button */
.btn-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--seal-red);
  color: #FFF;
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 2px;
  padding: 10px 24px;
  border-radius: 0;
  border: 1px solid var(--seal-red-dark);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 2px 2px 0 rgba(28, 27, 24, 0.1);
  cursor: pointer;
}

.btn-seal:hover {
  background-color: var(--seal-red-dark);
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 rgba(28, 27, 24, 0.2);
}

.btn-ink-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--ink-black);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  padding: 10px 24px;
  border: 1px solid var(--ink-black);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ink-outline:hover {
  background-color: var(--ink-black);
  color: var(--bg-rice-paper);
  transform: translateY(-2px);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Section Dividers: Ink Brush SVG Line */
.brush-divider {
  width: 100%;
  height: 24px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brush-divider svg {
  width: 100%;
  max-width: 900px;
  height: 12px;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 110px 0 80px;
  overflow: hidden;
}

/* Vertical text on viewport right edge */
.hero-vertical-banner {
  position: absolute;
  top: 100px;
  right: 32px;
  writing-mode: vertical-rl;
  font-family: var(--font-brush);
  font-size: 1.3rem;
  letter-spacing: 8px;
  color: var(--ink-black);
  opacity: 0.75;
  border-left: 1px solid var(--line-stone);
  padding-left: 12px;
  user-select: none;
}

.hero-wrapper {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
}

/* Enso Ink Circle Background */
.enso-bg {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  opacity: 0.38;
  pointer-events: none;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-brush);
  font-size: 4.6rem;
  line-height: 1.2;
  letter-spacing: 6px;
  margin-bottom: 24px;
  color: var(--ink-black);
  position: relative;
}

.hero-title .seal-highlight {
  color: var(--seal-red);
}

.hero-latin-subtitle {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 1.35rem;
  color: #666;
  margin-bottom: 18px;
  letter-spacing: 2px;
}

.hero-desc {
  font-size: 1.12rem;
  line-height: 2.1;
  color: #3C3B37;
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: justify;
  text-align-last: center;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

/* Section Common */
.section {
  padding: 80px 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-latin {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 1.15rem;
  color: #888;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-brush);
  font-size: 2.8rem;
  letter-spacing: 4px;
  color: var(--ink-black);
}

/* Three Hanging Scrolls (挂轴卡片) */
.hanging-scrolls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.hanging-scroll {
  background-color: var(--silk-white);
  border-top: 10px solid var(--wood-dark);
  border-bottom: 10px solid var(--wood-dark);
  box-shadow: 0 4px 16px rgba(43, 33, 24, 0.08);
  padding: 48px 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  position: relative;
}

.hanging-scroll:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(43, 33, 24, 0.14);
}

.scroll-seal-char {
  width: 64px;
  height: 64px;
  background-color: var(--seal-red);
  color: #FFF;
  font-family: var(--font-brush);
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  margin-bottom: 24px;
  box-shadow: 2px 2px 4px rgba(200, 52, 31, 0.25);
}

.scroll-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: var(--ink-black);
}

.scroll-text {
  font-size: 0.98rem;
  line-height: 1.95;
  color: #55534E;
  text-align: justify;
}

/* Media & AI Grid */
.media-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.ink-card {
  background-color: var(--silk-white);
  border: 1px solid var(--line-stone);
  padding: 40px 36px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.ink-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.ink-card-icon {
  font-size: 1.8rem;
  color: var(--seal-red);
}

.ink-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 1.5px;
}

.pill-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.ink-pill {
  border: 1px solid var(--line-stone);
  background-color: var(--bg-rice-paper);
  font-size: 0.88rem;
  font-family: var(--font-serif);
  padding: 4px 12px;
  letter-spacing: 1px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--silk-white);
  border: 1px solid var(--line-stone);
  padding: 48px 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: #BBB09E;
}

/* Featured Seal Stamp in Top Right */
.featured-seal-stamp {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  border: 2px solid var(--seal-red);
  color: var(--seal-red);
  padding: 6px 2px;
  writing-mode: vertical-rl;
  font-family: var(--font-brush);
  font-size: 0.92rem;
  letter-spacing: 3px;
  text-align: center;
  border-radius: 2px;
}

.tier-title {
  font-family: var(--font-brush);
  font-size: 1.8rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.tier-price {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  margin: 16px 0 24px;
  color: var(--ink-black);
}

.tier-price .currency {
  font-size: 1.5rem;
  font-weight: 400;
}

.tier-price .unit {
  font-size: 0.95rem;
  color: #777;
  font-weight: 400;
}

.tier-list {
  list-style: none;
  margin-bottom: 32px;
  font-size: 0.95rem;
  line-height: 2.2;
}

.tier-list li::before {
  content: "✦ ";
  color: var(--seal-red);
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.review-item {
  background-color: var(--silk-white);
  border: 1px solid var(--line-stone);
  padding: 32px 28px;
}

.review-quote {
  font-size: 0.98rem;
  line-height: 1.9;
  color: #4A4843;
  margin-bottom: 18px;
  font-style: normal;
}

.review-author {
  font-family: var(--font-brush);
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: var(--seal-red);
}

/* FAQ Accordion */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-box {
  background-color: var(--silk-white);
  border: 1px solid var(--line-stone);
  padding: 28px 32px;
}

.faq-q {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.18rem;
  margin-bottom: 12px;
  color: var(--ink-black);
  letter-spacing: 1px;
}

.faq-a {
  font-size: 0.98rem;
  line-height: 1.9;
  color: #55534E;
}

/* Footer: STRICTLY ONLY 4 TITLES OPENING IN NEW TAB */
.site-footer {
  background-color: var(--wood-dark);
  color: var(--bg-rice-paper);
  border-top: 1px solid var(--wood-light);
  padding: 48px 0;
}

.footer-nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--bg-rice-paper);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  letter-spacing: 2px;
  padding: 6px 12px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--seal-red);
}

/* Sub-pages and Article Styling */
.article-main {
  padding: 60px 0 90px;
}

.article-box {
  background-color: var(--silk-white);
  border: 1px solid var(--line-stone);
  padding: 56px 48px;
  max-width: 940px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.breadcrumb-nav {
  font-size: 0.92rem;
  color: #777;
  margin-bottom: 28px;
}

.breadcrumb-nav a {
  color: var(--ink-black);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--seal-red);
}

.article-header {
  border-bottom: 1px solid var(--line-stone);
  padding-bottom: 28px;
  margin-bottom: 40px;
}

.article-header h1 {
  font-family: var(--font-brush);
  font-size: 2.6rem;
  letter-spacing: 3px;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--ink-black);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 1.05rem;
  color: #777;
}

.article-body {
  font-size: 1.06rem;
  line-height: 2.15;
  color: #2C2B27;
}

.article-body h2 {
  font-family: var(--font-brush);
  font-size: 1.85rem;
  letter-spacing: 2px;
  margin: 44px 0 18px;
  color: var(--ink-black);
  border-bottom: 1px solid var(--line-stone);
  padding-bottom: 8px;
}

.article-body h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.28rem;
  margin: 28px 0 12px;
  color: var(--seal-red-dark);
}

.article-body p {
  margin-bottom: 22px;
  text-align: justify;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  border: 1px solid var(--line-stone);
}

.article-body th, .article-body td {
  border: 1px solid var(--line-stone);
  padding: 12px 18px;
  text-align: left;
}

.article-body th {
  background-color: var(--bg-rice-paper);
  font-family: var(--font-brush);
  font-size: 1.15rem;
  letter-spacing: 1px;
}

/* Quiet Staggered Scroll Fade-in (IntersectionObserver) */
.ink-fade-in {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.ink-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Diagnostic / Check Tool */
.diag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 40px 0;
}

.diag-card {
  background-color: var(--silk-white);
  border: 1px solid var(--line-stone);
  padding: 32px;
}

.diag-seal-tag {
  display: inline-block;
  background-color: var(--seal-red);
  color: #FFF;
  font-family: var(--font-brush);
  font-size: 1.1rem;
  padding: 2px 10px;
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-vertical-banner {
    display: none;
  }
  .hero-title {
    font-size: 3.4rem;
  }
  .hanging-scrolls-grid, .pricing-grid, .reviews-grid, .media-cards-grid, .diag-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    gap: 14px;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .enso-bg {
    width: 300px;
    height: 300px;
  }
  .article-box {
    padding: 28px 20px;
  }
  .footer-nav-container {
    flex-direction: column;
    gap: 16px;
  }
}
