/* 哔哩哔哩下载落地页 - 共享样式 */
:root {
  --bili-pink: #fb7299;
  --bili-pink-dark: #e85d88;
  --bili-blue: #00a1d6;
  --bili-blue-dark: #0088b8;
  --text-primary: #18191c;
  --text-secondary: #61666d;
  --text-light: #9499a0;
  --bg-white: #ffffff;
  --bg-gray: #f4f5f7;
  --bg-dark: #1b1b1f;
  --shadow: 0 4px 20px rgba(251, 114, 153, 0.25);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--bili-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--bili-pink);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e3e5e7;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--bili-pink);
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.logo span {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--bili-pink);
}

/* Download Button - 吸引眼球 */
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--bili-pink) 0%, #ff8fab 50%, var(--bili-blue) 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow), 0 0 0 0 rgba(251, 114, 153, 0.4);
  animation: btnPulse 2.5s ease-in-out infinite, gradientShift 4s ease infinite;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2.5s infinite;
}

.download-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(251, 114, 153, 0.45);
  color: #fff;
}

.download-btn:active {
  transform: translateY(-1px) scale(1.01);
}

.download-btn.loading {
  pointer-events: none;
  opacity: 0.85;
  animation: none;
}

.download-btn .icon {
  font-size: 22px;
}

.download-btn-sm {
  padding: 10px 24px;
  font-size: 14px;
}

@keyframes btnPulse {
  0%,
  100% {
    box-shadow: var(--shadow), 0 0 0 0 rgba(251, 114, 153, 0.4);
  }
  50% {
    box-shadow: var(--shadow), 0 0 0 12px rgba(251, 114, 153, 0);
  }
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff5f8 0%, var(--bg-white) 100%);
}

.hero-banner {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.hero-content {
  text-align: center;
  padding: 48px 24px 64px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(251, 114, 153, 0.12);
  color: var(--bili-pink);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--bili-pink), var(--bili-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light);
}

/* Features */
.features {
  padding: 80px 0;
  background: var(--bg-gray);
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-size: 16px;
}

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

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e3e5e7;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--bili-pink), var(--bili-blue));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.feature-icon img,
.platform-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

/* Platform Download Section */
.platforms {
  padding: 80px 0;
  background: var(--bg-white);
}

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

.platform-card {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid #e3e5e7;
  transition: transform 0.3s, box-shadow 0.3s;
}

.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(251, 114, 153, 0.12);
  border-color: var(--bili-pink);
}

.platform-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.platform-card p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 20px;
  min-height: 40px;
}

.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.hero-platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  border: 1px solid #e3e5e7;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-platform-item:hover {
  border-color: var(--bili-pink);
  box-shadow: 0 4px 16px rgba(251, 114, 153, 0.15);
}

.hero-platform-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.hero-platform-item span {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.feature-icon.platform-logo {
  background: none;
  width: 72px;
  height: 72px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Stats */
.stats {
  padding: 60px 0;
  background: var(--bg-dark);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--bili-pink);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #9499a0;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #fff5f8, #f0faff);
}

.cta-section h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 16px;
}

/* Download Page */
.download-hero {
  padding: 64px 0;
  background: linear-gradient(180deg, #fff5f8 0%, var(--bg-white) 100%);
}

.download-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.download-info h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.download-info h1 em {
  font-style: normal;
  color: var(--bili-pink);
}

.download-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 16px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-gray);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.download-visual {
  text-align: center;
}

.download-visual img {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  margin: 0 auto;
}

/* Steps */
.steps {
  padding: 80px 0;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 24px;
  background: var(--bg-gray);
  border-radius: var(--radius);
  counter-increment: step;
}

.step-item::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bili-pink);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

.step-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* FAQ */
.faq {
  padding: 80px 0;
  background: var(--bg-gray);
}

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

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid #e3e5e7;
}

.faq-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.faq-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* SEO Content */
.seo-content {
  padding: 60px 0;
}

.seo-content article {
  max-width: 900px;
  margin: 0 auto;
}

.seo-content h2 {
  font-size: 24px;
  margin: 32px 0 16px;
  color: var(--text-primary);
}

.seo-content h3 {
  font-size: 18px;
  margin: 24px 0 12px;
}

.seo-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 15px;
}

.seo-content ul {
  margin: 0 0 16px 24px;
  color: var(--text-secondary);
}

.seo-content li {
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #9499a0;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #9499a0;
  font-size: 13px;
}

.footer-col a:hover {
  color: var(--bili-pink);
}

.footer-bottom {
  border-top: 1px solid #2f3134;
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
}

.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb span {
  margin: 0 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

  .download-meta {
    justify-content: center;
  }

  .hero-content {
    padding: 32px 16px 48px;
  }

  .download-btn {
    padding: 14px 32px;
    font-size: 16px;
  }
}
