/* ============================================================
   WordPress.xz.cn — 自定义样式（基于 Bootstrap 5.3.8）
   ============================================================ */

:root {
  --wp-blue: #1e8cbe;
  --wp-blue-dark: #135e96;
  --wp-ink: #1d2327;
  --wp-soft: #f4f6f8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  color: #2c3338;
  background-color: #ffffff;
}

a { text-decoration: none; }

/* ---------- 顶部导航 ---------- */
.site-nav {
  background: linear-gradient(90deg, #12303f 0%, #1d3b4a 45%, #135e96 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
.site-nav .nav-link {
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
  padding-inline: .95rem;
  transition: color .15s ease, opacity .15s ease;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus { color: #ffffff; }
.site-nav .nav-link.active {
  color: #ffffff;
  position: relative;
}
.site-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: .95rem; right: .95rem; bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: #ffc107;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: #ffc107;
  color: #1d2327;
  font-weight: 800;
}
.brand-text { font-size: 1.12rem; color: #fff; letter-spacing: .2px; }
.brand-text b { color: #ffc107; font-weight: 700; }
.site-search { min-width: 240px; }

/* ---------- 页面 Hero ---------- */
.page-hero {
  background:
    radial-gradient(1000px 320px at 12% -20%, rgba(30, 140, 190, .28), transparent 60%),
    linear-gradient(180deg, #f4f8fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e9eef1;
}
.hero-title {
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--wp-ink);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}
.hero-sub {
  color: #5c6a72;
  max-width: 46rem;
  line-height: 1.8;
}
.page-hero .breadcrumb { --bs-breadcrumb-margin-bottom: 0; }
.page-hero .breadcrumb a { color: var(--wp-blue); }
.hero-stat {
  background: #ffffff;
  border: 1px solid #e5eaee;
  border-radius: 16px;
  padding: 1rem .5rem;
  box-shadow: 0 8px 24px rgba(19, 94, 150, .08);
}
.stat-num { font-size: 1.45rem; font-weight: 800; color: var(--wp-blue-dark); }
.stat-label { font-size: .78rem; color: #7c8a93; }
.hero-stat .col-6 + .col-6 { border-left: 1px solid #eef2f4; }

/* ---------- 通用小组件 ---------- */
.section-title {
  font-weight: 800;
  color: var(--wp-ink);
  position: relative;
  padding-left: .85rem;
  font-size: 1.35rem;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 1.05rem;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--wp-blue), #ffc107);
}

.resource-card {
  border: 1px solid #e9eef1;
  border-radius: 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 140, 190, .45);
  box-shadow: 0 12px 28px rgba(19, 94, 150, .13);
}
.resource-card .card-title { font-size: 1rem; font-weight: 700; color: var(--wp-ink); }
.resource-card .card-text { min-height: 3.2rem; line-height: 1.7; }

.entry-card {
  border-radius: 16px;
  transition: transform .18s ease, box-shadow .18s ease;
  background: linear-gradient(160deg, #ffffff 0%, #f7fbfd 100%);
}
.entry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(19, 94, 150, .16) !important;
}
.entry-card h5 { color: var(--wp-ink); }
.entry-icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 13px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--wp-blue), var(--wp-blue-dark));
}
.entry-theme .entry-icon  { background: linear-gradient(135deg, #7b5cf0, #4b2fc0); }
.entry-plugin .entry-icon { background: linear-gradient(135deg, #f0652f, #c93b12); }
.entry-doc .entry-icon    { background: linear-gradient(135deg, #2bb673, #128a4f); }

.info-box {
  background: var(--wp-soft);
  border: 1px solid #e8eef2;
  border-radius: 12px;
  padding: .7rem .85rem;
}
.info-label { font-size: .74rem; color: #7c8a93; }
.info-value { font-weight: 700; color: var(--wp-ink); font-size: .95rem; }

.highlight-card {
  background: linear-gradient(160deg, #ffffff 0%, #f2f9fc 100%);
  border-left: 5px solid var(--wp-blue) !important;
}

.timeline {
  list-style: none;
  padding-left: 1.3rem;
  margin: 0;
}
.timeline li {
  position: relative;
  padding: .55rem 0 .55rem .4rem;
  border-left: 2px solid #e3ebf0;
  margin-left: -.3rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px; top: 1.05rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--wp-blue);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(30, 140, 190, .25);
}
.timeline li b { display: inline-block; min-width: 4.6rem; color: var(--wp-blue-dark); }
.timeline li span { color: #5c6a72; }

.feature-band {
  background: linear-gradient(120deg, #12303f 0%, #135e96 60%, #1e8cbe 100%);
  color: #fff;
}
.feature-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: #ffc107;
  line-height: 1.1;
}

.path-card {
  background: linear-gradient(120deg, #1d3b4a 0%, #135e96 100%);
}
.path-step {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  padding: .85rem 1rem;
  height: 100%;
}
.path-step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffc107;
  line-height: 1;
  margin-bottom: .35rem;
}

.tutorial-card {
  border: 1px solid #e9eef1;
  border-radius: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tutorial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(19, 94, 150, .12);
}
.tutorial-card .card-title { color: var(--wp-ink); min-height: 2.6rem; }

/* ---------- 侧边栏 ---------- */
aside .card { border-radius: 14px; }
aside .card-header {
  border-bottom: 1px solid #eef2f4;
  color: var(--wp-ink);
  background: #fff;
}
aside .list-group-item { border-color: #f1f4f6; }
aside .list-group-item:hover { background: #f7fbfd; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: linear-gradient(180deg, #12303f 0%, #0d2531 100%);
  color: #fff;
}
.footer-title {
  color: #ffc107;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: .95rem;
  letter-spacing: .5px;
}
.footer-links li { margin-bottom: .55rem; }
.footer-links a:hover { color: #ffc107 !important; }

/* ---------- 响应式微调 ---------- */
@media (max-width: 991.98px) {
  .site-search { min-width: 100%; margin-bottom: .75rem; }
  .hero-stat { margin-top: 1rem; }
}
@media (max-width: 575.98px) {
  .resource-card .card-text { min-height: 0; }
  .btn-lg { --bs-btn-font-size: .95rem; }
}

/* ============================================================
   详情页（主题 / 插件 / 教程）专用样式
   ============================================================ */

/* 预览图占位 */
.shot-box {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  padding: .6rem;
  border: 1px solid #e5eaee;
  overflow: hidden;
}
.shot-box span {
  font-size: .75rem;
  color: #fff;
  background: rgba(18, 48, 63, .62);
  padding: .15rem .5rem;
  border-radius: 6px;
}
.shot-1 { background: linear-gradient(135deg, #dceef6, #a9d6ea 60%, #7dbcd8); }
.shot-2 { background: linear-gradient(135deg, #e8e6fb, #bdb7f2 60%, #9187e0); }
.shot-3 { background: linear-gradient(135deg, #fdf0e2, #f3cda1 60%, #e0a765); }

/* 特性列表 */
.list-group-flush .tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(30, 140, 190, .12);
  color: var(--wp-blue-dark);
  font-size: .72rem;
  font-weight: 700;
}

/* 信息表 */
.meta-table th { width: 40%; font-size: .85rem; }
.meta-table td { font-size: .9rem; }
.meta-table tr:last-child th,
.meta-table tr:last-child td { border-bottom: 0; }

/* 手风琴 */
.accordion-button:not(.collapsed) {
  background: #f2f9fc;
  color: var(--wp-blue-dark);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: rgba(30, 140, 190, .35); }
.accordion-button { font-size: .95rem; font-weight: 600; color: var(--wp-ink); padding: .85rem 1rem; }
.accordion-item { border-color: #e9eef1; }

/* 教程目录 */
.toc-list {
  padding-left: 1.1rem;
  margin: 0;
  counter-reset: toc;
}
.toc-list li { margin-bottom: .5rem; }
.toc-link {
  color: #4a5760;
  font-size: .92rem;
  border-left: 2px solid transparent;
  padding-left: .5rem;
  transition: color .15s ease, border-color .15s ease;
}
.toc-link:hover {
  color: var(--wp-blue-dark);
  border-left-color: var(--wp-blue);
}

/* 正文 */
.content-body .chapter { margin-bottom: 1.75rem; }
.content-body .chapter:last-of-type { margin-bottom: 1rem; }
.chapter-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--wp-ink);
  padding-left: .75rem;
  border-left: 4px solid var(--wp-blue);
  margin-bottom: .75rem;
}
.content-body p { line-height: 1.9; }
.callout {
  background: var(--wp-soft);
  border-left: 3px solid #ffc107;
  border-radius: 0 8px 8px 0;
  padding: .7rem .9rem;
  color: #5c6a72;
  line-height: 1.8;
}

/* 侧栏吸顶 */
@media (min-width: 992px) {
  .sticky-side { position: sticky; top: 84px; }
}

@media (max-width: 575.98px) {
  .shot-box { aspect-ratio: 4 / 3; }
  .chapter-title { font-size: 1.02rem; }
}
