/* ==========================================
   一枝红杏 (Yizhi Red Apricot) - 极简日式风 样式表
   Design Style: Minimalist Japanese (Wabi-sabi / Muji inspired)
   ========================================== */

:root {
  --bg-main: #FBF9F5;
  --bg-card: #FFFFFF;
  --bg-alt: #F4F0EA;
  --bg-subtle: #EFEBE4;
  --text-primary: #2B2B2B;
  --text-secondary: #65605B;
  --text-muted: #958F87;
  --accent-red: #C84B31;
  --accent-red-hover: #AA3921;
  --accent-red-light: #FDF3F0;
  --accent-red-border: #F3D3CC;
  --border-color: #E6E1DA;
  --border-light: #F0EDE8;
  --shadow-sm: 0 2px 8px rgba(43, 43, 43, 0.04);
  --shadow-md: 0 8px 24px rgba(43, 43, 43, 0.07);
  --shadow-lg: 0 16px 36px rgba(43, 43, 43, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark mode / Reduced Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.7;
  letter-spacing: 0.02em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select {
  font-family: inherit;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography & Japanese Aesthetic Touches */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.brand-title {
  font-weight: 800;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.04em;
}

.text-accent {
  color: var(--accent-red);
}

.text-muted {
  color: var(--text-secondary);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent-red);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(200, 75, 49, 0.3);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 4px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-red);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 80%;
}

.nav-cta {
  background: var(--accent-red);
  color: #FFF !important;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(200, 75, 49, 0.25);
}

.nav-cta:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(200, 75, 49, 0.35);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-red-light);
  border: 1px solid var(--accent-red-border);
  color: var(--accent-red);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 50%;
}

.hero-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.25;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-red);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(200, 75, 49, 0.3);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 75, 49, 0.4);
}

.btn-outline {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover, .btn-outline:focus-visible {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: var(--accent-red-light);
  transform: translateY(-2px);
}

.hero-card-wrap {
  position: relative;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #2E7D32;
  background: #E8F5E9;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4CAF50;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-card-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-box {
  background: var(--bg-main);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-red);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Section Shared */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.1rem;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Core Advantages */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red-border);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-red);
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Streaming & AI Support */
.media-ai-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.service-item {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  transition: var(--transition);
}

.service-item:hover {
  border-color: var(--accent-red);
}

.service-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
}

.service-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.service-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-alt);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-red);
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.pricing-card.popular {
  border: 2px solid var(--accent-red);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-red);
  color: #FFF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

.pricing-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.pricing-plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-red);
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: normal;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pricing-feature-item svg {
  color: var(--accent-red);
  flex-shrink: 0;
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent-red);
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-red);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* Floating Right Section Nav Arrows */
.section-nav-arrows {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-arrow-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.nav-arrow-btn:hover:not(:disabled) {
  background: var(--accent-red);
  color: #FFF;
  border-color: var(--accent-red);
  transform: scale(1.08);
}

.nav-arrow-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* Articles Grid Layout */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-red-border);
}

.article-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-card-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card-title a:hover {
  color: var(--accent-red);
}

.article-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-read-more:hover {
  text-decoration: underline;
}

/* Article Page Details */
.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px;
}

.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 28px;
  margin-bottom: 40px;
}

.article-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent-red);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: normal;
}

.article-cta-box {
  background: var(--accent-red-light);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 40px 0;
  text-align: center;
}

.article-cta-box h3 {
  color: var(--accent-red);
  margin-bottom: 10px;
}

.article-cta-box p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Footer (4 links strictly) */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--accent-red);
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .features-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    transform: none;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .section-nav-arrows {
    right: 12px;
    bottom: 40px;
  }

  .nav-arrow-btn {
    width: 38px;
    height: 38px;
  }

  .hero-section {
    padding: 40px 0;
  }

  .section {
    padding: 50px 0;
  }
}
