/*
Theme Name: WLTX-SEO-THEME-V1
Theme URI: https://wl-tg.com/wltx/
Author: 网罗天下 WLTX
Author URI: https://wl-tg.com/
Description: 基于网罗天下官网现有视觉样式（配色 / 字体 / 导航 / 组件）生成的自主主题，复用站点 /assets/style.css 作为基础样式。
Version: 1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wltx-seo-theme
Tags: business, custom-menu, featured-images, translation-ready
*/

/* 基础视觉样式由 /assets/style.css 提供（functions.php 中入队 wltx-site）。
   以下为该主题所需的少量补充样式。 */

.wltx-main { display: block; }
.wltx-section { padding: 56px 0; }
.wltx-hero { padding: 72px 0 40px; }
.wltx-hero h1 { font-size: clamp(30px, 4vw, 52px); line-height: 1.2; }
.wltx-hero .hero-sub { font-size: 18px; color: var(--ink-2, #5b6475); margin-top: 14px; }

.wltx-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.wltx-card {
  background: #fff;
  border: 1px solid var(--line, #e6ebf3);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(10, 30, 70, .06);
}
.wltx-card h2, .wltx-card h3 { margin: 0 0 10px; font-size: 20px; }
.wltx-card h2 a, .wltx-card h3 a { color: var(--ink, #1f2a44); text-decoration: none; }
.wltx-card h2 a:hover, .wltx-card h3 a:hover { color: var(--primary, #0462ee); }

.wltx-entry { color: var(--ink-2, #4b5563); line-height: 1.75; }
.wltx-entry img { max-width: 100%; height: auto; border-radius: 12px; }
.wltx-meta { font-size: 13px; color: var(--ink-3, #8b93a3); margin-bottom: 12px; }

.wltx-pagination { margin-top: 32px; display: flex; gap: 10px; justify-content: center; }
.wltx-pagination .page-numbers { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line, #e6ebf3); }

.wltx-search { margin: 24px 0; }
.wltx-search input[type="search"] { padding: 10px 14px; border: 1px solid var(--line, #e6ebf3); border-radius: 8px; min-width: 240px; }

/* 后台管理条偏移，避免遮挡固定导航 */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }

/* ===== 详情页：阅读量 / 分享 / 目录 ===== */
.wltx-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 13px; color: #8b93a3; margin: 0 0 22px; }
.wltx-toc { background: #f7f9ff; border: 1px solid var(--line, #e6ebf3); border-radius: 14px; padding: 18px 22px; margin: 0 0 26px; }
.wltx-toc-title { font-weight: 800; font-size: 15px; margin-bottom: 10px; color: var(--ink, #1f2a44); }
.wltx-toc ul { list-style: none; margin: 0; padding: 0; }
.wltx-toc li { margin: 6px 0; }
.wltx-toc li.toc-sub { padding-left: 18px; font-size: 13px; }
.wltx-toc a { color: var(--primary, #0462ee); text-decoration: none; }
.wltx-toc a:hover { text-decoration: underline; }
.wltx-share { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line, #e6ebf3); font-size: 14px; }
.wltx-share-label { color: #8b93a3; }
.wltx-share a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line, #e6ebf3); border-radius: 999px; color: var(--ink, #1f2a44); text-decoration: none; }
.wltx-share a:hover { border-color: var(--primary, #0462ee); color: var(--primary, #0462ee); }
.wltx-share button, .wltx-share-btn { display: inline-block; padding: 7px 14px; border: 1px solid var(--line, #e6ebf3); border-radius: 999px; background: #fff; color: var(--ink, #1f2a44); font-size: 14px; cursor: pointer; font-family: inherit; }
.wltx-share button:hover, .wltx-share-btn:hover { border-color: var(--primary, #0462ee); color: var(--primary, #0462ee); }
.wltx-hash { color: var(--primary, #0462ee); }
.prose h2, .prose h3 { scroll-margin-top: 90px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14px; display: block; overflow-x: auto; }
.prose thead th { background: #f7f9ff; text-align: left; font-weight: 700; }
.prose th, .prose td { border: 1px solid var(--line, #e6ebf3); padding: 10px 12px; vertical-align: top; line-height: 1.7; }
.prose tbody tr:nth-child(even) { background: #fbfcfe; }
