/* NodalBrain Health｜脑点健康科普 — Editorial Wellness Stylesheet */
:root {
  --teal-600: #2A9D8F;
  --teal-700: #218075;
  --teal-50: #E6F4F1;
  --teal-100: #CFEBE5;
  --cream-50: #FAF8F5;
  --cream-100: #F3EFE8;
  --white: #FFFFFF;
  --slate-900: #1F2937;
  --slate-700: #374151;
  --slate-600: #4B5563;
  --slate-500: #6B7280;
  --border: #E5E0D8;
  --gold-500: #D4A373;
  --gold-600: #B88653;
  --gold-50: #FBF5EE;
  --shadow-sm: 0 2px 8px rgba(31, 41, 55, 0.05);
  --shadow-md: 0 8px 24px rgba(31, 41, 55, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max-width: 1080px;
  --article-width: 780px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--cream-50);
  color: var(--slate-900);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--teal-700);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

a:hover {
  color: var(--teal-600);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.article-container {
  width: 100%;
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Affiliate Disclosure Banner */
.disclosure-bar {
  background-color: var(--gold-50);
  border-bottom: 1px solid rgba(212, 163, 115, 0.35);
  color: var(--slate-700);
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 0.5rem 0;
}

.disclosure-bar p {
  margin: 0;
  text-align: center;
}

.disclosure-bar a {
  color: var(--teal-700);
  text-decoration: underline;
  margin-left: 0.35rem;
  font-weight: 500;
}

/* Site Header */
.site-header {
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--slate-900);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--teal-700);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(42, 157, 143, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--slate-500);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--slate-700);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal-700);
  background-color: var(--teal-50);
}

.nav-yt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--teal-600);
  color: var(--white) !important;
  font-weight: 600 !important;
  margin-left: 0.35rem;
}

.nav-yt:hover {
  background-color: var(--teal-700) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  color: var(--slate-900);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Main Content */
main {
  flex: 1;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--cream-50) 100%);
  padding: 3.5rem 0 2.75rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-700);
  background-color: var(--white);
  border: 1px solid var(--teal-100);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold-500);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.hero-lead {
  margin: 0 0 1.6rem;
  font-size: 1.03rem;
  color: var(--slate-600);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.3rem;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--teal-600);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(42, 157, 143, 0.22);
}

.btn-primary:hover {
  background-color: var(--teal-700);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--slate-900);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--teal-600);
  color: var(--teal-700);
  background-color: var(--teal-50);
}

.btn-gold {
  background-color: var(--gold-500);
  color: var(--white);
}

.btn-gold:hover {
  background-color: var(--gold-600);
  color: var(--white);
}

/* Video Wrapper (Responsive 16:9) */
.video-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: var(--shadow-md);
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background-color: #111827;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.25rem 0.15rem;
  font-size: 0.85rem;
  color: var(--slate-600);
}

.video-caption a {
  font-weight: 600;
  white-space: nowrap;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 2rem;
  max-width: 720px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.35rem;
}

.section-header h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: var(--slate-900);
  line-height: 1.35;
}

.section-header p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.98rem;
}

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-100);
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background-color: var(--teal-50);
  color: var(--teal-700);
  margin-bottom: 0.85rem;
}

.card-badge.gold {
  background-color: var(--gold-50);
  color: var(--gold-600);
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.18rem;
  line-height: 1.4;
  color: var(--slate-900);
}

.card p {
  margin: 0 0 1.2rem;
  font-size: 0.94rem;
  color: var(--slate-600);
  flex: 1;
}

.card-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.card-link:hover {
  color: var(--teal-600);
  text-decoration: underline;
}

/* Featured Article Banner */
.featured-box {
  background: linear-gradient(135deg, var(--white) 0%, var(--teal-50) 100%);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.featured-meta {
  font-size: 0.84rem;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.featured-box h3 {
  margin: 0 0 0.7rem;
  font-size: 1.42rem;
  line-height: 1.4;
}

.featured-box p {
  margin: 0 0 1.25rem;
  color: var(--slate-600);
  font-size: 0.96rem;
}

.featured-highlights {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.35rem;
  font-size: 0.88rem;
}

.featured-highlights h4 {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: var(--teal-700);
}

.featured-highlights ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--slate-700);
}

.featured-highlights li {
  margin-bottom: 0.4rem;
}

/* Product Cards (Resources) */
.product-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.product-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.product-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  line-height: 1.35;
}

.product-subtitle {
  font-size: 0.88rem;
  color: var(--slate-500);
  margin-bottom: 1rem;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--border);
}

.spec-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--cream-100);
  font-size: 0.93rem;
  color: var(--slate-700);
  display: flex;
  gap: 0.6rem;
}

.spec-label {
  font-weight: 600;
  color: var(--slate-900);
  min-width: 82px;
  flex-shrink: 0;
}

.product-cta-wrap {
  margin-top: auto;
  padding-top: 0.5rem;
}

.cta-note {
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-top: 0.55rem;
}

/* Page Header (Subpages) */
.page-header {
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--cream-50) 100%);
  padding: 2.75rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.84rem;
  color: var(--slate-500);
  margin-bottom: 0.8rem;
}

.breadcrumb a {
  color: var(--slate-600);
}

.page-header h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.32;
}

.page-header p {
  margin: 0;
  color: var(--slate-600);
  max-width: 720px;
  font-size: 1rem;
}

/* Article Typography */
.article-body {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.5rem;
  margin: 2.25rem 0 3.25rem;
  box-shadow: var(--shadow-sm);
}

.article-body h2 {
  margin: 2.1rem 0 0.85rem;
  font-size: 1.38rem;
  color: var(--slate-900);
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--teal-50);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.1rem;
  color: var(--teal-700);
}

.article-body p {
  margin: 0 0 1.15rem;
  font-size: 1rem;
  color: var(--slate-700);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
  color: var(--slate-700);
}

.article-body li {
  margin-bottom: 0.55rem;
}

.callout {
  background-color: var(--teal-50);
  border-left: 4px solid var(--teal-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--slate-900);
}

.callout-gold {
  background-color: var(--gold-50);
  border-left-color: var(--gold-500);
}

.stage-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.35rem 0 1.6rem;
  font-size: 0.92rem;
}

.stage-table th,
.stage-table td {
  border: 1px solid var(--border);
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.stage-table th {
  background-color: var(--teal-50);
  color: var(--slate-900);
  font-weight: 600;
}

.stage-table tr:nth-child(even) td {
  background-color: var(--cream-50);
}

.inline-cta-box {
  background-color: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0 1rem;
}

.inline-cta-box h3 {
  margin-top: 0;
  color: var(--slate-900);
}

/* Notice / Disclaimer Box */
.notice-box {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-top: 2rem;
}

.notice-box strong {
  color: var(--slate-900);
}

/* Footer */
.site-footer {
  background-color: var(--slate-900);
  color: #D1D5DB;
  padding: 2.75rem 0 2rem;
  margin-top: auto;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: #D1D5DB;
}

.site-footer a:hover {
  color: var(--teal-100);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #9CA3AF;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .featured-box,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .article-body {
    padding: 1.65rem 1.35rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 1.25rem 1.15rem;
    box-shadow: var(--shadow-md);
  }

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

  .nav-yt {
    margin-left: 0;
    margin-top: 0.35rem;
    justify-content: center;
  }

  .disclosure-bar {
    font-size: 0.76rem;
    padding: 0.45rem 0.65rem;
  }
}
