* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1E293B; --secondary: #334155; --cta: #22C55E;
  --bg: #0F172A; --text: #F8FAFC; --text-2: #94A3B8; --text-3: #475569;
  --brand: #06b6d4; --brand-dark: #0891b2;
  --purple: #8b5cf6; --pink: #ec4899; --amber: #f59e0b;
  --border: rgba(255,255,255,0.06);
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px;
}
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.7; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
h1, h2, h3, h4 { font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif; }
a { color: inherit; text-decoration: none; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; width: 100%; }
.main { flex: 1; }
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,23,42,0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 960px; margin: 0 auto; padding: 0 24px; height: 52px;
}
.navbar-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.navbar-brand img { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border); }
.navbar-links { display: flex; gap: 18px; }
.navbar-links a { font-size: 12px; color: var(--text-2); transition: color 150ms; }
.navbar-links a:hover { color: var(--brand); }
.hero {
  text-align: center; padding: 80px 0 48px;
  background: linear-gradient(180deg, rgba(6,182,212,0.06), transparent 60%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.08), transparent 60%);
  pointer-events: none;
}
.hero-logo { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 20px; position: relative; }
.hero-logo-icon { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; background: rgba(6,182,212,0.06); border: 1px solid rgba(6,182,212,0.12); padding: 3px; }
.hero-logo-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.hero h1 { font-size: 48px; font-weight: 700; letter-spacing: -1.5px; }
.hero h1 span { background: linear-gradient(135deg, #06b6d4, #8b5cf6, #ec4899); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 16px; color: var(--text-2); margin: 12px auto 0; max-width: 460px; }
.hero-stats { display: flex; justify-content: center; gap: 32px; margin-top: 28px; }
.hero-stat { text-align: center; }
.hero-stat-num { font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 24px; font-weight: 700; color: var(--brand); }
.hero-stat-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.tagline { text-align: center; padding: 40px 0 24px; max-width: 720px; margin: 0 auto; }
.tagline p { font-size: 15px; color: var(--text-2); line-height: 1.8; }
.tagline strong { color: var(--text); font-weight: 500; }
.tagline .divider { width: 32px; height: 2px; margin: 16px auto; background: linear-gradient(90deg, var(--brand), transparent); border-radius: 2px; }
.section { padding: 48px 0; }
.section-header { margin-bottom: 32px; }
.section-header h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; display: flex; align-items: center; gap: 8px; }
.section-header p { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(145deg, rgba(30,41,59,0.6), rgba(30,41,59,0.3));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px;
  transition: all 0.25s ease; position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0; transition: opacity 0.3s ease; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card:hover { border-color: rgba(6,182,212,0.2); box-shadow: 0 12px 40px rgba(0,0,0,0.2); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
.card-row { display: flex; gap: 14px; align-items: flex-start; }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; background: rgba(6,182,212,0.06); border: 1px solid var(--border); padding: 3px; display: flex; align-items: center; justify-content: center; }
.card-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.card-icon-text { font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 16px; font-weight: 700; background: linear-gradient(135deg, var(--brand), var(--purple)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.card-content { flex: 1; min-width: 0; }
.card-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-tag { font-size: 9px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: rgba(6,182,212,0.1); color: var(--brand); letter-spacing: 0.3px; }
.card-tag-purple { background: rgba(139,92,246,0.1); color: var(--purple); }
.card-tag-pink { background: rgba(236,72,153,0.1); color: var(--pink); }
.card-tag-amber { background: rgba(245,158,11,0.1); color: var(--amber); }
.card-tag-gray { background: rgba(255,255,255,0.04); color: var(--text-3); }
.card-sub { font-size: 13px; color: var(--text-2); margin-top: 1px; }
.card-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; margin: 10px 0; }
.card-desc strong { color: var(--text); font-weight: 500; }
.card-features { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 12px; }
.card-feature { font-size: 11px; padding: 3px 9px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 20px; color: var(--text-3); }
.card-links { display: flex; flex-wrap: wrap; gap: 6px; }
.card-link { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; transition: all 150ms ease; border: 1px solid var(--border); color: var(--text-2); background: transparent; }
.card-link:hover { border-color: var(--brand); color: var(--brand); background: rgba(6,182,212,0.04); }
.card-link-primary { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: var(--text); border: none; }
.card-link-primary:hover { opacity: 0.9; color: var(--text); }
.card-link-cta { background: var(--cta); color: #0F172A; border: none; font-weight: 600; }
.card-link-cta:hover { opacity: 0.9; color: #0F172A; }
.card-badge-std { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; padding: 2px 6px; border-radius: 3px; background: rgba(34,197,94,0.1); color: var(--cta); letter-spacing: 0.2px; }
.card-badge-wip { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; padding: 2px 6px; border-radius: 3px; background: rgba(245,158,11,0.1); color: var(--amber); letter-spacing: 0.2px; }
hr { border: none; border-top: 1px solid var(--border); margin: 0; }
.cta-box {
  background: linear-gradient(135deg, rgba(6,182,212,0.04), rgba(139,92,246,0.04));
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 40px 32px; text-align: center; margin: 32px 0;
}
.cta-box h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.cta-box p { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; }
.cta-box .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cta-box .btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; transition: all 150ms ease; cursor: pointer; border: none; }
.cta-box .btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: var(--text); }
.cta-box .btn-primary:hover { opacity: 0.9; }
.cta-box .btn-outline { border: 1px solid var(--border); color: var(--text-2); background: transparent; }
.cta-box .btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.spec-box {
  background: rgba(6,182,212,0.02); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; margin: 32px 0;
}
.spec-box h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.spec-item { padding: 16px; background: rgba(255,255,255,0.02); border-radius: var(--radius-md); border: 1px solid var(--border); }
.spec-item h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--brand); }
.spec-item p { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.spec-item code { font-size: 11px; padding: 1px 5px; background: rgba(255,255,255,0.04); border-radius: 3px; color: var(--text); }
.spec-status { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 8px; border-radius: 3px; margin-top: 6px; }
.spec-status-done { background: rgba(34,197,94,0.1); color: var(--cta); }
.spec-status-todo { background: rgba(245,158,11,0.1); color: var(--amber); }
.footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; text-align: center; padding: 12px 0; border-top: 1px solid var(--border); background: rgba(15,23,42,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.footer p { font-size: 12px; color: var(--text-3); margin: 2px 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 4px; }
.footer-links a { font-size: 12px; color: var(--text-2); transition: color 150ms; }
.footer-links a:hover { color: var(--brand); }
.footer-icp { font-size: 11px; color: var(--text-3); }
.footer-icp a { color: var(--text-3); }
.footer-icp a:hover { color: var(--brand); }
.main { flex: 1; padding-bottom: 140px; }
.lightbox { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); cursor: pointer; }
.lightbox-img { position: relative; z-index: 1; max-width: 70vw; max-height: 70vh; border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 24px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,0.08); color: #fff; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.15); }
.card-qrcode { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.card-qrcode img { width: 48px; height: 48px; border-radius: var(--radius-sm); border: 1px solid var(--border); object-fit: cover; cursor: pointer; transition: border-color 0.2s; }
.card-qrcode img:hover { border-color: var(--brand); }
.card-qrcode p { font-size: 11px; color: var(--text-3); }
.qrcode-img { cursor: pointer; }
.back-to-top { position: fixed; bottom: 90px; right: 20px; z-index: 99; width: 40px; height: 40px; border-radius: 50%; background: rgba(6,182,212,0.1); border: 1px solid var(--border); color: var(--text-2); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 150ms; opacity: 0; pointer-events: none; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--brand); color: var(--text); }
.game-cat { font-weight: 500; }
.game-cat-observe { color: #F97316; }
.game-cat-logic { color: #4F46E5; }
.game-cat-lang { color: #EC4899; }
.game-cat-react { color: #10B981; }
.game-cat-life { color: #8D6E63; }
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .hero { padding: 48px 0 32px; }
  .hero-stats { gap: 16px; }
  .hero-stat-num { font-size: 18px; }
  .section { padding: 32px 0; }
  .container { padding: 0 16px; }
  .cta-box { padding: 28px 16px; }
  .spec-grid { grid-template-columns: 1fr; }
  .navbar-links { display: none; }
}
