/* xiaohuangya.lol Design System & Styles */
:root {
  --bg-main: #332d2b;
  --bg-secondary: #272220;
  --bg-card: rgba(54, 47, 44, 0.75);
  --bg-card-light: #ffffff;
  --text-main: #f4efe9;
  --text-muted: #b8aea5;
  --text-dark: #2c2523;
  --accent-orange: #d97757;
  --accent-yellow: #f5b027;
  --accent-yellow-hover: #e09d18;
  --accent-sage: #6c8e79;
  --border-color: rgba(229, 169, 60, 0.25);
  --border-glow: rgba(245, 176, 39, 0.5);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.35);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Fira Code", "Cascadia Code", Consolas, Monaco, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Animated Gradient Particles */
.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: 
    radial-gradient(circle at 15% 20%, rgba(217, 119, 87, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(245, 176, 39, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(108, 142, 121, 0.1) 0%, transparent 50%);
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(245, 176, 39, 0.2);
  animation: floatUp 18s infinite linear;
}

@keyframes floatUp {
  0% { transform: translateY(105vh) scale(0.8); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

/* Layout Containers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Top Notification / Banner */
.top-bar {
  background: linear-gradient(90deg, #d97757, #f5b027);
  color: #1a1615;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 0;
  text-align: center;
}

.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge-pill {
  background: #1a1615;
  color: var(--accent-yellow);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background: rgba(45, 40, 38, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(245, 176, 39, 0.3);
}

.logo-text span {
  color: var(--accent-yellow);
}

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

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-yellow);
  border-radius: 2px;
}

.btn-cta {
  background: linear-gradient(135deg, var(--accent-yellow), #e09d18);
  color: #1a1615;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(245, 176, 39, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 176, 39, 0.45);
  background: linear-gradient(135deg, #ffbe3b, #e5a010);
}

/* SEO Keyword Tags Strip */
.keywords-bar {
  background: rgba(39, 34, 32, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.keywords-container {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.tag-badge {
  background: rgba(245, 176, 39, 0.1);
  border: 1px solid rgba(245, 176, 39, 0.25);
  color: #ebd6b3;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tag-badge:hover {
  background: var(--accent-yellow);
  color: #1a1615;
  border-color: var(--accent-yellow);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-subtitle {
  color: var(--accent-yellow);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 30%, #e2d9cf 70%, var(--accent-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 840px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Metrics Row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-yellow);
  margin-bottom: 6px;
}

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

/* Advantages Section */
.section {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-yellow);
  margin: 10px auto 0;
  border-radius: 2px;
}

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

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

.adv-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.adv-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color);
  box-shadow: var(--shadow-lg);
}

.adv-icon {
  width: 54px;
  height: 54px;
  background: rgba(245, 176, 39, 0.12);
  border: 1px solid rgba(245, 176, 39, 0.3);
  color: var(--accent-yellow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.adv-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.adv-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

/* Pricing Cards Inspired by Image 1 (Light Theme Cards with Yellow Pill Button) */
.pricing-card {
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 24px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pricing-card.featured {
  border-color: var(--accent-yellow);
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(245, 176, 39, 0.3);
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-yellow), #f39c12);
  color: #1a1615;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(243, 156, 18, 0.4);
  white-space: nowrap;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 16px;
  color: #222222;
}

.pricing-price {
  font-size: 2.8rem;
  font-weight: 900;
  color: #111111;
  margin-bottom: 16px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: #666666;
}

.pricing-desc {
  color: #555555;
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.5;
  min-height: 48px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  text-align: left;
  border-top: 1px solid #eeeeee;
  padding-top: 20px;
}

.pricing-features li {
  font-size: 0.9rem;
  color: #444444;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features li::before {
  content: "✓";
  color: #f39c12;
  font-weight: bold;
}

.btn-price {
  background: #f39c12;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
  box-shadow: 0 4px 14px rgba(243, 156, 18, 0.4);
  border: none;
  cursor: pointer;
}

.btn-price:hover {
  background: #e67e22;
  box-shadow: 0 6px 18px rgba(230, 126, 34, 0.5);
}

/* Card 10 Special Placement Container */
.card-tenth-wrapper {
  margin-top: 40px;
  background: rgba(45, 39, 36, 0.9);
  border: 2px dashed var(--accent-yellow);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.card-tenth-info h4 {
  font-size: 1.3rem;
  color: var(--accent-yellow);
  margin-bottom: 6px;
}

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

/* Articles Knowledge Base Grid Section */
.articles-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-yellow);
  color: #1a1615;
  border-color: var(--accent-yellow);
  font-weight: 700;
}

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

.article-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

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

.article-card.featured-pos7 {
  border: 2px solid var(--accent-yellow);
  background: linear-gradient(145deg, rgba(65, 55, 50, 0.9), rgba(45, 39, 36, 0.9));
  box-shadow: 0 10px 30px rgba(245, 176, 39, 0.25);
}

.article-pos7-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent-yellow);
  color: #1a1615;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 12px;
}

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

.article-category {
  color: var(--accent-yellow);
  font-weight: 600;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #ffffff;
}

.article-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.article-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

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

/* Article Reader / Detail View Modal / Section */
.article-detail-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  margin-top: 30px;
  box-shadow: var(--shadow-lg);
}

.article-header-meta {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.article-detail-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #ffffff;
}

.meta-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-body-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #e2d9cf;
}

.article-body-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-yellow);
  margin: 36px 0 16px;
  border-left: 4px solid var(--accent-orange);
  padding-left: 14px;
}

.article-body-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin: 24px 0 12px;
}

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

.article-body-content pre {
  background: #1e1a19;
  border: 1px solid rgba(245, 176, 39, 0.2);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #e6e6e6;
  margin: 24px 0;
}

.article-body-content code {
  font-family: var(--font-mono);
  background: rgba(245, 176, 39, 0.15);
  color: var(--accent-yellow);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.95rem;
  background: rgba(30, 26, 25, 0.6);
  border-radius: 12px;
  overflow: hidden;
}

.tech-table th, .tech-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-table th {
  background: rgba(245, 176, 39, 0.15);
  color: var(--accent-yellow);
  font-weight: 700;
}

.tech-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion */
.faq-section {
  margin-top: 48px;
  border-top: 2px dashed rgba(255, 255, 255, 0.1);
  padding-top: 36px;
}

.faq-title {
  font-size: 1.6rem;
  color: var(--accent-yellow);
  margin-bottom: 24px;
}

.faq-item {
  background: rgba(30, 26, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Internal Cross Links Block */
.cross-links-box {
  margin-top: 40px;
  background: rgba(217, 119, 87, 0.1);
  border: 1px solid rgba(217, 119, 87, 0.3);
  border-radius: 14px;
  padding: 24px;
}

.cross-links-title {
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 14px;

}

.cross-links-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  list-style: none;
}

.cross-links-list a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: block;
}

.cross-links-list a:hover {
  color: var(--accent-yellow);
}

/* Archive List Section */
.archive-container {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
}

.archive-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.archive-item:last-child {
  border-bottom: none;
}

.archive-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.archive-link:hover {
  color: var(--accent-yellow);
}

/* Footer */
footer {
  background: #1e1a19;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: 80px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-yellow);
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  color: #888888;
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .nav-menu {
    display: none;
  }
  .article-detail-container {
    padding: 20px;
  }
}
