/* 国竣美好生活官网 — 科技感主题 */
:root {
  --bg-deep: #020617;
  --bg-mid: #0f172a;
  --surface: rgba(15, 23, 42, 0.65);
  --surface-border: rgba(56, 189, 248, 0.22);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.15);
  --accent2: #818cf8;
  --glow: 0 0 60px rgba(34, 211, 238, 0.25);
  --radius: 16px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.65;
  min-height: 100vh;
}

/* 背景网格 + 光晕 */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 30%, rgba(129, 140, 248, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(34, 211, 238, 0.08), transparent 45%),
    var(--bg-deep);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: #67e8f9;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(2, 6, 23, 0.78);
  border-bottom: 1px solid var(--surface-border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 0 0 1px var(--surface-border), var(--glow);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.nav-main a {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-main a:hover {
  color: var(--accent);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0891b2, #6366f1);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(34, 211, 238, 0.35);
}

.btn-nav:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 20px;
    background: rgba(2, 6, 23, 0.96);
    border-bottom: 1px solid var(--surface-border);
  }

  #nav-open:checked ~ .nav-main {
    display: flex;
  }
}

/* 首屏：左文案 + 右手机框轮播 */
.hero-first {
  padding: 36px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-copy .hero-badge {
  margin-bottom: 4px;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  text-align: left;
  background: linear-gradient(120deg, #f8fafc 0%, #22d3ee 42%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .hero-lead {
  max-width: 520px;
  margin: 0 0 28px;
  text-align: left;
}

.hero-copy .hero-actions {
  justify-content: flex-start;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .phone-col {
    order: -1;
    margin-bottom: 8px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-copy h1,
  .hero-copy .hero-lead {
    text-align: center;
  }

  .hero-copy .hero-actions {
    justify-content: center;
  }

  .hero-copy .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
}

/* 手机外框 */
.phone-col {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}

.phone-shell {
  position: relative;
  width: 100%;
  max-width: 308px;
  padding: 16px 14px 20px;
  border-radius: 44px;
  background: linear-gradient(160deg, rgba(51, 65, 85, 0.95) 0%, rgba(15, 23, 42, 0.98) 45%, #020617 100%);
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.18),
    0 4px 6px rgba(0, 0, 0, 0.25),
    0 32px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.phone-notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #020617;
  border-radius: 0 0 20px 20px;
  z-index: 4;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.phone-btn {
  position: absolute;
  z-index: 2;
  border-radius: 3px;
  background: linear-gradient(180deg, #475569, #1e293b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.phone-btn--power {
  right: -4px;
  top: 118px;
  width: 5px;
  height: 52px;
}

.phone-btn--vol {
  left: -4px;
  top: 100px;
  width: 5px;
  height: 72px;
}

.phone-screen {
  position: relative;
  margin-top: 10px;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 9 / 19.2;
  background: #020617;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0 4px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, width 0.25s;
}

.carousel-dot:hover {
  background: rgba(34, 211, 238, 0.55);
}

.carousel-dot.is-active {
  width: 22px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid var(--surface-border);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4, #4f46e5);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--glow);
}

.btn-primary:hover {
  filter: brightness(1.06);
  color: #fff !important;
}

.btn-ghost {
  padding: 14px 24px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text) !important;
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

/* Section 通用 */
section {
  padding: 56px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* 卡片网格 */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(12px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(129, 140, 248, 0.2));
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* 应用介绍双栏 */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.panel {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.panel h3 {
  margin-top: 0;
  color: var(--accent);
}

.panel ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.panel li {
  margin-bottom: 8px;
}

/* 下载区 */
.download-zone {
  text-align: center;
  padding: 48px 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 27, 75, 0.5));
  border: 1px solid var(--surface-border);
  position: relative;
  overflow: hidden;
}

.download-zone::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 60%);
  pointer-events: none;
}

.download-zone .inner-z {
  position: relative;
  z-index: 1;
}

.download-zone h2 {
  margin: 0 0 12px;
}

.download-zone .apk-link {
  display: inline-block;
  margin-top: 16px;
  word-break: break-all;
  font-size: 0.85rem;
  color: var(--muted);
}

/* 联系与备案 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.contact-item {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  background: rgba(15, 23, 42, 0.5);
}

.contact-item strong {
  display: block;
  color: var(--accent);
  margin-bottom: 8px;
}

/* 备案信息卡片 */
.beian-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.beian-card {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(12px);
}

.beian-card__title {
  margin: 0 0 18px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.beian-dl {
  margin: 0;
}

.beian-dl__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.beian-dl__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.beian-dl dt {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.beian-dl dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
  word-break: break-word;
}

.beian-dl__muted {
  color: var(--muted) !important;
}

@media (max-width: 520px) {
  .beian-dl__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* 页脚 */
.site-footer {
  margin-top: 40px;
  padding: 40px 0 28px;
  border-top: 1px solid var(--surface-border);
  background: rgba(2, 6, 23, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-brand--with-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(15, 23, 42, 0.5);
  box-shadow: 0 0 0 1px var(--surface-border);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* 法律文档页 */
.doc-page {
  padding: 40px 0 80px;
}

.doc-page article {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.doc-page h1 {
  margin-top: 0;
  font-size: 1.75rem;
}

.doc-page h2 {
  margin-top: 28px;
  font-size: 1.15rem;
  color: var(--accent);
}

.doc-page p,
.doc-page li {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.doc-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 600;
}
