/* ========== common.css - 三页共用样式 ========== */

/* 全局 */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg-start: #0f0c29; --bg-mid: #302b63; --bg-end: #24243e;
  --card-bg: rgba(255,255,255,0.06); --card-border: rgba(255,255,255,0.10);
  --text-primary: #ffffff; --text-secondary: rgba(255,255,255,0.60); --text-tertiary: rgba(255,255,255,0.38);
  --ios-color: #007AFF; --android-color: #34C759; --tv-color: #FF9500;
  --ios-glow: rgba(0,122,255,0.35); --android-glow: rgba(52,199,89,0.35); --tv-glow: rgba(255,149,0,0.35);
  --radius-lg: 20px; --radius-md: 14px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(160deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
  background-attachment: fixed; color: var(--text-primary);
  min-height:100vh; overflow-x:hidden; position:relative;
}
#particles-canvas { position:fixed; top:0; left:0; width:100%; height:100%; z-index:0; pointer-events:none; }
.site-wrapper { position:relative; z-index:1; max-width:1200px; margin:0 auto; padding:32px 24px 60px; }

/* 导航 */
.top-nav {
  display:flex; align-items:center; justify-content:center;
  margin-bottom:48px; padding:12px 28px;
  background:rgba(255,255,255,0.05); border:1px solid var(--card-border);
  border-radius:var(--radius-lg); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
}
.nav-links { display:flex; gap:6px; }
.nav-link {
  padding:8px 22px; border-radius:999px; color:var(--text-secondary);
  text-decoration:none; font-size:15px; font-weight:500; transition:var(--transition); letter-spacing:0.3px;
}
.nav-link:hover { color:var(--text-primary); background:rgba(255,255,255,0.08); }

/* 页面标题区 */
.page-hero { text-align:center; margin-bottom:48px; animation:fadeUp 0.8s ease-out both; }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.page-icon { font-size:52px; margin-bottom:14px; display:block; }
.page-logo { width:64px; height:64px; object-fit:contain; }
.page-title { font-size:clamp(28px, 4.5vw, 48px); font-weight:800; margin-bottom:12px; letter-spacing:0.5px; }
.page-sub { font-size:clamp(13px, 1.6vw, 16px); color:var(--text-secondary); line-height:1.8; }

/* Footer */
.site-footer { text-align:center; padding:36px 24px 20px; border-top:1px solid var(--card-border); }
.footer-links { display:flex; justify-content:center; gap:26px; margin-bottom:18px; flex-wrap:wrap; }
.footer-link { color:var(--text-tertiary); text-decoration:none; font-size:13px; transition:var(--transition); }
.footer-link:hover { color:var(--text-primary); }
.footer-copy { font-size:12px; color:var(--text-tertiary); }

/* 滚动动画 - staggered */
.reveal { opacity:0; transform:translateY(32px); transition:opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal:nth-child(1) { transition-delay:0.05s; }
.reveal:nth-child(2) { transition-delay:0.12s; }
.reveal:nth-child(3) { transition-delay:0.19s; }
.reveal:nth-child(4) { transition-delay:0.26s; }
.reveal:nth-child(5) { transition-delay:0.33s; }
.reveal:nth-child(6) { transition-delay:0.40s; }

/* 涟漪效果 */
.ripple-wrap { position:relative; overflow:hidden; }
.ripple-wrap .ripple { position:absolute; border-radius:50%; background:rgba(255,255,255,0.18); transform:scale(0); animation:rippleOut 0.6s ease-out forwards; pointer-events:none; }
@keyframes rippleOut { to { transform:scale(4); opacity:0; } }

/* 骨架屏 */
.skeleton { background:linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%); background-size:200% 100%; animation:shimmer 1.5s infinite; border-radius:var(--radius-md); }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.skeleton-card { height:80px; margin-bottom:14px; }
.skeleton-stat { width:150px; height:90px; }

/* 文字阴影 - 提升高级感 */
.text-glow { text-shadow:0 0 20px rgba(167,139,250,0.3), 0 2px 4px rgba(0,0,0,0.3); }
.text-glow-ios { text-shadow:0 0 20px rgba(0,122,255,0.3), 0 2px 4px rgba(0,0,0,0.3); }
.text-glow-android { text-shadow:0 0 20px rgba(52,199,89,0.3), 0 2px 4px rgba(0,0,0,0.3); }
.text-glow-tv { text-shadow:0 0 20px rgba(255,149,0,0.3), 0 2px 4px rgba(0,0,0,0.3); }

/* 序号 */
.app-num {
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:50%; font-size:13px; font-weight:700;
  background:rgba(255,255,255,0.08); color:var(--text-secondary); flex-shrink:0;
}
.app-num.app-num-top {
  background:linear-gradient(135deg,rgba(167,139,250,0.35),rgba(56,189,248,0.35));
  color:#e0d4fd;
}

/* 视差背景 - body已有background-attachment:fixed */

/* 响应式 */
@media (max-width:768px) {
  .site-wrapper { padding:24px 16px 40px; }
  .top-nav { padding:10px 16px; }
  .nav-link { padding:7px 14px; font-size:14px; }
}
