/* ==========================================================================
   影子 - Pastel Purple & Pastel Pink Light Theme Stylesheet
   Mobile-First, Zero-Dependency, Pure CSS Performance
   ========================================================================== */

/* --- CSS Variables & Theme Tokens --- */
:root {
  --bg-dark: #fdf2f8; /* Light Pink Wallpaper */
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.92);
  --bg-card-solid: #ffffff;
  --bg-input: #fce7f3;
  --border-color: rgba(244, 114, 182, 0.2);
  --border-highlight: rgba(192, 132, 252, 0.5);

  --primary: #c084fc; /* Pastel Purple */
  --primary-hover: #a855f7;
  --primary-glow: rgba(192, 132, 252, 0.35);
  --accent-pink: #f472b6; /* Pastel Pink */
  --accent-cyan: #38bdf8;
  --accent-purple: #c084fc;
  --accent-green: #10b981;

  --text-heading: #2e1065; /* Deep Purple Heading */
  --text-main: #374151; /* Dark Gray Body Text */
  --text-muted: #4b5563;
  --text-sub: #6b7280;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 4px 12px rgba(244, 114, 182, 0.12);
  --shadow-glow: 0 8px 30px rgba(192, 132, 252, 0.2);
  --shadow-pink-glow: 0 8px 30px rgba(244, 114, 182, 0.2);

  --container-max: 1200px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 100%;
  background-color: #fdf2f8;
  background-image: 
    radial-gradient(rgba(244, 114, 182, 0.22) 2px, transparent 2px),
    radial-gradient(rgba(192, 132, 252, 0.22) 2px, transparent 2px);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  background-attachment: fixed;
}

/* Light Pink Wallpaper Ambient Radial Light */
body::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 650px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.22) 0%, rgba(192, 132, 252, 0.18) 45%, rgba(253, 242, 248, 0) 75%);
  pointer-events: none;
  z-index: 0;
}

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

a:hover {
  color: #ec4899;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 80px 0;
  position: relative;
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(192, 132, 252, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.35);
  border-radius: 50px;
  color: #9333ea;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-heading);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f472b6 0%, #c084fc 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(244, 114, 182, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(236, 72, 153, 0.45);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-heading);
  border: 1px solid rgba(244, 114, 182, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(244, 114, 182, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: #c084fc;
  color: #7c3aed;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

/* --- Glass Card / Bento Box --- */
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bento-card:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* --- Header / Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 242, 248, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 114, 182, 0.2);
  height: 72px;
  display: flex;
  align-items: center;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-heading);
  letter-spacing: -0.5px;
}

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

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #9333ea;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile Nav Burger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.nav-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-heading);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

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

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

.hero-content {
  max-width: 580px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(244, 114, 182, 0.15);
  border: 1px solid rgba(244, 114, 182, 0.35);
  border-radius: 50px;
  color: #db2777;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  background: #ec4899;
  border-radius: 50%;
  box-shadow: 0 0 8px #ec4899;
  animation: pulse-dot 2s infinite;
}

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

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-heading);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
}

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

/* Dashboard Component (Pastel Glass Box) */
.dashboard-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(253, 242, 248, 0.95));
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(244, 114, 182, 0.12), 0 0 30px rgba(192, 132, 252, 0.15);
  backdrop-filter: blur(20px);
  position: relative;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.dash-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.dash-nodes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.node-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(244, 114, 182, 0.15);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.node-item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(192, 132, 252, 0.4);
}

.node-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Pastel Flag Badges */
.node-flag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 24px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.node-flag-badge.hk {
  background: rgba(244, 114, 182, 0.15);
  color: #ec4899;
  border: 1px solid rgba(244, 114, 182, 0.35);
}

.node-flag-badge.jp {
  background: rgba(192, 132, 252, 0.18);
  color: #a855f7;
  border: 1px solid rgba(192, 132, 252, 0.35);
}

.node-flag-badge.sg {
  background: rgba(52, 211, 153, 0.18);
  color: #059669;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.node-flag-badge.us {
  background: rgba(168, 85, 247, 0.15);
  color: #7c3aed;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.node-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
}

.node-type {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.node-ping {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
}

.node-ping.fast { color: #059669; }
.node-ping.ultra { color: #7c3aed; }

.dash-graph {
  height: 90px;
  width: 100%;
  background: rgba(253, 242, 248, 0.6);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 114, 182, 0.15);
}

.graph-wave {
  stroke: #c084fc;
  stroke-width: 2.5;
  fill: none;
}

/* --- Features Bento Grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(192, 132, 252, 0.15);
  color: #9333ea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.bento-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

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

/* --- Global Nodes Section --- */
.nodes-section-bg {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #fce7f3 50%, var(--bg-dark) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.node-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.node-card:hover {
  border-color: #c084fc;
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-glow);
}

.node-card-flag {
  margin: 0 auto 12px auto;
}

.node-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.node-card-spec {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- AI & Streaming Section --- */
.scenarios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.scenario-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.scenario-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.bg-purple {
  background: rgba(192, 132, 252, 0.18);
  color: #7c3aed;
  border: 1px solid rgba(192, 132, 252, 0.35);
}

.bg-cyan {
  background: rgba(244, 114, 182, 0.18);
  color: #ec4899;
  border: 1px solid rgba(244, 114, 182, 0.35);
}

.scenario-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.tag-item {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-heading);
  font-weight: 600;
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.pricing-card.recommended {
  border-color: #c084fc;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(253, 242, 248, 0.95) 100%);
  box-shadow: 0 0 35px rgba(192, 132, 252, 0.3);
  transform: scale(1.04);
  z-index: 2;
}

.recommended-ribbon {
  position: absolute;
  top: 18px;
  right: 20px;
  padding: 4px 14px;
  background: linear-gradient(135deg, #f472b6 0%, #c084fc 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.currency {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
}

.num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1;
}

.period {
  font-size: 0.9rem;
  color: var(--text-sub);
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-item svg {
  color: #059669;
  flex-shrink: 0;
}

/* --- SEO Articles Bento Grid --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

.article-category {
  font-size: 0.75rem;
  font-weight: 800;
  color: #9333ea;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

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

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

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-sub);
  padding-top: 14px;
  border-top: 1px solid rgba(244, 114, 182, 0.15);
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

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

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f472b6 0%, #c084fc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 0.95rem;
}

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

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

/* --- FAQ Accordion --- */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

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

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  text-align: left;
}

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

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

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

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

/* --- Footer --- */
.footer {
  background: #fae8ff; /* Soft Pastel Purple Footer */
  border-top: 1px solid rgba(244, 114, 182, 0.25);
  padding: 60px 0 30px 0;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin-top: 12px;
  color: var(--text-muted);
  max-width: 320px;
  font-size: 0.9rem;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-links a:hover {
  color: #9333ea;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(244, 114, 182, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.footer-partners {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-partner-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-partner-link:hover {
  color: #9333ea;
}

/* --- Article & Subpage Layouts --- */
.page-header {
  padding: 60px 0 40px 0;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(244, 114, 182, 0.15) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 16px;
}

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

.article-container {
  max-width: 840px;
  margin: 50px auto;
  padding: 0 20px;
}

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

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 40px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 28px 0 12px 0;
}

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

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

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

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

.article-content blockquote {
  border-left: 4px solid #c084fc;
  padding: 14px 20px;
  background: rgba(192, 132, 252, 0.1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-heading);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-content th, .article-content td {
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.article-content th {
  background: rgba(244, 114, 182, 0.12);
  color: var(--text-heading);
  font-weight: 700;
}

.article-cta-box {
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.9) 0%, rgba(243, 232, 255, 0.9) 100%);
  border: 1px solid #c084fc;
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  margin: 40px 0;
  box-shadow: 0 8px 30px rgba(192, 132, 252, 0.15);
}

.article-cta-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.related-articles {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

/* --- Media Queries / Responsive --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bento-grid, .articles-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .pricing-card.recommended {
    transform: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #fdf2f8;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 30px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    z-index: 99;
  }
  .nav-menu.active {
    transform: translateY(0);
    box-shadow: 0 20px 40px rgba(244, 114, 182, 0.2);
  }
  .nav-toggle {
    display: flex;
  }
  .nav-actions {
    margin-right: 12px;
  }
  .bento-grid, .articles-grid, .testimonials-grid, .scenarios-grid, .nodes-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@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;
  }
}
