:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --card: #ffffff;
  --border: #e6e9f0;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-2: #4f46e5;
  --red: #dc2626;
  --green: #16a34a;
  --radius: 14px;
}

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

body {
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
code { background: #eef1f6; padding: 1px 6px; border-radius: 5px; font-size: .85em; color: #334155; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand .logo { font-size: 22px; }
.site-header nav a { color: var(--muted); margin-left: 22px; font-size: 15px; }
.site-header nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 70px 0 60px; background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%); }
.hero-inner { display: flex; align-items: center; gap: 40px; }
.badge { display: inline-block; background: #e0ecff; color: var(--accent); padding: 4px 14px; border-radius: 999px; font-size: 13px; margin-bottom: 18px; }
.hero-text h1 { font-size: 40px; line-height: 1.25; margin-bottom: 16px; color: #0f172a; }
.lead { color: var(--muted); font-size: 17px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; }
.meta { margin-top: 16px; color: var(--muted); font-size: 14px; }

.btn { display: inline-block; padding: 11px 22px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: .15s; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37,99,235,.35); }
.btn-primary:disabled { background: #cbd5e1; color: #fff; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 6px 14px; font-size: 13px; }

/* CSS Clock */
.hero-art { flex-shrink: 0; }
.clock {
  width: 180px; height: 180px; border-radius: 50%;
  border: 6px solid #c7d7fe;
  background: radial-gradient(circle, #ffffff, #eef3ff);
  position: relative; box-shadow: 0 8px 30px rgba(37,99,235,.18);
}
.hand { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; background: var(--accent); border-radius: 4px; }
.hand.hour { width: 5px; height: 45px; margin-left: -2.5px; animation: spin 43200s linear infinite; }
.hand.minute { width: 4px; height: 62px; margin-left: -2px; background: var(--accent-2); animation: spin 3600s linear infinite; }
.hand.second { width: 2px; height: 72px; margin-left: -1px; background: var(--red); animation: spin 60s linear infinite; }
.center { position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #0f172a; border-radius: 50%; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* Sections */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-soft); }
.section h2 { font-size: 28px; margin-bottom: 10px; color: #0f172a; }
.section-sub { color: var(--muted); margin-bottom: 24px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature .fi { font-size: 28px; margin-bottom: 10px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; color: #0f172a; }
.feature p { color: var(--muted); font-size: 14px; }

/* Download */
.download-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-top: 24px; box-shadow: 0 4px 14px rgba(15,23,42,.05); }
.dl-main { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.dl-icon { font-size: 46px; }
.dl-info { flex: 1; min-width: 240px; }
.dl-info h3 { font-size: 22px; color: #0f172a; }
.dl-info .ver { font-size: 14px; color: var(--accent); font-weight: 400; }
.dl-meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.dl-note { color: var(--muted); font-size: 13px; margin-top: 6px; }
.dl-todo { color: var(--muted); font-size: 12px; margin-top: 8px; max-width: 280px; }

/* Tools grid */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 12px; }
.tool-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: .15s; }
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15,23,42,.1); border-color: #c7d7fe; }
.tool-icon { font-size: 30px; margin-bottom: 10px; }
.tool-card h4 { font-size: 17px; margin-bottom: 6px; color: #0f172a; }
.tool-card p { color: var(--muted); font-size: 14px; }
.tool-card .tagline { color: var(--text); font-size: 13px; }
.tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; margin-top: 10px; }
.tag.builtin { background: #e7f6ec; color: var(--green); }
.tag.soon { background: #fde8e8; color: var(--red); }
.card-foot { margin-top: 12px; }

/* About */
.about p { color: var(--muted); max-width: 720px; margin-bottom: 12px; }
.contact { color: var(--text) !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; text-align: center; color: var(--muted); font-size: 14px; background: #fff; }

/* QQ 群卡片 */
.group-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: 0 4px 14px rgba(15,23,42,.05); }
.group-inner { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.group-inner .qr { width: 150px; height: 150px; border-radius: 12px; background: #fff; padding: 8px; object-fit: contain; border: 1px solid var(--border); }
.group-info h2 { font-size: 26px; margin-bottom: 8px; color: #0f172a; }
.group-info p { color: var(--muted); max-width: 560px; }
.qq-num { color: var(--text) !important; font-size: 16px; margin-top: 6px; }
.qq-num strong { color: var(--accent); font-size: 20px; letter-spacing: 1px; }

@media (max-width: 860px) {
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero-text h1 { font-size: 30px; }
  .hero-actions { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .site-header nav a { margin-left: 12px; font-size: 13px; }
}
