/* ============================
   漫蛙3漫画APP下载官网 - 移动端优先样式
   紫色霓虹主题
   ============================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1f1235;
  background: #0f0820;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 容器：移动端优先，最大宽度限制 */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================
   顶部导航栏
   ============================ */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 10, 46, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fff;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  color: #c4b3e0;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link:active {
  color: #fff;
  background: rgba(168, 85, 247, 0.22);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

/* ============================
   顶部 Hero 区
   ============================ */
.hero {
  position: relative;
  background: linear-gradient(160deg, #2a0a4a 0%, #5a189a 40%, #7b2cbf 70%, #c026d3 100%);
  color: #fff;
  padding: 36px 0 28px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.4), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.5), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero .logo {
  width: 110px;
  height: 110px;
  border-radius: 26px;
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.6), 0 0 60px rgba(168, 85, 247, 0.4);
  margin: 0 auto 16px;
  display: block;
  object-fit: cover;
  background: #fff;
}

.hero h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero .tagline {
  font-size: 0.95rem;
  opacity: 0.92;
  margin-bottom: 18px;
  font-weight: 500;
}

.hero .badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero .badges span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #ff4d8d 0%, #ff7a3d 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 77, 141, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #00d4ff 0%, #5b8cff 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 212, 255, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================
   区块通用
   ============================ */
.section {
  padding: 30px 0;
  background: #faf7ff;
}

.section.alt {
  background: #1a0a35;
  color: #f0e6ff;
}

.section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: inherit;
  position: relative;
}

.section .sub {
  text-align: center;
  font-size: 0.85rem;
  color: #6b5b8c;
  margin-bottom: 22px;
}

.section.alt .sub {
  color: #b5a3d6;
}

.section h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  border-radius: 3px;
  margin: 10px auto 0;
}

/* 特性卡 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.08);
  border: 1px solid #efe6ff;
}

.section.alt .feature-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: #f0e6ff;
}

.feature-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 22px;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 0.8rem;
  color: #6b5b8c;
  line-height: 1.5;
}

.section.alt .feature-card p {
  color: #c4b3e0;
}

/* 步骤列表 */
.steps {
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 14px 14px 56px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.06);
  border: 1px solid #efe6ff;
  font-size: 0.9rem;
  color: #2d1f4e;
}

.section.alt .steps li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f0e6ff;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* FAQ */
.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid #efe6ff;
  overflow: hidden;
}

.section.alt .faq-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-q {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  list-style: none;
  color: #2d1f4e;
}

.section.alt .faq-q {
  color: #f0e6ff;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: #a855f7;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-q::after {
  content: "−";
}

.faq-a {
  padding: 0 16px 14px;
  font-size: 0.88rem;
  color: #5a4878;
  line-height: 1.65;
}

.section.alt .faq-a {
  color: #c4b3e0;
}

/* 关键词标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag-cloud a {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #6b3fb5;
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tag-cloud a:hover,
.tag-cloud a:active {
  background: #a855f7;
  color: #fff;
  border-color: #a855f7;
}

/* 文章正文 */
.prose p {
  margin-bottom: 12px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #2d1f4e;
}

.section.alt .prose p {
  color: #d4c5ed;
}

.prose strong {
  color: #6b3fb5;
  font-weight: 700;
}

.section.alt .prose strong {
  color: #ff9fcd;
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 18px 0 10px;
  color: inherit;
}

.prose ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.prose li {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 4px;
  color: #2d1f4e;
}

.section.alt .prose li {
  color: #d4c5ed;
}

/* 下载大卡 */
.download-card {
  background: linear-gradient(135deg, #2a0a4a 0%, #5a189a 100%);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(90, 24, 154, 0.3);
  margin: 8px 0 0;
}

.download-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.download-card p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 18px;
}

.download-card .btn + .btn {
  margin-top: 10px;
}

.download-card .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================
   底部悬浮下载条
   ============================ */
.floating-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(15, 8, 32, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(168, 85, 247, 0.3);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.4);
}

.floating-bar.show {
  transform: translateY(0);
}

.floating-bar .info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.floating-bar .info .mini-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
  flex-shrink: 0;
}

.floating-bar .info .text {
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.2;
}

.floating-bar .info .text b {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-bar .info .text span {
  opacity: 0.7;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.floating-bar .actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.floating-bar .btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.82rem;
  border-radius: 999px;
}

/* 给悬浮条留出底部空间，防止内容被遮挡 */
body {
  padding-bottom: 78px;
}

/* ============================
   页脚
   ============================ */
footer {
  text-align: center;
  padding: 24px 16px;
  background: #0a0418;
  color: #8a7aa8;
  font-size: 0.78rem;
  line-height: 1.7;
}

footer a {
  color: #b89ce0;
  text-decoration: none;
  margin: 0 4px;
}

footer .links {
  margin-bottom: 8px;
}

footer .disclaimer {
  margin-top: 8px;
  font-size: 0.72rem;
  opacity: 0.7;
}

/* 内部链接导航块 */
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.link-grid a {
  background: #fff;
  border: 1px solid #efe6ff;
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: #4a2e7a;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.link-grid a::before {
  content: "→";
  color: #a855f7;
  font-weight: 800;
}

.section.alt .link-grid a {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #d4c5ed;
}

/* 媒体查询：小屏进一步优化 */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.45rem;
  }
  .hero .tagline {
    font-size: 0.85rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .floating-bar .info .text b {
    font-size: 0.82rem;
  }
  .floating-bar .info .text span {
    font-size: 0.68rem;
  }
}

/* 媒体查询：稍大屏时按钮更宽松 */
@media (min-width: 481px) {
  .hero-buttons .btn {
    min-width: 180px;
  }
}
