/* TG 资源搜索承接页 · 新手向：明亮、直白、像聊天一样简单；移动端优先 */
:root {
  --tg-blue: #229ed9;
  --tg-blue-dark: #1a7fb0;
  --ink: #1c2733;
  --muted: #5b6b7a;
  --line: #e6ebef;
  --bg: #ffffff;
  --soft: #f4f8fb;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 17px;
  padding-bottom: 76px; /* 给底部悬浮按钮留位 */
}
a { color: var(--tg-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* 顶栏 */
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-size: 19px; font-weight: 700; color: var(--ink); }
.logo span { color: var(--tg-blue); }
nav.main a { color: var(--muted); font-size: 15px; margin-left: 18px; }
nav.main a:hover { color: var(--tg-blue); text-decoration: none; }
@media (max-width: 560px) {
  nav.main a { margin-left: 12px; font-size: 14px; }
  nav.main a:nth-child(3) { display: none; }
}

/* Hero：渐变头图 */
.hero {
  background: linear-gradient(160deg, #37aee2 0%, #229ed9 55%, #1b86c9 100%);
  color: #fff;
  text-align: center;
  padding: 40px 0 44px;
}
.hero .plane { font-size: 44px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); }
.hero h1 { font-size: 32px; line-height: 1.35; letter-spacing: -0.5px; margin-top: 14px; }
.hero p.sub { color: rgba(255,255,255,.92); font-size: 16.5px; margin: 14px auto 0; max-width: 520px; }
.chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips span {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13.5px;
  font-weight: 600;
}
.btn {
  display: inline-block;
  background: var(--tg-blue);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 999px;
  margin-top: 26px;
  box-shadow: 0 6px 18px rgba(34, 158, 217, .35);
}
.btn:hover { background: var(--tg-blue-dark); text-decoration: none; }
.hero .btn.big {
  background: #fff;
  color: #1273a8;
  font-size: 19.5px;
  padding: 16px 40px;
  margin-top: 24px;
  box-shadow: 0 10px 26px rgba(0, 60, 100, .28);
}
.hero .btn.big:hover { background: #eef8fd; }
.hero .hint { font-size: 13px; color: rgba(255,255,255,.85); margin-top: 14px; }

/* 通用区块 */
section.block { padding: 36px 0 8px; }
section.block h2 { font-size: 22px; margin-bottom: 6px; }
section.block .lead { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

/* 手机聊天演示 */
.phone {
  max-width: 340px;
  margin: 6px auto 26px;
  background: #eef3f7;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(28, 39, 51, .10);
}
.phone-bar {
  background: var(--tg-blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 16px;
}
.phone-bar span { float: right; font-weight: 400; font-size: 12.5px; opacity: .85; margin-top: 3px; }
.chat { padding: 16px 12px 8px; display: flex; flex-direction: column; gap: 10px; }
.msg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.6;
}
.msg.me {
  align-self: flex-end;
  background: #d9f2c2;
  border-bottom-right-radius: 4px;
}
.msg.bot {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(28,39,51,.08);
}
.msg.bot p { margin-bottom: 8px; }
.msg.bot p:last-child { margin-bottom: 0; }
.msg .bt { font-weight: 700; }
.msg .bs { color: var(--muted); font-size: 13px; }
.phone-input {
  margin: 6px 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #9aa9b5;
  font-size: 13.5px;
  padding: 8px 16px;
}

/* 三步 */
.steps { list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 20px 52px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--tg-blue);
  color: #fff;
  font-weight: 700;
  text-align: center;
  line-height: 36px;
  font-size: 17px;
}
.steps li h3 { font-size: 17px; }
.steps li p { color: var(--muted); font-size: 15px; }

/* 四宫格 */
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.card .ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px;
}
.card .ico.g1 { background: linear-gradient(135deg, #ffe3ec, #ffd1e3); }
.card .ico.g2 { background: linear-gradient(135deg, #e4e0ff, #cfc6ff); }
.card .ico.g3 { background: linear-gradient(135deg, #ffedd1, #ffdf9e); }
.card .ico.g4 { background: linear-gradient(135deg, #d5f4e0, #a9e8c3); }
.card h3 { font-size: 16px; margin: 10px 0 2px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* 每日精选 */
.pick { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pick a.row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.pick a.row:last-child { border-bottom: none; }
.pick a.row:hover { background: var(--soft); text-decoration: none; }
.tag {
  flex: none;
  font-size: 12px; font-weight: 700;
  color: var(--tg-blue);
  border: 1px solid var(--tg-blue);
  border-radius: 999px;
  padding: 1px 9px;
}
.pick .t { font-size: 16px; font-weight: 600; }
.pick .d { font-size: 13px; color: var(--muted); }
.pick .more { display: block; text-align: center; padding: 12px; font-size: 15px; }
.pick-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* 梯子卡片（全站唯一一处对外导流） */
.ladder {
  background: linear-gradient(135deg, #fff4e0, #ffeec9);
  border: 1px solid #f5d9a0;
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}
.ladder .lico { font-size: 30px; line-height: 1; }
.ladder h2 { font-size: 21px; margin: 8px 0 6px; }
.ladder p { color: #6d5c33; font-size: 15px; max-width: 480px; margin: 0 auto; }
.ladder .btn { margin-top: 18px; background: #f59e0b; box-shadow: 0 6px 18px rgba(245, 158, 11, .35); }
.ladder .btn:hover { background: #d97706; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; font-size: 16px; cursor: pointer; }
.faq p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* 底部悬浮按钮（仅首页有此元素） */
.sticky-cta {
  position: fixed;
  left: 16px; right: 16px; bottom: 14px;
  z-index: 50;
  max-width: 480px;
  margin: 0 auto;
  background: var(--tg-blue);
  color: #fff;
  text-align: center;
  font-size: 17.5px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(27, 134, 201, .45);
}
.sticky-cta:hover { background: var(--tg-blue-dark); text-decoration: none; }

/* 文章页 */
.article { padding: 36px 0 20px; }
.article h1 { font-size: 26px; line-height: 1.4; }
.article .meta { color: var(--muted); font-size: 14px; margin: 10px 0 22px; }
.article h2 { font-size: 20px; margin: 28px 0 8px; }
.article h3 { font-size: 17px; margin: 20px 0 6px; }
.article p { margin-bottom: 12px; }
.article ol, .article ul { margin: 0 0 14px 22px; }
.article li { margin-bottom: 6px; }
.article .tip {
  background: var(--soft);
  border-left: 4px solid var(--tg-blue);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--muted);
  margin: 18px 0;
}
.article .cta { text-align: center; margin: 30px 0 10px; }
.back { display: inline-block; margin-top: 24px; font-size: 15px; }

/* 页脚 */
footer { border-top: 1px solid var(--line); margin-top: 44px; padding: 26px 0 40px; }
footer p { font-size: 13px; color: var(--muted); }
footer nav { margin-bottom: 12px; }
footer nav a { font-size: 14px; margin-right: 18px; }
