/* 远舰科技 · Polestar 官网 */
:root {
  --bg-deep: #050a12;
  --bg-card: rgba(12, 22, 38, 0.72);
  --stroke: rgba(120, 180, 255, 0.12);
  --text: #e8eef8;
  --muted: rgba(200, 214, 235, 0.62);
  --accent: #5eb4ff;
  --accent-dim: #3d8fd9;
  --glow: rgba(94, 180, 255, 0.35);
  --radius: 14px;
  --font: "Noto Sans SC", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #8ecfff;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(40, 100, 180, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(30, 80, 140, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(20, 60, 120, 0.15), transparent),
    var(--bg-deep);
}

.bg-stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 40% 85%, rgba(255, 255, 255, 0.3), transparent);
  background-size: 100% 100%;
  opacity: 0.45;
  pointer-events: none;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  backdrop-filter: blur(14px);
  background: rgba(5, 10, 18, 0.72);
  border-bottom: 1px solid var(--stroke);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #1a3a5c, #0d1f33);
  border: 1px solid var(--stroke);
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px var(--glow);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(165deg, var(--accent), var(--accent-dim));
  color: #041018;
  box-shadow: 0 4px 28px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 36px rgba(94, 180, 255, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
}

.btn-ghost:hover {
  border-color: rgba(94, 180, 255, 0.35);
  background: rgba(94, 180, 255, 0.06);
}

/* Hero */
.hero {
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav {
    display: none;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-meta strong {
  color: rgba(220, 230, 245, 0.85);
  font-weight: 600;
}

/* Device mock */
.mock {
  position: relative;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(160deg, rgba(94, 180, 255, 0.35), rgba(40, 80, 120, 0.15));
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mock-inner {
  border-radius: 16px;
  background: linear-gradient(180deg, #0c1828 0%, #081018 100%);
  border: 1px solid var(--stroke);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--stroke);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3d4f66;
}

.mock-dot:nth-child(1) {
  background: #ff5f57;
}

.mock-dot:nth-child(2) {
  background: #febc2e;
}

.mock-dot:nth-child(3) {
  background: #28c840;
}

.mock-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.mock-body {
  padding: 20px;
  min-height: 280px;
}

.mock-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.bubble.user {
  align-self: flex-end;
  background: rgba(94, 180, 255, 0.18);
  border: 1px solid rgba(94, 180, 255, 0.2);
}

.bubble.ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  color: rgba(230, 238, 250, 0.92);
}

.mock-input {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--stroke);
  font-size: 0.82rem;
  color: var(--muted);
}

/* Sections */
section {
  padding: 64px 0;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 42em;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  border-color: rgba(94, 180, 255, 0.25);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(94, 180, 255, 0.1);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  font-weight: 700;
}

.feature p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* CTA band */
.cta-band {
  margin: 32px 0 0;
  padding: 48px 40px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(20, 50, 90, 0.5), rgba(8, 16, 28, 0.9));
  border: 1px solid var(--stroke);
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.cta-band p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--stroke);
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-beian {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-beian a {
  color: rgba(200, 214, 235, 0.55);
}

.footer-beian a:hover {
  color: var(--muted);
}
