/* hij.autos - 海角论坛视频APP */
:root {
  --primary: #4f8cff;
  --primary-dark: #3a74e0;
  --accent: #6ee7ff;
  --bg-dark: #080c18;
  --bg-card: #10182a;
  --bg-card-hover: #162038;
  --text-primary: #f2f5ff;
  --text-secondary: #a8b4d0;
  --text-muted: #6f7d9a;
  --border: #1e2a45;
  --gradient: linear-gradient(135deg, #4f8cff 0%, #6ee7ff 100%);
  --shadow: 0 4px 24px rgba(0,0,0,0.45);
  --radius: 14px;
  --max-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  scroll-padding-top: var(--site-top-offset, 72px);
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100%;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; min-width: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10001;
  background: rgba(8,12,24,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

.logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-link:hover { text-decoration: none; }
.logo-img { width: 44px; height: 44px; border-radius: 12px; }
.logo-text { font-size: 1.28rem; font-weight: 800; color: var(--text-primary); letter-spacing: 0.02em; }
.logo-text span { color: var(--primary); }

.nav-main {
  display: flex;
  gap: 6px;
  align-items: center;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
}
.nav-main a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-main a:hover, .nav-main a.active {
  color: var(--text-primary);
  background: var(--bg-card);
  text-decoration: none;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: #071018 !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(79,140,255,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(79,140,255,0.45);
  color: #071018 !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 10002;
}

.page-header {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, #10182a 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
}

.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header .breadcrumb { color: var(--text-muted); font-size: 0.9rem; }
.page-header .breadcrumb a { color: var(--text-secondary); }

.page-body { padding: 48px 0 80px; }

.legal-content h2 { font-size: 1.28rem; margin: 32px 0 12px; color: var(--text-primary); }
.legal-content h3 { font-size: 1.08rem; margin: 24px 0 10px; color: var(--primary); }
.legal-content p, .legal-content li { color: var(--text-secondary); margin-bottom: 12px; }
.legal-content ul, .legal-content ol { margin-left: 24px; margin-bottom: 16px; }

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  opacity: 0.85;
}

.error-page h1 { font-size: 1.8rem; margin: 16px 0; }
.error-page p { color: var(--text-secondary); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }

.site-footer {
  background: #050810;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; line-height: 1.65; }

.footer-col h4 { font-size: 0.95rem; margin-bottom: 16px; color: var(--text-primary); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; text-decoration: none; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

/* ===== 首页 ===== */
.page-home { background: #060a14; max-width: 100%; }
.home-main { max-width: 100%; }

.home-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 10px;
}

.home-section-head { margin-bottom: 40px; max-width: 640px; }
.home-section-head-center { text-align: center; max-width: none; margin-left: auto; margin-right: auto; }
.home-section-head-center p { margin: 0 auto; max-width: 540px; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }
.home-section-head h2 {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.25;
}
.home-section-head p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.home-btn-fill {
  background: var(--gradient);
  color: #071018 !important;
  box-shadow: 0 8px 28px rgba(79,140,255,0.35);
}
.home-btn-fill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(79,140,255,0.45);
  color: #071018 !important;
}
.home-btn-line {
  background: transparent;
  color: var(--text-secondary) !important;
  border: 1px solid #2a3a5c;
}
.home-btn-line:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}

.home-hero {
  position: relative;
  padding: 56px 0 44px;
  overflow: hidden;
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 80% 20%, rgba(79,140,255,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(110,231,255,0.08), transparent 55%),
    linear-gradient(180deg, #0c1428 0%, #060a14 100%);
  pointer-events: none;
}
.home-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  min-width: 0;
}
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.home-live {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: home-blink 2s ease infinite;
}
@keyframes home-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.home-hero-copy h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.home-hero-copy h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-intro {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.85;
  margin-bottom: 24px;
  max-width: 540px;
}
.home-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.home-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-chips li {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid #243352;
  background: rgba(255,255,255,0.03);
  padding: 5px 12px;
  border-radius: 6px;
}

.home-phones {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-phone {
  position: absolute;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid #243352;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  background: #0c1424;
}
.home-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.home-phone-back {
  width: 158px;
  height: 280px;
  transform: rotate(-11deg) translateX(-86px);
  opacity: 0.55;
  z-index: 1;
}
.home-phone-mid {
  width: 198px;
  height: 352px;
  z-index: 3;
  border-color: rgba(79,140,255,0.45);
  box-shadow: 0 32px 80px rgba(0,0,0,0.65), 0 0 40px rgba(79,140,255,0.18);
}
.home-phone-front {
  width: 158px;
  height: 280px;
  transform: rotate(11deg) translateX(86px);
  opacity: 0.55;
  z-index: 2;
}

.home-metrics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.home-metrics-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.home-metrics-row li {
  text-align: center;
  padding: 22px 14px;
  border-right: 1px solid var(--border);
}
.home-metrics-row li:last-child { border-right: none; }
.home-metrics-row strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}
.home-metrics-row span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.home-bento {
  padding: 68px 0;
  background: #070c16;
}
.home-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.home-bento-card {
  background: #0d1526;
  border: 1px solid #1a2740;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.home-bento-card:hover {
  border-color: rgba(79,140,255,0.4);
  transform: translateY(-3px);
}
.home-bento-wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
}
.home-bento-media {
  overflow: hidden;
  background: #0a1220;
}
.home-bento-media img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.home-bento-media-sm { max-height: 160px; }
.home-bento-media-sm img { min-height: 160px; max-height: 160px; }
.home-bento-text { padding: 22px 24px; }
.home-bento-wide .home-bento-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-bento-num {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.home-bento-text h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}
.home-bento-text p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.home-showcase {
  padding: 68px 0;
  background: #0a1220;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.home-showcase-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 20px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #334  transparent;
}
.home-showcase-track figure {
  flex: 0 0 132px;
  margin: 0;
  scroll-snap-align: start;
}
.home-showcase-track img {
  width: 132px;
  height: 234px;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  border: 1px solid #243352;
}
.home-showcase-track figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.home-dl {
  padding: 68px 0;
  background: #070c16;
}
.home-dl-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.home-kw {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.home-kw li {
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid #243352;
  padding: 5px 10px;
  border-radius: 6px;
}
.home-timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.home-timeline li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}
.home-tl-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(79,140,255,0.15);
  border: 1px solid rgba(79,140,255,0.4);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.home-tl-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.home-tl-body p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

.home-guide {
  padding: 68px 0;
  background: #0a1220;
  border-top: 1px solid var(--border);
}
.home-guide-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}
.home-prose {
  background: #0d1526;
  border: 1px solid #1a2740;
  border-radius: 16px;
  padding: 28px 30px;
}
.home-prose h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.home-prose h3 span {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.08em;
}
.home-prose p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.9;
  margin-bottom: 12px;
}
.home-prose p:last-child { margin-bottom: 0; }
.home-prose-img {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 22px;
  align-items: center;
}
.home-prose-img-left {
  grid-template-columns: 140px 1fr;
}
.home-prose-img figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #243352;
}
.home-prose-img img {
  width: 140px;
  height: 248px;
  object-fit: cover;
  object-position: top center;
}
.home-tip {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 3px solid var(--primary);
  background: rgba(79,140,255,0.08);
  border-radius: 0 10px 10px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.home-faq {
  padding: 68px 0;
  background: #070c16;
}
.home-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}
.home-faq-item {
  background: #0d1526;
  border: 1px solid #1a2740;
  border-radius: 12px;
  padding: 16px 18px;
}
.home-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.home-cta {
  padding: 40px 0 72px;
  background: #070c16;
}
.home-cta-box {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(79,140,255,0.16), rgba(110,231,255,0.06));
  border: 1px solid rgba(79,140,255,0.3);
  border-radius: 18px;
  padding: 28px 30px;
}
.home-cta-logo { border-radius: 16px; }
.home-cta-box h2 { font-size: 1.25rem; margin-bottom: 4px; }
.home-cta-box p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }
.home-cta-box .home-btn { margin-left: auto; }

.about-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.about-shots figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.about-shots img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
}
.about-shots figcaption {
  padding: 8px 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-phones { height: 360px; margin-top: 8px; }
  .home-bento-wide { grid-template-columns: 1fr; }
  .home-dl-grid { grid-template-columns: 1fr; }
  .home-prose-img,
  .home-prose-img-left { grid-template-columns: 1fr; }
  .home-prose-img figure { justify-self: center; }
}

@media (max-width: 768px) {
  html { font-size: 15px; overflow-x: hidden; }
  body { overflow-x: hidden; max-width: 100%; }

  body:not(:has(.site-top-fixed)) {
    padding-top: 56px;
  }
  body:not(:has(.site-top-fixed)) .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10001;
    overflow: visible;
  }

  .site-top-fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    overflow: visible;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .menu-toggle { display: block; flex-shrink: 0; order: 2; }
  .header-inner {
    padding: 10px 16px;
    gap: 0;
    flex-wrap: wrap;
    align-items: center;
  }
  .logo-link {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    order: 1;
  }
  .logo-img { width: 40px; height: 40px; flex-shrink: 0; }
  .logo-text { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: none;
    flex-basis: auto;
    order: 3;
    width: 100%;
    z-index: 10001;
    background: rgba(8, 12, 24, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 0;
    margin-top: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  }
  .nav-main.open {
    display: flex;
    padding: 8px 0 12px;
    border-top: 1px solid var(--border);
  }
  .nav-main a { width: 100%; text-align: center; padding: 12px; font-size: 0.92rem; }
  .container { padding: 0 16px; width: 100%; max-width: 100%; }

  /* 移动端：非首页内容内边距 */
  body:not(.page-home) .page-header .container,
  body:not(.page-home) .page-body .container,
  body:not(.page-home) .error-page {
    padding-left: 16px;
    padding-right: 16px;
  }
  body:not(.page-home) .page-body {
    padding: 28px 0 56px;
  }

  .page-header { padding: 28px 0 20px; }
  .page-header h1 { font-size: 1.55rem; }
  .legal-content h2 { font-size: 1.12rem; margin-top: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .site-footer { padding: 36px 0 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .error-code { font-size: 5rem; }

  .home-hero { padding: 36px 0 28px; }
  .home-phones { height: 300px; }
  .home-phone-back { width: 120px; height: 214px; transform: rotate(-10deg) translateX(-62px); }
  .home-phone-mid { width: 150px; height: 266px; }
  .home-phone-front { width: 120px; height: 214px; transform: rotate(10deg) translateX(62px); }
  .home-metrics-row { grid-template-columns: repeat(2, 1fr); }
  .home-metrics-row li:nth-child(2) { border-right: none; }
  .home-metrics-row li:nth-child(1),
  .home-metrics-row li:nth-child(2) { border-bottom: 1px solid var(--border); }
  .home-bento-grid { grid-template-columns: 1fr; }
  .home-bento-wide { grid-column: span 1; }
  .home-faq-grid { grid-template-columns: 1fr; }
  .home-cta-box { flex-direction: column; text-align: center; }
  .home-cta-box .home-btn { margin-left: 0; width: 100%; }
  .home-prose { padding: 20px 16px; }
  .about-shots { grid-template-columns: 1fr; }
  .about-shots img { height: 280px; }
}
