﻿:root {
  --bg: #0f172a;
  --panel: #111827;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #5f6b85;
  --line: #e5e7eb;
  --brand: #0ea5e9;
  --brand-2: #2563eb;
  --accent: #22c55e;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

body.ov-page {
  margin: 0;
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  background: #f6f8fc;
  color: var(--text);
}

.ov-container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.ov-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.ov-topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ov-logo {
  color: #0b1220;
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  white-space: nowrap;
}

.ov-logo span {
  color: var(--brand-2);
}

.ov-menu {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
  flex-wrap: wrap;
}

.ov-menu a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
  font-size: 14px;
}

.ov-header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ov-header-search input,
.ov-search input {
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 12px;
  min-width: 260px;
  font-size: 14px;
}

.ov-btn {
  border: 0;
  border-radius: 10px;
  height: 42px;
  padding: 0 14px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ov-btn.ghost {
  background: #eef2ff;
  color: #1d4ed8;
}

.ov-hero {
  margin-top: 24px;
  padding: 48px 28px;
  border-radius: var(--radius);
  background: radial-gradient(1200px 400px at 30% -20%, #1d4ed8 0%, #0f172a 60%, #0b1220 100%);
  color: #fff;
}

.ov-hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
}

.ov-hero p {
  margin-top: 14px;
  color: #dbeafe;
  max-width: 760px;
}

.ov-search {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ov-search input {
  min-width: min(560px, 100%);
  background: #fff;
}

.ov-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ov-tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #e5f0ff;
  text-decoration: none;
  font-size: 13px;
}

.ov-section {
  margin-top: 28px;
}

.ov-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ov-section h2 {
  margin: 0;
  font-size: 26px;
}

.ov-section p {
  margin: 4px 0 0;
  color: var(--muted);
}

.ov-grid {
  display: grid;
  gap: 16px;
}

.ov-grid.featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ov-grid.latest {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ov-grid.apps {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ov-grid.categories {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ov-grid.guides {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ov-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.ov-card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e5e7eb;
}

.ov-card-body {
  padding: 12px;
}

.ov-chip {
  display: inline-block;
  font-size: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 700;
}

.ov-card h3 {
  margin: 10px 0 6px;
  font-size: 18px;
  line-height: 1.3;
}

.ov-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.ov-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ov-actions .ov-btn {
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
}

.ov-app {
  text-align: center;
  padding: 14px;
}

.ov-app img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
}

.ov-app h3 {
  margin: 10px 0 4px;
  font-size: 15px;
}

.ov-app p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.ov-breadcrumb {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.ov-breadcrumb a {
  color: #1d4ed8;
  text-decoration: none;
}

.ov-prose {
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.ov-faq {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.ov-faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.ov-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.ov-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.ov-footer-inner {
  padding: 20px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.ov-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ov-footer a {
  color: #334155;
  text-decoration: none;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .ov-grid.featured,
  .ov-grid.guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ov-grid.latest,
  .ov-grid.categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ov-grid.apps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ov-topbar-inner {
    min-height: 62px;
    padding: 8px 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .ov-menu {
    order: 3;
    margin-left: 0;
  }
  .ov-header-search {
    order: 2;
    margin-left: 0;
    width: 100%;
  }
  .ov-header-search input {
    min-width: 0;
    width: 100%;
  }
  .ov-grid.featured,
  .ov-grid.latest,
  .ov-grid.apps,
  .ov-grid.categories,
  .ov-grid.guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ov-hero {
    padding: 32px 16px;
  }
}

@media (max-width: 520px) {
  .ov-grid.featured,
  .ov-grid.latest,
  .ov-grid.apps,
  .ov-grid.categories,
  .ov-grid.guides {
    grid-template-columns: 1fr;
  }
}
