/* 《星河》官网 - 公共样式 */
:root {
  --bg-deep: #070b18;
  --bg-mid: #0d1528;
  --bg-card: #121c33;
  --accent: #6ec8ff;
  --accent-soft: #9ad8ff;
  --accent-warm: #ffd27a;
  --nebula: #3d6ea8;
  --text-primary: #eef4ff;
  --text-muted: #9aacc8;
  --border-card: rgba(110, 200, 255, 0.22);
  --glow: rgba(110, 200, 255, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61, 110, 168, 0.35), transparent 55%),
    radial-gradient(ellipse 40% 30% at 85% 20%, rgba(110, 200, 255, 0.08), transparent 50%),
    radial-gradient(ellipse 35% 25% at 10% 60%, rgba(255, 210, 122, 0.05), transparent 45%);
  background-attachment: fixed;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* 顶部导航 */
.site-header {
  background: rgba(13, 21, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.logo {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-shadow: 0 0 18px var(--glow);
}
.logo:hover { color: var(--accent-soft); }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}
.nav a:hover,
.nav a.active { color: var(--accent); }
.nav a.active { font-weight: 600; }

/* 页面主标题区 */
.page-hero {
  padding: 2.5rem 0 2.75rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(18, 28, 51, 0.9) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-card);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 30%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 40% 18%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.5px 1.5px at 72% 40%, rgba(255,255,255,0.65), transparent),
    radial-gradient(1px 1px at 88% 22%, rgba(255,255,255,0.5), transparent);
  pointer-events: none;
  animation: twinkle 4s ease-in-out infinite alternate;
}
.page-hero h1 {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
  position: relative;
}
.page-hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
}

/* 通用区块 */
section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-card);
}
section:last-of-type { border-bottom: none; }
h2 {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: 1.45rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}
.intro-text {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.intro-text.center { text-align: center; }
.intro-text strong { color: var(--accent-soft); font-weight: 600; }

/* 首页 Hero */
.home-hero {
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-card);
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(61, 110, 168, 0.45), transparent 65%),
    radial-gradient(ellipse 50% 40% at 70% 70%, rgba(110, 200, 255, 0.12), transparent 55%),
    linear-gradient(180deg, #0a1224 0%, var(--bg-deep) 100%);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 20%, #fff, transparent),
    radial-gradient(1px 1px at 22% 55%, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 35% 15%, #fff, transparent),
    radial-gradient(1px 1px at 48% 70%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 62% 28%, #fff, transparent),
    radial-gradient(1px 1px at 75% 60%, rgba(255,255,255,0.75), transparent),
    radial-gradient(2px 2px at 88% 18%, #fff, transparent),
    radial-gradient(1px 1px at 92% 75%, rgba(255,255,255,0.65), transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
  pointer-events: none;
}
.home-hero .nebula {
  position: absolute;
  width: 120%;
  height: 60%;
  left: -10%;
  bottom: -15%;
  background: linear-gradient(105deg, transparent 10%, rgba(61, 110, 168, 0.25) 40%, rgba(110, 200, 255, 0.15) 55%, transparent 80%);
  filter: blur(40px);
  animation: nebula-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.home-hero .container {
  position: relative;
  z-index: 1;
}
.home-hero .brand {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 40px var(--glow), 0 0 80px rgba(61, 110, 168, 0.5);
  animation: fade-up 0.9s ease-out both;
}
.home-hero h1 {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: var(--accent-soft);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  animation: fade-up 0.9s ease-out 0.12s both;
}
.home-hero .tagline {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 32em;
  margin: 0 auto 1.75rem;
  animation: fade-up 0.9s ease-out 0.22s both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  animation: fade-up 0.9s ease-out 0.32s both;
}
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #5ab8f5, #3d8fd4);
  color: #fff;
  box-shadow: 0 0 24px rgba(110, 200, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(110, 200, 255, 0.5);
}
.btn-ghost {
  border: 1px solid var(--border-card);
  color: var(--accent-soft);
  background: rgba(18, 28, 51, 0.5);
}
.btn-ghost:hover {
  background: rgba(110, 200, 255, 0.1);
  transform: translateY(-2px);
}

/* 卡片与网格 */
.rules-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.rule-card,
.card {
  background: linear-gradient(160deg, rgba(18, 28, 51, 0.95), rgba(13, 21, 40, 0.9));
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1.35rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.rule-card:hover,
.card:hover {
  border-color: rgba(110, 200, 255, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 0 20px rgba(110, 200, 255, 0.08);
  transform: translateY(-3px);
}
.rule-card h3,
.card h3 {
  font-size: 1.05rem;
  color: var(--accent-warm);
  margin-bottom: 0.55rem;
  font-weight: 600;
}
.rule-card p,
.card p { color: var(--text-muted); font-size: 0.95rem; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: rgba(110, 200, 255, 0.12);
  border: 1px solid var(--border-card);
  color: var(--accent);
  font-size: 1.15rem;
}

.element-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
}
.element-chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(110, 200, 255, 0.1);
  border: 1px solid var(--border-card);
  color: var(--accent-soft);
  font-size: 0.9rem;
}

.diagram-wrap {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border-card);
  overflow-x: auto;
}
.diagram-wrap .diagram-img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* 竖屏截图展示 */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.shot-card {
  text-align: center;
}
.shot-frame {
  display: block;
  background: linear-gradient(160deg, rgba(18, 28, 51, 0.95), rgba(13, 21, 40, 0.9));
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 0.65rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 24px rgba(110, 200, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.shot-frame:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 200, 255, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 28px rgba(110, 200, 255, 0.15);
}
.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}
.shot-card h3 {
  margin-top: 0.9rem;
  font-size: 1.05rem;
  color: var(--accent-warm);
  font-weight: 600;
}
.shot-card p {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.shot-flow {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.shot-row {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 1.75rem;
  align-items: center;
}
.shot-row.reverse {
  grid-template-columns: 1fr minmax(200px, 280px);
}
.shot-row.reverse .shot-copy { order: -1; }
.shot-copy h3 {
  font-size: 1.2rem;
  color: var(--accent-warm);
  margin-bottom: 0.5rem;
}
.shot-copy .shot-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(110, 200, 255, 0.12);
  border: 1px solid var(--border-card);
}
.shot-copy p {
  color: var(--text-muted);
  font-size: 0.98rem;
}
.shot-preview-cta {
  text-align: center;
  margin-top: 1.75rem;
}

@media (max-width: 900px) {
  .shot-grid { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
  .shot-row,
  .shot-row.reverse {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .shot-row.reverse .shot-copy { order: 0; }
}

.steps {
  max-width: 720px;
  margin: 0 auto;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 1rem 0 1rem 3.25rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-card);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(110, 200, 255, 0.15);
  border: 1px solid var(--border-card);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.props-list {
  max-width: 760px;
  margin: 0 auto;
}
.prop-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-card);
  align-items: baseline;
}
.prop-item:last-child { border-bottom: none; }
.prop-name {
  color: var(--accent-warm);
  font-weight: 600;
  white-space: nowrap;
}
.prop-cond {
  color: var(--accent);
  font-size: 0.85rem;
  grid-column: 1 / -1;
}
.prop-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  grid-column: 1 / -1;
}

/* 页脚 */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-card);
  background: rgba(7, 11, 24, 0.6);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.contact-list {
  max-width: 480px;
  margin: 1.5rem auto 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
}
.contact-list p {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
}
.contact-list p:last-child { margin-bottom: 0; }
.contact-list a {
  color: var(--accent);
  text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }

@keyframes twinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}
@keyframes nebula-drift {
  from { transform: translateX(-2%) translateY(0); }
  to { transform: translateX(2%) translateY(-3%); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .site-header .container { flex-direction: column; gap: 0.75rem; }
  .nav { justify-content: center; }
  .home-hero { min-height: min(70vh, 520px); }
  .prop-item { grid-template-columns: 1fr; }
}
