/* ============================================
   深空天体观测与天文望远镜发烧友社区 - 核心样式
   配色方案：宇宙深渊黑 + 星云玫瑰红
   ============================================ */

/* CSS变量定义 */
:root {
  --nebula-rose: #E84080;
  --stellar-blue: #4169E1;
  --void-black: #050508;
  --dark-starfield: #0F0F1A;
  --starlight-text: #E8E0F0;
  --nebula-rose-dim: rgba(232, 64, 128, 0.15);
  --stellar-blue-dim: rgba(65, 105, 225, 0.12);
  --glow-rose: rgba(232, 64, 128, 0.6);
  --glow-blue: rgba(65, 105, 225, 0.5);
  --card-border: rgba(232, 64, 128, 0.2);
  --text-secondary: #A8A0B8;
  --text-dim: #706880;
  --font-primary: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-heading: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(232, 64, 128, 0.3);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width: 1280px;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--void-black);
  color: var(--starlight-text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 星空背景动画 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 20% 50%, rgba(65, 105, 225, 0.03) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(232, 64, 128, 0.02) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
  animation: cosmicRotate 120s linear infinite;
}

@keyframes cosmicRotate {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(360deg) scale(1); }
}

/* 链接样式 */
a {
  color: var(--nebula-rose);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--stellar-blue);
  text-shadow: 0 0 8px var(--glow-blue);
}

/* 图片默认 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 容器 */
.cbc817b08 {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============ 导航栏 ============ */
.cb85a242e {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  transition: var(--transition-smooth);
}

.cb85a242e.scrolled {
  background: rgba(5, 5, 8, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.c278c622d {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.c72855a4e {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--starlight-text);
  letter-spacing: 1px;
}

.c72855a4e span {
  color: var(--nebula-rose);
}

.cdea0a718 {
  display: flex;
  list-style: none;
  gap: 32px;
}

.cdea0a718 a {
  color: var(--starlight-text);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.cdea0a718 a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--nebula-rose);
  transition: width 0.3s ease;
}

.cdea0a718 a:hover::after,
.cdea0a718 a.cf76f9941::after {
  width: 100%;
}

.ce8927045 {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.ce8927045 span {
  width: 24px;
  height: 2px;
  background: var(--starlight-text);
  transition: var(--transition-smooth);
}

/* ============ Hero区 ============ */
.c8e1e3dc3 {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.c6f361f27 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: telescopeFocus 3s ease-out forwards, heroZoom 30s ease-in-out infinite alternate;
  filter: blur(8px);
}

@keyframes telescopeFocus {
  from { filter: blur(8px); transform: scale(1.1); }
  to { filter: blur(0); transform: scale(1); }
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.c4e035708 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(5, 5, 8, 0.3) 0%, rgba(5, 5, 8, 0.8) 100%);
}

.cd1f06808 {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.cd1f06808 h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow: 0 0 40px rgba(232, 64, 128, 0.4);
}

.cd1f06808 p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
}

.c8f12903d {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--nebula-rose), #c0306a);
  color: #fff;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(232, 64, 128, 0.4);
  transition: var(--transition-smooth);
  animation: btnPulse 3s ease-in-out infinite;
}

.c8f12903d:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(232, 64, 128, 0.6);
  color: #fff;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(232, 64, 128, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(232, 64, 128, 0.7); }
}

/* ============ 通用Section ============ */
.c378ecae7 {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.c35253301 {
  text-align: center;
  margin-bottom: 56px;
}

.c35253301 h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--starlight-text), var(--nebula-rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.c35253301 p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ 卡片网格 ============ */
.c717a4b5f {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.c9ced43b7 {
  background: var(--dark-starfield);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
}

.c9ced43b7::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--nebula-rose-dim), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.c9ced43b7:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: var(--nebula-rose);
}

.c9ced43b7:hover::before {
  opacity: 1;
}

.c4aea7a9f {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.c4aea7a9f img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: blur(2px);
}

.c4aea7a9f img.loaded {
  filter: blur(0);
}

.c9ced43b7:hover .c4aea7a9f img {
  transform: scale(1.08);
}

.c91c17da3 {
  padding: 24px;
  position: relative;
  z-index: 2;
}

.c91c17da3 h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--starlight-text);
}

.c91c17da3 p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.c41f862cd {
  display: inline-block;
  padding: 4px 12px;
  background: var(--nebula-rose-dim);
  color: var(--nebula-rose);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.cbc1c32b4 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nebula-rose);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 12px;
}

.cbc1c32b4:hover {
  gap: 10px;
}

/* ============ 望远镜推荐表格 ============ */
.c72306a76 {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--dark-starfield);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.c72306a76 th,
.c72306a76 td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(232, 64, 128, 0.1);
}

.c72306a76 th {
  background: rgba(232, 64, 128, 0.1);
  color: var(--nebula-rose);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.c72306a76 td {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.c72306a76 tr:hover td {
  background: rgba(65, 105, 225, 0.05);
}

/* ============ 天象日历 ============ */
.c42896b3f {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.cd553c652 {
  background: var(--dark-starfield);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.cd553c652::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--nebula-rose);
}

.cd553c652:hover {
  border-color: var(--stellar-blue);
  box-shadow: 0 0 20px rgba(65, 105, 225, 0.2);
}

.ceea628a3 {
  font-size: 0.8rem;
  color: var(--nebula-rose);
  font-weight: 600;
  margin-bottom: 8px;
}

.c9f2ef3f0 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.c3bfd3e7a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============ 暗夜公园地图区 ============ */
.c29db0182 {
  background: linear-gradient(180deg, var(--void-black), var(--dark-starfield));
}

.cb6e9bc53 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.c53bd3f7f {
  background: var(--dark-starfield);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-smooth);
}

.c53bd3f7f:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.c472b7007 {
  display: inline-block;
  padding: 4px 10px;
  background: var(--stellar-blue);
  color: #fff;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ============ 视差效果 ============ */
.c825cb2e5 {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.cd0002a83 {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  opacity: 0.4;
  will-change: transform;
}

.c9220339e {
  position: relative;
  z-index: 2;
}

/* ============ 星体光晕脉动 ============ */
.star-glow {
  position: relative;
  display: inline-block;
}

.star-glow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-rose) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: starPulse 2s ease-in-out infinite;
}

.star-glow:hover::after {
  opacity: 1;
}

@keyframes starPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

/* ============ 面包屑 ============ */
.c5b5eadfa {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.c5b5eadfa a {
  color: var(--text-secondary);
}

.c5b5eadfa a:hover {
  color: var(--nebula-rose);
}

.c5b5eadfa span {
  margin: 0 8px;
  color: var(--text-dim);
}

/* ============ 页脚 ============ */
.ce029e5b9 {
  background: var(--dark-starfield);
  border-top: 1px solid var(--card-border);
  padding: 60px 0 30px;
  margin-top: 80px;
}

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

.cd5aa39bb h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--starlight-text);
}

.cd5aa39bb ul {
  list-style: none;
}

.cd5aa39bb ul li {
  margin-bottom: 10px;
}

.cd5aa39bb ul li a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.cd5aa39bb ul li a:hover {
  color: var(--nebula-rose);
}

.c57b4d40b {
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.c57b4d40b a {
  color: var(--text-secondary);
  margin: 0 8px;
}

/* ============ 内页通用 ============ */
.c9d23e704 {
  padding: 120px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 15, 26, 0.9), var(--void-black));
  position: relative;
}

.c9d23e704 h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.c9d23e704 p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.c8d28b9bc {
  padding: 60px 0;
}

.c8d28b9bc h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--starlight-text);
}

.c8d28b9bc h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--nebula-rose);
}

.c8d28b9bc p {
  margin-bottom: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
}

.c8d28b9bc ul, .c8d28b9bc ol {
  margin: 16px 0;
  padding-left: 24px;
}

.c8d28b9bc li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============ FAQ手风琴 ============ */
.cb8a027fe {
  margin: 48px 0;
}

.c6e2bbf76 {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.cc950df18 {
  padding: 18px 24px;
  background: var(--dark-starfield);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.cc950df18:hover {
  background: rgba(232, 64, 128, 0.05);
}

.cc950df18::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--nebula-rose);
  transition: transform 0.3s ease;
}

.c6e2bbf76.cf76f9941 .cc950df18::after {
  transform: rotate(45deg);
}

.cb8b037c4 {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-secondary);
  line-height: 1.8;
}

.c6e2bbf76.cf76f9941 .cb8b037c4 {
  padding: 18px 24px;
  max-height: 500px;
}

/* ============ 搜索页 ============ */
.search-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0;
}

.search-input-wrap {
  position: relative;
  margin-bottom: 32px;
}

.search-input-wrap input {
  width: 100%;
  padding: 16px 24px;
  padding-right: 56px;
  background: var(--dark-starfield);
  border: 2px solid var(--card-border);
  border-radius: 50px;
  color: var(--starlight-text);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input-wrap input:focus {
  border-color: var(--nebula-rose);
  box-shadow: 0 0 20px rgba(232, 64, 128, 0.2);
}

.search-input-wrap button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--nebula-rose);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.search-results .result-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--card-border);
}

.result-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.result-item h3 a {
  color: var(--stellar-blue);
}

.result-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============ 404页面 ============ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.error-code {
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--nebula-rose), var(--stellar-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

/* ============ 响应式断点 ============ */
@media (max-width: 1024px) {
  .c717a4b5f {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cdea0a718 {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 8, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
  }

  .cdea0a718.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .ce8927045 {
    display: flex;
  }

  .c717a4b5f {
    grid-template-columns: 1fr;
  }

  .c42896b3f {
    grid-template-columns: 1fr;
  }

  .c8328e557 {
    grid-template-columns: repeat(2, 1fr);
  }

  .c378ecae7 {
    padding: 48px 0;
  }

  .c72306a76 {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .c8328e557 {
    grid-template-columns: 1fr;
  }

  .c278c622d {
    height: 56px;
  }

  .c8e1e3dc3 {
    min-height: 500px;
  }
}

/* ============ 加载动画 ============ */
.cfa545a60 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cfa545a60.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 图片对焦加载效果 ============ */
img[loading="lazy"] {
  filter: blur(4px);
  transition: filter 0.6s ease;
}

img[loading="lazy"].loaded {
  filter: blur(0);
}

/* ============ 滚动条美化 ============ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--void-black);
}

::-webkit-scrollbar-thumb {
  background: var(--nebula-rose);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c0306a;
}

/* ============ 选中文本 ============ */
::selection {
  background: var(--nebula-rose);
  color: #fff;
}

/* ============ 打印优化 ============ */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .cb85a242e, .ce029e5b9, .c8f12903d {
    display: none;
  }
}
