/* ==========================================================================
   郑好内容工场 JustRight AI · 站点样式（首页 / 操作说明 / 部署说明 共用）
   主色 #3370FF · 商务蓝
   ========================================================================== */
:root {
  --brand: #3370FF;
  --brand-dark: #2856C9;
  --brand-light: #eef3fc;
  --ink: #17233d;
  --ink-2: #45536e;
  --ink-3: #7b879e;
  --line: #e3e9f4;
  --bg: #f6f8fc;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(23, 35, 61, .08);
  --shadow-lg: 0 24px 80px rgba(23, 35, 61, .16);
  --maxw: 1180px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
::selection { background: var(--brand); color: #fff; }

/* ===== 顶部导航 ===== */
.nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; display: flex; align-items: center;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; letter-spacing: .2px; color: var(--ink); }
.nav-logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #4b82ff, #2856C9);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; box-shadow: 0 4px 14px rgba(42, 80, 173, .35);
}
.nav-sub { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .5px; }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-size: 13.5px; font-weight: 500;
  height: 40px; padding: 0 14px; border-radius: 10px;
  display: inline-flex; align-items: center;
  transition: color .22s ease, background .22s ease, transform .22s ease;
}
.nav-links a:hover {
  background: var(--brand-light); color: var(--brand);
  transform: translateY(-1px);
}
.nav-links a.active { color: var(--brand); background: var(--brand-light); font-weight: 600; }
.nav-cta { flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  height: 40px; padding: 0 22px; border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: linear-gradient(135deg, #4b82ff, #2856C9); color: #fff !important; box-shadow: 0 10px 26px rgba(42, 80, 173, .35); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ===== Hero ===== */
.hero-brand {
  margin: 26px 0 4px;
  font-size: clamp(46px, 8vw, 86px);
  font-weight: 900;
  letter-spacing: -.5px;
  line-height: 1.05;
  background: linear-gradient(100deg, #3370FF, #2856C9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-cn {
  font-size: clamp(20px, 3vw, 30px); font-weight: 700; letter-spacing: 6px;
  color: var(--ink); margin-top: 8px;
}
.nav-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  color: var(--ink-2); transition: color .22s ease, background .22s ease, transform .22s ease;
}
.nav-icon:hover {
  background: var(--brand-light); color: var(--brand);
  transform: translateY(-1px) rotate(-4deg) scale(1.06);
}
.link-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff;
  color: var(--brand); transition: all .18s; margin-right: 8px;
}
.link-ic:hover { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(42, 80, 173, .28); }
.foot-brand { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.foot-copy { margin-bottom: 8px; }
.beian a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-3); text-decoration: none; font-size: 12.5px;
  transition: color .15s;
}
.beian a:hover { color: var(--brand); }

/* ===== Hero ===== */
.hero {
  padding: 130px 24px 90px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(54, 103, 216, .14), transparent 60%),
    radial-gradient(800px 380px at 90% 0%, rgba(14, 165, 164, .10), transparent 60%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(23, 35, 61, .055) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(600px 260px at 50% 10%, #000 40%, transparent);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--brand);
  background: #fff; border: 1px solid #d6e1f7; border-radius: 999px;
  padding: 7px 16px; box-shadow: var(--shadow);
}
.hero h1 {
  margin: 26px 0 6px; font-size: clamp(38px, 6vw, 64px); font-weight: 800; letter-spacing: -.5px;
  line-height: 1.1; color: var(--ink);
}
.hero-en {
  font-size: clamp(18px, 3vw, 26px); font-weight: 700; letter-spacing: 2px;
  background: linear-gradient(100deg, #3370FF, #0ea5a4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 22px;
}
.hero-slogan { font-size: clamp(16px, 2.2vw, 21px); color: var(--ink-2); font-weight: 600; }
.hero-tagline { font-size: 15px; color: var(--ink-3); margin-top: 8px; letter-spacing: .5px; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== 区块 ===== */
.sec { padding: 70px 24px; max-width: var(--maxw); margin: 0 auto; }
.sec-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: none; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-tag {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .6px;
  color: var(--brand); background: var(--brand-light); padding: 5px 12px; border-radius: 7px;
  margin-bottom: 14px;
}
.sec-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -.3px; }
.sec-head p { color: var(--ink-2); font-size: 15.5px; margin-top: 10px; max-width: 640px; margin-left: auto; margin-right: auto; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; max-width: var(--maxw); margin: 0 auto; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }

.feature {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 20px;
  transition: transform .18s, box-shadow .18s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ico { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; background: linear-gradient(135deg, #eaf1ff, #dbe7fc); color: var(--brand); }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--ink-2); margin: 0; }

.proj {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.proj:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c9d6f2; }
.proj-name { font-size: 17px; font-weight: 800; color: var(--ink); }
.proj-en { font-size: 12.5px; font-weight: 600; color: var(--brand); margin: 3px 0 10px; }
.proj p { font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px; }
.proj-links { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.proj-links span { color: var(--brand); font-weight: 600; }

/* ===== 说明页通用 ===== */
.doc { max-width: 860px; margin: 0 auto; padding: 50px 24px 80px; }
.doc h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.doc .doc-lead { color: var(--ink-2); margin-bottom: 34px; font-size: 15px; }
.doc h2 { font-size: 22px; font-weight: 800; margin: 40px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 17px; font-weight: 700; margin: 26px 0 10px; }
.doc p { margin: 10px 0; color: var(--ink-2); }
.doc ul, .doc ol { margin: 10px 0 10px 22px; }
.doc li { margin: 5px 0; color: var(--ink-2); }
.doc strong { color: var(--ink); }
.doc code {
  font-family: var(--mono); font-size: .88em;
  background: #eef2f9; color: #2856C9; padding: 2px 6px; border-radius: 5px;
}
.doc pre {
  background: #f6f9ff; color: #2c3e66; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  font-family: var(--mono); font-size: 13px; line-height: 1.65; overflow-x: auto; margin: 14px 0;
  box-shadow: var(--shadow);
}
.doc pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.doc th, .doc td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: #f1f5fb; font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; }
.doc tr:last-child td { border-bottom: none; }
.doc td code { white-space: nowrap; }
.doc .comment { color: #7d8db3; }
.doc .note { border-left: 4px solid var(--brand); background: var(--brand-light); padding: 13px 16px; border-radius: 0 10px 10px 0; margin: 14px 0; font-size: 14px; color: #31415f; }
.doc .note.warn { border-color: #e8881a; background: #fdf3e7; color: #7a4b10; }
.doc .note.ok { border-color: #22a06b; background: #e9f7f0; color: #17653f; }
.doc .shot { margin: 18px 0 8px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; }
.doc .shot img { display: block; width: 100%; height: auto; }
.doc .shot figcaption { padding: 10px 16px; font-size: 13px; color: var(--ink-3); background: #fafbfe; border-top: 1px solid var(--line); }

/* ===== 页脚 ===== */
footer { border-top: 1px solid var(--line); background: #fff; text-align: center; padding: 40px 24px; color: var(--ink-3); font-size: 13px; }
footer b { color: var(--ink); }

@media (max-width: 640px) {
  .hero { padding: 110px 18px 60px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .doc pre { font-size: 12px; }
}


/* ==========================================================================
   v16 高端化增强
   ========================================================================== */

/* 导航：更大气 */
.nav { height: 72px; }
.nav-name { font-size: 17px; letter-spacing: .3px; }
.nav-logo { width: 38px; height: 38px; border-radius: 11px; font-size: 18px;
  background: linear-gradient(135deg, #5b8dff 0%, #3370FF 55%, #1e3f8f 100%); }
.nav-cta .btn { padding: 11px 26px; font-size: 14.5px; }

/* GitHub 图标放大 */
.nav-gh { width: 44px; height: 44px; border-radius: 11px; }
.nav-gh svg { width: 26px; height: 26px; }

/* Hero：v17 浅色高级质感（全局禁用深色） */
.hero {
  padding: 120px 24px 80px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 20% -12%, rgba(51, 112, 255, .16), transparent 62%),
    radial-gradient(900px 480px at 85% 8%, rgba(92, 139, 255, .12), transparent 62%),
    linear-gradient(180deg, #f5f8ff 0%, #eef4ff 100%);
  color: var(--ink);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(23, 35, 61, .05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(760px 320px at 50% 12%, #000 36%, transparent);
}
.hero > * { position: relative; z-index: 1; }
.hero-kicker {
  font-size: 13px; font-weight: 600; color: var(--brand);
  background: #fff; border: 1px solid #d6e1f7; border-radius: 999px;
  padding: 8px 18px; box-shadow: var(--shadow);
}
.hero-brand {
  margin: 30px 0 6px;
  font-size: clamp(54px, 9vw, 96px); font-weight: 900; letter-spacing: -.8px; line-height: 1.04;
  background: linear-gradient(105deg, #1e3f8f 15%, #3370FF 55%, #5c8bff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 30px rgba(51, 112, 255, .22));
}
.hero-cn {
  font-size: clamp(21px, 3vw, 32px); font-weight: 700; letter-spacing: 8px;
  color: var(--ink); margin-top: 10px;
}
.hero-slogan { font-size: clamp(16px, 2.2vw, 21px); color: var(--ink-2); font-weight: 600; }
.hero-tagline { font-size: 15px; color: var(--ink-3); margin-top: 8px; letter-spacing: .6px; }

/* Hero CTA */
.hero-cta { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 14px 34px; font-size: 15.5px; border-radius: 999px; }
.btn-primary {
  background: linear-gradient(135deg, #5c8bff, #2856C9);
  color: #fff !important; box-shadow: 0 14px 38px rgba(51, 112, 255, .38);
}
.btn-ghost { background: #fff; color: var(--brand); border: 1.5px solid #cfdefc; box-shadow: var(--shadow); }
.btn-ghost:hover { background: #f5f8ff; border-color: #b7d0fb; }

/* Hero 数据带（浅色玻璃卡） */
.hero-stats {
  margin: 56px auto 0; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  max-width: 920px;
}
.hstat {
  min-width: 190px; padding: 18px 22px; border-radius: 16px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(51, 112, 255, .15);
  backdrop-filter: blur(10px); text-align: center;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 6px 22px rgba(30, 63, 143, .07);
}
.hstat:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-lg); }
.hstat b { display: block; font-size: 32px; font-weight: 900; letter-spacing: -.5px;
  background: linear-gradient(120deg, #1e3f8f, #3370FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hstat span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); letter-spacing: .4px; }

/* 区块与卡片增强 */
.sec { padding: 84px 24px; }
.sec-head { margin-bottom: 52px; }
.sec-head h2 { font-size: 32px; }
.feature { border-radius: 18px; padding: 26px 24px 24px; position: relative; overflow: hidden; }
.feature::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, transparent, #4b82ff, transparent);
  opacity: 0; transition: opacity .25s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature:hover::before { opacity: 1; }
.feature .ico { width: 48px; height: 48px; border-radius: 13px; margin-bottom: 14px;
  background: linear-gradient(135deg, #eaf1ff, #d5e3fd); }
.proj { border-radius: 18px; }
footer { padding: 48px 24px; }

@media (max-width: 640px) {
  .hero { padding: 88px 18px 56px; }
  .hstat { min-width: 140px; padding: 14px 16px; }
  .hstat b { font-size: 26px; }
}


/* ==========================================================================
   v17 主题增强（#3370FF · 全局浅色）
   ========================================================================== */

/* 导航品牌：流光渐变大字（参考 zhengl.vip） */
.nav-name {
  font-size: 19px; font-weight: 800; letter-spacing: .3px;
  background: linear-gradient(90deg, #3370FF, #8fb5ff, #3370FF);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine 3.5s linear infinite;
}
@keyframes shine { to { background-position: -200% center; } }
.nav-links a { font-size: 14.5px; padding: 8px 14px; border-radius: 10px; }
.nav-cta .btn { border-radius: 999px; }

/* 版本更新记录 */
.ver-list { max-width: 880px; margin: 0 auto; }
.ver-item {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 24px 18px 28px; margin-bottom: 14px; position: relative;
  transition: transform .18s, box-shadow .18s;
}
.ver-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ver-item::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px;
  border-radius: 4px; background: linear-gradient(180deg, #3370FF, #8fb5ff);
}
.ver-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ver-no { font-weight: 800; color: var(--brand); font-size: 16px; letter-spacing: .5px; }
.ver-badge {
  font-size: 11px; font-weight: 700; color: #fff; border-radius: 999px;
  padding: 2px 10px; background: linear-gradient(135deg, #5c8bff, #2856C9);
}
.ver-item ul { margin: 6px 0 0 18px; color: var(--ink-2); font-size: 13.5px; }
.ver-item li { margin: 4px 0; }


/* ===== v18 登录弹窗 ===== */
.lx-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.lx-modal-mask { position: absolute; inset: 0; background: rgba(15, 26, 56, .45); backdrop-filter: blur(6px); }
.lx-modal-card {
  position: relative; width: min(400px, 92vw); background: #fff; border-radius: 20px;
  padding: 34px 36px 26px; box-shadow: 0 30px 90px rgba(15, 26, 56, .3);
  animation: lxPop .22s ease;
}
@keyframes lxPop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.lx-modal-close {
  position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border-radius: 9px;
  border: none; background: #f2f5fb; color: var(--ink-2); font-size: 18px; cursor: pointer; transition: .15s;
}
.lx-modal-close:hover { background: #e6ecf7; color: var(--ink); }
.lx-login-brand { text-align: center; margin-bottom: 22px; }
.lx-login-logo {
  width: 54px; height: 54px; border-radius: 15px; margin: 0 auto 12px;
  background: linear-gradient(135deg, #5c8bff, #2856C9); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800;
  box-shadow: 0 8px 22px rgba(51, 112, 255, .35);
}
.lx-login-brand h2 { font-size: 20px; color: var(--ink); letter-spacing: .5px; }
.lx-login-brand p { font-size: 11px; color: var(--ink-3); letter-spacing: 1.5px; margin-top: 4px; }
.lx-field { margin-bottom: 14px; }
.lx-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.lx-field input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  font-size: 14px; outline: none; transition: border .15s, box-shadow .15s; box-sizing: border-box;
}
.lx-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(51, 112, 255, .12); }
.lx-login-btn { width: 100%; justify-content: center; margin-top: 6px; padding: 12px; font-size: 15px; border-radius: 12px; }
.lx-err { min-height: 18px; font-size: 12.5px; color: #dc2626; text-align: center; margin-top: 8px; }
.lx-foot { text-align: center; font-size: 11.5px; color: var(--ink-3); margin-top: 10px; }
