/* MPV播放器中文站 - 全局样式 */
:root {
  --bg: #0b0d10;
  --bg-soft: #12151a;
  --bg-card: #171b22;
  --border: #262c36;
  --text: #e8eaed;
  --text-muted: #9aa3af;
  --accent: #3b9eff;
  --accent-hover: #5eb0ff;
  --accent-dim: rgba(59, 158, 255, 0.15);
  --nav-h: 64px;
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: var(--border);
}

body {
  font-family: "Inter", "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* 导航栏 */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(11, 13, 16, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-nav.is-solid {
  background: rgba(11, 13, 16, 0.92);
  border-bottom-color: var(--border);
}

.nav-link {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active {
  color: var(--accent);
}

/* 按钮 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2.2rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 0.5rem;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(59, 158, 255, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(59, 158, 255, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.btn-download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.btn-download:hover {
  border-color: var(--accent);
  background: rgba(59, 158, 255, 0.08);
  transform: translateY(-2px);
}

.btn-download.is-featured {
  border-color: rgba(59, 158, 255, 0.45);
  background: linear-gradient(135deg, rgba(59, 158, 255, 0.12), transparent);
}

/* 卡片 */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(59, 158, 255, 0.4);
}

.icon-box {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Hero */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 158, 255, 0.18), transparent),
    radial-gradient(ellipse 40% 40% at 90% 40%, rgba(59, 158, 255, 0.06), transparent),
    var(--bg);
}

/* 截图展示 */
.shot-pc {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.shot-phone {
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  max-width: 220px;
  margin: 0 auto;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 0;
  font-weight: 560;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
  border-color: var(--accent);
  color: var(--accent);
}

.faq-item .faq-a {
  padding: 0 0 1.25rem;
  color: var(--text-muted);
}

/* 页脚 */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 90;
  background: rgba(11, 13, 16, 0.97);
  padding: 1.5rem;
}

.mobile-menu.is-open {
  display: block;
}

/* 内容区通用 */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.prose-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

.prose-block h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  color: var(--text);
}

.prose-block p,
.prose-block li {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.prose-block ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.prose-block strong {
  color: var(--text);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(59, 158, 255, 0.25);
}

.platform-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-weight: 500;
}

.platform-tab.is-active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(59, 158, 255, 0.3);
}

.platform-tab:hover:not(.is-active) {
  color: var(--text);
}

/* PC 下载扫码弹窗 */
.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.dl-modal[hidden] {
  display: none !important;
}

.dl-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.dl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dl-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s ease;
}

.dl-modal.is-open .dl-modal__panel {
  transform: translateY(0) scale(1);
}

.dl-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}

.dl-modal__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.dl-modal__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dl-modal__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.dl-modal__desc strong {
  color: var(--accent);
  font-weight: 600;
}

.dl-modal__qr {
  display: inline-flex;
  padding: 0.65rem;
  background: #fff;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.dl-modal__qr img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.dl-modal__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.dl-modal__link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.dl-modal__link:hover {
  color: var(--accent-hover);
}
