/* skill139 — 中文AI技能导购站 */
:root {
  --bg: #F7F5F0;
  --card: #FFFFFF;
  --ink: #17211C;
  --muted: #6B7A72;
  --brand: #17594A;
  --brand-dark: #0F3F35;
  --brand-soft: #E8F1ED;
  --accent: #C9552B;
  --accent-soft: #FBEDE6;
  --line: #E4E0D7;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(23, 33, 28, .04), 0 8px 24px rgba(23, 33, 28, .06);
  --shadow-lg: 0 12px 40px rgba(23, 33, 28, .14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.75 "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
header { padding: 18px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: var(--brand-dark); }
.brand span { color: var(--accent); }
.brand small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: -4px; }
nav.top a { margin-left: 22px; font-size: 15px; color: var(--muted); }
nav.top a:hover { color: var(--brand); }

/* ---------- hero ---------- */
.hero { padding: 30px 0 26px; text-align: center; }
.hero h1 { font-size: 42px; line-height: 1.25; margin: 0 0 12px; letter-spacing: -1px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); border-bottom: 6px solid var(--brand-soft); }
.hero p { font-size: 18px; color: var(--muted); margin: 0 auto 26px; max-width: 620px; }
.search { position: relative; max-width: 620px; margin: 0 auto; }
.search input {
  width: 100%; padding: 20px 56px 20px 56px; font-size: 18px; font-family: inherit;
  border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
  box-shadow: var(--shadow); outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search .ico { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 20px; opacity: .5; }
.hints { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.hints b { color: var(--brand); font-weight: 600; cursor: pointer; background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; margin: 0 3px; display: inline-block; }
.hints b:hover { background: var(--brand); color: #fff; }

/* ---------- cats ---------- */
.cats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 26px 0 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
  padding: 11px 18px; border-radius: 999px; font-size: 16px; font-family: inherit; transition: all .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 18px; }
.toolbar h2 { font-size: 21px; margin: 0; font-weight: 700; }
.toolbar .count { font-size: 14px; color: var(--muted); }

/* ---------- grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; padding-bottom: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 18px; cursor: pointer; position: relative; transition: transform .16s, box-shadow .16s, border-color .16s;
  display: flex; flex-direction: column; min-height: 190px;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #D7D2C5; }
.card .ico { font-size: 24px; margin-bottom: 8px; }
.card h3 { font-size: 19px; line-height: 1.45; margin: 0 0 8px; font-weight: 700; }
.card p { margin: 0 0 16px; color: #43524B; font-size: 15.5px; flex: 1; }
.card .foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 12px; font-size: 13px; color: var(--muted); }
.card .foot .sk { max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { position: absolute; top: 16px; right: 16px; font-size: 12px; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.badge.key { color: #8A6B12; background: #FBF3DC; }
.empty { text-align: center; padding: 70px 0; color: var(--muted); font-size: 17px; }
.empty b { color: var(--ink); }

/* ---------- modal ---------- */
.mask { position: fixed; inset: 0; background: rgba(19, 26, 22, .5); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.mask.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 50; top: 50%; left: 50%; transform: translate(-50%, -46%) scale(.98);
  width: min(720px, calc(100vw - 32px)); max-height: 86vh; overflow-y: auto;
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all .2s;
}
.sheet.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.sheet-head { padding: 26px 28px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); border-radius: 22px 22px 0 0; }
.sheet-head h2 { font-size: 24px; line-height: 1.4; margin: 8px 0 6px; }
.sheet-head .meta { font-size: 13.5px; color: var(--muted); }
.sheet-close { position: absolute; top: 20px; right: 22px; border: none; background: var(--bg); width: 38px; height: 38px; border-radius: 50%; font-size: 19px; cursor: pointer; color: var(--muted); line-height: 1; }
.sheet-close:hover { background: var(--line); color: var(--ink); }
.sheet-body { padding: 22px 28px 30px; }
.block { margin-bottom: 26px; }
.block h4 { font-size: 15px; color: var(--brand); margin: 0 0 10px; font-weight: 700; letter-spacing: .3px; }
.block h4 span { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.answer { font-size: 17px; color: #2A3630; }
.copybox { display: flex; gap: 10px; align-items: stretch; }
.copybox code {
  flex: 1; background: #F2F6F4; border: 1px dashed #BAD3C9; border-radius: 12px; padding: 13px 15px;
  font: 14.5px/1.6 "Consolas", "Courier New", monospace; color: #1D4538; word-break: break-all; user-select: all;
}
.btn { border: none; background: var(--brand); color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; padding: 0 20px; border-radius: 12px; cursor: pointer; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: var(--brand-soft); color: var(--brand); }
.btn.ghost:hover { background: #D6E7DF; }
.asklist { list-style: none; padding: 0; margin: 0; }
.asklist li {
  border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px;
  padding: 13px 15px; margin-bottom: 10px; font-size: 16px; display: flex; justify-content: space-between; gap: 14px; align-items: center; background: #FCFCFA;
}
.asklist li span { flex: 1; }
.asklist li button { border: none; background: transparent; color: var(--brand); font-size: 13.5px; cursor: pointer; font-family: inherit; white-space: nowrap; font-weight: 600; }
.asklist li button:hover { text-decoration: underline; }
.caution { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 16px; font-size: 15.5px; color: #7A3A1E; }
.src { font-size: 14px; color: var(--muted); line-height: 2; }
.src b { color: var(--ink); font-weight: 600; }
.tagline { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12.5px; background: var(--brand-soft); color: var(--brand); padding: 3px 10px; border-radius: 999px; }

/* ---------- footer ---------- */
footer { margin-top: 50px; padding: 30px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: underline; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); background: var(--ink); color: #fff;
  padding: 13px 24px; border-radius: 999px; font-size: 15.5px; opacity: 0; transition: all .25s; z-index: 99; pointer-events: none;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- doc pages ---------- */
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; margin: 10px 0 40px; }
.doc h1 { font-size: 30px; margin: 0 0 6px; }
.doc h2 { font-size: 21px; margin: 32px 0 12px; padding-left: 12px; border-left: 4px solid var(--brand); }
.doc p, .doc li { font-size: 16.5px; }
.doc .lead { color: var(--muted); margin-bottom: 26px; }
.doc ol, .doc ul { padding-left: 22px; }
.doc code { background: #F2F6F4; padding: 2px 7px; border-radius: 6px; font: 14.5px "Consolas", monospace; color: #1D4538; }
.step { border-left: 3px solid var(--brand-soft); padding-left: 18px; margin: 18px 0; }
.step b { display: block; font-size: 17px; margin-bottom: 4px; }
.note { background: #FBF7EC; border: 1px solid #F0E3C4; border-radius: 12px; padding: 14px 16px; font-size: 15.5px; }
.back { display: inline-block; margin-bottom: 18px; font-size: 15px; }

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16.5px; }
  .grid { grid-template-columns: 1fr; }
  .doc { padding: 24px 20px; }
  .sheet { width: 100vw; max-height: 92vh; top: auto; bottom: 0; left: 0; transform: translateY(12px); border-radius: 22px 22px 0 0; }
  .sheet.on { transform: translateY(0); }
  .sheet-head, .sheet-body { padding-left: 20px; padding-right: 20px; }
  nav.top a { margin-left: 14px; font-size: 14px; }
  .asklist li { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- 防骗专区 ---------- */
.antifraud {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: space-between;
  background: linear-gradient(135deg, #FFF6EF 0%, #FBEDE6 100%);
  border: 1.5px solid #F2C9B4; border-left: 6px solid var(--accent);
  border-radius: var(--radius); padding: 20px 24px; margin: 22px 0 6px;
}
.af-main { flex: 1; min-width: 260px; }
.af-title { font-size: 18.5px; font-weight: 700; color: #7A3A1E; margin-bottom: 10px; }
.af-steps { margin: 0 0 10px; padding-left: 22px; color: #6B4029; font-size: 16px; line-height: 1.85; }
.af-steps b { color: var(--accent); font-size: 17.5px; }
.af-warn { font-size: 15px; color: #8A5638; }
.af-btn { padding: 14px 22px; font-size: 16px; background: var(--accent); }
.af-btn:hover { background: #B2451F; }
.af-side { flex: 0 0 250px; display: flex; flex-direction: column; gap: 10px; }
.af-btn2 { background: #fff; color: var(--accent); border: 2px solid var(--accent); }
.af-btn2:hover { background: #FDF0EA; }
.af-tip { font-size: 13.5px; color: #8A5638; line-height: 1.6; }
/* ---------- 装完验证 ---------- */
.answer b { color: var(--brand); }

/* ---------- 详情页三行安全信息（建议20） ---------- */
.safety3 { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 26px; }
.s3-row { display: flex; gap: 12px; align-items: baseline; padding: 13px 16px; font-size: 15.5px; background: var(--card); }
.s3-row + .s3-row { border-top: 1px dashed var(--line); }
.s3-row b { flex: 0 0 132px; font-size: 15px; }
.s3-row span { flex: 1; color: #43524B; }
.s3-row.perm-zero b { color: var(--brand); }
.s3-row.perm-zero { background: var(--brand-soft); }
.s3-row.perm-login b { color: #8A6B12; }
.s3-row.perm-file b { color: var(--accent); }
.s3-row.s3-caution b { color: var(--accent); }
.s3-row.s3-verify b { color: var(--brand); }
.s3-row.s3-privacy b { color: #7A3A1E; }
.tag.tag-trust { color: #17594A; background: #DDEBE4; font-weight: 600; }
.btn-mini { padding: 3px 12px; font-size: 13.5px; margin-left: 8px; flex: none; }
.s3-note { padding: 9px 16px; font-size: 13.5px; color: var(--muted); background: #FBF7EC; border-top: 1px dashed var(--line); }
.tag.lab-tag { color: #17594A; background: #DDEBE4; font-weight: 600; }
@media (max-width: 720px) {
  .s3-row { flex-direction: column; gap: 4px; }
  .s3-row b { flex: none; }
  .af-side { flex: 1 1 100%; }
}
