/* ============================================
   龙珠软件 - 产品落地页样式
   ============================================ */

:root {
  --color-bg: #0b0d17;
  --color-bg-secondary: #111827;
  --color-bg-card: rgba(255, 255, 255, 0.03);
  --color-bg-card-hover: rgba(255, 255, 255, 0.06);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);
  --color-text: #e5e7eb;
  --color-text-secondary: #9ca3af;
  --color-text-muted: #6b7280;
  --color-primary: #667eea;
  --color-primary-hover: #7c94f5;
  --color-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --color-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --color-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --color-gradient-hero: linear-gradient(135deg, #667eea 0%, #f093fb 50%, #4facfe 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --transition: 0.25s ease;
  --max-width: 1200px;
  --header-height: 72px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(11, 13, 23, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.header.scrolled {
  background: rgba(11, 13, 23, 0.95);
  border-bottom-color: rgba(255,255,255,0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.logo-text {
  background: var(--color-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-list { display: flex; gap: 8px; }

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(102,126,234,0.15), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(240,147,251,0.1), transparent),
    radial-gradient(ellipse 50% 40% at 20% 50%, rgba(79,172,254,0.1), transparent);
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(102,126,234,0.1);
  border: 1px solid rgba(102,126,234,0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #a5b4fc;
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #667eea;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--color-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-gradient-1);
  color: #fff;
  box-shadow: 0 4px 20px rgba(102,126,234,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102,126,234,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}

/* Hero Feature Cards */
.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
}

.hf-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.hf-item:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
}

.hf-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.hf-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.hf-item p {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Sections Common --- */
section { padding: 100px 0; }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- 产品介绍 Intro --- */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.intro-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}

.intro-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.intro-card-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.intro-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.intro-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* --- 使用说明 Guide --- */
.guide {
  background: var(--color-bg-secondary);
}

.guide-steps {
  max-width: 800px;
  margin: 0 auto;
}

.guide-step {
  display: flex;
  gap: 16px;
}

.guide-step:last-child .step-line { display: none; }

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 44px;
}

.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-primary-light);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-line {
  width: 2px;
  flex: 1;
  min-height: 36px;
  background: var(--color-border);
  margin: 10px 0;
}

.step-wrapper {
  flex: 1;
  padding-bottom: 28px;
}

.step-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 14px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  transition: all var(--transition);
}

.step-toggle:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.step-wrapper.expanded .step-toggle {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom-color: transparent;
}

.step-toggle-icon {
  font-size: 12px;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.step-wrapper.expanded .step-toggle-icon {
  transform: translateY(0);
}

.step-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  border: 1px solid transparent;
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 0 14px;
}

.step-wrapper.expanded .step-body {
  border-color: var(--color-primary);
  border-top: none;
}

.step-body p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  padding-top: 12px;
  margin-bottom: 8px;
}

.step-body p:first-child {
  margin-top: 0;
}

.step-tip {
  font-size: 13px;
  color: var(--color-text-secondary);
  background: var(--color-accent-light);
  border: 1px solid rgba(13,148,136,0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.step-media {
  margin: 12px auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.step-media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
  justify-content: center;
}

.step-media-inline {
  flex: 1 1 180px;
  width: auto;
  margin: 0;
}

.step-media img {
  width: 100%;
  display: block;
  cursor: zoom-in;
}

.step-media video {
  width: 100%;
  display: block;
  background: #000;
}

.image-preview {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  z-index: 3000;
}

.image-preview.open {
  display: flex;
}

.image-preview-inner {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview-img {
  max-width: 100%;
  max-height: 88vh;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.45);
}

.image-preview-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* --- 下载 Download --- */
.download-latest {
  position: relative;
  margin-bottom: 64px;
}

.dl-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 6px 20px;
  background: var(--color-gradient-1);
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.dl-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(240,147,251,0.04));
  border: 1px solid rgba(102,126,234,0.15);
  border-radius: var(--radius-xl);
  padding: 48px 36px 36px;
}

.dl-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.dl-changelog h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.dl-changelog ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dl-changelog li {
  font-size: 13px;
  color: var(--color-text-muted);
  padding-left: 18px;
  position: relative;
}

.dl-changelog li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.dl-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.dl-action .btn-download {
  width: 100%;
  text-align: center;
}

.btn-download {
  padding: 16px 40px;
  font-size: 16px;
}

.dl-hint {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* --- History Table --- */
.download-history {
  text-align: center;
}

.history-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.history-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.history-table-wrap {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.history-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.history-table td {
  padding: 14px 16px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.history-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.history-table tbody tr:last-child td {
  border-bottom: none;
}

.ver-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(102,126,234,0.12);
  color: #a5b4fc;
}

.ver-tag.old {
  background: rgba(255,255,255,0.04);
  color: var(--color-text-muted);
}

.dl-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(102,126,234,0.08);
  transition: color var(--transition);
}

.dl-link:hover { color: var(--color-primary-hover); }

.dl-link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 12px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--color-text); }

.social-links { display: flex; gap: 12px; }

.social-link {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
}

.social-link:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-muted);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-features { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-card { grid-template-columns: 1fr; }
  .dl-action { flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0; right: -280px;
    width: 280px; height: 100vh;
    background: var(--color-bg-secondary);
    border-left: 1px solid var(--color-border);
    padding: 100px 32px 32px;
    transition: right var(--transition);
    z-index: 999;
  }

  .nav.open { right: 0; }

  .nav-list { flex-direction: column; gap: 4px; }

  .nav-link { padding: 12px 16px; font-size: 16px; }

  .hero { padding: 100px 0 60px; }

  .hero-features { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; }

  .dl-card { padding: 40px 24px 24px; }
  .dl-action { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; }

  section { padding: 60px 0; }

  .history-table th:nth-child(3),
  .history-table td:nth-child(3) { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .hero-title { font-size: 28px; }
  .dl-meta { flex-direction: column; gap: 8px; }
  .history-table th:nth-child(4),
  .history-table td:nth-child(4) { display: none; }
}
