/*
Theme Name: 企业模板 01 · 经典商务
Theme URI: https://example.com/revive-corp
Author: Domain Ops
Description: Banner+分区式企业官网；蓝灰配色，分区卡片/数据条/新闻列表，通用性最强（数据契约通用，标签可覆盖；子模板仅配色/版式变量）
Version: 1.0.0
Template Version: v1.0.0
Text Domain: revive-corp
*/

/* ============================================================
   1. 设计变量
   ============================================================ */
:root {
  --rv-primary: #0b5fa5;
  --rv-primary-dark: #084a80;
  --rv-primary-light: #e8f1f9;
  --rv-accent: #1a8fd9;
  --rv-dark: #12283c;
  --rv-dark-2: #1c3a52;
  --rv-text: #1f2d3a;
  --rv-text-2: #5a6b7b;
  --rv-text-3: #8b9aa8;
  --rv-line: #e3e9ef;
  --rv-bg: #ffffff;
  --rv-bg-2: #f5f8fa;
  --rv-bg-3: #eef3f7;
  --rv-radius: 6px;
  --rv-radius-lg: 10px;
  --rv-shadow: 0 2px 10px rgba(18, 40, 60, .06);
  --rv-shadow-hover: 0 10px 26px rgba(18, 40, 60, .12);
  --rv-container: 1200px;
  --rv-gap: 24px;
  --rv-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --rv-thumb-w: 260px;
  --rv-thumb-h: 160px;
  --rv-section-pad: 64px;
}

/* ============================================================
   2. 基础重置
   ============================================================ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--rv-font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--rv-text);
  background: var(--rv-bg);
  word-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rv-primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--rv-accent); }
h1, h2, h3, h4, h5 { margin: 0 0 .6em; line-height: 1.35; color: var(--rv-text); font-weight: 700; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
table { border-collapse: collapse; width: 100%; }
.rv-container { max-width: var(--rv-container); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* ============================================================
   3. 顶栏 + 头部导航
   ============================================================ */
.rv-topbar {
  background: var(--rv-dark);
  color: #c9d6e2;
  font-size: 13px;
  line-height: 38px;
}
.rv-topbar .rv-container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rv-notice { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rv-notice strong { color: #fff; font-weight: 600; }
.rv-topbar-links a { color: #c9d6e2; margin-left: 16px; }
.rv-topbar-links a:hover { color: #fff; }

.rv-header {
  background: #fff;
  border-bottom: 1px solid var(--rv-line);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 1px 3px rgba(18, 40, 60, .04);
}
.rv-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.rv-logo { display: flex; align-items: center; gap: 12px; }
.rv-logo-mark {
  width: 44px; height: 44px; border-radius: 8px;
  background: linear-gradient(135deg, var(--rv-primary), var(--rv-accent));
  color: #fff; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.rv-logo-img { height: 48px; width: auto; display: block; }
.rv-logo-mark-img { width: 44px; height: 44px; border-radius: 8px; display: block; flex: 0 0 auto; }
.rv-logo-text strong { display: block; font-size: 19px; color: var(--rv-text); font-weight: 700; letter-spacing: .5px; }
.rv-logo-text span { display: block; font-size: 12px; color: var(--rv-text-3); letter-spacing: 2px; text-transform: uppercase; }

.rv-nav { display: flex; align-items: center; gap: 4px; }
.rv-nav a {
  display: block; padding: 10px 16px; border-radius: var(--rv-radius);
  color: var(--rv-text); font-size: 15px; font-weight: 500; position: relative;
}
.rv-nav a:hover, .rv-nav .current-menu-item > a, .rv-nav .current_page_item > a {
  color: var(--rv-primary); background: var(--rv-primary-light);
}
.rv-nav .sub-menu {
  position: absolute; min-width: 190px; background: #fff; border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius); box-shadow: var(--rv-shadow-hover);
  padding: 8px; margin: 0; list-style: none; display: none; z-index: 99;
}
.rv-nav li { position: relative; }
.rv-nav li:hover > .sub-menu { display: block; }
.rv-nav .sub-menu a { padding: 8px 12px; font-weight: 400; }
.rv-nav .sub-menu .sub-menu { left: 100%; top: 0; }

.rv-header-cta { display: flex; align-items: center; gap: 12px; }
.rv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border-radius: var(--rv-radius);
  background: var(--rv-primary); color: #fff !important;
  font-size: 15px; font-weight: 600; border: 1px solid var(--rv-primary);
  transition: all .18s ease; cursor: pointer;
}
.rv-btn:hover { background: var(--rv-primary-dark); border-color: var(--rv-primary-dark); transform: translateY(-1px); }
.rv-btn-ghost { background: transparent; color: var(--rv-primary) !important; }
.rv-btn-ghost:hover { background: var(--rv-primary-light); color: var(--rv-primary-dark) !important; }
.rv-btn-light { background: #fff; color: var(--rv-primary) !important; border-color: #fff; }
.rv-btn-light:hover { background: #eaf3fb; }
.rv-btn-lg { padding: 14px 30px; font-size: 16px; }

.rv-nav-close { display: none; }
.rv-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--rv-line); border-radius: var(--rv-radius); background: #fff; cursor: pointer; }
.rv-burger span { display: block; width: 20px; height: 2px; background: var(--rv-text); margin: 4px auto; transition: .2s; }

/* ============================================================
   4. 首页：Hero
   ============================================================ */
.rv-hero { position: relative; background: var(--rv-dark); color: #fff; overflow: hidden; }
.rv-hero-slides { position: relative; }
.rv-hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
  background-size: 100% 100%; background-position: center; background-repeat: no-repeat;
  display: block;
}
.rv-hero-slide.is-active { opacity: 1; position: relative; aspect-ratio: 1200 / 420; }
.rv-hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 30, 50, .10) 0%, rgba(10, 30, 50, 0) 40%, rgba(10, 30, 50, .18) 100%);
  pointer-events: none;
}
.rv-hero-hit { position: absolute; inset: 0; z-index: 2; display: block; }
.rv-hero-body { position: relative; z-index: 2; max-width: 640px; padding: 72px 0; }
.rv-hero-kicker {
  display: inline-block; padding: 4px 12px; margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  font-size: 13px; letter-spacing: 2px; color: #dbe8f4;
}
.rv-hero-body h1 { font-size: 40px; color: #fff; margin-bottom: 16px; letter-spacing: 1px; }
.rv-hero-body p { font-size: 16px; color: #cddcea; margin-bottom: 28px; }
.rv-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.rv-hero-dots { position: absolute; bottom: 20px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.rv-hero-dots button { width: 30px; height: 4px; border: 0; border-radius: 2px; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.rv-hero-dots button.is-active { background: #fff; }

/* 数据条 */
.rv-stats { background: var(--rv-bg-2); border-bottom: 1px solid var(--rv-line); }
.rv-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.rv-stat { padding: 26px 20px; text-align: center; border-right: 1px solid var(--rv-line); }
.rv-stat:last-child { border-right: 0; }
.rv-stat b { display: block; font-size: 30px; color: var(--rv-primary); font-weight: 800; line-height: 1.2; }
.rv-stat span { font-size: 13px; color: var(--rv-text-2); }

/* ============================================================
   5. 通用区块
   ============================================================ */
.rv-section { padding: var(--rv-section-pad) 0; }
.rv-section-alt { background: var(--rv-bg-2); }
.rv-section-dark { background: var(--rv-dark); color: #c9d6e2; }
.rv-section-dark h2, .rv-section-dark h3 { color: #fff; }
.rv-head { text-align: center; margin-bottom: 40px; }
.rv-head h2 { font-size: 30px; margin-bottom: 10px; position: relative; display: inline-block; padding-bottom: 14px; }
.rv-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 46px; height: 3px; background: var(--rv-primary); border-radius: 2px;
}
.rv-head p { color: var(--rv-text-2); margin: 0; }
.rv-head-left { text-align: left; }
.rv-head-left h2::after { left: 0; transform: none; }

/* 服务/优势卡片 */
.rv-grid { display: grid; gap: var(--rv-gap); }
.rv-grid-3 { grid-template-columns: repeat(3, 1fr); }
.rv-grid-4 { grid-template-columns: repeat(4, 1fr); }
.rv-service {
  background: #fff; border: 1px solid var(--rv-line); border-radius: var(--rv-radius-lg);
  padding: 30px 26px; transition: all .22s ease; position: relative; overflow: hidden;
}
.rv-service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--rv-primary); transition: width .28s ease;
}
.rv-service:hover { box-shadow: var(--rv-shadow-hover); transform: translateY(-4px); border-color: #d5e3ef; }
.rv-service:hover::before { width: 100%; }
.rv-service-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 18px;
  background: var(--rv-primary-light); color: var(--rv-primary);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800;
}
.rv-service h3 { font-size: 18px; margin-bottom: 10px; }
.rv-service p { color: var(--rv-text-2); font-size: 14px; margin: 0; }

/* 分类/产品栏目卡片 */
.rv-cat-card {
  display: block; background: #fff; border: 1px solid var(--rv-line); border-radius: var(--rv-radius-lg);
  overflow: hidden; transition: all .22s ease; color: var(--rv-text);
}
.rv-cat-card:hover { box-shadow: var(--rv-shadow-hover); transform: translateY(-4px); color: var(--rv-text); }
.rv-cat-thumb { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rv-bg-3); }
.rv-cat-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rv-cat-card:hover .rv-cat-thumb img { transform: scale(1.06); }
.rv-cat-body { padding: 18px 20px 22px; }
.rv-cat-body h3 { font-size: 17px; margin-bottom: 8px; }
.rv-cat-body p { font-size: 13px; color: var(--rv-text-2); margin: 0 0 12px; min-height: 40px; }
.rv-cat-more { font-size: 13px; color: var(--rv-primary); font-weight: 600; }
.rv-cat-count {
  position: absolute; right: 12px; top: 12px; background: rgba(11, 95, 165, .9); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
}

/* 关于我们 */
.rv-about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.rv-about-media { position: relative; }
.rv-about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rv-radius-lg); box-shadow: var(--rv-shadow-hover); }
.rv-about-badge {
  position: absolute; right: -18px; bottom: -18px; background: var(--rv-primary); color: #fff;
  padding: 18px 22px; border-radius: var(--rv-radius-lg); text-align: center; box-shadow: var(--rv-shadow-hover);
}
.rv-about-badge b { display: block; font-size: 26px; line-height: 1.1; }
.rv-about-badge span { font-size: 12px; opacity: .9; }
.rv-about-txt h2 { font-size: 28px; margin-bottom: 16px; }
.rv-about-txt p { color: var(--rv-text-2); }
.rv-about-points { list-style: none; padding: 0; margin: 18px 0 26px; }
.rv-about-points li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--rv-text); }
.rv-about-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: #fff; background: var(--rv-primary);
  width: 17px; height: 17px; border-radius: 50%; font-size: 11px; line-height: 17px; text-align: center; top: 4px;
}

/* CTA */
.rv-cta { background: linear-gradient(120deg, var(--rv-primary-dark), var(--rv-primary)); color: #fff; }
.rv-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px 0; flex-wrap: wrap; }
.rv-cta h2 { color: #fff; font-size: 26px; margin: 0 0 8px; }
.rv-cta p { margin: 0; color: #d5e6f5; }

/* ============================================================
   6. 文章卡片 / 列表
   ============================================================ */
.rv-card {
  background: #fff; border: 1px solid var(--rv-line); border-radius: var(--rv-radius-lg);
  overflow: hidden; transition: all .22s ease; height: 100%;
}
.rv-card:hover { box-shadow: var(--rv-shadow-hover); transform: translateY(-3px); }
.rv-card-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rv-bg-3); }
.rv-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rv-card:hover .rv-card-thumb img { transform: scale(1.05); }
.rv-card-body { padding: 18px 20px 20px; }
.rv-card-body h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.5; }
.rv-card-body h3 a { color: var(--rv-text); }
.rv-card-body h3 a:hover { color: var(--rv-primary); }
.rv-card-body p { font-size: 13.5px; color: var(--rv-text-2); margin-bottom: 14px; }
.rv-meta { font-size: 12.5px; color: var(--rv-text-3); display: flex; gap: 14px; flex-wrap: wrap; }
.rv-meta a { color: var(--rv-text-3); }
.rv-chip { display: inline-block; background: var(--rv-primary-light); color: var(--rv-primary); padding: 2px 10px; border-radius: 999px; font-size: 12px; }

/* 列表（图左文右） */
.rv-list { display: flex; flex-direction: column; gap: 22px; }
.rv-item {
  display: grid; grid-template-columns: var(--rv-thumb-w) 1fr; gap: 22px;
  background: #fff; border: 1px solid var(--rv-line); border-radius: var(--rv-radius-lg);
  padding: 18px; transition: all .2s ease;
}
.rv-item:hover { box-shadow: var(--rv-shadow-hover); border-color: #d5e3ef; }
.rv-item-thumb { display: block; width: 100%; height: var(--rv-thumb-h); border-radius: var(--rv-radius); overflow: hidden; background: var(--rv-bg-3); }
.rv-item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rv-item:hover .rv-item-thumb img { transform: scale(1.05); }
.rv-item-body h3 { font-size: 18px; margin-bottom: 10px; }
.rv-item-body h3 a { color: var(--rv-text); }
.rv-item-body h3 a:hover { color: var(--rv-primary); }
.rv-item-body p { color: var(--rv-text-2); font-size: 14px; margin-bottom: 12px; }
.rv-item-compact { grid-template-columns: 132px 1fr; gap: 14px; padding: 14px; }
.rv-item-compact .rv-item-thumb { height: 88px; }
.rv-item-compact h3 { font-size: 15px; margin-bottom: 6px; }

/* 分页 */
.rv-pagination { margin-top: 34px; }
.rv-pagination .page-numbers {
  display: inline-block; min-width: 38px; height: 38px; line-height: 36px; text-align: center;
  border: 1px solid var(--rv-line); border-radius: var(--rv-radius); margin: 0 4px 6px 0;
  color: var(--rv-text); background: #fff; padding: 0 12px;
}
.rv-pagination .page-numbers.current, .rv-pagination .page-numbers:hover {
  background: var(--rv-primary); border-color: var(--rv-primary); color: #fff;
}

/* ============================================================
   7. 内容页
   ============================================================ */
.rv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; padding: 34px 0 60px; }
.rv-wrap-full { grid-template-columns: minmax(0, 1fr); }
.rv-breadcrumb { font-size: 13px; color: var(--rv-text-3); margin-bottom: 18px; }
.rv-breadcrumb a { color: var(--rv-text-3); }
.rv-breadcrumb a:hover { color: var(--rv-primary); }
.rv-breadcrumb span.sep { margin: 0 7px; }

.rv-article { background: #fff; border: 1px solid var(--rv-line); border-radius: var(--rv-radius-lg); padding: 34px 38px 40px; }
.rv-article-head { border-bottom: 1px solid var(--rv-line); padding-bottom: 18px; margin-bottom: 26px; }
.rv-article-head h1 { font-size: 28px; margin-bottom: 12px; }
.rv-article-hero { margin: 0 0 26px; border-radius: var(--rv-radius); overflow: hidden; }
.rv-entry { font-size: 16px; line-height: 1.95; color: #24313e; }
.rv-entry h2 { font-size: 22px; margin: 34px 0 14px; padding-left: 13px; border-left: 4px solid var(--rv-primary); }
.rv-entry h3 { font-size: 18px; margin: 26px 0 12px; color: var(--rv-text); }
.rv-entry h4 { font-size: 16px; margin: 20px 0 10px; }
.rv-entry p { margin: 0 0 1.15em; }
.rv-entry img { border-radius: var(--rv-radius); margin: 16px auto; }
.rv-entry ul, .rv-entry ol { margin: 0 0 1.2em; }
.rv-entry li { margin-bottom: .5em; }
.rv-entry blockquote {
  margin: 20px 0; padding: 16px 20px; background: var(--rv-bg-2);
  border-left: 4px solid var(--rv-primary); color: var(--rv-text-2); border-radius: 0 var(--rv-radius) var(--rv-radius) 0;
}
.rv-entry table { margin: 20px 0; font-size: 14.5px; }
.rv-entry th, .rv-entry td { border: 1px solid var(--rv-line); padding: 10px 12px; }
.rv-entry th { background: var(--rv-bg-2); font-weight: 600; }
.rv-entry a { text-decoration: underline; text-underline-offset: 3px; }
.rv-entry b, .rv-entry strong { color: #10222f; }

.rv-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rv-line); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rv-tags a { background: var(--rv-bg-2); border: 1px solid var(--rv-line); color: var(--rv-text-2); padding: 4px 12px; border-radius: 999px; font-size: 13px; }
.rv-tags a:hover { background: var(--rv-primary-light); border-color: #cfe0ee; color: var(--rv-primary); }

.rv-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.rv-prevnext a {
  display: block; padding: 16px 18px; background: var(--rv-bg-2); border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius); color: var(--rv-text); font-size: 14px;
}
.rv-prevnext a:hover { background: var(--rv-primary-light); border-color: #cfe0ee; }
.rv-prevnext b { display: block; font-size: 12px; color: var(--rv-text-3); font-weight: 400; margin-bottom: 6px; }

/* 相关文章 */
.rv-related { margin-top: 34px; }
.rv-related h3 { font-size: 19px; margin-bottom: 18px; padding-left: 12px; border-left: 4px solid var(--rv-primary); }

/* 页面（公司简介等） */
.rv-page-head { background: var(--rv-bg-2); border-bottom: 1px solid var(--rv-line); }
.rv-page-head-inner { padding: 40px 0; }
.rv-page-head h1 { font-size: 30px; margin-bottom: 8px; }
.rv-page-head p { color: var(--rv-text-2); margin: 0; }

/* ============================================================
   8. 侧栏
   ============================================================ */
.rv-sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 100px; }
.rv-widget { background: #fff; border: 1px solid var(--rv-line); border-radius: var(--rv-radius-lg); padding: 22px; }
.rv-widget-title { font-size: 17px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--rv-line); position: relative; }
.rv-widget-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: var(--rv-primary); }
.rv-about-widget { text-align: center; }
.rv-about-widget img { border-radius: var(--rv-radius); margin-bottom: 14px; }
.rv-about-widget p { font-size: 13.5px; color: var(--rv-text-2); text-align: left; margin-bottom: 14px; }
.rv-side-list { list-style: none; padding: 0; margin: 0; }
.rv-side-list li { border-bottom: 1px dashed var(--rv-line); padding: 10px 0; display: flex; gap: 10px; align-items: flex-start; }
.rv-side-list li:last-child { border-bottom: 0; }
.rv-side-num { flex: 0 0 20px; height: 20px; line-height: 20px; text-align: center; background: var(--rv-bg-3); color: var(--rv-text-2); border-radius: 4px; font-size: 12px; margin-top: 3px; }
.rv-side-list li:nth-child(-n+3) .rv-side-num { background: var(--rv-primary); color: #fff; }
.rv-side-list a { color: var(--rv-text); font-size: 14px; line-height: 1.6; }
.rv-side-list a:hover { color: var(--rv-primary); }
.rv-side-cats li { display: flex; justify-content: space-between; align-items: center; }
.rv-side-cats em { font-style: normal; font-size: 12px; color: var(--rv-text-3); background: var(--rv-bg-2); padding: 1px 8px; border-radius: 999px; }
.rv-tagcloud a { display: inline-block; margin: 0 6px 8px 0; padding: 4px 11px; background: var(--rv-bg-2); border-radius: 4px; font-size: 13px; color: var(--rv-text-2); }
.rv-tagcloud a:hover { background: var(--rv-primary); color: #fff; }
.rv-search-form { display: flex; gap: 8px; }
.rv-search-form input[type=search] { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--rv-line); border-radius: var(--rv-radius); font-size: 14px; }
.rv-search-form button { padding: 10px 16px; border: 0; border-radius: var(--rv-radius); background: var(--rv-primary); color: #fff; cursor: pointer; }

/* ============================================================
   9. 页脚
   ============================================================ */
.rv-footer { background: var(--rv-dark); color: #a9bccd; padding-top: 56px; margin-top: 0; }
.rv-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 42px; }
.rv-footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.rv-footer a { color: #a9bccd; }
.rv-footer a:hover { color: #fff; }
.rv-footer-about p { font-size: 13.5px; line-height: 1.9; }
.rv-footer-list { list-style: none; padding: 0; margin: 0; }
.rv-footer-list li { margin-bottom: 10px; font-size: 13.5px; }
.rv-footer-list a::before { content: "›"; margin-right: 7px; color: var(--rv-accent); }
.rv-footer-bar { border-top: 1px solid rgba(255,255,255,.09); padding: 20px 0; font-size: 13px; }
.rv-footer-bar .rv-container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.rv-backtop {
  position: fixed; right: 22px; bottom: 26px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--rv-primary); color: #fff; border: 0; cursor: pointer; font-size: 18px;
  box-shadow: var(--rv-shadow-hover); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 80;
}
.rv-backtop.is-show { opacity: 1; pointer-events: auto; }

/* ============================================================
   10. 响应式
   ============================================================ */
@media (max-width: 1080px) {
  :root { --rv-thumb-w: 220px; --rv-thumb-h: 140px; }
  .rv-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .rv-about { grid-template-columns: 1fr; gap: 30px; }
  .rv-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 900px) {
  .rv-wrap { grid-template-columns: minmax(0, 1fr); }
  .rv-sidebar { position: static; }
  .rv-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .rv-hero-body h1 { font-size: 30px; }
  .rv-hero-slides .rv-hero-slide.is-active { aspect-ratio: 16 / 9; background-size: cover; }
}
@media (max-width: 768px) {
  :root { --rv-section-pad: 40px; }
  .rv-burger { display: block; }
  .rv-nav {
    position: fixed; left: 0; top: 0; width: 100vw; height: 100%; background: #fff; z-index: 120;
    flex-direction: column; align-items: stretch; gap: 0; padding: 70px 20px 20px; overflow-y: auto;
    display: flex;
    /* 不用百分比 transform（会因滚动条宽度变化导致过渡失同步），改用显隐 + 淡入 */
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
  }
  .rv-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .rv-nav a { padding: 14px 6px; border-bottom: 1px solid var(--rv-line); border-radius: 0; font-size: 16px; }
  .rv-nav .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 14px; }
  .rv-nav .sub-menu a { border-bottom: 0; font-size: 14px; color: var(--rv-text-2); }
  .rv-nav-close { display: block; position: absolute; right: 16px; top: 16px; font-size: 26px; line-height: 1; background: none; border: 0; cursor: pointer; z-index: 3; }
  .rv-header-cta .rv-btn { display: none; }
  .rv-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .rv-stat:nth-child(2) { border-right: 0; }
  .rv-stat:nth-child(-n+2) { border-bottom: 1px solid var(--rv-line); }
  .rv-grid-3, .rv-grid-4 { grid-template-columns: 1fr; }
  .rv-item { grid-template-columns: 1fr; }
  .rv-item-thumb { height: 190px; }
  .rv-article { padding: 22px 18px 26px; }
  .rv-article-head h1 { font-size: 22px; }
  .rv-entry { font-size: 15.5px; }
  .rv-entry h2 { font-size: 19px; }
  .rv-prevnext { grid-template-columns: 1fr; }
  .rv-footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .rv-cta-inner { padding: 34px 0; }
  .rv-head h2 { font-size: 24px; }
  .rv-hero-body { padding: 46px 0; }
  .rv-hero-body p { font-size: 15px; }
}

/* ============================================================
   11. 引擎侧栏组件配色归一
   站群引擎侧栏小工具内联样式里硬编码了旧品牌色（#c00808 / #fdf5f5 / #f5eaea），
   这里用同选择器 + !important 覆盖为主题变量，改引擎配色无需改插件。
   ============================================================ */
.rv-sidebar .rv-side-t::before { background: var(--rv-primary) !important; }
.rv-sidebar .rv-cats a:hover { background: var(--rv-primary-light) !important; color: var(--rv-primary) !important; }
.rv-sidebar .rv-cats a:hover .rv-arrow { color: var(--rv-primary) !important; }
.rv-sidebar .rv-cats a:hover .rv-cnt { background: var(--rv-primary) !important; color: #fff !important; }
.rv-sidebar .rv-tools a:hover { background: var(--rv-primary-light) !important; color: var(--rv-primary) !important; }
.rv-sidebar .rv-tools .ic { background: var(--rv-primary-light) !important; color: var(--rv-primary) !important; }
.rv-sidebar .rv-posts .rv-mid a:hover { color: var(--rv-primary) !important; }
.rv-sidebar .rv-know li:nth-child(1) .no,
.rv-sidebar .rv-know li:nth-child(2) .no,
.rv-sidebar .rv-know li:nth-child(3) .no { color: var(--rv-primary) !important; }
.rv-sidebar .rv-know a:hover { color: var(--rv-primary) !important; }

/* ===== v2.1 变量别名（供 .rvp-* 共享组件使用） ===== */
:root { --rv-acc: var(--rv-primary); --rv-ink: #1f2d3a; --rv-line: #e3e9ef; --rv-muted: #5a6b7b; --rv-soft: #f5f7f9; }


/* ===== v2.1 共享组件（page/sidebar/列表/404 通用，使用 --rv-* 别名） ===== */
.rvp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.rvp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding: 26px 0 56px; }
.rvp-pagehead { background: var(--rv-soft, #f6f8fa); border-bottom: 1px solid var(--rv-line); }
.rvp-pagehead .rvp-wrap { padding-top: 30px; padding-bottom: 26px; }
.rvp-pagehead h1 { margin: 6px 0 0; font-size: 28px; color: var(--rv-ink); }
.rvp-crumb { font-size: 13px; color: var(--rv-muted); }
.rvp-crumb a:hover { color: var(--rv-acc); }
.rvp-article { background: #fff; border: 1px solid var(--rv-line); border-radius: 12px; padding: 26px 30px 34px; }
.rvp-entry { font-size: 16.5px; line-height: 2; color: var(--rv-ink); }
.rvp-entry h2, .rvp-h2 { font-size: 21px; margin: 30px 0 12px; padding-left: 12px; border-left: 4px solid var(--rv-acc); }
.rvp-entry h3 { font-size: 18.5px; margin: 22px 0 10px; }
.rvp-entry img { border-radius: 10px; margin: 16px auto; max-width: 100%; height: auto; }
.rvp-entry table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.rvp-entry th, .rvp-entry td { border: 1px solid var(--rv-line); padding: 9px 11px; }
.rvp-entry th { background: var(--rv-soft, #f6f8fa); }
.rvp-entry blockquote { margin: 18px 0; padding: 14px 18px; background: var(--rv-soft, #f6f8fa); border-left: 4px solid var(--rv-line); color: var(--rv-muted); }
.rvp-thumb { margin-bottom: 20px; }
.rvp-thumb img { width: 100%; height: auto; border-radius: 10px; }
.rvp-listhead { padding: 4px 0 18px; border-bottom: 1px solid var(--rv-line); margin-bottom: 20px; }
.rvp-listhead h1 { margin: 0 0 6px; font-size: 26px; color: var(--rv-ink); }
.rvp-listhead p { margin: 0; color: var(--rv-muted); font-size: 14px; }
.rvp-items { display: grid; gap: 18px; }
.rvp-item { display: grid; grid-template-columns: 230px 1fr; gap: 20px; background: #fff; border: 1px solid var(--rv-line); border-radius: 12px; padding: 16px; }
.rvp-item:hover { border-color: var(--rv-acc); }
.rvp-item-th { display: block; height: 150px; border-radius: 10px; overflow: hidden; background: var(--rv-soft, #f2f4f6); }
.rvp-item-th img { width: 100%; height: 100%; object-fit: cover; }
.rvp-item h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; }
.rvp-item h3 a { color: var(--rv-ink); }
.rvp-item h3 a:hover { color: var(--rv-acc); }
.rvp-item p { margin: 0 0 10px; color: var(--rv-muted); font-size: 14px; }
.rvp-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; color: var(--rv-muted); font-size: 12.5px; }
.rvp-chip { background: var(--rv-soft, #f2f4f6); color: var(--rv-acc); border-radius: 999px; padding: 2px 10px; }
.rvp-pager { margin-top: 26px; }
.rvp-pager .page-numbers { display: inline-block; min-width: 38px; height: 38px; line-height: 36px; text-align: center; border: 1px solid var(--rv-line); margin: 0 4px 6px 0; padding: 0 12px; border-radius: 8px; color: var(--rv-ink); }
.rvp-pager .current, .rvp-pager .page-numbers:hover { background: var(--rv-acc); border-color: var(--rv-acc); color: #fff; }
.rvp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rvp-card { border: 1px solid var(--rv-line); border-radius: 10px; padding: 18px; background: #fff; }
.rvp-card b { display: block; margin-bottom: 8px; color: var(--rv-ink); }
.rvp-card p { margin: 0; color: var(--rv-muted); font-size: 14px; }
.rvp-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.rvp-box { background: #fff; border: 1px solid var(--rv-line); border-radius: 12px; padding: 20px; }
.rvp-box-t { margin: 0 0 12px; font-size: 16.5px; color: var(--rv-ink); padding-bottom: 10px; border-bottom: 2px solid var(--rv-soft, #f2f4f6); }
.rvp-box-txt { margin: 0 0 12px; color: var(--rv-muted); font-size: 14px; }
.rvp-list { list-style: none; padding: 0; margin: 0; }
.rvp-list li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--rv-line); font-size: 14px; }
.rvp-list li:last-child { border-bottom: 0; }
.rvp-list li i { font-style: normal; flex: 0 0 20px; height: 20px; line-height: 20px; text-align: center; background: var(--rv-soft, #f2f4f6); color: var(--rv-muted); border-radius: 4px; font-size: 12px; }
.rvp-list li i.top { background: var(--rv-acc); color: #fff; }
.rvp-list li a { color: var(--rv-ink); }
.rvp-list li a:hover { color: var(--rv-acc); }
.rvp-list.rvp-cats li { justify-content: space-between; }
.rvp-list.rvp-cats em { font-style: normal; color: var(--rv-muted); font-size: 12px; }
.rvp-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; background: var(--rv-acc); color: #fff; font-weight: 600; font-size: 14.5px; }
.rvp-btn:hover { filter: brightness(.94); color: #fff; }
.rvp-btn-line { background: #fff; color: var(--rv-acc); border: 1px solid currentcolor; }
.rvp-search-form { display: flex; gap: 8px; }
.rvp-search-form input[type=search] { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--rv-line); border-radius: 8px; font-size: 14px; }
.rvp-search-form button { padding: 10px 16px; border: 0; border-radius: 8px; background: var(--rv-acc); color: #fff; cursor: pointer; }
@media (max-width: 900px) {
  .rvp-cols { grid-template-columns: minmax(0, 1fr); }
  .rvp-side { position: static; }
  .rvp-grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .rvp-item { grid-template-columns: 1fr; }
  .rvp-item-th { height: 190px; }
  .rvp-grid3 { grid-template-columns: 1fr; }
  .rvp-article { padding: 20px 18px; }
  .rvp-pagehead h1 { font-size: 22px; }
}


/* ===== v2.1 头部修复：压制插件内联 .logo img 规则，修横向溢出 ===== */
.hdr .logo img, header.hdr .logo img, .rv-header .logo img, .hdr a.logo img {
  height: 42px !important; width: auto !important; max-height: 46px !important; max-width: 180px !important;
}
.logo { min-width: 0; }                     /* flex 子项可收缩，避免撑破一行 */
.logo b { overflow: hidden; text-overflow: ellipsis; }
.hdr .wrap, .rv-header-inner { flex-wrap: wrap; }
.nav { flex-wrap: wrap; }
@media (min-width: 1201px) { .hdr .wrap, .rv-header-inner { flex-wrap: nowrap; } .nav { flex-wrap: nowrap; } }
@media (max-width: 1200px) { .nav { width: 100%; overflow-x: auto; } }

/* ===== v2.2：汉堡图标 + 网格自适应 + 移动导航兜底 ===== */
.burger, .rv-burger { position: relative; cursor: pointer; }
.burger span, .rv-burger span { display: block; width: 20px; height: 2px; background: currentcolor; margin: 0 auto 4px; border-radius: 2px; }
.burger span:last-child, .rv-burger span:last-child { margin-bottom: 0; }
.burger:not(:has(span))::before, .rv-burger:not(:has(span))::before {
  content: ""; display: block; width: 20px; height: 2px; margin: 0 auto;
  background: currentcolor; box-shadow: 0 6px 0 currentcolor, 0 -6px 0 currentcolor;
}
.grid.g4, .grid.g3 { grid-auto-flow: row; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid.g4.keep4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.g4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }

/* ===== v2.3：移动抽屉层级 / 汉堡三横线 / 导航列表符 / 共享组件配色继承 ===== */
.nav li { list-style: none; }
.burger span, .rv-burger span { display: none !important; }
.burger::before, .rv-burger::before {
  content: ""; display: block; width: 20px; height: 2px; margin: 0 auto;
  background: currentcolor; border-radius: 2px;
  box-shadow: 0 -6px 0 currentcolor, 0 6px 0 currentcolor;
}
.burger, .rv-burger { position: relative; z-index: 85; }
@media (max-width: 768px) {
  .nav { z-index: 80; }
  .hdr, .rv-header { z-index: 90; }
}

/* ===== v3.1 顶层导航可见性 + 移动端溢出修复（.nav ul 曾连带隐藏一级菜单） ===== */
.nav > ul, #rv-nav > ul, .nav > .rvp-nav-ul {
  position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  padding: 0; margin: 0; min-width: 0; list-style: none;
}
.nav > ul > li { position: relative; }
.nav > ul > li > ul { position: absolute; left: 0; top: 100%; display: none; min-width: 180px; padding: 8px;
  background: #fff; border: 1px solid var(--rv-line, #e5e5e5); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); z-index: 60; }
.nav > ul > li:hover > ul { display: block; }
.nav > ul > li > ul > li { width: 100%; }
.nav > ul > li > ul a { display: block; border-radius: 8px; }
@media (max-width: 1200px) { .nav > ul { overflow-x: auto; } }
@media (max-width: 900px) {
  .nav > ul, #rv-nav > ul { display: block; width: 100%; overflow: visible; }
  .nav > ul > li { width: 100%; }
  .nav > ul > li > ul { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 8px 14px; background: transparent; }
}
@media (max-width: 900px) {
  .wrap, .rv-header-inner, .hdr .wrap, .header-inner { min-width: 0; }
  .logo, .rv-logo { min-width: 0; flex-shrink: 1; overflow: hidden; }
  .logo b, .logo strong, .logo .name, .rv-logo-text strong { display: block; max-width: 58vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logo .host { max-width: 58vw; overflow: hidden; text-overflow: ellipsis; }
  body { overflow-x: hidden; }
}

/* ===== v3.2 logo 尺寸规范（!important 压过旧补丁；规格见 root/deliver/logo-spec.json） ===== */
.logo img, .hdr .logo img, header.hdr .logo img, .rv-header .logo img, .hdr a.logo img, img.rv-logo-img, img.rv-logo-mark-img {
  height: 44px !important; width: auto !important; max-width: 300px !important; max-height: 44px !important;
  object-fit: contain !important; flex: 0 0 auto;
}
@media (max-width: 900px) {
  .logo img, .hdr .logo img, header.hdr .logo img, .rv-header .logo img, .hdr a.logo img, img.rv-logo-img, img.rv-logo-mark-img { max-width: 52vw !important; max-height: 36px !important; }
}
}
