/* ============================================================
 * CYAudit 个人开发者站 —— 全站样式
 * 设计基调：浅色 / 专业 / 蓝色主accent；移动端断点 768px。
 * ============================================================ */
:root {
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff4ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-hover: 0 4px 12px rgba(15, 23, 42, .10), 0 16px 40px rgba(15, 23, 42, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img, svg { max-width: 100%; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff; font-size: 14px; letter-spacing: .5px;
}
.nav-links { display: flex; gap: 6px; }
.nav-link {
  padding: 8px 14px; border-radius: 8px;
  color: var(--ink-2); font-size: 15px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--accent-soft); color: var(--accent-dark); }
.nav-link.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 12px; font-size: 18px; cursor: pointer; color: var(--ink-2);
}

/* ---------- 通用块 ---------- */
.section { padding: 64px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: 26px; margin-bottom: 10px; }
.section-head p { color: var(--ink-3); }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- 按钮 / 徽章 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .15s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, .35); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.badge-muted { background: var(--line); color: var(--ink-3); }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 64px;
  background:
    radial-gradient(1000px 400px at 80% -10%, #dbeafe 0%, transparent 60%),
    radial-gradient(800px 400px at 10% 110%, #ede9fe 0%, transparent 60%),
    var(--bg);
  text-align: center;
}
.hero h1 { font-size: 40px; line-height: 1.25; margin-bottom: 16px; letter-spacing: -.5px; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 680px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.hero-meta { color: var(--ink-3); font-size: 13px; }
.hero-meta span { margin: 0 10px; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-title { font-size: 17px; font-weight: 700; color: var(--ink); display: inline-block; margin-bottom: 6px; }
.card-title:hover { color: var(--accent); }
.card p, .card-tagline { color: var(--ink-2); font-size: 14px; }
.card-tagline { margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.card-foot .meta { font-size: 12px; color: var(--ink-3); }
.product-featured { border: 1px solid #bfdbfe; background: linear-gradient(180deg, #f0f6ff, #fff); }
.product-card .card-list { margin: 8px 0 4px; padding-left: 18px; }
.product-card .card-list li { font-size: 13.5px; color: var(--ink-2); margin: 4px 0; }
.product-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; font-size: 22px;
}

/* ---------- 特性网格（首页） ---------- */
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-num {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.feature-item h3 { font-size: 15px; margin-bottom: 4px; }
.feature-item p { font-size: 13.5px; color: var(--ink-3); }

/* ---------- 双栏（场景/用户） ---------- */
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.scenario { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin-bottom: 20px; }
.scenario h3 { font-size: 15px; margin-bottom: 4px; }
.scenario p { font-size: 13.5px; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 13.5px; color: var(--ink-2); box-shadow: var(--shadow);
}

/* ---------- 详情页 ---------- */
.detail-hero { padding: 56px 0 40px; text-align: center; background: #fff; border-bottom: 1px solid var(--line); }
.detail-hero .product-icon { width: 64px; height: 64px; font-size: 30px; border-radius: 16px; }
.detail-hero h1 { font-size: 30px; margin: 14px 0 8px; }
.detail-hero .lead { color: var(--ink-2); max-width: 640px; margin: 0 auto 20px; }
.detail-meta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.detail-meta .badge { background: var(--accent-soft); color: var(--accent-dark); }
.prose h2 { font-size: 20px; margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--accent-soft); }
.prose h3 { font-size: 15px; margin: 20px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 14.5px; }
.prose ul { padding-left: 20px; margin: 8px 0; }
.prose li { margin: 6px 0; }
.check-list { list-style: none; padding-left: 0 !important; }
.check-list li { padding-left: 26px; position: relative; }
.check-list li::before { content: "✔"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.note-box {
  background: var(--accent-soft); border: 1px solid #bfdbfe; border-radius: 10px;
  padding: 14px 18px; font-size: 13.5px; color: var(--ink-2); margin: 14px 0;
}
.screenshot-placeholder {
  border: 2px dashed var(--line); border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 12px, #f1f5f9 12px, #f1f5f9 24px);
  min-height: 220px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 14px; margin: 14px 0;
}
.video-placeholder {
  aspect-ratio: 16 / 9; width: 100%; margin: 14px 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: var(--radius); background: #0f172a; color: #fff;
}
.video-placeholder-content { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.video-play-icon {
  width: 58px; height: 58px; display: flex; align-items: center; justify-content: center;
  padding-left: 4px; border: 1px solid rgb(255 255 255 / 55%); border-radius: 50%;
  background: rgb(255 255 255 / 12%); font-size: 20px;
}
.video-placeholder-content p { color: #fff; font-size: 15px; font-weight: 600; }
.video-placeholder-note { color: #cbd5e1; font-size: 13px; }
.version-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 10px 0; }
.version-table th, .version-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.version-table th { background: var(--bg); }

/* ---------- 关于页 ---------- */
.about-hero { display: flex; gap: 28px; align-items: center; margin-bottom: 40px; }
.avatar {
  flex: none; width: 96px; height: 96px; border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; letter-spacing: 1px;
  box-shadow: var(--shadow);
}
.contact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; box-shadow: var(--shadow); font-size: 14px;
}
.contact-item .ci-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.contact-item a { word-break: break-all; }
.ph { color: var(--ink-3); font-style: italic; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #94a3b8; margin-top: 64px; }
.footer-wrap { padding: 36px 20px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.footer-brand { color: #e2e8f0; font-weight: 600; }
.footer-links a { color: #94a3b8; margin: 0 8px; font-size: 13.5px; }
.footer-links a:hover { color: #e2e8f0; }
.footer-links .sep { color: #475569; }
.footer-meta { font-size: 12.5px; }
.footer-meta a { color: #94a3b8; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 10px 20px 16px; gap: 4px;
    box-shadow: var(--shadow-hover);
  }
  .nav-links.open { display: flex; }
  .hero h1 { font-size: 30px; }
  .hero { padding: 56px 0 44px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .about-hero { flex-direction: column; text-align: center; }
  .section { padding: 44px 0; }
}
