/* 小蓝视频 - 共享样式 */
:root {
  --bg-deep: #0a0f1d;
  --bg-card: #111827;
  --bg-elevated: #151d2e;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #2563eb;
  --accent-bright: #3b82f6;
  --cyan: #22d3ee;
  --border: rgba(148, 163, 184, 0.15);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-bright), var(--cyan));
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.45);
}

.logo-icon svg {
  margin-left: 2px;
}

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

.nav-main a {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--text);
  border-bottom-color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 200px;
}

.search-wrap input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
  width: 100%;
}

.search-wrap input::placeholder {
  color: var(--text-muted);
}

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

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.5);
}

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

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .nav-main {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 15, 29, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav-main.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-main a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .search-wrap {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-bg-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 15, 29, 0.88) 0%, rgba(10, 15, 29, 0.66) 45%, rgba(10, 15, 29, 0.78) 100%);
}

.hero-bg-slide.is-active {
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 80%;
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.2), transparent 55%);
  pointer-events: none;
}

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

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

  .hero-actions,
  .hero-tags {
    justify-content: center;
  }
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
}

.gradient-text {
  background: linear-gradient(90deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 0 28px;
}

@media (max-width: 900px) {
  .hero-lead {
    margin-inline: auto;
  }
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.pedestal {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(34, 211, 238, 0.25), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.4), transparent 55%);
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 0 80px rgba(37, 99, 235, 0.3), inset 0 0 60px rgba(34, 211, 238, 0.08);
  display: grid;
  place-items: center;
}

.play-3d {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.8));
}

.hero-posters {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  filter: blur(3px);
}

.hero-poster {
  position: absolute;
  width: 72px;
  height: 104px;
  border-radius: 8px;
  background: linear-gradient(145deg, #1e3a5f, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-poster:nth-child(1) {
  top: 8%;
  left: 5%;
  transform: rotate(-12deg);
}
.hero-poster:nth-child(2) {
  top: 20%;
  right: 8%;
  transform: rotate(8deg);
}
.hero-poster:nth-child(3) {
  bottom: 15%;
  left: 12%;
  transform: rotate(6deg);
}
.hero-poster:nth-child(4) {
  bottom: 10%;
  right: 15%;
  transform: rotate(-8deg);
}

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

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* Category cards */
.cards-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .cards-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .cards-row {
    grid-template-columns: 1fr 1fr;
  }
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.cat-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.cat-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(10, 15, 29, 0.95) 100%);
}

.cat-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
}

.cat-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.cat-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cat-dot {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

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

.why-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.why-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.why-list li:last-child {
  border-bottom: 0;
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--cyan);
}

.why-list h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.why-list p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.devices-mock {
  min-height: 340px;
  position: relative;
}

.device-stack {
  position: relative;
  width: min(100%, 560px);
  height: 320px;
  margin-inline: auto;
}

.device {
  position: absolute;
  background: linear-gradient(180deg, #0f1c35, #0a1428);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.device::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: rgba(10, 15, 29, 0.45);
  pointer-events: none;
}

.device-screen {
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(10, 15, 29, 0.08) 0%, rgba(10, 15, 29, 0.48) 100%);
}

.device.tv {
  width: 390px;
  height: 230px;
  left: 84px;
  top: 20px;
  border-radius: 10px;
}

.device.laptop {
  width: 240px;
  height: 142px;
  right: 4px;
  bottom: 18px;
  border-radius: 10px;
  z-index: 2;
}

.device.tablet {
  width: 172px;
  height: 110px;
  left: 8px;
  bottom: 10px;
  border-radius: 12px;
  z-index: 3;
}

.device.phone {
  width: 88px;
  height: 160px;
  left: 166px;
  bottom: 0;
  border-radius: 16px;
  z-index: 4;
}

@media (max-width: 1200px) {
  .device-stack {
    transform: scale(0.92);
    transform-origin: center;
  }
}

@media (max-width: 900px) {
  .devices-mock {
    min-height: 290px;
  }

  .device-stack {
    transform: scale(0.8);
  }
}

/* CTA */
.cta-banner {
  margin: 32px 0 0;
  padding: 32px 40px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-banner p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  margin-top: 64px;
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
  background: #070b14;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .footer-col .footer-links .footer-note {
    margin-inline: auto;
  }

  .social-row {
    justify-content: center;
  }

  .footer-bottom-inner {
    text-align: center;
  }
}

.footer-social {
  margin-top: 16px;
}

.footer-note {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.footer-col .footer-links .footer-note {
  max-width: 220px;
}

.footer-bottom {
  margin-top: 8px;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
}

.footer-bottom-inner {
  max-width: var(--max);
  margin-inline: auto;
}

.footer-batch-update {
  color: var(--text-muted);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 280px;
  margin-top: 12px;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.social-row a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.copyright {
  text-align: center;
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.copyright-meta {
  text-align: center;
  margin: 0;
  padding-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
}

.copyright-meta a {
  color: var(--cyan);
}

.copyright-meta a:hover {
  color: #67e8f9;
}

.copyright-meta .sep {
  opacity: 0.4;
  user-select: none;
}

.auto-inner-link {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auto-inner-link:hover {
  color: #67e8f9;
}

/* List page grid */
.page-title {
  padding: 32px 0 8px;
}

.page-title h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.page-title p {
  margin: 0;
  color: var(--text-muted);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  padding: 24px 0 64px;
}

.video-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.video-poster {
  aspect-ratio: 2 / 3;
  background: linear-gradient(160deg, #1e3a5f, #0f172a);
  position: relative;
}

.video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.7));
}

.video-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  background: rgba(0, 0, 0, 0.65);
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.video-meta {
  padding: 12px;
}

.video-meta h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.video-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* About page */
.about-hero {
  padding: 48px 0 32px;
  text-align: center;
}

.about-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 16px;
}

.about-hero .lead {
  color: var(--text-muted);
  max-width: none;
  margin: 0;
  text-align: left;
}

.about-hero .lead p {
  margin: 0 0 14px;
}

.about-hero .lead p:last-child {
  margin-bottom: 0;
}

.mission-block {
  padding: 40px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  margin: 40px 0;
}

.mission-block h2 {
  margin-top: 0;
}

.mission-block p {
  color: var(--text-muted);
  margin: 0 0 14px;
}

.mission-block p:last-child {
  margin-bottom: 0;
}
