/*
Theme Name: 阅了么
Theme URI: https://www.readhu.com/
Author: 阅了么
Description: 阅了么图书管理系统官网主题。首页为品牌定制设计（深色 + 琥珀金），内页为同风格简约排版。
Version: 1.0
Requires PHP: 7.4
Text Domain: yueleme
*/

/* ============ 内页样式（首页 front-page.php 自带样式，与此处相互独立） ============ */

:root {
  --ink: #1a1a2e;
  --paper: #f5f0e8;
  --amber: #e8a44a;
  --amber-light: #f5c97f;
  --amber-glow: rgba(232, 164, 74, 0.18);
  --teal: #3d9e8c;
  --teal-light: #5ec4af;
  --text-main: #fffffe;
  --text-muted: #a7a9be;
  --bg-dark: #0f0e17;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--amber); }
img { max-width: 100%; height: auto; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 3px; }

/* ===== 内页头部 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 0 5vw; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.site-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 700; letter-spacing: .04em;
  white-space: nowrap;
}
.site-brand .brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--amber), var(--teal));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.site-brand span { color: var(--amber); }
.site-nav { display: flex; gap: 1.6rem; font-size: .92rem; color: var(--text-muted); flex-wrap: wrap; }
.site-nav a:hover { color: var(--amber); }
.site-nav .current-menu-item > a,
.site-nav li.current-menu-item > a { color: var(--amber); }

/* ===== 内页主体 ===== */
.site-main {
  flex: 1;
  max-width: 1080px; width: 100%;
  margin: 0 auto;
  padding: 3rem 5vw 4rem;
}
.page-title {
  font-size: 1.9rem; font-weight: 800; margin-bottom: 1.6rem;
  color: var(--paper);
}
.page-title em, .page-title .highlight { color: var(--amber); font-style: normal; }

/* 文章列表卡片 */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.2rem;
  transition: border-color .2s, transform .2s;
}
.post-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.post-card h2, .post-card h2 a {
  font-size: 1.2rem; font-weight: 700; color: var(--text-main);
  margin-bottom: .5rem;
}
.post-card h2 a:hover { color: var(--amber); }
.post-meta { font-size: .78rem; color: var(--text-muted); margin-bottom: .6rem; }
.post-excerpt { font-size: .9rem; color: var(--text-muted); }

/* 文章/页面详情 */
.entry-content { font-size: .98rem; color: #e6e6ee; }
.entry-content p { margin-bottom: 1.1rem; }
.entry-content h1, .entry-content h2, .entry-content h3 {
  color: var(--paper); margin: 1.6rem 0 .8rem; line-height: 1.3;
}
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.2rem; }
.entry-content img { border-radius: 10px; margin: .5rem 0; }
.entry-content a { color: var(--amber-light); text-decoration: underline; }
.entry-content blockquote {
  border-left: 3px solid var(--amber);
  padding: .6rem 1.2rem; margin: 1.2rem 0;
  background: var(--amber-glow); border-radius: 0 8px 8px 0;
  color: var(--text-muted);
}
.entry-content ul, .entry-content ol { margin: 0 0 1.1rem 1.6rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: .15rem .5rem; border-radius: 5px; font-size: .88em;
}
.entry-content pre {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 1rem; overflow-x: auto;
  margin-bottom: 1.1rem;
}

/* 分页 */
.pagination { display: flex; gap: .5rem; margin-top: 2rem; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: .45rem .9rem; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: .88rem; color: var(--text-muted);
}
.pagination .page-numbers.current { background: var(--amber); color: var(--ink); font-weight: 700; border-color: var(--amber); }
.pagination a.page-numbers:hover { border-color: var(--amber); color: var(--amber); }

/* 无内容提示 */
.no-posts {
  text-align: center; color: var(--text-muted);
  padding: 4rem 1rem; font-size: .95rem;
}

/* ===== 内页底部 ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 5vw;
  text-align: center;
  color: var(--text-muted);
  font-size: .82rem;
}
.site-footer .footer-brand { font-size: 1.05rem; font-weight: 700; color: var(--paper); margin-bottom: .5rem; }
.site-footer .footer-brand span { color: var(--amber); }
.site-footer .footer-copy { font-size: .76rem; color: rgba(167, 169, 190, 0.5); margin-top: .6rem; }
.site-footer a.icp-link { color: rgba(232, 164, 74, 0.85); }
.site-footer a.icp-link:hover { color: var(--amber); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .site-header-inner { height: auto; padding-top: .8rem; padding-bottom: .8rem; flex-direction: column; gap: .6rem; }
  .site-nav { justify-content: center; gap: 1rem 1.2rem; font-size: .85rem; }
  .page-title { font-size: 1.5rem; }
  .post-card { padding: 1.2rem; }
}
