/*
Theme Name: BSVHome
Author: BSVHome
Description: 中文 BSV 社区门户，包含资讯、项目导航、品牌项目与 bbPress 论坛接入。钱包、支付 API 与 DeFi 内容为规划或演示，不连接资金。
Version: 1.3.3
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bsvhome
Tags: blog, news, custom-menu, featured-images, translation-ready
*/

/* Portal styling lives in assets/styles.css. These styles cover native WordPress pages. */
body.bsvhome-native { margin:0; background:#f6f7f9; color:#111827; font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif; line-height:1.8; }
.bsvhome-native * { box-sizing:border-box; }
.bsvhome-native a { color:#3868c8; text-decoration:none; }
.bsvhome-native a:hover { text-decoration:underline; }
.bsvhome-native .site-header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:24px; padding:22px max(24px,calc((100vw - 1120px)/2)); background:#fff; border-bottom:1px solid #e6e8ed; }
.bsvhome-native .site-brand { color:#111827; font-size:24px; font-weight:800; letter-spacing:-1px; }
.bsvhome-native .site-nav { min-width:0; }
.bsvhome-native .site-nav ul { display:flex; justify-content:center; flex-wrap:wrap; gap:18px; padding:0; margin:0; list-style:none; }
.bsvhome-native .bsvhome-native-actions { display:flex; align-items:center; gap:12px; }
.bsvhome-native .site-nav a { color:#485165; font-size:14px; }
.bsvhome-native .site-main { width:min(100% - 40px,1000px); margin:40px auto; min-height:55vh; }
.bsvhome-native .content-card { background:#fff; border:1px solid #e6e8ed; border-radius:18px; padding:clamp(24px,4vw,48px); margin-bottom:24px; }
.bsvhome-native .entry-title { font-size:clamp(25px,3vw,38px); line-height:1.35; margin:0 0 14px; }
.bsvhome-native .entry-title a { color:#111827; }
.bsvhome-native .entry-meta { font-size:13px; color:#758094; margin-bottom:24px; }
.bsvhome-native .entry-content { overflow-wrap:anywhere; }
.bsvhome-native.single-post .site-main { width:min(100% - 40px,820px); }
.bsvhome-native .entry-content img { max-width:100%; height:auto; border-radius:10px; }
.bsvhome-native .entry-content figure { max-width:100%; margin:24px 0; }
.bsvhome-native .entry-content pre { overflow:auto; padding:18px; background:#f1f3f7; }
.bsvhome-native .entry-content iframe { max-width:100%; }
.bsvhome-native .site-footer { text-align:center; padding:28px 20px; color:#7b8493; font-size:13px; }
.bsvhome-native .notice { padding:18px 22px; background:#fff7ed; border:1px solid #fbd3ac; border-radius:12px; color:#855127; margin:20px 0; }
.bsvhome-native .button,.bsvhome-native input[type=submit],.bsvhome-native button[type=submit] { display:inline-block; padding:10px 20px; border:0; border-radius:8px; color:#fff; background:#3868c8; font-size:14px; font-weight:600; }
.bsvhome-native .button:hover,.bsvhome-native input[type=submit]:hover,.bsvhome-native button[type=submit]:hover { color:#fff; background:#2b55a6; text-decoration:none; }
.bsvhome-native .pagination { margin:24px 0; }
.bsvhome-native .pagination .page-numbers { display:inline-block; padding:6px 12px; background:#fff; border-radius:6px; margin-right:6px; }
.bsvhome-native .pagination .current { color:#fff; background:#3868c8; }
.bsvhome-native .comments-area { padding:24px 0 0; }
.bsvhome-native input,.bsvhome-native textarea,.bsvhome-native select { max-width:100%; padding:10px 12px; border:1px solid #dce0e7; border-radius:7px; font:inherit; }
/* wp-editor-container has zero line-height; keep forum editor lines readable. */
.bsvhome-native #bbpress-forums textarea.wp-editor-area { line-height:1.7; min-height:240px; }
.bsvhome-native input[type=submit],.bsvhome-native button { cursor:pointer; }
.bsvhome-native .comment-form label { display:block; }
.bsvhome-native .screen-reader-text,.bsvhome-portal .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; }
.bsvhome-native .screen-reader-text:focus,.bsvhome-portal .screen-reader-text:focus { clip:auto; width:auto; height:auto; margin:12px; padding:12px; background:#fff; z-index:99999; }
.bsvhome-native #bbpress-forums { font-size:14px; }
.bsvhome-native #bbpress-forums div.bbp-template-notice { border-radius:8px; padding:8px 14px; }
.bsvhome-native #bbpress-forums fieldset.bbp-form { border:1px solid #e6e8ed; border-radius:12px; }
.bsvhome-native #bbpress-forums li.bbp-header,.bsvhome-native #bbpress-forums li.bbp-footer { background:#f5f6f8; }
.bsvhome-native .bsvhome-forum-auth { display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin:22px 0; padding-bottom:20px; border-bottom:1px solid #e6e8ed; font-size:14px; }
.bsvhome-native .entry-content h2,.bsvhome-native .entry-content h3 { line-height:1.5; margin:1.5em 0 .7em; }
.bsvhome-native .entry-content p { margin:1em 0; }
.bsvhome-native .entry-content table { max-width:100%; border-collapse:collapse; }
.bsvhome-native .entry-content th,.bsvhome-native .entry-content td { border:1px solid #e6e8ed; padding:10px 14px; text-align:left; }
.bsvhome-native .site-footer nav ul { display:flex; justify-content:center; flex-wrap:wrap; gap:18px; margin:12px 0; padding:0; list-style:none; }
@media(max-width:700px) { .bsvhome-native .site-header { align-items:flex-start; flex-direction:column; gap:10px; } .bsvhome-native .site-nav ul { gap:10px 16px; } .bsvhome-native .site-main { width:calc(100% - 24px); margin:24px auto; } }
@media(max-width:1000px) { .bsvhome-native .site-header { grid-template-columns:minmax(0,1fr) auto; gap:16px; } .bsvhome-native .site-brand { grid-column:1; grid-row:1; } .bsvhome-native .bsvhome-native-actions { grid-column:2; grid-row:1; } .bsvhome-native .site-nav { grid-column:1 / -1; grid-row:2; } .bsvhome-native .site-nav ul { justify-content:flex-start; } }
