/* ==========================================================================
   DPTV Landing Page — 复刻样式（基于 phf5h.top 原站结构）
   + 合规层：Cookie 同意条、应用内浏览器提示、法律页排版、可访问性
   设计变量与原站保持一致，类名不变，便于二次维护
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #0b0f19;
  color: #ffffff;
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid #8b85ff;
  outline-offset: 3px;
  border-radius: 6px;
}

/* 可访问性：跳转到主内容 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 12px 20px;
  background: #4f46e5;
  border-radius: 0 0 12px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ==================================
   VARIABLES
================================== */

:root {
  --primary: #4f46e5;
  --primary-light: #6d63ff;

  --dark: #0b0f19;
  --dark-2: #111827;
  --dark-3: #1f2937;

  --text: #ffffff;
  --text-soft: #b5bfd1;

  --border: rgba(255, 255, 255, 0.08);

  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  --glow: 0 0 20px rgba(79, 70, 229, 0.45);

  --header-h: 80px;
}

/* ==================================
   CONTAINER
================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.section {
  padding: 120px 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ==================================
   HEADER
================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  background: rgba(10, 15, 25, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
}

.logo img {
  width: 84px;
  height: 42px;
  object-fit: contain;
}

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

.nav a {
  color: #d7def0;
  font-size: 15px;
  font-weight: 500;
  transition: 0.3s;
}

.nav a:hover {
  color: #ffffff;
}

.header-download-btn {
  padding: 12px 24px;
  background: var(--primary);
  border-radius: 12px;
  font-weight: 600;
  transition: 0.3s;
  white-space: nowrap;
}

.header-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

/* ==================================
   MOBILE MENU
================================== */

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  background: #111827;
  z-index: 998;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu a:last-child {
  color: #a5b4fc;
  font-weight: 700;
}

/* ==================================
   HERO
================================== */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 40px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.35), transparent 40%),
    radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.25), transparent 40%);
  z-index: -1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(79, 70, 229, 0.3);
  margin-bottom: 25px;
  color: #d9dcff;
  font-size: 14px;
}

.hero h1 {
  font-size: 50px;
  line-height: 1.05;
  font-weight: 600;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  display: block;
  color: var(--primary-light);
}

.hero-description {
  font-size: 20px;
  color: var(--text-soft);
  max-width: 650px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
}

.stat span {
  color: var(--text-soft);
  font-size: 14px;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 34px;
  border-radius: 14px;
  background: var(--primary);
  font-weight: 700;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 35px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
  padding: 18px 34px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #9ca3af;
  font-size: 15px;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-height: 720px;
  width: auto;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 50px rgba(79, 70, 229, 0.4));
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* 注释脚注（合规：数据口径说明） */
.footnote {
  color: #8b95a8;
  font-size: 13px;
  margin-top: -24px;
  margin-bottom: 28px;
}

/* ==================================
   SECTION TITLE
================================== */

.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.section-heading h2 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-heading p {
  color: var(--text-soft);
  max-width: 700px;
  margin: auto;
}

/* ==================================
   SCREENSHOTS
================================== */

.screenshotSwiper {
  padding-bottom: 60px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

.swiper-slide img {
  width: 280px;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.swiper-pagination-bullet {
  background: #fff !important;
}

/* ==================================
   FEATURES
================================== */

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

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 35px;
  transition: 0.35s;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-soft);
}

/* ==================================
   REVIEWS
================================== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.review-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 35px;
}

.stars {
  color: #ffd700;
  margin-bottom: 15px;
  font-size: 22px;
  letter-spacing: 2px;
}

.review-card p {
  margin-bottom: 20px;
  color: #dbe2f1;
}

.review-card span {
  color: #9ca3af;
}

/* ==================================
   DOWNLOAD
================================== */

.download-section {
  padding: 120px 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.download-box {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.25), rgba(79, 70, 229, 0.08));
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: 30px;
  text-align: center;
  padding: 70px 40px;
}

.download-box h2 {
  font-size: 52px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.download-box p {
  color: #c9d2e4;
  margin-bottom: 40px;
}

.download-info {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.download-info div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.download-info strong {
  font-size: 20px;
}

.download-info span {
  color: #bfc8d8;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  white-space: nowrap;
  padding: 22px 60px;
  border-radius: 18px;
  background: var(--primary);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  transition: 0.3s;
}

.download-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
  animation: downloadFloat 2s ease-in-out infinite;
}

@keyframes downloadFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.btn-download:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(79, 70, 229, 0.6);
}

.download-box small {
  display: block;
  color: #b9c2d4;
  font-size: 14px;
}

/* 合规：安装说明与免责声明 */
.disclosure {
  max-width: 660px;
  margin: 26px auto 0;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  color: #a9b3c6;
  font-size: 13.5px;
  text-align: left;
  line-height: 1.65;
}

.disclosure strong {
  color: #e6eaf4;
}

.disclosure ul {
  margin: 8px 0 0 18px;
  list-style: disc;
}

.disclosure li {
  margin-bottom: 4px;
}

.disclosure a {
  color: #a5b4fc;
  text-decoration: underline;
}

/* ==================================
   FAQ
================================== */

.faq-list {
  max-width: 900px;
  margin: auto;
}

.faq-item {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 24px;
  background: #111827;
  color: #fff;
  text-align: left;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.25s;
}

.faq-question:hover {
  background: #162034;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  line-height: 1;
  color: #a5b4fc;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 24px;
  background: #0f172a;
  color: #bfc8d8;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p + p {
  margin-top: 10px;
}

.faq-answer a {
  color: #a5b4fc;
  text-decoration: underline;
}

/* ==================================
   FOOTER
================================== */

.footer {
  padding: 60px 0 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer img {
  width: 70px;
  height: auto;
  margin: auto auto 20px;
}

.footer p {
  color: #9ca3af;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.footer-links a {
  color: #cfd5e1;
  font-size: 15px;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: #fff;
}

/* 合规：运营主体披露 */
.footer-legal {
  max-width: 820px;
  margin: 0 auto;
  color: #7d8798;
  font-size: 13px;
  line-height: 1.8;
}

.footer-legal p {
  color: #7d8798;
  margin-bottom: 6px;
}

.footer-legal a {
  color: #9aa5b8;
  text-decoration: underline;
  white-space: nowrap;
}

/* ==================================
   COOKIE 同意条
================================== */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  display: none;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  color: #c8d1e0;
  font-size: 14px;
  margin: 0;
  flex: 1 1 460px;
  line-height: 1.6;
}

.cookie-banner a {
  color: #a5b4fc;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions button {
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s;
}

.cookie-accept {
  background: var(--primary);
}

.cookie-accept:hover {
  background: var(--primary-light);
}

.cookie-reject {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cookie-reject:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ==================================
   应用内浏览器提示（用户主动点击才跳转）
================================== */

.inapp-notice {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: calc(var(--header-h) + 10px);
  z-index: 1400;
  width: calc(100% - 32px);
  max-width: 680px;
  display: none;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.98);
  border: 1px solid rgba(109, 99, 255, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  color: #d5dcec;
}

.inapp-notice.show {
  display: flex;
}

.inapp-notice-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inapp-open {
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--primary);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.inapp-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 16px;
  line-height: 1;
}

/* ==================================
   LEGAL PAGES
================================== */

.legal-page {
  padding: calc(var(--header-h) + 60px) 0 90px;
}

.legal-page .container {
  max-width: 900px;
}

.legal-page h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.legal-meta {
  color: #8b95a8;
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 24px;
  margin: 38px 0 14px;
  padding-top: 8px;
}

.legal-page h3 {
  font-size: 18px;
  margin: 24px 0 10px;
}

.legal-page p,
.legal-page li {
  color: #c3cbdb;
  margin-bottom: 12px;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 18px 22px;
}

.legal-page ul {
  list-style: disc;
}

.legal-page ol {
  list-style: decimal;
}

.legal-page a {
  color: #a5b4fc;
  text-decoration: underline;
}

.legal-page strong {
  color: #e8ecf5;
}

.legal-card {
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 22px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 14px 26px;
  border-radius: 12px;
  background: var(--primary);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  margin: 10px 0 24px;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}

.legal-page th,
.legal-page td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
  text-align: left;
  color: #c3cbdb;
  vertical-align: top;
}

.legal-page th {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 600;
}

/* ==================================
   TABLET
================================== */

@media (max-width: 992px) {
  .hero {
    padding-top: 10px;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-image {
    order: 2;
  }

  .hero-image img {
    max-height: 520px;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-features {
    justify-content: center;
  }

  .hero h1 {
    font-size: 40px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .download-box h2 {
    font-size: 42px;
  }
}

/* ==================================
   MOBILE
================================== */

@media (max-width: 768px) {
  .nav,
  .header-download-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .section {
    padding: 70px 0;
  }

  .container {
    padding: 0 18px;
  }

  .hero {
    padding-bottom: 50px;
  }

  .hero-badge {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.15;
  }

  .hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .hero-image img {
    max-height: 420px;
    width: auto;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .stat {
    min-width: 90px;
  }

  .stat strong {
    font-size: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .hero-features {
    gap: 12px;
    font-size: 14px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .section-heading p {
    font-size: 15px;
  }

  .swiper-slide img {
    width: 220px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 28px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .download-box {
    padding: 40px 24px;
  }

  .download-box h2 {
    font-size: 34px;
  }

  .download-info {
    flex-direction: column;
    gap: 20px;
  }

  .btn-download {
    width: 100%;
    padding: 18px;
    font-size: 18px;
  }

  .faq-question {
    padding: 18px;
    font-size: 16px;
  }

  .faq-answer {
    padding: 18px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 15px;
  }

  .legal-page h1 {
    font-size: 30px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions button {
    flex: 1;
    padding: 12px;
  }
}

/* ==================================
   SMALL PHONE
================================== */

@media (max-width: 480px) {
  .logo span {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-image img {
    max-height: 340px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .stat strong {
    font-size: 20px;
  }

  .stat span {
    font-size: 12px;
  }

  .feature-card {
    padding: 22px;
  }

  .feature-card h3 {
    font-size: 20px;
  }

  .download-box {
    padding: 30px 20px;
  }

  .download-box h2 {
    font-size: 28px;
  }

  .inapp-notice {
    font-size: 13px;
  }

  .legal-card {
    padding: 20px;
  }
}

/* ==================================
   REDUCED MOTION
================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
