﻿/*
Theme Name: ToolBase
Theme URI: https://zhiliaowp.com/themes/toolbase/
Author: Zhilio
Description: 面向中国市场的垂直数据库 WordPress 主题，适合 AI 工具库、SaaS 产品库、插件目录、优惠库、岗位库和行业资源站。
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: toolbase
Tags: directory, grid-layout, custom-colors, custom-menu, featured-images
*/

:root {
  --tb-bg: #f5f7fb;
  --tb-panel: #ffffff;
  --tb-panel-soft: #f9fbff;
  --tb-text: #111827;
  --tb-muted: #64748b;
  --tb-border: #e4e9f2;
  --tb-primary: #0f766e;
  --tb-primary-2: #2563eb;
  --tb-warm: #f59e0b;
  --tb-danger: #ef4444;
  --tb-shadow: 0 18px 45px -30px rgba(15, 23, 42, .35);
  --tb-radius: 14px;
  --tb-container: 1200px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tb-primary) 7%, var(--tb-bg)), var(--tb-bg) 320px),
    var(--tb-bg);
  color: var(--tb-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.tb-container { width: min(var(--tb-container), calc(100% - 32px)); margin: 0 auto; }
.tb-skip { position: absolute; left: -9999px; top: 0; }
.tb-skip:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 8px 12px; border-radius: 8px; }

.tb-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--tb-panel) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--tb-border) 80%, transparent);
}
.tb-header-inner { height: 68px; display: flex; align-items: center; gap: 18px; }
.tb-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: 0; }
.tb-brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--tb-primary), var(--tb-primary-2));
  color: #fff; box-shadow: 0 12px 28px -18px var(--tb-primary);
}
.tb-brand-mark:has(img) { background: none; box-shadow: none; }
.tb-brand-mark img { width: 100%; height: 100%; display: block; }
.tb-brand .tb-logo-light, .tb-brand .tb-logo-dark { height: 46px; width: auto; display: block; }
.tb-brand .tb-logo-dark { display: none; }
body.tb-dark .tb-brand .tb-logo-light { display: none; }
body.tb-dark .tb-brand .tb-logo-dark { display: block; }
.tb-logo-shine:has(.tb-logo-light) { position: relative; overflow: hidden; border-radius: 10px; }
.tb-logo-shine:has(.tb-logo-light)::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: -70%; width: 38%; transform: skewX(-22deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: tb-logo-shine 4.8s ease-in-out infinite; }
.tb-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tb-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; }
.tb-nav a { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 10px; color: var(--tb-muted); font-size: 14px; }
.tb-mobile-links { display: none; }
.tb-nav a:hover, .tb-nav .current-menu-item > a { color: var(--tb-text); background: var(--tb-panel-soft); }
.tb-header-action { display: inline-flex; align-items: center; gap: 8px; }
.tb-btn {
  border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  background: linear-gradient(135deg, var(--tb-primary), var(--tb-primary-2));
  color: #fff; font-weight: 750; box-shadow: 0 14px 28px -18px var(--tb-primary-2);
}
.tb-btn:hover { filter: brightness(1.04); }
.tb-btn:focus-visible, .tb-card-tools button:focus-visible, .tb-tray-head button:focus-visible, .tb-tray-tabs button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--tb-primary) 62%, transparent);
  outline-offset: 2px;
}
.tb-btn-ghost { background: var(--tb-panel); color: var(--tb-text); border: 1px solid var(--tb-border); box-shadow: none; }
.tb-mobile-toggle { display: none; width: 38px; height: 38px; padding: 0; border: 1px solid var(--tb-border); background: var(--tb-panel); border-radius: 10px; }
.tb-theme-toggle { width: 38px; height: 38px; padding: 0; border: 1px solid var(--tb-border); border-radius: 10px; background: var(--tb-panel); color: var(--tb-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.tb-theme-toggle:hover, .tb-theme-toggle:focus-visible { color: var(--tb-primary); border-color: color-mix(in srgb, var(--tb-primary) 42%, var(--tb-border)); outline: 0; }

.tb-hero { padding: 46px 0 18px; }
.tb-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); gap: 22px; align-items: stretch; }
.tb-hero-copy h1 { margin: 0; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.12; letter-spacing: 0; max-width: 790px; }
.tb-hero-copy p { margin: 16px 0 0; max-width: 640px; color: var(--tb-muted); font-size: 16px; }
.tb-kicker { display: inline-flex; margin-bottom: 12px; color: var(--tb-primary); font-size: 13px; font-weight: 800; }
.tb-search-panel {
  margin-top: 24px; padding: 12px; border: 1px solid var(--tb-border);
  background: color-mix(in srgb, var(--tb-panel) 88%, transparent);
  border-radius: 18px; box-shadow: var(--tb-shadow); display: flex; gap: 10px;
}
.tb-search-panel input {
  flex: 1; border: 0; outline: 0; min-width: 0; padding: 12px 14px; border-radius: 12px;
  background: var(--tb-panel-soft); color: var(--tb-text);
}
.tb-hero-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; max-width: 760px; }
.tb-hero-chips a {
  position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 58px; padding: 11px 12px 10px 15px;
  border: 1px solid #dfe7f2; border-radius: 14px; background: rgba(255, 255, 255, .76);
  box-shadow: 0 14px 34px -30px rgba(15, 23, 42, .48);
}
.tb-hero-chips a::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 999px; background: var(--tb-primary);
}
.tb-hero-chips b { color: var(--tb-text); font-size: 13px; line-height: 1.25; }
.tb-hero-chips small { color: var(--tb-muted); font-size: 12px; line-height: 1.35; }
.tb-hero-card {
  border: 1px solid var(--tb-border); border-radius: 20px; background: var(--tb-panel);
  padding: 18px; box-shadow: var(--tb-shadow); display: flex; flex-direction: column; gap: 14px;
}
.tb-metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tb-metric { background: var(--tb-panel-soft); border: 1px solid var(--tb-border); border-radius: 14px; padding: 12px; }
.tb-metric strong { display: block; font-size: 22px; line-height: 1.1; }
.tb-metric span { color: var(--tb-muted); font-size: 12px; }
.tb-trend { display: flex; flex-direction: column; gap: 9px; }
.tb-trend-label { color: var(--tb-muted); font-size: 12px; font-weight: 800; }
.tb-trend a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--tb-panel-soft); color: var(--tb-muted); }
.tb-trend a:hover { color: var(--tb-text); background: color-mix(in srgb, var(--tb-primary) 7%, var(--tb-panel)); }
.tb-monetize-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 14px; margin-bottom: 8px;
  overflow: hidden; border: 1px solid var(--tb-border); border-radius: 16px; background: var(--tb-border);
  box-shadow: 0 18px 45px -34px rgba(15, 23, 42, .45);
}
.tb-monetize-strip a {
  display: flex; flex-direction: column; gap: 2px; min-height: 70px; justify-content: center;
  background: var(--tb-panel); padding: 12px 14px; text-align: center;
}
.tb-monetize-strip b { color: var(--tb-text); font-size: 14px; line-height: 1.25; }
.tb-monetize-strip small { color: var(--tb-muted); font-size: 12px; line-height: 1.35; }
.tb-monetize-strip a:hover { background: var(--tb-panel-soft); }
.tb-hero-chips a, .tb-monetize-strip a { cursor: pointer; }
.tb-hero-chips a:focus-visible, .tb-monetize-strip a:focus-visible { outline: 2px solid var(--tb-primary); outline-offset: 2px; }
.tb-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 30px 0 6px; }
.tb-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--tb-border); border-radius: 10px; color: var(--tb-muted); background: var(--tb-panel); font-size: 13px; font-weight: 750; text-decoration: none; transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease; }
.tb-pagination a.page-numbers:hover { color: #fff; border-color: var(--tb-primary); background: var(--tb-primary); transform: translateY(-1px); }
.tb-pagination .page-numbers.current { color: var(--tb-primary-contrast, #fff); border-color: var(--tb-primary); background: linear-gradient(135deg, var(--tb-primary), var(--tb-primary-2)); box-shadow: 0 8px 16px -11px color-mix(in srgb, var(--tb-primary) 90%, transparent); }
.tb-pagination .page-numbers.dots { min-width: 24px; padding: 0; border-color: transparent; background: transparent; }
.tb-pagination .page-numbers { list-style: none; }
.tb-logo-shine .tb-brand-mark { position: relative; overflow: hidden; box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--tb-primary-2) 90%, transparent); }
.tb-logo-shine .tb-brand-mark::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: -70%; width: 38%; transform: skewX(-22deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.78), transparent); animation: tb-logo-shine 4.8s ease-in-out infinite; }
@keyframes tb-logo-shine { 0%, 60% { left: -70%; } 88%, 100% { left: 145%; } }
body.tb-dark .tb-hero-chips a { border-color: #344057; background: #202a3c; box-shadow: none; }
body.tb-dark .tb-hero-chips a:hover { border-color: var(--tb-primary); background: #26334a; }
body.tb-dark .tb-hero-chips b { color: #f1f5f9; }
body.tb-dark .tb-hero-chips small { color: #a9b8cf; }

.tb-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; padding: 20px 0 48px; }
.tb-filter {
  position: sticky; top: 88px; align-self: start;
  border: 1px solid var(--tb-border); border-radius: 18px; background: var(--tb-panel); box-shadow: var(--tb-shadow);
  padding: 16px; display: flex; flex-direction: column; gap: 15px;
}
.tb-filter h3 { margin: 0; font-size: 15px; }
.tb-filter-group { display: flex; flex-direction: column; gap: 8px; }
.tb-filter-label { color: var(--tb-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tb-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--tb-border);
  border-radius: 999px; padding: 6px 10px; color: var(--tb-muted); background: var(--tb-panel-soft);
  cursor: pointer; font-size: 13px;
}
.tb-chip input { accent-color: var(--tb-primary); }
.tb-filter select, .tb-filter input[type="search"] {
  width: 100%; border: 1px solid var(--tb-border); border-radius: 12px; padding: 10px 12px;
  background: var(--tb-panel-soft); color: var(--tb-text); outline: 0;
}
.tb-filter-actions { display: none; justify-content: space-between; align-items: center; gap: 10px; }
.tb-filter-close, .tb-filter-reset { border: 1px solid var(--tb-border); background: var(--tb-panel); color: var(--tb-text); cursor: pointer; min-height: 34px; border-radius: 6px; }
.tb-filter-close { width: 34px; }
.tb-filter-reset { padding: 0 10px; font-weight: 700; }
.tb-filter select:focus, .tb-filter input[type="search"]:focus,
.tb-field input:focus, .tb-field textarea:focus, .tb-field select:focus {
  border-color: color-mix(in srgb, var(--tb-primary) 52%, var(--tb-border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tb-primary) 12%, transparent);
}
.tb-toolbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  border: 1px solid var(--tb-border); border-radius: 16px; background: var(--tb-panel); padding: 10px 12px;
}
.tb-toolbar strong { font-size: 15px; }
.tb-toolbar span { color: var(--tb-muted); font-size: 13px; }
.tb-sort { margin-left: auto; border: 1px solid var(--tb-border); border-radius: 10px; padding: 7px 10px; background: var(--tb-panel-soft); color: var(--tb-text); }
.tb-mobile-filter { display: none; }

.tb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tb-results .tb-grid[data-tb-grid] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tb-card {
  position: relative; overflow: hidden; border: 1px solid var(--tb-border); border-radius: 18px;
  background: var(--tb-panel); box-shadow: 0 12px 34px -28px rgba(15, 23, 42, .42);
  padding: 15px; display: flex; flex-direction: column; gap: 12px; min-height: 218px;
}
.tb-card.is-featured { border-color: color-mix(in srgb, var(--tb-primary) 42%, var(--tb-border)); }
.tb-card-ribbon {
  position: absolute; right: 12px; top: 12px; z-index: 2; border-radius: 999px;
  background: #fffbeb; border: 1px solid #fde68a; color: #a16207; padding: 3px 8px;
  font-size: 12px; font-weight: 850;
}
.tb-card:hover { border-color: color-mix(in srgb, var(--tb-primary) 45%, var(--tb-border)); transform: translateY(-2px); transition: .16s ease; }
.tb-card-head { display: flex; gap: 12px; align-items: flex-start; }
.tb-logo {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tb-primary) 15%, #fff), color-mix(in srgb, var(--tb-primary-2) 14%, #fff));
  color: var(--tb-primary); font-weight: 850;
}
.tb-logo img { width: 100%; height: 100%; object-fit: cover; }
.tb-logo-fallback::after { content: attr(data-initial); font-weight: 850; }
.tb-title { min-width: 0; flex: 1; }
.tb-title h2, .tb-title h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.tb-title p { margin: 4px 0 0; color: var(--tb-muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tb-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-badge { font-size: 12px; color: var(--tb-muted); background: var(--tb-panel-soft); border: 1px solid var(--tb-border); border-radius: 999px; padding: 3px 8px; }
.tb-badge.is-good { color: var(--tb-primary); background: color-mix(in srgb, var(--tb-primary) 8%, var(--tb-panel)); }
.tb-badge.is-warm { color: #a16207; background: #fffbeb; border-color: #fde68a; }
.tb-badge.is-verified { color: #075985; background: #e0f2fe; border-color: #7dd3fc; }
.tb-meta { margin-top: auto; display: flex; align-items: center; gap: 10px; color: var(--tb-muted); font-size: 12px; }
.tb-score { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: #b45309; font-weight: 800; }
.tb-card-actions { display: flex; gap: 8px; }
.tb-card-actions .tb-btn { flex: 1; padding: 8px 10px; font-size: 13px; }
.tb-card-tools { display: flex; gap: 8px; }
.tb-card-tools button {
  flex: 1; border: 1px solid var(--tb-border); border-radius: 10px; background: var(--tb-panel-soft); color: var(--tb-muted);
  min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-size: 12px;
}
.tb-card-tools button:hover, .tb-card-tools button.is-active { color: var(--tb-primary); border-color: color-mix(in srgb, var(--tb-primary) 38%, var(--tb-border)); background: color-mix(in srgb, var(--tb-primary) 8%, var(--tb-panel)); }
.tb-compare-hint { margin-top: -4px; color: var(--tb-muted); font-size: 12px; }
.tb-empty { border: 1px dashed var(--tb-border); border-radius: 18px; padding: 40px 20px; text-align: center; color: var(--tb-muted); background: var(--tb-panel); }
.tb-ad-slot { width: min(var(--tb-container), calc(100% - 32px)); margin: 18px auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.tb-ad-text { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 13px; border: 1px solid var(--tb-border); border-radius: 8px; background: var(--tb-panel); color: var(--tb-muted); font-size: 13px; }
.tb-ad-text:hover { color: var(--tb-primary); border-color: color-mix(in srgb, var(--tb-primary) 42%, var(--tb-border)); }
.tb-ad-image { flex: 1 1 280px; min-width: 0; overflow: hidden; border: 1px solid var(--tb-border); border-radius: 8px; background: var(--tb-panel); }
.tb-ad-image img { display: block; width: 100%; max-height: 150px; object-fit: cover; }
.tb-loading { opacity: .55; pointer-events: none; transition: opacity .16s ease; }
.navigation.pagination { margin-top: 24px; }
.nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.nav-links a, .nav-links span {
  min-width: 36px; height: 36px; border: 1px solid var(--tb-border); border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 10px;
  background: var(--tb-panel); color: var(--tb-muted);
}
.nav-links .current, .nav-links a:hover { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--tb-primary), var(--tb-primary-2)); }

.tb-single { padding: 34px 0 56px; }
.tb-single-hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.tb-single-main, .tb-single-side, .tb-section {
  border: 1px solid var(--tb-border); border-radius: 20px; background: var(--tb-panel); box-shadow: var(--tb-shadow); padding: 22px;
}
.tb-item-top { display: flex; gap: 16px; align-items: flex-start; }
.tb-item-top .tb-logo { width: 64px; height: 64px; border-radius: 18px; font-size: 24px; }
.tb-item-title h1 { margin: 0; font-size: 34px; line-height: 1.12; }
.tb-item-title p { color: var(--tb-muted); margin: 8px 0 0; }
.tb-fact-list { display: grid; gap: 10px; margin-top: 18px; }
.tb-fact { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--tb-border); padding-bottom: 9px; color: var(--tb-muted); }
.tb-fact strong { color: var(--tb-text); text-align: right; }
.tb-content { margin-top: 22px; }
.tb-comment-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.tb-comment-form .tb-field { grid-column: 1 / -1; margin: 0; }
.tb-comment-form .form-submit { grid-column: 1 / -1; margin: 0; }
.tb-comment-field { display: grid; gap: 7px; margin: 0; }
.tb-comment-field label { color: var(--tb-muted); font-size: 13px; font-weight: 700; }
.tb-comment-field input, .tb-comment-form textarea { width: 100%; min-height: 42px; border: 1px solid var(--tb-border); border-radius: 10px; padding: 10px 12px; background: var(--tb-panel-soft); color: var(--tb-text); }
.tb-comment-form textarea { min-height: 132px; resize: vertical; }
.tb-comment-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.tb-comment-list .comment-body { position: relative; border: 1px solid var(--tb-border); border-radius: 12px; padding: 14px 16px; background: var(--tb-panel-soft); }
.tb-comment-list .comment-author { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.tb-comment-list .comment-author .avatar { border-radius: 50%; }
.tb-comment-list .comment-metadata { margin: 5px 0 10px; font-size: 12px; color: var(--tb-muted); }
.tb-comment-list .comment-metadata a, .tb-comment-list .comment-reply-link { color: var(--tb-primary); }
.tb-comment-list .comment-content { color: var(--tb-text); line-height: 1.7; }
.tb-comment-list .reply { margin-top: 10px; font-size: 13px; font-weight: 700; }
.tb-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.tb-mini-box { background: var(--tb-panel-soft); border: 1px solid var(--tb-border); border-radius: 14px; padding: 14px; }
.tb-mini-box h3 { margin: 0 0 8px; font-size: 15px; }
.tb-mini-box ul { margin: 0; padding-left: 18px; color: var(--tb-muted); }
.tb-change-log, .tb-alternatives { margin-top: 22px; }
.tb-change-log h2, .tb-alternatives h2 { margin: 0 0 12px; font-size: 20px; }
.tb-change-log ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--tb-muted); }
.tb-rating { margin-top: 22px; border: 1px solid var(--tb-border); border-radius: 14px; background: var(--tb-panel-soft); padding: 14px; }
.tb-rating h2, .tb-rating p { margin: 0 0 10px; }
.tb-rating form { display: flex; align-items: center; gap: 8px; }
.tb-widget { margin-top: 16px; border: 1px solid var(--tb-border); border-radius: 14px; background: var(--tb-panel-soft); padding: 14px; }
.tb-widget-title { margin: 0 0 10px; font-size: 15px; }
.tb-widget ul { margin: 0; padding-left: 18px; color: var(--tb-muted); }
.tb-widget li { margin: 6px 0; font-size: 14px; }
.tb-widget a { color: var(--tb-muted); }
.tb-widget a:hover { color: var(--tb-primary); }
.tb-widget .search-form,
.tb-widget .wp-block-search__inside-wrapper { display: flex; align-items: stretch; gap: 8px; }
.tb-widget .wp-block-search__label { display: block; margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.tb-widget .search-field,
.tb-widget .wp-block-search__input {
  flex: 1; min-width: 0; height: 40px; padding: 0 12px;
  border: 1px solid var(--tb-border); border-radius: 10px;
  background: var(--tb-panel); color: var(--tb-text); font-size: 14px;
}
.tb-widget .search-field:focus,
.tb-widget .wp-block-search__input:focus { outline: none; border-color: var(--tb-primary); }
.tb-widget .search-submit,
.tb-widget .wp-block-search__button {
  flex: none; height: 40px; padding: 0 16px; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; writing-mode: horizontal-tb; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, var(--tb-primary), var(--tb-primary-2));
  color: #fff; font-size: 14px; font-weight: 600;
}
.tb-widget .search-submit:hover,
.tb-widget .wp-block-search__button:hover { filter: brightness(1.06); }
body.tb-dark .tb-widget .search-field,
body.tb-dark .tb-widget .wp-block-search__input { background: #1c2536; border-color: #344057; color: #e2e8f0; }

.tb-form-page { padding: 34px 0 56px; max-width: 860px; }
.tb-form {
  display: grid; gap: 14px; border: 1px solid var(--tb-border); border-radius: 20px; background: var(--tb-panel);
  padding: 22px; box-shadow: var(--tb-shadow);
}
.tb-muted-copy { color: var(--tb-muted); margin-top: 0; }
.tb-plan-panel {
  border: 1px solid var(--tb-border); border-radius: 18px; background: var(--tb-panel);
  box-shadow: var(--tb-shadow); padding: 18px; margin: 18px 0; display: grid; gap: 14px;
}
.tb-plan-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tb-plan-head strong { font-size: 16px; }
.tb-plan-head span, .tb-plan-panel p { color: var(--tb-muted); margin: 0; }
.tb-plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tb-plan-grid div {
  min-height: 84px; border: 1px solid var(--tb-border); border-radius: 14px; background: var(--tb-panel-soft);
  padding: 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
}
.tb-plan-grid b { color: var(--tb-text); }
.tb-plan-grid span { color: var(--tb-muted); font-size: 13px; }
.tb-field { display: grid; gap: 6px; }
.tb-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tb-field label { font-weight: 750; }
.tb-field input, .tb-field textarea, .tb-field select {
  width: 100%; border: 1px solid var(--tb-border); border-radius: 12px; padding: 11px 12px;
  background: var(--tb-panel-soft); color: var(--tb-text); outline: 0;
}
.tb-inline-check { display: inline-flex; align-items: center; gap: 8px; color: var(--tb-muted); font-weight: 650; }
.tb-inline-check input { width: auto; }
.tb-field textarea { min-height: 150px; resize: vertical; }
.tb-payment-box { border: 1px solid var(--tb-border); border-radius: 16px; background: var(--tb-panel-soft); padding: 16px; display: grid; gap: 12px; }
.tb-payment-box > strong { font-size: 16px; }
.tb-payment-box > p { margin: 0; color: var(--tb-muted); }
.tb-online-payment-note { margin: 0; color: var(--tb-primary) !important; font-size: 13px; line-height: 1.6; }
.tb-notice { border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; border: 1px solid var(--tb-border); background: var(--tb-panel); }
.tb-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.tb-notice-ok { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.tb-notice-error { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.tb-wechatpay-checkout { text-align: center; }
.tb-wechatpay-checkout > p { margin: 10px 0; }
.tb-pay-qrcode { display: grid; place-items: center; width: 236px; min-height: 236px; margin: 16px auto; padding: 8px; background: #fff; border: 1px solid var(--tb-border); border-radius: 8px; }
.tb-pay-qrcode svg, .tb-pay-qrcode canvas, .tb-pay-qrcode img { display: block; max-width: 220px; height: auto; }
.tb-wechatpay-checkout details { max-width: 560px; margin: 12px auto; text-align: left; }
.tb-wechatpay-checkout textarea { width: 100%; margin-top: 8px; resize: vertical; }
.tb-rank-page { padding: 34px 0 56px; display: grid; gap: 22px; }
.tb-rank-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: stretch;
  border: 1px solid var(--tb-border); border-radius: 20px; background: var(--tb-panel); box-shadow: var(--tb-shadow); padding: 24px;
}
.tb-rank-hero h1 { margin: 0; font-size: 36px; line-height: 1.15; }
.tb-rank-hero p { margin: 12px 0 0; color: var(--tb-muted); max-width: 720px; }
.tb-rank-note { border: 1px solid var(--tb-border); border-radius: 16px; background: var(--tb-panel-soft); padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.tb-rank-note span { color: var(--tb-muted); }
.tb-section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.tb-section-head h2 { margin: 0; font-size: 20px; }
.tb-section-head span { color: var(--tb-muted); font-size: 13px; }
.tb-compare-table-wrap { overflow: auto; border: 1px solid var(--tb-border); border-radius: 16px; background: var(--tb-panel); }
.tb-compare-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.tb-compare-table th, .tb-compare-table td { border-bottom: 1px solid var(--tb-border); padding: 12px 14px; text-align: left; vertical-align: top; }
.tb-compare-table th { background: var(--tb-panel-soft); font-weight: 800; }
.tb-compare-table tbody tr:hover, .tb-account-table tbody tr:hover { background: color-mix(in srgb, var(--tb-primary) 4%, var(--tb-panel)); }
.tb-compare-table tr:last-child td { border-bottom: 0; }
.tb-rank-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tb-rank-block { border: 1px solid var(--tb-border); border-radius: 16px; background: var(--tb-panel); padding: 16px; }
.tb-rank-block h3 { margin: 0 0 12px; font-size: 16px; }
.tb-rank-block ol { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.tb-rank-block li { color: var(--tb-muted); }
.tb-rank-block li a { color: var(--tb-text); }
.tb-rank-block li span { float: right; color: #b45309; font-weight: 800; }
.tb-collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tb-auth-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; pointer-events: none; opacity: 0; transition: opacity .18s ease; }
.tb-auth-modal[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.tb-auth-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(5px); }
.tb-auth-box { position: relative; width: min(100%, 410px); padding: 26px; border: 1px solid var(--tb-border); border-radius: 22px; background: var(--tb-panel); box-shadow: 0 28px 70px rgba(15, 23, 42, .3); }
.tb-auth-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; color: var(--tb-muted); background: transparent; cursor: pointer; }
.tb-auth-close:hover { color: var(--tb-text); background: var(--tb-panel-soft); }
.tb-auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.tb-auth-brand .tb-brand-mark { width: 38px; height: 38px; font-size: 18px; }
.tb-auth-brand strong, .tb-auth-brand small { display: block; }
.tb-auth-brand small { margin-top: 3px; color: var(--tb-muted); }
.tb-auth-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--tb-border); margin-bottom: 18px; }
.tb-auth-tabs button { padding: 0 2px 10px; border: 0; border-bottom: 2px solid transparent; color: var(--tb-muted); background: none; font: inherit; font-weight: 800; cursor: pointer; }
.tb-auth-tabs button.is-active { color: var(--tb-primary); border-bottom-color: var(--tb-primary); }
.tb-auth-box label { display: grid; gap: 7px; margin: 0 0 14px; color: var(--tb-text); font-size: 13px; font-weight: 750; }
.tb-auth-box input:not([type="checkbox"]) { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--tb-border); border-radius: 10px; color: var(--tb-text); background: var(--tb-panel-soft); font: inherit; }
.tb-auth-box input:focus { outline: 0; border-color: var(--tb-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tb-primary) 12%, transparent); }
.tb-auth-remember { display: flex !important; align-items: center; gap: 7px; color: var(--tb-muted) !important; font-weight: 600 !important; }
.tb-auth-box .tb-btn { width: 100%; margin-top: 4px; }
.tb-auth-error { margin: 0 0 12px; padding: 9px 10px; border-radius: 9px; color: #b91c1c; background: #fef2f2; font-size: 13px; }
.tb-auth-captcha > span { display: flex; align-items: center; gap: 8px; }.tb-auth-captcha input { min-width: 0; }.tb-auth-captcha img { width: 104px; height: 38px; border: 1px solid var(--tb-border); border-radius: 8px; object-fit: cover; cursor: pointer; }
.tb-social-login { display: grid; gap: 9px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--tb-border); text-align: center; }.tb-social-login > span { color: var(--tb-muted); font-size: 12px; }.tb-social-login > div { display: flex; justify-content: center; gap: 8px; }.tb-social-login a { padding: 7px 12px; border: 1px solid var(--tb-border); border-radius: 8px; color: var(--tb-text); background: var(--tb-panel-soft); font-size: 12px; font-weight: 750; }.tb-social-login a:hover { color: var(--tb-primary); border-color: var(--tb-primary); }
body.tb-auth-open { overflow: hidden; }
.tb-collection-block { border: 1px solid var(--tb-border); border-radius: 18px; background: var(--tb-panel); box-shadow: var(--tb-shadow); padding: 18px; }
.tb-collection-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.tb-collection-head h3 { margin: 0; font-size: 18px; }
.tb-collection-head p { margin: 6px 0 0; color: var(--tb-muted); font-size: 13px; }
.tb-collection-head span { flex: none; border: 1px solid #fde68a; background: #fffbeb; color: #a16207; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 800; }
.tb-collection-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tb-collection-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--tb-border); border-radius: 12px; background: var(--tb-panel-soft); padding: 10px 12px; }
.tb-collection-list a { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.tb-collection-list strong { color: var(--tb-text); font-size: 14px; line-height: 1.3; }
.tb-collection-list small { color: var(--tb-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.tb-collection-list li > span { color: #b45309; font-weight: 850; }
.tb-account-page { padding: 34px 0 56px; display: grid; gap: 22px; }
.tb-compare-page { padding: 34px 0 56px; display: grid; gap: 22px; }
.tb-account-table-wrap { overflow: auto; border: 1px solid var(--tb-border); border-radius: 16px; background: var(--tb-panel); }
.tb-account-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.tb-account-table th, .tb-account-table td { border-bottom: 1px solid var(--tb-border); padding: 12px 14px; text-align: left; }
.tb-account-table th { background: var(--tb-panel-soft); color: var(--tb-muted); font-size: 13px; }
.tb-account-table tr:last-child td { border-bottom: 0; }
.tb-account-table a { color: var(--tb-primary); font-weight: 800; }

.tb-footer { border-top: 1px solid var(--tb-border); padding: 26px 0; color: var(--tb-muted); background: color-mix(in srgb, var(--tb-panel) 70%, transparent); }
.tb-footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tb-footer-credit { margin-left: 12px; }
.tb-friend-links { display: flex; flex-wrap: wrap; gap: 12px; }
.tb-friend-links a:hover { color: var(--tb-primary); }
.tb-tray {
  position: fixed; inset: 0; z-index: 300; background: rgba(15, 23, 42, .38);
  opacity: 0; pointer-events: none; transition: opacity .16s ease;
}
body.tb-tray-open .tb-tray { opacity: 1; pointer-events: auto; }
.tb-tray-panel {
  position: absolute; right: 18px; top: 82px; width: min(420px, calc(100% - 36px)); max-height: calc(100vh - 110px);
  overflow: hidden; border: 1px solid var(--tb-border); border-radius: 18px; background: var(--tb-panel); box-shadow: var(--tb-shadow);
  display: flex; flex-direction: column;
}
.tb-tray-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--tb-border); }
.tb-tray-head button { border: 0; background: transparent; color: var(--tb-muted); cursor: pointer; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; }
.tb-tray-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--tb-border); }
.tb-tray-tabs button { border: 0; background: var(--tb-panel); color: var(--tb-muted); padding: 10px 8px; cursor: pointer; font-weight: 750; }
.tb-tray-tabs button.is-active { color: var(--tb-primary); background: var(--tb-panel-soft); }
.tb-tray-tabs span { display: inline-flex; min-width: 18px; height: 18px; margin-left: 5px; border-radius: 999px; background: var(--tb-border); align-items: center; justify-content: center; font-size: 11px; }
.tb-tray-list { overflow: auto; padding: 12px; display: grid; gap: 8px; }
.tb-tray-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--tb-border); border-radius: 12px; padding: 10px 12px; background: var(--tb-panel-soft); }
.tb-tray-item a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 750; }
.tb-tray-item button { border: 0; background: transparent; color: var(--tb-muted); cursor: pointer; flex: none; }
.tb-tray-action { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--tb-primary), var(--tb-primary-2)); color: #fff; font-weight: 850; }
.tb-tray-empty { border: 1px dashed var(--tb-border); border-radius: 12px; color: var(--tb-muted); text-align: center; padding: 28px 12px; }

body.tb-dark {
  --tb-bg: #0f1522;
  --tb-panel: #151d2c;
  --tb-panel-soft: #1b2536;
  --tb-text: #eef3fb;
  --tb-muted: #98a5bb;
  --tb-border: #263246;
  --tb-header-bg: #141c2b;
  --tb-hero-start: #16203a;
  --tb-hero-end: #0f1522;
  --tb-shadow: 0 18px 48px -30px rgba(0, 0, 0, .8);
}
body.tb-dark .tb-badge.is-warm,
body.tb-dark .tb-card-ribbon,
body.tb-dark .tb-collection-head span {
  background: rgba(245, 158, 11, .12);
  border-color: rgba(245, 158, 11, .32);
  color: #fbbf24;
}
body.tb-dark .tb-notice-ok { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .3); }
body.tb-dark .tb-notice-error { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .3); }

@media (max-width: 1060px) {
  .tb-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-results .tb-grid[data-tb-grid] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-hero-grid, .tb-single-hero { grid-template-columns: 1fr; }
  .tb-rank-hero { grid-template-columns: 1fr; }
  .tb-rank-list, .tb-collection-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-hero-chips { grid-template-columns: repeat(2, 1fr); }
  .tb-monetize-strip, .tb-plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .tb-header-inner { height: 62px; }
  .tb-mobile-toggle, .tb-mobile-filter { display: inline-flex; }
  .tb-nav { display: none; position: absolute; left: 16px; right: 16px; top: 68px; background: var(--tb-panel); border: 1px solid var(--tb-border); border-radius: 16px; padding: 10px; box-shadow: var(--tb-shadow); }
  body.tb-menu-open .tb-nav { display: block; }
  .tb-nav ul { flex-direction: column; }
  .tb-header-action .tb-btn-ghost { display: none; }
	.tb-header-action .tb-theme-toggle { display: inline-flex; }
  .tb-header-action > a.tb-btn { display: none; }
  .tb-header-action [data-tb-auth-open] { display: inline-flex; }
  .tb-mobile-links { display: grid; gap: 4px; margin-top: 8px; }
  .tb-mobile-links a { display: block; padding: 9px 10px; color: var(--tb-text); border-radius: 6px; font-weight: 700; }
  .tb-layout { grid-template-columns: 1fr; }
  .tb-filter { display: none; position: fixed; inset: 76px 16px auto; z-index: 120; max-height: calc(100vh - 100px); overflow: auto; }
  body.tb-filter-open .tb-filter { display: flex; }
  .tb-filter-actions { display: flex; }
  .tb-toolbar { flex-wrap: wrap; }
  .tb-sort { margin-left: 0; }
}
@media (max-width: 620px) {
  .tb-container { width: min(100% - 24px, var(--tb-container)); }
  .tb-hero { padding-top: 30px; }
  .tb-search-panel { flex-direction: column; }
  .tb-grid { grid-template-columns: 1fr; }
  .tb-results .tb-grid[data-tb-grid] { grid-template-columns: 1fr; }
  .tb-metric-row, .tb-pros-cons { grid-template-columns: 1fr; }
  .tb-card { min-height: auto; }
  .tb-item-top { flex-direction: column; }
  .tb-item-title h1 { font-size: 28px; }
  .tb-hero-chips { grid-template-columns: 1fr; }
  .tb-monetize-strip, .tb-plan-grid { grid-template-columns: 1fr; }
  .tb-field-row, .tb-rank-list, .tb-collection-grid { grid-template-columns: 1fr; }
  .tb-comment-form { grid-template-columns: 1fr; }
  .tb-collection-head { flex-direction: column; }
  .tb-plan-head { align-items: flex-start; flex-direction: column; }
  .tb-section-head { align-items: flex-start; flex-direction: column; }
}
