/* ==========================================================================
   ModuCore PbootCMS 主题 — CMS 动态区块补充样式（cms.css）
   --------------------------------------------------------------------------
   内容：通用列表/搜索卡片 / 分页 / 空状态 / 正文排版 / 表单验证码行 /
         搜索框 / 服务面板动态底色覆盖
   说明：本文件为主题在 PbootCMS 下运行所需的补充样式，
         不改变原设计 token；加载顺序位于各 page-*.css 之后。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 通用列表 / 搜索结果卡片网格（list.html / search.html）
   卡片为 .wrap 直接子元素，故将 .wrap 设为网格容器，
   分页条 / 空状态 / 搜索框占满整行。
   -------------------------------------------------------------------------- */
.list-section .wrap {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.list-section .page-bar,
.list-section .empty-state,
.list-section .search-form {
  grid-column: 1 / -1;
}

.list-card {
  align-items: flex-start;
  background: rgba(46, 230, 168, .05);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  position: relative;
  text-decoration: none;
  transition: .25s ease;
}

.list-card:hover {
  border-color: var(--line-accent);
  transform: translateY(-3px);
}

.list-card img {
  border-radius: 8px;
  height: 200px;
  margin-bottom: 6px;
  object-fit: cover;
  width: 100%;
}

.list-card span {
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .13em;
}

.list-card h2 {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 8px 0;
}

.list-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.list-card b {
  bottom: 22px;
  color: var(--accent);
  font-size: 1.3rem;
  position: absolute;
  right: 24px;
}

@media (max-width: 720px) {
  .list-section .wrap {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   2. 分页条
   -------------------------------------------------------------------------- */
.page-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.page-bar a,
.page-bar span {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d7e8df;
  display: inline-flex;
  font-size: .85rem;
  min-height: 42px;
  padding: 0 18px;
  text-decoration: none;
  transition: .25s ease;
}

.page-bar a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 当前页码（PbootCMS numbar 输出） */
.page-bar .page-num-current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* 空状态提示 */
.empty-state {
  color: var(--muted);
  padding: 60px 0;
  text-align: center;
}

/* --------------------------------------------------------------------------
   3. 内容详情页（content.html）
   -------------------------------------------------------------------------- */
/* 页头元信息行：日期 + 阅读量 */
.content-meta {
  align-items: center;
  color: #93b8ac;
  display: flex;
  flex-wrap: wrap;
  font-size: .92rem;
  gap: 18px;
}

/* 正文排版区 */
.prose {
  color: #c9e2d7;
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 830px;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #fff;
  font-weight: 500;
  line-height: 1.25;
  margin: 38px 0 16px;
}

.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.1rem; }

.prose p {
  margin: 0 0 18px;
}

.prose a {
  color: var(--accent);
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

.prose img {
  border-radius: 10px;
  height: auto;
  margin: 10px 0 24px;
  max-width: 100%;
}

.prose ul {
  list-style: disc;
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose ol {
  list-style: decimal;
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li {
  margin: 0 0 8px;
}

.prose blockquote {
  border-left: 2px solid var(--accent);
  color: #a9cdbf;
  margin: 0 0 18px;
  padding: 6px 0 6px 20px;
}

.prose table {
  border-collapse: collapse;
  margin: 0 0 24px;
  width: 100%;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}

.prose code {
  background: rgba(46, 230, 168, .08);
  border-radius: 4px;
  padding: 2px 6px;
}

.prose pre {
  background: #02150d;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  padding: 16px;
}

/* --------------------------------------------------------------------------
   4. 表单：验证码行（message.html，仅后台开启验证码时渲染）
   -------------------------------------------------------------------------- */
.code-row {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
}

.code-row input {
  margin-top: 0;
}

.code-row img {
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  height: 52px;
  width: auto;
}

/* --------------------------------------------------------------------------
   5. 搜索框（search.html）
   -------------------------------------------------------------------------- */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 56px;
}

.search-form input {
  background: #0a201c;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  flex: 1 1 260px;
  min-height: 52px;
  outline: none;
  padding: 14px 15px;
}

.search-form input:focus {
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   6. 服务面板动态底色覆盖（services.html）
   循环输出时第 3/4 条内容追加 deploybg / virtualbg 类，
   覆盖 cloud / dedicated 的默认底图，保持与原设计一致。
   -------------------------------------------------------------------------- */
.service-panel.deploybg {
  background-image:
    linear-gradient(90deg, rgba(1, 8, 6, .88), rgba(1, 8, 6, .48)),
    url(../images/offerings-bg-3.png);
}

.service-panel.virtualbg {
  background-image:
    linear-gradient(90deg, rgba(233, 248, 242, .94), rgba(233, 248, 242, .78)),
    url(../images/offerings-bg-4.png);
  color: #07231b;
}

.service-panel.virtualbg .panel-grid > div > p,
.service-panel.virtualbg li::before {
  color: #0e7a55;
}
