/*
Theme Name: Sifan
Theme URI: https://opjoys.com/
Author: 思帆柔造
Author URI: https://opjoys.com/
Description: 思帆柔造官网主题——全品类文创柔性智造生产服务平台。基于「思帆柔造」品牌站点改造的 WordPress 经典主题，提供首页、关于思帆柔造、核心业务、智造实力、创新研发、合作模式、案例展示、资讯中心、联系我们等完整页面模板，支持自定义菜单与自定义 Logo。
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
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: sifan
Tags: business, custom-menu, custom-logo, featured-images, translation-ready, one-column, two-columns, right-sidebar
*/

/*
 * 主题真正的样式位于 assets/css/style.css，
 * 通过 functions.php 中的 wp_enqueue_style 加载。
 * 此文件仅用于声明主题元信息，并对 WordPress 自身要求的少量基础样式做最小补充。
 */

/* WordPress 必需基础样式（保证后台编辑器/前端兼容） */
.alignleft { float: left; margin-right: 1em; }
.alignright { float: right; margin-left: 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85em; color: #666; text-align: center; }
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}
.sticky { display: block; }
.bypostauthor { display: block; }

/* 文章详情页排版 */
.entry-content { line-height: 1.9; color: #333; }
.entry-content h2 { font-size: 1.5rem; margin: 1.6em 0 0.6em; color: #1e3a8a; }
.entry-content h3 { font-size: 1.2rem; margin: 1.4em 0 0.5em; color: #1e3a8a; }
.entry-content p  { margin-bottom: 1.2em; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.entry-content blockquote { border-left: 4px solid #f59e0b; padding-left: 1em; margin-left: 0; color: #555; background: #f8f9fa; padding: 1em 1em 1em 1.5em; border-radius: 0 8px 8px 0; }
.entry-content ul, .entry-content ol { margin: 1em 0 1em 1.5em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content a { color: #2563eb; text-decoration: underline; }
.entry-content a:hover { color: #f59e0b; }
.page-links { margin-top: 1.5em; padding: 1em; background: #f0f4ff; border-radius: 8px; font-size: 0.9rem; }
.page-links a { margin: 0 4px; padding: 2px 8px; background: #fff; border-radius: 4px; text-decoration: none; }

/* 评论区域 */
.comments-area { margin-top: 2rem; }
.comments-title { font-size: 1.2rem; color: #1e3a8a; margin-bottom: 1rem; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .comment { padding: 1.2em; margin-bottom: 1em; background: #f8fafc; border-radius: 12px; }
.comment-list .comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 0.5em; }
.comment-list .comment-author .avatar { border-radius: 50%; width: 40px; height: 40px; }
.comment-list .comment-meta { font-size: 0.82rem; color: #888; margin-bottom: 0.6em; }
.comment-list .comment-content p { margin-bottom: 0.6em; line-height: 1.7; }
.comment-list .reply a { font-size: 0.82rem; color: #2563eb; text-decoration: none; }
.comment-list .children { list-style: none; margin-top: 1em; padding-left: 2em; border-left: 2px solid #e2e8f0; }

/* 评论表单 */
.comment-respond { margin-top: 2rem; padding: 1.5em; background: #f8fafc; border-radius: 12px; }
.comment-reply-title { font-size: 1.1rem; color: #1e3a8a; margin-bottom: 1em; }
.comment-form label { display: block; font-size: 0.88rem; margin-bottom: 4px; color: #555; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.92rem; margin-bottom: 12px; box-sizing: border-box; }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.comment-form .form-submit input[type="submit"] { padding: 10px 28px; background: #f59e0b; color: #fff; border: none; border-radius: 8px; font-size: 0.92rem; cursor: pointer; }
.comment-form .form-submit input[type="submit"]:hover { background: #d97706; }
.comment-form .comment-notes { font-size: 0.82rem; color: #888; margin-bottom: 1em; }
.comment-form .required { color: #ef4444; }

/* Logo 图片适配 */
.header__logo--custom { max-width: 200px; }
.header__logo--custom a { display: inline-block; line-height: 0; }
.header__logo--custom img { max-height: 40px; width: auto; display: block; }

/* 导航栏防止溢出 */
.header .container { display: flex; align-items: center; justify-content: space-between; }
.header__nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
