/*
Theme Name: 择吉居
Theme URI: https://zejiju.com
Author: 择吉居
Author URI: https://zejiju.com
Description: 道家风格 WordPress 主题，支持自定义 Logo、网站名称、介绍，包含文章、页面、分类、标签完整功能。首页为道系落地页设计，不显示文章列表。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zejiju
Domain Path: /languages
Tags: 道家, 中文, 自定义Logo, 自定义菜单, 文章, 页面
*/

/* ============================================
   择吉居 WordPress 主题基础样式
   ============================================ */

/* 重置与基础 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: linear-gradient(180deg, #f8f6f0 0%, #ede8dd 100%);
  min-height: 100vh;
}

/* 道家传统配色渐变背景：月白→浅青黛 */
.bg-dao-gradient {
  background: linear-gradient(180deg, #f8f6f0 0%, #ede8dd 100%);
}

/* 朱砂主色文字 */
.text-cinnabar {
  color: #a8201a;
}

/* 玄黑文字 */
.text-dark-xuan {
  color: #1a1a1a;
}

/* 古金色 */
.text-ancient-gold {
  color: #b8860b;
}

/* 青黛色 */
.text-cyan-dai {
  color: #2c5c54;
}

/* 道风卡片阴影，柔和古质感 */
.dao-card-shadow {
  box-shadow: 0 2px 14px rgba(184, 134, 11, 0.1);
}

/* 祥云气泡框 */
.cloud-bubble {
  box-shadow: 0 2px 10px rgba(100,70,20,0.08);
  border: 1px solid #f0e8d5;
}

/* 先天八卦圆环 */
.bagua-ring {
  width: 380px;
  height: 380px;
  border: 1px solid #c9b896;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}

/* 旋转太极 */
.taiji-main {
  font-size: 190px;
  line-height: 1;
  animation: slowRotate 25s linear infinite;
  z-index: 2;
}

/* 缓慢旋转动画 */
@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 祥云浮动动画 */
@keyframes cloudFloat {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.float-cloud {
  animation: cloudFloat 4s ease-in-out infinite;
}

/* 星宿微光闪烁 */
@keyframes starTwinkle {
  0%,100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}
.star-light {
  animation: starTwinkle 3s ease-in-out infinite;
}

/* 道家回纹边框 */
.dao-border {
  border: 1px solid #d4c4a8;
}

/* 篆字圆形标识 */
.zhuan-circle {
  border-radius: 50%;
  border: 1px solid #c9b896;
}

/* 页面暗纹符箓底纹 */
.bg-fu-pattern {
  background-image: radial-gradient(#d4c4a8 0.5px, transparent 0.5px);
  background-size: 30px 30px;
}

/* ============================================
   WordPress 基础兼容性样式
   ============================================ */

/* 对齐 */
.alignleft {
  float: left;
  margin-right: 1.5em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 图片 */
img {
  max-width: 100%;
  height: auto;
}

.wp-caption {
  max-width: 100%;
}

/* 文章格式 */
.wp-block-image img {
  border-radius: 8px;
}

/* 评论 */
.comment-list {
  list-style: none;
}

.comment-body {
  background: #fff;
  border: 1px solid #d4c4a8;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* 分页导航 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pagination a,
.pagination .current {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #d4c4a8;
  text-decoration: none;
  color: #554433;
  background: #fff;
}

.pagination .current {
  background: #a8201a;
  color: #fff;
  border-color: #a8201a;
}

.pagination a:hover {
  background: #f8f2e4;
}

/* 文章标签 */
.tag-links a,
.cat-links a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin: 0.25rem;
  background: #f3e9d7;
  border-radius: 20px;
  color: #b8860b;
  text-decoration: none;
  font-size: 0.875rem;
}

.tag-links a:hover,
.cat-links a:hover {
  background: #b8860b;
  color: #fff;
}

/* 面包屑 */
.breadcrumb {
  font-size: 0.875rem;
  color: #665239;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #b8860b;
  text-decoration: none;
}

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

/* 文章内页样式 */
.article-content h2,
.article-content h3,
.article-content h4 {
  color: #2c5c54;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.article-content blockquote {
  border-left: 4px solid #b8860b;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: #665239;
  font-style: italic;
}

.article-content ul,
.article-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-content a {
  color: #a8201a;
  text-decoration: underline;
}

.article-content a:hover {
  color: #8b1a15;
}

/* 响应式 */
@media (max-width: 1024px) {
  .bagua-ring {
    width: 280px;
    height: 280px;
  }
  .taiji-main {
    font-size: 140px;
  }
}

@media (max-width: 768px) {
  .bagua-ring {
    width: 220px;
    height: 220px;
  }
  .taiji-main {
    font-size: 110px;
  }
}

/* 屏幕阅读器 */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
