* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0d1017; --text: #e6e8f0; --muted: #9aa3b8; --faint: #7d8698;
  --card: #151a2b; --border: #262c47; --border-soft: #232838;
  --accent: #7aa2ff; --accent-bg: #3b5bdb; --accent-bg-hover: #2f4bc0;
  --cat-bg: #22315e; --cat-text: #9db8ff;
  --code-bg: #12162a; --code-inline: #1e2438; --content-text: #c9cede;
  --shadow: rgba(0,0,0,.4);
  --head-bg: rgba(13,16,23,.72);
  --glow: rgba(122,162,255,.14);
}
[data-theme="light"] {
  --bg: #f7f8fa; --text: #1f2430; --muted: #5b6474; --faint: #8a93a5;
  --card: #ffffff; --border: #e2e6ef; --border-soft: #e8ebf2;
  --accent: #2f54c8; --accent-bg: #3b5bdb; --accent-bg-hover: #2f4bc0;
  --cat-bg: #e3eafe; --cat-text: #2f54c8;
  --code-bg: #f2f4f8; --code-inline: #e8ecf3; --content-text: #333a48;
  --shadow: rgba(30,40,70,.12);
  --head-bg: rgba(247,248,250,.72);
  --glow: rgba(59,91,219,.10);
}
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: radial-gradient(1000px 480px at 50% -120px, var(--glow), transparent 70%), var(--bg);
  color: var(--text); line-height: 1.75;
}
[data-fontsize="large"] body { font-size: 17px; }
[data-fontsize="large"] .content p, [data-fontsize="large"] .content li { font-size: 16.5px; }
[data-fontsize="xlarge"] body { font-size: 18px; }
[data-fontsize="xlarge"] .content p, [data-fontsize="xlarge"] .content li { font-size: 17.5px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--head-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.head-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.brand { font-size: 20px; font-weight: 800; color: var(--text); }
.brand:hover { text-decoration: none; }
.site-head nav a { margin-left: 20px; color: var(--muted); font-size: 15px; }
.site-head nav a:hover { color: var(--text); }
.head-tools { display: flex; gap: 8px; }
.head-tools button {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-size: 13px; cursor: pointer;
}
.head-tools button:hover { border-color: var(--accent); color: var(--text); }
#read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #7aa2ff, #b48cff, #5eead4); z-index: 100;
}
.hero { padding: 64px 0 40px; text-align: left; }
.hero-badge {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); font-size: 13px; margin-bottom: 18px;
  background: var(--card);
}
.hero h1 {
  font-size: 42px; line-height: 1.25; font-weight: 800;
  background: linear-gradient(90deg, #7aa2ff, #b48cff, #5eead4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 640px; }
.hero-stats { display: flex; gap: 22px; margin-top: 20px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.hero-stats b { color: var(--text); font-size: 18px; margin-right: 2px; }
.hero-btns { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 9px 20px; border-radius: 999px;
  background: var(--accent-bg); color: #fff; font-size: 15px;
}
.btn:hover { text-decoration: none; background: var(--accent-bg-hover); }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.btn.ghost:hover { border-color: var(--accent); color: var(--text); }
section { padding: 26px 0; }
section > h2 { font-size: 22px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
section > h2::before {
  content: ""; width: 18px; height: 4px; border-radius: 999px; flex: 0 0 auto;
  background: linear-gradient(90deg, #7aa2ff, #b48cff);
}
#hot {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 24px;
}
#hot h2 { margin-bottom: 8px; }
.tagrow { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.tagbtn {
  padding: 5px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-size: 14px; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
}
.tagbtn:hover { border-color: var(--accent); color: var(--text); }
.tagbtn.active { background: var(--accent-bg); border-color: var(--accent-bg); color: #fff; }
#list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#list .card { margin-bottom: 0; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  display: flex; flex-direction: column; overflow: hidden; padding: 0;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 40px var(--shadow); }
.card-cover {
  flex: 0 0 auto; min-height: 140px; display: flex; align-items: center; justify-content: center;
  font-size: 48px; text-decoration: none;
}
.card-cover:hover { text-decoration: none; }
.card-cover span { filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); }
.card-cover.has-img { display: block; padding: 0; }
.card-cover.has-img img { display: block; width: 100%; height: 160px; object-fit: cover; }
.card.featured .card-cover.has-img img { height: 240px; }
.card-body { padding: 20px 22px; flex: 1; min-width: 0; }
.card h3 { font-size: 19px; margin: 8px 0; line-height: 1.5; }
.card h3 a { color: var(--text); }
.card p {
  color: var(--muted); font-size: 15px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.card-foot .tags { margin-top: 0; }
.card-stats { color: var(--faint); font-size: 13px; white-space: nowrap; }
.card.featured { grid-column: 1 / -1; }
.card.featured .card-cover { min-height: 220px; font-size: 72px; }
.card.featured h3 { font-size: 26px; }
.card.featured .card-body { padding: 26px 30px; }
.card.featured p { -webkit-line-clamp: 3; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: 13px; align-items: center; }
.cat { background: var(--cat-bg); color: var(--cat-text); padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.series-badge { background: var(--cat-bg); color: var(--cat-text); padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.tags { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { color: var(--faint); font-size: 13px; border: 1px solid var(--border); padding: 2px 10px; border-radius: 999px; }
.muted { color: var(--faint); font-size: 13px; }
.post { padding: 36px 0 20px; max-width: 780px; margin: 0 auto; }
.post h1 { font-size: 30px; line-height: 1.4; margin: 12px 0 10px; }
.content { margin-top: 22px; }
.content h2 { font-size: 22px; margin: 28px 0 12px; }
.content h3 { font-size: 18px; margin: 22px 0 10px; }
.content p { margin-bottom: 14px; color: var(--content-text); }
.content ul { margin: 0 0 14px 22px; color: var(--content-text); }
.content li { margin-bottom: 6px; }
.content code { background: var(--code-inline); padding: 2px 6px; border-radius: 5px; font-size: 14px; }
.content pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: 10px; padding: 16px; overflow-x: auto; margin-bottom: 16px; }
.content pre code { background: none; padding: 0; }
.codeblock { position: relative; margin-bottom: 16px; }
.codeblock pre { margin-bottom: 0; }
.copy-btn {
  position: absolute; top: 8px; right: 8px; padding: 3px 10px; font-size: 12px;
  border-radius: 6px; border: 1px solid var(--border); background: var(--card);
  color: var(--muted); cursor: pointer; z-index: 2;
}
.copy-btn:hover { border-color: var(--accent); color: var(--text); }
.content img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0 16px; }
.content img.zoomable { cursor: zoom-in; }
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.88); align-items: center; justify-content: center; cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }
.table-wrap { overflow-x: auto; margin-bottom: 16px; }
.content table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.content th, .content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.content th { background: var(--card); }
.content tr:nth-child(even) td { background: var(--card); }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; margin-bottom: 16px; background: #000; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.gloss { border-bottom: 1px dashed var(--accent); cursor: help; position: relative; }
.gloss:hover::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: 130%; transform: translateX(-50%);
  width: 240px; max-width: 80vw; background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  font-size: 13px; line-height: 1.6; z-index: 50; box-shadow: 0 8px 24px var(--shadow);
  white-space: normal; pointer-events: none;
}
.toc { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 20px 0 8px; }
.toc summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before { content: "☰ "; color: var(--faint); }
.toc nav { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.toc a { color: var(--muted); font-size: 14.5px; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--accent); font-weight: 700; }
.toc a.toc-l3 { padding-left: 18px; }
.series-box { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.series-title { font-weight: 700; margin-bottom: 8px; }
.series-box ol { margin-left: 20px; }
.series-box li { margin-bottom: 4px; color: var(--muted); }
.series-box li.current a { color: var(--accent); font-weight: 700; }
.series-list { list-style: none; }
.series-list li { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.series-list li p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.related { margin-top: 32px; }
.related ul { list-style: none; }
.related li { padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.prevnext { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.prevnext a { color: var(--text); font-size: 15px; }
.update-note { margin-top: 24px; padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; color: var(--muted); font-size: 14px; }
.back { margin-top: 28px; }
input[type="search"] {
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; outline: none;
}
input[type="search"]:focus { border-color: var(--accent); }
.interact { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.interact button { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 15px; cursor: pointer; }
.interact button:hover { border-color: var(--accent); }
.interact button.on { background: var(--accent-bg); border-color: var(--accent-bg); color: #fff; }
.comments { margin-top: 36px; }
.comment { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; }
.comment-head { margin-bottom: 6px; }
.comment-body { color: var(--content-text); font-size: 15px; }
.comments form { margin-top: 18px; }
.comments label { display: block; margin: 12px 0 5px; color: var(--muted); font-size: 14px; }
.comments input, .comments textarea { width: 100%; background: var(--card); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 10px 12px; font-size: 15px; box-sizing: border-box; }
.comments textarea { min-height: 100px; font-family: inherit; line-height: 1.6; }
.comments button[type="submit"] { background: var(--accent-bg); color: #fff; border: none; border-radius: 999px; padding: 9px 22px; font-size: 15px; cursor: pointer; margin-top: 12px; }
.comments button[type="submit"]:hover { background: var(--accent-bg-hover); }
.hot-list, .fav-list { list-style: none; }
.hot-list li, .fav-list li { padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.hot-rank { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; background: var(--cat-bg); color: var(--cat-text); font-size: 12px; font-weight: 700; margin-right: 8px; }
.unfav { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 13px; margin-left: 8px; }
.unfav:hover { color: var(--text); }
.service-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.service-card {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px;
}
.service-icon { font-size: 40px; flex: 0 0 auto; }
.service-body { flex: 1; min-width: 220px; }
.service-body h3 { font-size: 18px; margin-bottom: 4px; }
.service-body p { color: var(--muted); font-size: 15px; }
.service-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: 0 0 auto; }
.service-price { font-size: 22px; font-weight: 800; color: var(--accent); }
.service-flow { margin-top: 28px; }
.service-flow ol { margin-left: 20px; color: var(--content-text); }
.service-flow li { margin-bottom: 6px; }

.scope-note { background: var(--card); border: 1px solid var(--border-soft); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px 16px; font-size: 14px; line-height: 1.7; color: var(--muted); margin: 16px 0; }
footer .scope-note { text-align: left; max-width: 760px; margin: 0 auto 16px; }

.policy-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; line-height: 1.7; }
.policy-table th, .policy-table td { border: 1px solid var(--border-soft); padding: 10px 12px; text-align: left; vertical-align: top; }
.policy-table th { background: var(--card); color: var(--text); font-weight: 700; }
.policy-table tr.ok-row td { background: rgba(46, 160, 67, 0.08); }
.policy-table tr.no-row td { background: rgba(207, 68, 68, 0.06); }
.ok-tag { color: #2ea043; font-weight: 700; }
.no-tag { color: #cf4444; font-weight: 700; }
.hl { color: var(--accent); font-weight: 700; }
.policy-callout { background: var(--card); border: 1px solid var(--border-soft); border-left: 3px solid #cf4444; border-radius: 8px; padding: 12px 16px; font-size: 14px; line-height: 1.7; color: var(--muted); margin: 16px 0; }

.shop-hero { background: linear-gradient(135deg, #1e3a8a, #3b5bdb 55%, #7c3aed); border-radius: 18px; padding: 28px 26px; color: #fff; margin: 18px 0 8px; }
.shop-hero h1 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.shop-hero p { color: rgba(255,255,255,.85); font-size: 15px; }
.shop-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.9); }
.shop-trust span { background: rgba(255,255,255,.14); border-radius: 999px; padding: 4px 12px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; margin-top: 18px; }
.product-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px var(--shadow); }
.product-visual { height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; position: relative; }
.product-visual .p-icon { font-size: 44px; line-height: 1; }
.product-visual .p-brand { font-size: 13px; letter-spacing: 2px; opacity: .9; }
.product-visual .p-badge { position: absolute; top: 10px; left: 10px; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 17px; line-height: 1.45; }
.product-body h3 a { color: var(--text); }
.product-body h3 a:hover { color: var(--accent); }
.product-body .p-desc { color: var(--muted); font-size: 14px; line-height: 1.6; }
.product-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.product-price { font-size: 24px; font-weight: 800; color: var(--accent); }
.product-price small { font-size: 12px; color: var(--faint); font-weight: 400; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; line-height: 1.6; }
.badge-hot { background: #fee2e2; color: #b91c1c; }
.badge-rec { background: #dbeafe; color: #1d4ed8; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-stock { background: var(--code-inline); color: var(--muted); font-weight: 400; }
.buy-box { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; margin: 18px 0; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.buy-box .buy-price { font-size: 32px; font-weight: 800; color: var(--accent); }
.buy-box .buy-price small { font-size: 13px; color: var(--faint); font-weight: 400; }
.buy-box .btn { padding: 12px 28px; font-size: 16px; }
.detail-visual { height: 150px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; margin: 16px 0; }
.detail-visual .p-icon { font-size: 56px; line-height: 1; }
.detail-visual .p-brand { font-size: 14px; letter-spacing: 3px; opacity: .92; }

.lang-switch { font-size: 13px; color: var(--muted); }
.lang-switch a { color: var(--muted); }
.lang-switch a.lang-active { color: var(--accent); font-weight: 700; }
footer { background: var(--card); border-top: 1px solid var(--border-soft); padding: 28px 0; margin-top: 40px; }
footer .wrap { text-align: center; color: var(--faint); font-size: 13px; }
@media (max-width: 640px) {
  /* --- header: brand + tools on one row, nav as a single scrollable strip --- */
  .head-inner { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .brand { font-size: 17px; }
  .site-head nav {
    order: 3; flex: 1 1 100%;
    display: flex; gap: 16px;
    overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 2px;
  }
  .site-head nav::-webkit-scrollbar { display: none; }
  .site-head nav a { margin-left: 0; font-size: 14px; flex: 0 0 auto; }
  .head-tools { gap: 6px; }
  .head-tools button { padding: 4px 10px; font-size: 12px; }
  .lang-switch { font-size: 12px; }

  /* --- hero: compact so articles show sooner --- */
  .hero { padding: 22px 0 14px; }
  .hero-badge { display: none; }
  .hero h1 { font-size: 24px; }
  .hero p { display: none; }
  .hero-stats { margin-top: 12px; gap: 14px; font-size: 13px; }
  .hero-stats b { font-size: 16px; }
  .hero-btns { margin-top: 16px; }
  .btn { padding: 8px 16px; font-size: 14px; }

  /* --- sections tighter --- */
  section { padding: 16px 0; }
  section > h2 { font-size: 19px; margin-bottom: 12px; }
  .tagbtn { padding: 4px 12px; font-size: 13px; }
  #hot { padding: 14px 16px; }
  #hot h2 { margin-bottom: 4px; }

  .post h1 { font-size: 24px; }
  .gloss:hover::after { width: 200px; }
  #list { grid-template-columns: 1fr; }
  .card-cover { min-height: 120px; font-size: 48px; }
  .card.featured .card-cover { min-height: 160px; font-size: 64px; }
  .card-cover.has-img img { height: 120px; }
  .card.featured .card-cover.has-img img { height: 180px; }
  .card.featured h3 { font-size: 22px; }
  .card-body { padding: 18px 20px; }
}

.wechat-contact { display: flex; align-items: center; gap: 16px; max-width: 420px; margin: 0 auto 18px; padding: 14px 18px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; text-align: left; }
.wechat-qr { width: 110px; height: 110px; border-radius: 10px; flex-shrink: 0; }
.wechat-text p { margin: 3px 0; color: var(--text); font-size: 14px; }
.wechat-text .wechat-label { font-weight: 700; font-size: 15px; }
.wechat-text .wechat-id strong { color: var(--accent); }
.wechat-text .wechat-note { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  .wechat-qr { width: 90px; height: 90px; }
}

/* breadcrumb */
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumb a { color: var(--muted); }
.crumb span { margin: 0 4px; }
/* share buttons */
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.share a, .share button.share-copy { display: inline-block; padding: 6px 14px; border: 1px solid var(--border-soft); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; cursor: pointer; text-decoration: none; }
.share a:hover, .share button.share-copy:hover { border-color: var(--accent); color: var(--accent); }
/* archive */
.arch-list { list-style: none; padding: 0; }
.arch-list li { padding: 8px 0; border-bottom: 1px solid var(--border-soft); }

/* floating Telegram button (bottom-left, Tawk.to chat sits bottom-right) */
.tg-float {
  position: fixed; left: 18px; bottom: 18px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  background: #229ED9; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(34,158,217,.45); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tg-float:hover { transform: scale(1.08); text-decoration: none; box-shadow: 0 8px 26px rgba(34,158,217,.6); }
.tg-float svg { display: block; }
@media (max-width: 640px) {
  .tg-float { left: 14px; bottom: 14px; width: 48px; height: 48px; }
}

/* nested comment replies */
.comment.reply { margin-left: 36px; background: var(--bg); }
.reply-btn { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 13px; padding: 0 4px; }
.reply-btn:hover { text-decoration: underline; }

/* footer subscribe form */
.subscribe-box { max-width: 420px; margin: 0 auto 18px; padding: 14px 18px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; text-align: left; }
.subscribe-box p { margin: 0 0 10px; color: var(--text); font-size: 14px; }
.subscribe-box form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.subscribe-box input[type="email"] { flex: 1; min-width: 180px; background: var(--card); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 9px 12px; font-size: 14px; }
.subscribe-box button { background: var(--accent-bg); color: #fff; border: none; border-radius: 999px; padding: 9px 20px; font-size: 14px; cursor: pointer; }
.subscribe-box button:hover { background: var(--accent-bg-hover); }

/* tip / reward */
.tip-box { text-align: center; margin: 28px 0 8px; }
.tip-box #tip-btn { background: #fa5151; color: #fff; border: none; border-radius: 999px; padding: 10px 28px; font-size: 16px; cursor: pointer; }
.tip-box #tip-btn:hover { filter: brightness(1.08); }
.tip-modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.tip-modal-card { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 16px; padding: 22px 22px 18px; text-align: center; position: relative; width: 100%; max-width: 320px; }
.tip-modal-card h3 { margin: 0 0 12px; }
.tip-modal-card #tip-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 22px; color: var(--muted); cursor: pointer; }
.tip-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.tip-tabs button { border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 999px; padding: 6px 18px; font-size: 14px; cursor: pointer; }
.tip-tabs button.active { background: var(--accent-bg); border-color: var(--accent-bg); color: #fff; }
.tip-qr img { width: 220px; height: 220px; border-radius: 8px; }

/* topics search box */
.topic-search { margin: 0 0 12px; }
.topic-search input { width: 100%; max-width: 420px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text); font-size: 15px; outline: none; }
.topic-search input:focus { border-color: var(--accent); }
