/* ============================================================
   自闭症儿童频道 · 星星的孩子 专属星空视觉
   全部使用 .as- 前缀，避免与全站青蓝品牌样式冲突
   ============================================================ */
.as-hero,
.as-block,
.as-final { box-sizing: border-box; }
.as-hero * , .as-block * , .as-final * , .as-belief * { box-sizing: border-box; }

/* ---------- HERO ---------- */
.as-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 46px;
  margin: 0 -32px;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(120, 90, 220, .35), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(40, 120, 200, .28), transparent 60%),
    linear-gradient(160deg, #0B1437 0%, #1B1457 48%, #2A1E6E 100%);
}
.as-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 20% 30%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 70% 20%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 40% 70%, #ffe9b0, transparent),
    radial-gradient(1.3px 1.3px at 85% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 45%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 12% 80%, #cfe3ff, transparent),
    radial-gradient(1.6px 1.6px at 90% 35%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 33% 12%, #fff, transparent);
  background-repeat: repeat;
  background-size: 420px 420px;
  opacity: .85;
  animation: asTwinkle 5s ease-in-out infinite alternate;
  pointer-events: none;
}
.as-stars--soft { opacity: .5; background-size: 320px 320px; animation-duration: 7s; }
@keyframes asTwinkle { from { opacity: .45; } to { opacity: .9; } }

.as-star {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 2px rgba(255, 255, 255, .8);
  animation: asBlink 3.2s ease-in-out infinite;
}
.as-star--1 { top: 18%; left: 16%; animation-delay: 0s; }
.as-star--2 { top: 30%; left: 62%; width: 4px; height: 4px; animation-delay: .8s; }
.as-star--3 { top: 64%; left: 28%; width: 5px; height: 5px; animation-delay: 1.4s; }
.as-star--4 { top: 22%; left: 84%; width: 4px; height: 4px; animation-delay: 2.1s; }
.as-star--5 { top: 72%; left: 78%; animation-delay: 1s; }
@keyframes asBlink { 0%,100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }

.as-shooting {
  position: absolute; top: 12%; right: 18%; width: 120px; height: 2px;
  background: linear-gradient(90deg, transparent, #fff);
  transform: rotate(18deg); opacity: 0;
  animation: asShoot 6s ease-in infinite;
}
@keyframes asShoot {
  0% { opacity: 0; transform: translate(0,0) rotate(18deg); }
  6% { opacity: 1; }
  14% { opacity: 0; transform: translate(-220px, 70px) rotate(18deg); }
  100% { opacity: 0; }
}

.as-hero-inner { position: relative; z-index: 2; max-width: 880px; }
.as-badge {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .5px;
  padding: 7px 16px; border-radius: 999px; color: #2A1E6E;
  background: linear-gradient(135deg, #FFE9A8, #F4C95D);
  box-shadow: 0 6px 18px rgba(244, 201, 93, .35);
}
.as-title {
  font-size: 42px; line-height: 1.16; font-weight: 800; margin: 18px 0 12px;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #FFFFFF 0%, #CFE0FF 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.as-sub { font-size: 16px; line-height: 1.75; color: rgba(255,255,255,.86); max-width: 660px; margin: 0 0 22px; }
.as-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.as-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 700;
  color: #2A1E6E; text-decoration: none;
  background: linear-gradient(135deg, #FFE9A8, #F4C95D);
  box-shadow: 0 10px 26px rgba(244, 201, 93, .35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.as-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(244, 201, 93, .45); }
.as-btn--ghost {
  color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,.55);
  box-shadow: none;
}
.as-btn--ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }

.as-hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.as-hs { display: flex; flex-direction: column; }
.as-hs b { font-size: 26px; font-weight: 800; color: #FFE9A8; line-height: 1; }
.as-hs span { font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 5px; }

/* ---------- 通用区块 ---------- */
.as-crumb { padding: 18px 0 4px; font-size: 13px; color: var(--text-3, #8a94a6); }
.as-crumb a { color: var(--text-3, #8a94a6); text-decoration: none; }
.as-crumb span { margin: 0 6px; }
.as-crumb-cur { color: var(--text-1, #1c2733); }

.as-block { padding: 28px 0; }
.as-sec-head { margin-bottom: 20px; }
.as-sec-head--sm { margin-bottom: 12px; }
.as-sec-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; color: #F4C95D; }
.as-sec-title { font-size: 23px; font-weight: 800; margin: 5px 0 6px; color: var(--text-1, #1c2733); }
.as-sec-desc { font-size: 14.5px; line-height: 1.7; color: var(--text-2, #55606e); max-width: 760px; }

.as-belief {
  margin: 6px 0 6px; padding: 22px 26px; border-radius: 16px; text-align: center;
  background: linear-gradient(135deg, rgba(27,20,87,.05), rgba(42,30,110,.05));
  border: 1px solid rgba(42,30,110,.10);
}
.as-belief-lead { font-size: 18px; font-weight: 700; color: #2A1E6E; margin: 0 0 8px; }
.as-belief-text { font-size: 14.5px; line-height: 1.8; color: var(--text-2, #55606e); margin: 0; max-width: 800px; margin: 0 auto; }

.as-note { margin-top: 18px; font-size: 14px; color: #B5651D; background: rgba(224,145,59,.1); padding: 12px 16px; border-radius: 12px; border-left: 3px solid #E0913B; }

/* ---------- 早期信号 ---------- */
.as-signals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.as-signal {
  background: rgba(255,255,255,.7); border: 1px solid rgba(42,30,110,.12);
  border-radius: 14px; padding: 16px 14px; backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(20,20,60,.05);
}
.as-signal-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.as-signal-age { font-size: 16px; font-weight: 800; color: #2A1E6E; }
.as-signal-hint { font-size: 11px; color: #fff; background: linear-gradient(135deg,#5b4bd6,#7b6cf0); padding: 3px 9px; border-radius: 999px; }
.as-signal-list { margin: 0; padding-left: 17px; }
.as-signal-list li { font-size: 13.5px; line-height: 1.65; color: var(--text-2, #55606e); margin-bottom: 6px; }

.as-block--glass {
  margin: 0 -32px; padding: 38px 32px;
  background: linear-gradient(160deg, #0B1437 0%, #1B1457 60%, #2A1E6E 100%);
  border-radius: 0;
}
.as-block--glass .as-sec-title { color: #fff; }
.as-block--glass .as-sec-kicker { color: #FFE9A8; }
.as-block--glass .as-sec-desc { color: rgba(255,255,255,.78); }

/* ---------- 干预六支柱 ---------- */
.as-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.as-pillar {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px; padding: 20px 16px; backdrop-filter: blur(8px);
  transition: transform .2s ease, border-color .2s ease;
}
.as-pillar:hover { transform: translateY(-3px); border-color: rgba(244,201,93,.6); }
.as-pillar-icon { font-size: 30px; margin-bottom: 10px; }
.as-pillar-title { font-size: 16px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.as-pillar-desc { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.78); margin: 0; }

/* ---------- 文章卡片 ---------- */
.as-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.as-article {
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: #fff; border: 1px solid rgba(20,20,60,.08);
  box-shadow: 0 5px 16px rgba(20,20,60,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.as-article:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20,20,60,.10); }
.as-article-cover { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #eef1f6; }
.as-article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.as-article:hover .as-article-cover img { transform: scale(1.04); }
.as-article-flag { position: absolute; top: 9px; left: 9px; font-size: 11px; font-weight: 700; color: #2A1E6E; background: linear-gradient(135deg,#FFE9A8,#F4C95D); padding: 3px 9px; border-radius: 999px; }
.as-article-body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.as-article-title { font-size: 15.5px; font-weight: 700; line-height: 1.45; color: var(--text-1,#1c2733); margin: 0 0 7px; }
.as-article-sum { font-size: 13px; line-height: 1.65; color: var(--text-2,#55606e); margin: 0 0 12px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.as-article-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-3,#8a94a6); }
.as-article-author { font-weight: 600; color: var(--text-2,#55606e); }

.as-empty { padding: 30px; text-align: center; color: var(--text-3,#8a94a6); background: rgba(20,20,60,.04); border-radius: 14px; }

/* ---------- 双栏：热门 + 侧栏 ---------- */
.as-block--split { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.as-hot { display: flex; flex-direction: column; gap: 8px; }
.as-hot-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid rgba(20,20,60,.07); transition: transform .15s ease; }
.as-hot-item:hover { transform: translateX(3px); border-color: rgba(42,30,110,.25); }
.as-hot-num { flex: none; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #fff; background: #c3c9d6; }
.as-hot-num--1 { background: linear-gradient(135deg,#F5576C,#E0913B); }
.as-hot-num--2 { background: linear-gradient(135deg,#7b6cf0,#5b4bd6); }
.as-hot-num--3 { background: linear-gradient(135deg,#2FA0A8,#1C7C8C); }
.as-hot-info { min-width: 0; }
.as-hot-title { font-size: 14px; font-weight: 600; color: var(--text-1,#1c2733); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.as-hot-meta { font-size: 12px; color: var(--text-3,#8a94a6); margin-top: 3px; }

.as-split-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
.as-side-card { border-radius: 14px; padding: 18px 16px; background: linear-gradient(160deg,#fff,#f5f3ff); border: 1px solid rgba(42,30,110,.14); }
.as-side-card--dark { background: linear-gradient(160deg,#1B1457,#2A1E6E); color: #fff; }
.as-side-head { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.as-side-head span { margin-right: 6px; }
.as-side-text { font-size: 13px; line-height: 1.7; color: var(--text-2,#55606e); margin: 0 0 14px; }
.as-side-card--dark .as-side-text { color: rgba(255,255,255,.82); }
.as-side-btn { display: inline-block; padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; color: #2A1E6E; background: linear-gradient(135deg,#FFE9A8,#F4C95D); }
.as-side-btn--ghost { color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,.5); }

/* ---------- FAQ ---------- */
.as-faq { display: flex; flex-direction: column; gap: 10px; }
.as-faq-item { border: 1px solid rgba(20,20,60,.1); border-radius: 12px; background: #fff; overflow: hidden; }
.as-faq-q { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 14px 18px; font-size: 15px; font-weight: 700; color: var(--text-1,#1c2733); list-style: none; }
.as-faq-q::-webkit-details-marker { display: none; }
.as-faq-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #2A1E6E; background: rgba(42,30,110,.08); transition: transform .2s ease; }
.as-faq-item[open] .as-faq-mark { transform: rotate(45deg); background: linear-gradient(135deg,#FFE9A8,#F4C95D); }
.as-faq-a { padding: 0 18px 16px; font-size: 14px; line-height: 1.8; color: var(--text-2,#55606e); }

/* ---------- 终极 CTA ---------- */
.as-final {
  position: relative; overflow: hidden; margin: 16px -32px 0; padding: 46px 28px;
  border-radius: 0;
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(120,90,220,.35), transparent 60%),
    linear-gradient(160deg, #0B1437 0%, #1B1457 55%, #2A1E6E 100%);
  text-align: center; color: #fff;
}
.as-final-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.as-final-title { font-size: 26px; font-weight: 800; margin: 0 0 12px;
  background: linear-gradient(180deg,#fff,#CFE0FF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.as-final-text { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.85); margin: 0 0 24px; }
.as-final .as-cta { justify-content: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .as-signals { grid-template-columns: repeat(2, 1fr); }
  .as-pillars { grid-template-columns: repeat(2, 1fr); }
  .as-articles { grid-template-columns: repeat(2, 1fr); }
  .as-block--split { grid-template-columns: 1fr; }
  .as-split-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .as-split-side .as-side-card { flex: 1; min-width: 240px; }
}
@media (max-width: 640px) {
  .as-hero { padding: 46px 0 38px; margin-left: -20px; margin-right: -20px; }
  .as-title { font-size: 30px; }
  .as-sub { font-size: 15px; }
  .as-hero-stats { gap: 20px; margin-top: 24px; }
  .as-hs b { font-size: 22px; }
  .as-signals, .as-pillars, .as-articles { grid-template-columns: 1fr; }
  .as-sec-title { font-size: 20px; }
  .as-block--glass, .as-final { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .as-selfcheck { margin-left: -20px; margin-right: -20px; padding: 20px; border-radius: 16px; }
  .as-belief { padding: 18px 20px; }
  .as-belief-lead { font-size: 16px; }
}

/* ---------- 吸顶子导航 ---------- */
.as-subnav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11,20,55,.9);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid rgba(120,90,220,.3);
  margin: 0 -32px 10px; padding: 0 32px;
}
.as-subnav-inner { display: flex; gap: 5px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 8px 0; }
.as-subnav-inner a {
  flex: 0 0 auto; padding: 6px 11px; border-radius: 999px;
  font-size: 13px; color: #cfe0ff; text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(207,224,255,.2); transition: all .2s;
}
.as-subnav-inner a:hover { background: rgba(120,90,220,.25); color: #fff; }

/* ---------- 揭示动画（js 守卫） ---------- */
.js .as-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .as-reveal.is-in { opacity: 1; transform: none; }

/* ---------- 早期信号自筛小测试 ---------- */
.as-selfcheck {
  background: linear-gradient(160deg, #0B1437 0%, #1B1457 60%, #2A1E6E 100%);
  border: 1px solid rgba(120,90,220,.25); border-radius: 20px;
  padding: 26px; margin: 0 -32px;
}
.as-selfcheck .as-sec-title { color: #fff; }
.as-selfcheck .as-sec-desc { color: rgba(255,255,255,.78); }
.as-check-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 6px 0 18px; }
.as-check {
  display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); cursor: pointer; transition: all .2s;
}
.as-check:hover { background: rgba(255,255,255,.13); border-color: rgba(120,90,220,.5); }
.as-check input { width: 17px; height: 17px; margin-top: 2px; accent-color: #8a6cff; flex: 0 0 auto; }
.as-check span { color: rgba(255,255,255,.92); font-size: 13.5px; line-height: 1.5; }
.as-check-btn {
  display: inline-block; padding: 11px 24px; border: 0; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(135deg,#6a4cff,#9a7bff); box-shadow: 0 8px 22px rgba(106,76,255,.35); transition: transform .2s;
}
.as-check-btn:hover { transform: translateY(-2px); }
.as-check-btn--solid { background: linear-gradient(135deg,#1C7C8C,#2BA890); box-shadow: 0 8px 22px rgba(28,124,140,.3); }
.as-check-result { margin-top: 18px; padding: 18px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.as-check-level { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.as-check-level--observe { color: #7fe3c0; }
.as-check-level--note { color: #ffd27f; }
.as-check-level--watch { color: #ffb37f; }
.as-check-level--soon { color: #ff8f8f; }
.as-check-tip { font-size: 13.5px; line-height: 1.8; color: rgba(255,255,255,.9); margin: 0 0 12px; }
.as-check-disclaimer { font-size: 12.5px; color: rgba(255,255,255,.6); margin: 0 0 14px; }
.as-check-cta { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 640px) {
  .as-subnav { margin: 0 -20px; padding: 0 20px; }
  .as-check-grid { grid-template-columns: 1fr; }
}
