/*
Theme Name: 七星村景点解说
Theme URI: https://example.com/qixingcun
Author: 编程word
Author URI: https://example.com
Description: 湘潭七星村网红景点·物品扫码解说主题。移动端优先设计，桌面端 750px 居中；首页顶部视频区 + 物品卡片列表 + 分页；文章详情页支持语音朗读（浏览器原生语音合成，零插件）。风格活泼、大方、热情。
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qixingcun
Tags: one-column, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --primary:#4d1301;          /* 热情橙 */
  --primary-dark: #4d1301;
  --primary-grad: linear-gradient(135deg, #4d1301 0%, #ff4757 100%);
  --accent: #2ed573;           /* 生态绿 */
  --sun: #ffd93d;              /* 阳光黄 */
  --bg: #fff7f0;               /* 暖米白背景 */
  --card: #ffffff;
  --text: #2d2a26;
  --text-light: #8a8580;
  --border: #ffe3d1;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(255, 107, 53, 0.12);
}
/* ============ 全局重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #f0e9e0;  /* 桌面端外层底色，突出 750px 内容 */
  font-size: 16px;
  line-height: 1.7;
  
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* 内容容器：手机全宽，桌面端 750px 居中 */
.site-wrapper {
  max-width: 750px;
  margin: 0 auto;
background: url(assets/images/bj.jpg) ; 
background-size:100% 100%;
  min-height: 100vh;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* ============ 头部 ============ */
.site-header {
 
  color: #fff;
  padding: 0px;
  position: relative;
}

.header-inner { display: flex; align-items: center; gap: 14px; }
.custom-logo-link img {
  width: 54px; height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.7);
}
.site-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.site-title a { color: #fff; }
.site-desc { font-size: 14px; opacity: 0.92; margin-top: 2px; }

.main-nav { margin-top: 16px; }
.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nav-list li a {
  display: inline-block;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background 0.2s;
}
.nav-list li a:hover { background: rgba(255, 255, 255, 0.35); }
.nav-list .current-menu-item a { background: #fff; color: var(--primary); font-weight: 700; }

/* ============ 2管 ============ */
.items-index{}
.item-indexcard{width:50%; float:left;}
/* ============ 物品列表 ============ */
.items-section { padding: 26px 20px 40px; }
.section-head { text-align: center; margin-bottom: 22px; }
.section-title { font-size: 22px; font-weight: 800; color: var(--primary-dark); }
.section-sub { color: var(--text-light); font-size: 14px; margin-top: 4px; }

.items-list {  display: grid;  grid-template-columns: repeat(2, 1fr);  gap: 14px; }

.item-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.item-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(255, 107, 53, 0.2); }
.item-link { display: block; color: var(--text); }
.item-thumb { position: relative; overflow: hidden; }
.item-thumb img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.item-card:hover .item-thumb img { transform: scale(1.05); }
.item-thumb-empty {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffe3d1, #fff3c4);
  font-size: 52px;
}
.item-body { padding: 16px 18px 18px; }
.item-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.item-title a { color: var(--text); }
.item-title a:hover { color: var(--primary); }
.item-excerpt {
  color: var(--text-light);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.item-more {
  display: inline-block;
  color: #fff;
  background: var(--primary-grad);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

/* ============ 分页 ============ */
.pagination-wrap { margin-top: 30px; text-align: center; }
.pagination-wrap .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  transition: all 0.2s;
}
.pagination-wrap .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.pagination-wrap .page-numbers.current {
  background: var(--primary-grad);
  color: #fff;
  border-color: transparent;
}

.no-posts { text-align: center; color: var(--text-light); padding: 40px 0; }

/* ============ 文章详情页 ============ */
.single-main { padding: 26px 20px 40px; }
.back-link {
  display: inline-block;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.single-title { font-size: 26px; font-weight: 800; line-height: 1.35; text-align:center}
.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-light);
  font-size: 13px;
  margin: 10px 0 18px;
}
.single-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.single-thumb img { width: 100%; max-height: 420px; object-fit: cover; }

/* 语音朗读控制条 */
.wp-block-audio {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.voice-btn {
  border: none;
  cursor: pointer;
  background: var(--primary-grad);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.voice-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255, 107, 53, 0.45); }
.voice-btn:active { transform: scale(0.96); }
.voice-btn:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; }
.voice-status { color: var(--text-light); font-size: 13px; flex: 1; min-width: 160px; }

/* 正文排版 */
.entry-content { font-size: 16px; line-height: 1.9; color: var(--text); }
.entry-content p { margin: 0 0 1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.2em 0 0.5em; font-weight: 800; color: var(--primary-dark); }
.entry-content h2 { font-size: 22px; }
.entry-content h3 { font-size: 19px; }
.entry-content img, .entry-content figure { border-radius: 14px; margin: 1em 0; }
.entry-content a { font-weight: 600; border-bottom: 2px solid var(--sun); }
.entry-content ul, .entry-content ol { margin: 0 0 1em 1.4em; }
.entry-content blockquote {
  margin: 1em 0;
  padding: 12px 18px;
  background: #fff3e8;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  color: #6b5d52;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.entry-content th { background: #fff3e8; }

.page-links { margin: 1.4em 0; font-weight: 700; color: var(--primary); }

/* 上一篇 / 下一篇 */
.post-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.post-nav a {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
}
.post-nav a:hover { border-color: var(--primary); color: var(--primary); }

/* ============ 页面 / 归档 / 搜索 / 404 ============ */
.page-main, .archive-main, .search-main { padding: 26px 20px 40px; }
.page-title, .archive-title { font-size: 24px; font-weight: 800; color: var(--primary-dark); margin-bottom: 18px; text-align:center; }
.archive-desc { color: var(--text-light); font-size: 14px; margin-top: -10px; margin-bottom: 18px; }
.notfound-box { text-align: center; padding: 60px 20px; }
.notfound-box .big { font-size: 72px; }
.notfound-box h1 { font-size: 24px; margin: 14px 0 8px; }
.notfound-box p { color: var(--text-light); }
.search-form { display: flex; gap: 8px; margin: 20px 0; }
.search-form input[type="search"] {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  outline: none;
}
.search-form input[type="search"]:focus { border-color: var(--primary); }
.search-form button {
  border: none;
  background: var(--primary-grad);
  color: #fff;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 700;
  cursor: pointer;
}

/* ============ 页脚 ============ */
.site-footer {

  color: #333;
  text-align: center;
  padding: 30px 20px 34px;
  position: relative;
}

.footer-brand { font-size: 18px; font-weight: 800; }
.footer-slogan { font-size: 13px; opacity: 0.92; margin-top: 4px; }
.footer-copy { font-size: 12px; opacity: 0.75; margin-top: 10px; }

/* ============二维码隐藏 ============ */
.qr-section {display:none;}
@media (min-width: 1280px) {
/* ============ 只在电脑端显示 ============ */
.qr-section {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  margin: 30px 20px 0;
}
.qr-box {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-box img,
.qr-box canvas { width: 100%; height: 100%; display: block; }
.qr-info { flex: 1; min-width: 0; }
.qr-title { font-size: 18px; font-weight: 800; color: var(--primary-dark); }
.qr-tip { color: var(--text-light); font-size: 13px; margin-top: 6px; }
}
/* ============ 小屏适配 ============ */
@media (max-width: 480px) {

  .qr-box { width: 180px; height: 180px; }
}
@media (max-width: 400px) {
  .site-title { font-size: 22px; }
  .hero-title { font-size: 24px; }
  .item-thumb img, .item-thumb-empty { height: 180px; }
}
