/* ============================================================
   白鸽软件库 · 全局样式
   主题：暗夜星空 / 玻璃拟态
   ============================================================ */

:root {
  --bg-deep: #050816;
  --bg-mid: #0b1030;
  --text-main: #e8ecff;
  --text-dim: #9aa3c7;
  --text-faint: #6b749b;
  --accent: #7fb4ff;
  --accent-soft: rgba(127, 180, 255, 0.18);
  --card-bg: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --nav-bg: rgba(8, 12, 34, 0.72);
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font-main: "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
    "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background: linear-gradient(160deg, var(--bg-mid) 0%, var(--bg-deep) 55%, #03040f 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ---------------- 星空画布（背景层） ---------------- */
#stars-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;          /* 永远垫底，不遮挡内容 */
  pointer-events: none; /* 不拦截鼠标事件 */
}

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav-logo .logo-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  filter: drop-shadow(0 0 6px rgba(127, 180, 255, 0.55));
}

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

.nav-links a {
  display: block;
  padding: 8px 18px;
  border-radius: 10px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: #fff;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(127, 180, 255, 0.35);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 20px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}

/* ---------------- 主体容器 ---------------- */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-title {
  text-align: center;
  margin-bottom: 40px;
}

.page-title h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(120deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-title p {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 16px;
}

/* ---------------- 玻璃卡片 ---------------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 28px;
}

/* ---------------- 主页 Hero ---------------- */
.hero {
  text-align: center;
  padding: 72px 24px 56px;
}

.hero .hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(127, 180, 255, 0.3);
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.3;
  background: linear-gradient(120deg, #ffffff 20%, #a8caff 60%, #6ea8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--text-dim);
  font-size: 17px;
}

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #04102a;
  background: linear-gradient(135deg, #a8caff, #6ea8ff);
  box-shadow: 0 8px 24px rgba(110, 168, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px rgba(110, 168, 255, 0.5);
}

.btn-ghost {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------------- 区块 ---------------- */
.section {
  margin-top: 56px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-head h2::before {
  content: "◆ ";
  color: var(--accent);
  font-size: 14px;
}

.section-head .more {
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
}

.section-head .more:hover {
  color: var(--accent);
}

/* 介绍文本块 */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.intro-text p {
  color: var(--text-dim);
  margin-bottom: 14px;
}

.intro-text p strong {
  color: var(--text-main);
}

/* 特色 4 宫格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-item {
  text-align: center;
  padding: 26px 18px;
}

.feature-item .feat-icon {
  font-size: 30px;
}

.feature-item h3 {
  margin: 12px 0 8px;
  font-size: 16px;
}

.feature-item p {
  color: var(--text-dim);
  font-size: 13.5px;
}

/* 产品占位网格 */
.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.placeholder-card {
  text-align: center;
  padding: 40px 20px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

.placeholder-card .ph-icon {
  font-size: 34px;
  opacity: 0.55;
}

.placeholder-card p {
  color: var(--text-faint);
  font-size: 14px;
}

.placeholder-card .tag {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 12px;
}

/* 通知条（占位说明） */
.notice {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
  padding: 14px 20px;
  color: var(--text-dim);
  font-size: 14.5px;
}

.notice strong {
  color: var(--accent);
}

/* ---------------- 关于页 ---------------- */
.about-hero {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 36px 32px;
}

.about-avatar {
  flex-shrink: 0;
  width: 128px;
  height: 128px;
  object-fit: cover;
}

.about-meta h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2px;
}

.about-meta .role {
  color: var(--accent);
  font-size: 15px;
  margin: 4px 0 10px;
}

.about-meta .brief {
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 520px;
}

.about-para {
  margin-top: 24px;
  color: var(--text-dim);
}

.about-para p {
  margin-bottom: 14px;
}

.about-para p strong {
  color: var(--text-main);
}

/* 技术栈徽章 */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tag-chip {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: #cfe3ff;
  background: rgba(127, 180, 255, 0.12);
  border: 1px solid rgba(127, 180, 255, 0.28);
}

/* 时间线 */
.timeline {
  position: relative;
  margin-top: 22px;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 11px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.timeline li {
  position: relative;
  list-style: none;
  margin-bottom: 18px;
  color: var(--text-dim);
  font-size: 14.5px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.timeline .tl-year {
  display: inline-block;
  font-weight: 700;
  color: var(--text-main);
  margin-right: 10px;
  font-size: 15px;
}

/* 联系卡片 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contact-item {
  text-align: center;
  padding: 24px 16px;
}

.contact-item .ct-icon {
  font-size: 26px;
}

.contact-item h4 {
  margin: 10px 0 4px;
  font-size: 15px;
}

.contact-item p,
.contact-item a {
  color: var(--text-dim);
  font-size: 13.5px;
  text-decoration: none;
  word-break: break-all;
}

.contact-item a:hover {
  color: var(--accent);
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 26px 24px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13.5px;
  background: rgba(4, 6, 16, 0.5);
}

.site-footer .footer-icon {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  object-fit: cover;
  vertical-align: -2px;
  margin-right: 4px;
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
}

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

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid  { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .placeholder-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav { height: auto; padding: 12px 18px; flex-wrap: wrap; gap: 8px; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 0 10px;
  }

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

  .nav-links a { text-align: center; }

  .hero { padding: 48px 18px 40px; }

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

  .about-hero { flex-direction: column; text-align: center; }
}