﻿*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg-deep: #eef1f5; --bg-card: #ffffff; --bg-card-hover: #f5f7fa;
  --gold: #f0b90b; --gold-dark: #c7940a; --silver: #a8b8c8; --silver-dark: #7a8b9a;
  --bronze: #c47a38; --bronze-dark: #9a5a28;
  --green: #16a34a; --green-dim: #15803d; --green-light: #dcfce7;
  --text: #1e293b; --text-dim: #64748b; --text-muted: #94a3b8;
  --border: rgba(0,0,0,0.08); --border-strong: rgba(0,0,0,0.12);
  --radius: 20px; --radius-sm: 12px;
}
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg-deep); color: var(--text);
  min-height: 100vh; overflow-x: hidden; line-height: 1.6;
}
body::before {
  content: ""; position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(22,163,74,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(22,163,74,0.04) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.container { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ===== Hero ===== */
.hero { text-align: center; padding: 120px 0 40px; animation: fadeDown 0.8s ease-out; }
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(22,163,74,0.1), rgba(34,197,94,0.08));
  border: 1px solid rgba(22,163,74,0.2); color: var(--green);
  font-size: 13px; font-weight: 600; padding: 6px 20px; border-radius: 50px;
  letter-spacing: 2px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(29px, 5vw, 52px); font-weight: 900; letter-spacing: 2px;
  background: linear-gradient(180deg, #1e293b 20%, #475569 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 12px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--green), #22c55e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 16px; color: var(--text-dim); max-width: 560px; margin: 0 auto; }

/* ===== Stats Strip ===== */
.stats-strip {
  display: flex; justify-content: center; gap: 40px;
  padding: 24px 0 48px; animation: fadeUp 0.8s 0.15s ease-out both;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, var(--green), #22c55e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 12px; color: var(--text-dim); margin-top: 4px; letter-spacing: 1px; }

/* ===== Section Title ===== */
.section-title { text-align: center; margin-bottom: 36px; animation: fadeUp 0.8s 0.2s ease-out both; }
.section-title h2 { font-size: 24px; font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; color: var(--text); }
.section-title .line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--green), #22c55e);
  margin: 0 auto; border-radius: 2px;
}

/* ===== Tabs ===== */
.tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 40px; animation: fadeUp 0.8s 0.25s ease-out both; }
.tab-btn {
  background: var(--bg-card); color: var(--text-dim);
  border: 1px solid var(--border); padding: 8px 22px; border-radius: 50px;
  font-size: 13px; cursor: pointer; transition: all 0.3s; font-family: inherit;
}
.tab-btn:hover { border-color: var(--border-strong); color: var(--text); }
.tab-btn.active {
  background: linear-gradient(135deg, rgba(22,163,74,0.12), rgba(34,197,94,0.08));
  border-color: var(--green); color: var(--green);
}

/* ===== Rank List & Cards ===== */
.rank-list { display: flex; flex-direction: column; gap: 14px; }
.rank-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  cursor: pointer; transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  position: relative; overflow: hidden;
  animation: cardIn 0.6s ease-out both;
}
.rank-card:nth-child(1) { animation-delay: 0.10s; }
.rank-card:nth-child(2) { animation-delay: 0.15s; }
.rank-card:nth-child(3) { animation-delay: 0.20s; }
.rank-card:nth-child(4) { animation-delay: 0.25s; }
.rank-card:nth-child(5) { animation-delay: 0.30s; }
.rank-card:nth-child(6) { animation-delay: 0.35s; }
.rank-card:nth-child(7) { animation-delay: 0.40s; }
.rank-card:nth-child(8) { animation-delay: 0.45s; }
.rank-card:nth-child(9) { animation-delay: 0.50s; }
.rank-card:nth-child(10){ animation-delay: 0.55s; }
.rank-card:hover {
  background: var(--bg-card-hover); border-color: var(--border-strong);
  transform: translateY(-2px) scale(1.01); box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.rank-card.rank-1 { border-color: rgba(240,185,11,0.4); box-shadow: 0 0 24px rgba(240,185,11,0.1); }
.rank-card.rank-1:hover { border-color: rgba(240,185,11,0.6); box-shadow: 0 8px 40px rgba(240,185,11,0.18); }
.rank-card.rank-2 { border-color: rgba(168,184,200,0.35); box-shadow: 0 0 20px rgba(168,184,200,0.08); }
.rank-card.rank-2:hover { border-color: rgba(168,184,200,0.55); box-shadow: 0 8px 35px rgba(168,184,200,0.14); }
.rank-card.rank-3 { border-color: rgba(196,122,56,0.35); box-shadow: 0 0 16px rgba(196,122,56,0.08); }
.rank-card.rank-3:hover { border-color: rgba(196,122,56,0.55); box-shadow: 0 8px 30px rgba(196,122,56,0.14); }

/* ===== Rank Badge ===== */
.rank-badge {
  width: 40px; height: 40px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900; flex-shrink: 0; transition: transform 0.3s;
}
.rank-card:hover .rank-badge { transform: scale(1.08); }
.rank-badge.gold {
  background: linear-gradient(135deg, #f0b90b, #e6a800); color: #3a2000;
  box-shadow: 0 4px 20px rgba(240,185,11,0.35);
}
.rank-badge.silver {
  background: linear-gradient(135deg, #c0c8d0, #a0a8b0); color: #1a1a2e;
  box-shadow: 0 4px 18px rgba(168,184,200,0.3);
}
.rank-badge.bronze {
  background: linear-gradient(135deg, #d4884a, #b86830); color: #1a0a00;
  box-shadow: 0 4px 18px rgba(196,122,56,0.3);
}
.rank-badge.normal { background: rgba(0,0,0,0.06); color: var(--text-muted); font-size: 20px; }

/* ===== App Icon ===== */
.app-icon {
  width: 70px; height: 70px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}

/* ===== Card Info ===== */
.card-info { flex: 1; min-width: 0; }
.card-info .name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.card-info .app-name { font-size: 17px; font-weight: 700; color: var(--text); }
.card-info .tag { font-size: 11px; padding: 3px 10px; border-radius: 50px; font-weight: 600; letter-spacing: 0.5px; white-space: nowrap; }
.tag.hot { background: rgba(255,80,80,0.12); color: #dc2626; }
.tag.new { background: rgba(22,163,74,0.12); color: var(--green); }
.tag.top { background: rgba(240,185,11,0.15); color: #b45309; }
.card-info .desc {
  font-size: 13px; color: var(--text-dim); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== Card Stats & Rating ===== */
.card-stats { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.rating { text-align: center; }
.rating .stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; }
.rating .score {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, var(--green), #22c55e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.rating .count { font-size: 10px; color: var(--text-muted); }

/* ===== Download Button ===== */
.download-btn {
  background: linear-gradient(135deg, var(--green-dim), var(--green));
  color: #fff; border: none; padding: 10px 22px; border-radius: 50px;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.3s;
  white-space: nowrap; font-family: inherit; letter-spacing: 0.5px;
}
.download-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(22,163,74,0.3); }
.download-btn:active { transform: scale(0.96); }

/* ===== Detail Overlay & Panel ===== */
.detail-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 100; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.35s; padding: 20px;
  backdrop-filter: blur(4px);
}
.detail-overlay.open { opacity: 1; pointer-events: auto; }
.detail-panel {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px; max-width: 480px; width: 100%;
  position: relative; transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.detail-overlay.open .detail-panel { transform: translateY(0) scale(1); }
.detail-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(0,0,0,0.05); border: none; color: var(--text-dim);
  width: 36px; height: 36px; border-radius: 50%; font-size: 18px;
  cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.detail-close:hover { background: rgba(0,0,0,0.1); color: var(--text); }
.detail-icon {
  font-size: 48px; margin-bottom: 16px; width: 72px; height: 72px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.04);
}
.detail-name { font-size: 26px; font-weight: 800; margin-bottom: 4px; color: var(--text); }
.detail-rating { color: var(--gold); font-size: 15px; margin-bottom: 12px; }
.detail-desc { font-size: 14px; color: var(--text-dim); line-height: 1.8; margin-bottom: 20px; }
.detail-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.detail-features span {
  background: var(--green-light); padding: 5px 14px; border-radius: 50px;
  font-size: 12px; color: var(--green);
}
.detail-btn {
  width: 100%; background: linear-gradient(135deg, var(--green-dim), var(--green));
  color: #fff; border: none; padding: 14px; border-radius: 50px;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.3s; font-family: inherit;
}
.detail-btn:hover { box-shadow: 0 8px 30px rgba(22,163,74,0.3); transform: translateY(-2px); }

/* ===== Reviews ===== */
.reviews-section { margin-top: 64px; padding-top: 16px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; transition: all 0.3s;
}
.review-card:hover { background: var(--bg-card-hover); border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.review-user .name { font-size: 14px; font-weight: 600; color: var(--text); }
.review-user .app-ref { font-size: 11px; color: var(--green); margin-top: 2px; }
.review-stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; margin-bottom: 10px; }
.review-text { font-size: 13px; color: var(--text-dim); line-height: 1.7; position: relative; }
.review-text::before {
  content: "\201C"; font-size: 40px; color: rgba(0,0,0,0.03);
  position: absolute; top: -12px; left: -2px; line-height: 1; pointer-events: none;
}

/* ===== FAQ ===== */
.faq-section { margin-top: 64px; padding-top: 16px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 900px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; transition: all 0.3s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-question {
  width: 100%; background: none; border: none; color: var(--text);
  font-size: 15px; font-weight: 600; padding: 18px 56px 18px 22px;
  text-align: left; cursor: pointer; font-family: inherit;
  position: relative; line-height: 1.5;
}
.faq-question::after {
  content: "+"; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%); font-size: 22px; font-weight: 300;
  color: var(--text-dim); transition: transform 0.35s;
}
.faq-item.open .faq-question::after { content: "\2212"; transform: translateY(-50%); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 22px 20px; font-size: 14px; color: var(--text-dim); line-height: 1.8; }

/* ===== SEO Section ===== */
.seo-section { margin-top: 64px; padding-top: 16px; }
.seo-article {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px;
}
.seo-article h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.seo-article p { font-size: 14px; color: var(--text-dim); line-height: 1.9; margin-bottom: 16px; }
.seo-article p:last-child { margin-bottom: 0; }
.seo-article em { font-style: normal; color: var(--green); }
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.guide-step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px; text-align: center; transition: all 0.3s;
}
.guide-step:hover { background: var(--bg-card-hover); border-color: var(--border-strong); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.guide-step .step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #22c55e);
  color: #fff; font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.guide-step .step-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.guide-step .step-desc { font-size: 12px; color: var(--text-dim); line-height: 1.6; }

/* ===== Footer ===== */
.footer { text-align: center; padding: 60px 0 40px; color: var(--text-dim); font-size: 13px; animation: fadeUp 0.8s 0.6s ease-out both; }
.footer a { color: var(--green); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ===== Keyframes ===== */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardIn { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .rank-card { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .card-stats { width: 100%; justify-content: space-between; }
  .rank-badge, .app-icon { width: 42px; height: 42px; font-size: 20px; border-radius: 12px; }
  .rank-badge.normal { font-size: 17px; }
  .card-info .app-name { font-size: 15px; }
  .hero { padding: 90px 0 24px; }
  .stats-strip { gap: 24px; }
  .stat-num { font-size: 22px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .guide-steps { grid-template-columns: 1fr; }
  .seo-article { padding: 24px 20px; }

/* ===== Articles Section ===== */
.articles-section { margin-top: 64px; padding-top: 16px; }
.articles-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  text-decoration: none; color: inherit;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
}
.article-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), #22c55e, #4ade80);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.article-card:hover::before { transform: scaleX(1); }
.article-card:hover {
  border-color: rgba(22,163,74,0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(22,163,74,0.08), 0 4px 8px rgba(0,0,0,0.04);
}
.article-card-inner {
  padding: 24px 24px 20px;
  flex: 1; display: flex; flex-direction: column;
}
.article-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.article-date {
  font-size: 12px; color: var(--text-muted); letter-spacing: 0.3px;
  display: inline-flex; align-items: center; gap: 4px;
}
.article-date::before {
  content: "";
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.article-category {
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--green);
  background: rgba(22,163,74,0.08);
  padding: 2px 10px; border-radius: 50px;
}
.article-title {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin-bottom: 10px; line-height: 1.5; letter-spacing: 0.2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.3s;
}
.article-card:hover .article-title { color: var(--green); }
.article-excerpt {
  font-size: 13px; color: var(--text-dim); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.article-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.article-read-time {
  font-size: 11px; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 4px;
}
.article-read-more {
  font-size: 12px; font-weight: 600; color: var(--green);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap 0.3s;
}
.article-card:hover .article-read-more { gap: 8px; }
.article-read-more-arrow {
  display: inline-block; transition: transform 0.3s;
}
.article-card:hover .article-read-more-arrow { transform: translateX(2px); }
  .articles-grid { grid-template-columns: 1fr; }
}

/* ========== 最新文章 ========== */
.articles-section {
  max-width: 1200px;
  margin: 60px auto 0;
  /* padding: 0 24px; */
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.article-card {
  background: var(--card-bg, #fff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}
.article-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f0f0f0;
}
.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-body {
  padding: 16px;
}
.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #ff6b6b;
  background: #ff6b6b12;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.article-body h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-body p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
}
@media (max-width: 768px) {
  .article-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }
  .article-img {
    height: 140px;
  }
}
/* 文章链接 */
a.article-img {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}
a.article-img:hover img {
  transform: scale(1.05);
}
.article-img img {
  transition: transform 0.3s ease;
}
.article-body h3 a {
  color: inherit;
  text-decoration: none;
}
.article-body h3 a:hover {
  color: #22c55e;
}