/*!
Theme Name: 68聊天 主题
Theme URI: https://6868chats.app/
Author: 68聊天 Team
Author URI: https://6868chats.app/
Description: 68聊天 官方 WordPress 主题，由 6868chats-clone 静态站 1:1 还原。支持自定义菜单、文章特色图像、Widget 区域，完全兼容 WordPress 主题规范，可直接上传到 wp-content/themes/ 启用。
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chats68
Tags: business, one-column, two-columns, custom-menu, custom-logo, featured-images, translation-ready

本主题目录约定:
- assets/css/  原始 CSS 资源 (base / layout / components / animations / blog / download / legal)
- assets/js/   原始 JS 资源 (main / navigation / animations / ui)
- assets/images/  本地化图片(可选,目前沿用原站热链)
- inc/         主题增强文件
- template-parts/  可复用模板片段
*/

@import url("assets/css/base.css");
@import url("assets/css/layout.css");
@import url("assets/css/components.css");
@import url("assets/css/animations.css");

/* =====================================================================
 * WordPress 必要修正样式
 * - 让 WP 编辑器/小工具输出的元素与原站设计风格统一
 * ===================================================================== */
.alignleft   { float: left;  margin-right: 1.5em; }
.alignright  { float: right; margin-left:  1.5em; }
.aligncenter { display: block; margin: 0 auto 1.5em; }
.wp-caption  { max-width: 100%; }
.wp-caption-text { font-size: 0.875em; color: #6b7280; text-align: center; margin-top: 0.5em; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.sticky { background: rgba(39, 115, 247, 0.04); }
.gallery-caption { font-size: 0.875em; color: #6b7280; }

/* 文章正文基础排版 (兼容 WP the_content 输出) */
.entry-content {
  color: #1e2a2a;
  line-height: 1.8;
  font-size: 16px;
}
.entry-content h2 { font-size: 1.75em; margin: 1.5em 0 0.6em; font-weight: 700; }
.entry-content h3 { font-size: 1.35em; margin: 1.2em 0 0.5em; font-weight: 600; }
.entry-content p  { margin: 0 0 1em; }
.entry-content ul,
.entry-content ol { margin: 0 0 1em 1.5em; }
.entry-content a  { color: #2773F7; text-decoration: underline; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.entry-content blockquote {
  border-left: 4px solid #2773F7;
  margin: 1em 0;
  padding: 0.5em 1em;
  background: #f4f7fb;
  color: #4b5563;
}

/* 文章列表基础 */
.posts-list__item {
  background: #fff;
  border-radius: 12px;
  padding: 1.5em;
  margin-bottom: 1.5em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.posts-list__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.posts-list__title a { color: #1e2a2a; }
.posts-list__title a:hover { color: #2773F7; }
.posts-list__meta { color: #6b7280; font-size: 0.875em; margin-bottom: 0.5em; }

/* 分页 */
.navigation.pagination { margin: 2em 0; }
.navigation.pagination .nav-links {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  flex-wrap: wrap;
}
.navigation.pagination a,
.navigation.pagination span {
  display: inline-block;
  padding: 0.5em 1em;
  border-radius: 6px;
  background: #f4f7fb;
  color: #1e2a2a;
  text-decoration: none;
}
.navigation.pagination .current { background: #2773F7; color: #fff; }

/* Widget 区域 */
.widget { margin-bottom: 1.5em; }
.widget-title {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 0.8em;
  color: #1e2a2a;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 0.3em 0; border-bottom: 1px solid #eef0f3; }
.widget a { color: #4b5563; }
.widget a:hover { color: #2773F7; }
