/* 吹雪云 (chuixueyun.club) Design System & Stylesheet */

:root {
  --bg-primary: #FAF6F4;
  --bg-secondary: #F4EBE8;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFDFD;
  --text-main: #2D2424;
  --text-muted: #6C5858;
  --text-light: #948080;
  
  --accent-pink: #E39090;
  --accent-pink-hover: #D47B7B;
  --accent-light: #FBEBEB;
  --accent-border: #F0D5D5;
  
  --shadow-sm: 0 4px 12px rgba(45, 36, 36, 0.03);
  --shadow-md: 0 8px 24px rgba(45, 36, 36, 0.06);
  --shadow-lg: 0 16px 40px rgba(45, 36, 36, 0.1);
  
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 246, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(227, 144, 144, 0.15);
  padding: 16px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(227, 144, 144, 0.2);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin-left: auto;
  margin-right: 16px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent-pink);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  outline: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--accent-pink);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(227, 144, 144, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-pink-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 144, 144, 0.45);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--accent-light);
  border-color: var(--accent-pink);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--accent-border);
}

.btn-outline:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

/* Hero Section */
.hero-section {
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(227, 144, 144, 0.15) 0%, rgba(250, 246, 244, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-light);
  color: var(--accent-pink);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  border: 1px solid var(--accent-border);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-badges {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-item svg {
  color: var(--accent-pink);
  width: 18px;
  height: 18px;
}

/* Features Section */
.section {
  padding: 80px 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 54px;
}

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

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(227, 144, 144, 0.12);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  color: var(--accent-pink);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(227, 144, 144, 0.15);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid var(--accent-pink);
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--accent-pink);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

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

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 40px;
}

.plan-price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.plan-price span.currency {
  font-size: 1.3rem;
}

.plan-price span.period {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
}

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

.plan-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed rgba(108, 88, 88, 0.1);
}

.plan-features li svg {
  color: var(--accent-pink);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Blog & Guide Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(227, 144, 144, 0.12);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.article-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-pink);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
  margin-bottom: 12px;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-main);
}

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

.article-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
  border-top: 1px solid rgba(108, 88, 88, 0.08);
  padding-top: 14px;
}

.read-more {
  color: var(--accent-pink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Testimonials / User Reviews Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(227, 144, 144, 0.12);
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: #FFB800;
  font-size: 1rem;
  margin-bottom: 14px;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.user-role {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* FAQ Accordion Section */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(227, 144, 144, 0.12);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--accent-border);
}

.faq-question {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
  color: var(--accent-pink);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

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

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

/* Article Detail Styles */
.article-page {
  padding: 60px 0;
}

.article-container {
  max-width: 860px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(227, 144, 144, 0.15);
}

.article-header {
  border-bottom: 1px solid rgba(108, 88, 88, 0.1);
  padding-bottom: 28px;
  margin-bottom: 32px;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #332A2A;
}

.article-content h1, 
.article-content h2, 
.article-content h3 {
  color: var(--text-main);
  margin: 32px 0 16px;
  font-weight: 700;
  line-height: 1.35;
}

.article-content h2 {
  font-size: 1.6rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
}

.article-content h3 {
  font-size: 1.3rem;
}

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

.article-content ul, 
.article-content ol {
  margin: 0 0 24px 24px;
}

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

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.article-content th, 
.article-content td {
  padding: 12px 16px;
  border: 1px solid rgba(227, 144, 144, 0.2);
  text-align: left;
}

.article-content th {
  background: var(--accent-light);
  color: var(--text-main);
  font-weight: 700;
}

.article-callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent-pink);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  font-size: 0.98rem;
}

.internal-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(108, 88, 88, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.internal-nav a {
  color: var(--accent-pink);
  font-weight: 600;
}

/* Footer & SEO Friend Links (PBN Requirement) */
.site-footer {
  background: #F4EBE8;
  border-top: 1px solid rgba(227, 144, 144, 0.2);
  padding: 50px 0 30px;
  text-align: center;
  color: var(--text-muted);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main);
  white-space: nowrap;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
}

/* PBN Friend Link Section - Low key, elegant, dofollow */
.friend-links-section {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px dashed rgba(108, 88, 88, 0.15);
  font-size: 0.82rem;
  color: var(--text-light);
}

.friend-links-title {
  margin-bottom: 8px;
  font-weight: 500;
  opacity: 0.8;
}

.friend-links-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  list-style: none;
}

.friend-links-list a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.friend-links-list a:hover {
  color: var(--accent-pink);
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 12px;
}

/* Mobile & Tablet Responsive */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .nav-menu {
    display: none;
  }
  .article-container {
    padding: 24px;
  }
}
