/* 漫蛙 APP 静态模板 - 共享样式 */
:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --accent: #00cec9;
  --bg: #0f0f14;
  --bg-card: #1a1a24;
  --bg-card-hover: #222230;
  --text: #e8e8f0;
  --text-muted: #9898a8;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --max-width: 960px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

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

.logo-wrap span {
  font-size: 1.15rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* Hero */
.hero {
  padding: 48px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(108, 92, 231, 0.12) 0%, transparent 60%);
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(0, 206, 201, 0.1);
  border: 1px solid rgba(0, 206, 201, 0.25);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 28px;
}

.download-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-quark {
  background: linear-gradient(135deg, #0066ff, #0044cc);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.35);
}

/* Sections */
section { padding: 40px 0; }

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.section-sub {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--bg-card-hover); }

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Screenshots */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.screenshot-item img { width: 100%; }

.screenshot-item figcaption {
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* Content article */
.article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.article h2 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
  color: var(--accent);
}

.article h2:first-child { margin-top: 0; }

.article p, .article li {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.article ul, .article ol {
  padding-left: 20px;
  margin: 10px 0;
}

.article li { margin-bottom: 6px; }

/* FAQ */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--text-muted);
  font-size: 1.2rem;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Steps */
.steps { counter-reset: step; list-style: none; }

.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 52px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 32px 0 100px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.friend-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.friend-links-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.friend-links-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 720px;
}

.friend-links-list a {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.friend-links-list a:hover {
  color: var(--accent);
  border-color: rgba(0, 206, 201, 0.35);
  background: rgba(0, 206, 201, 0.06);
  opacity: 1;
}

.disclaimer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.disclaimer strong { color: var(--text); font-weight: 500; }

.copyright {
  text-align: center;
  margin-top: 16px;
  font-size: 0.75rem;
  color: #666;
}

/* Floating download bar */
.float-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(15, 15, 20, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
}

.float-bar.visible { transform: translateY(0); }

.float-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.float-bar-info img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.float-bar-info span {
  font-size: 0.88rem;
  font-weight: 500;
}

.float-bar-btns {
  display: flex;
  gap: 8px;
}

.float-bar .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .float-bar { flex-direction: column; padding: 10px 16px; }
  .float-bar-info { display: none; }
  .float-bar-btns { width: 100%; }
  .float-bar-btns .btn { flex: 1; justify-content: center; }
}
