/*
Theme Name: 嘉世华国际供应链
Theme URI: https://jiashihua.com/
Author: 嘉世华集团 JIASHIHUA GROUP
Author URI: https://jiashihua.com/
Description: 嘉世华国际供应链企业官网主题。白色底板 + 企业蓝 + 实时海面，Apple 式极简大留白；内置中文 SEO 内容体系（青岛/天津双口岸 · CIF/FOB · NVOCC · 曼谷起运）、英文落地页、56 语种实时切换（覆盖六大洲，含 RTL）、船舶跟踪与港口地图、70 家承运商导航与箱号速查。
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.7
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: jiashihua
Tags: business, custom-colors, custom-logo, custom-menu, featured-images, translation-ready, one-column
*/

/* =============================================================================
   这个文件只放 WordPress 必需的基础重置与通用页面样式。
   站点主体样式在 assets/css/site.css，由 functions.php 入队。
   ========================================================================== */

html { margin: 0 !important; }

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 后台工具条：本站导航是 position:fixed 的，必须让位 */
body.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .nav { top: 46px; }
}

/* WordPress 核心类 —— 避免插件/编辑器输出的内容裸奔 */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-block-image figcaption {
  font-size: 12px; line-height: 1.6; opacity: .62; margin-top: 8px;
}
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #3fc6f2; color: #03070f; clip: auto; clip-path: none;
  display: block; font-size: 14px; font-weight: 700; height: auto;
  left: 12px; line-height: normal; padding: 14px 22px; text-decoration: none;
  top: 12px; width: auto; z-index: 100000;
}
.sticky, .gallery-caption, .bypostauthor { /* 供主题检查使用，无额外样式 */ }

/* 编辑器里图片不再溢出 */
img { max-width: 100%; height: auto; }

/* ---------------------------------------------------------------------------
   通用内页（页面 / 文章 / 搜索 / 404）
   首页是整屏叙事，内页走一套克制的白底排版。
   ------------------------------------------------------------------------ */
.wp-page {
  background: #fff;
  color: #071120;
  padding: clamp(96px, 12vw, 160px) 0 clamp(72px, 8vw, 120px);
  min-height: 70vh;
}
.wp-page > .wrap { max-width: 860px; }
.wp-page .eyebrow { color: rgba(7, 17, 32, .5); }
.wp-page h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 28px;
}
.wp-page h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.22;
  letter-spacing: -.02em;
  margin: 44px 0 14px;
}
.wp-page h3 {
  font-size: 19px; font-weight: 700; line-height: 1.4;
  margin: 34px 0 10px;
}
.wp-page p, .wp-page li {
  font-size: 15.5px; line-height: 1.9; color: rgba(7, 17, 32, .78);
}
.wp-page p { margin: 0 0 18px; }
.wp-page ul, .wp-page ol { margin: 0 0 22px; padding-inline-start: 22px; }
.wp-page li { margin-bottom: 8px; }
.wp-page a { color: #0d7ea8; text-decoration: underline; text-underline-offset: 3px; }
.wp-page a:hover { color: #3fc6f2; }
.wp-page blockquote {
  margin: 28px 0; padding: 4px 0 4px 24px;
  border-inline-start: 2px solid #3fc6f2;
  font-size: 17px; line-height: 1.8; color: #0a1d33;
}
.wp-page img, .wp-page figure { border-radius: 3px; }
.wp-page hr { border: 0; border-top: 1px solid rgba(7,17,32,.12); margin: 40px 0; }
.wp-page table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px; }
.wp-page th, .wp-page td {
  border-bottom: 1px solid rgba(7,17,32,.12); padding: 11px 12px; text-align: start;
}
.wp-page th { font-weight: 700; background: #f6f8fb; }

/* 列表页 */
.wp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.wp-list > li { padding: 26px 0; border-bottom: 1px solid rgba(7,17,32,.1); }
.wp-list h2 { margin: 0 0 8px; font-size: 22px; }
.wp-list h2 a { text-decoration: none; color: #071120; }
.wp-list h2 a:hover { color: #0d7ea8; }
.wp-list time { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(7,17,32,.42); }

/* 分页 */
.wp-page .page-numbers,
.wp-pager {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 40px 0 0; padding: 0; list-style: none;
}
.wp-page .page-numbers li { margin: 0; }
.wp-page .page-numbers .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid rgba(7,17,32,.14); border-radius: 2px;
  font-size: 13px; text-decoration: none; color: #071120;
}
.wp-page .page-numbers .page-numbers.current { background: #071120; color: #fff; border-color: #071120; }

/* 搜索框 */
.wp-search { display: flex; gap: 8px; margin: 0 0 34px; }
.wp-search input[type="search"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  border: 1px solid rgba(7,17,32,.18); border-radius: 2px;
  font-size: 14px; font-family: inherit;
}
.wp-search button {
  height: 48px; padding: 0 24px; border: 0; border-radius: 2px;
  background: #071120; color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.wp-search button:hover { background: #0a1d33; }

/* 返回顶部之外的小工具：面包屑 */
.wp-crumb {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(7,17,32,.4); margin-bottom: 18px;
}
.wp-crumb a { color: inherit; text-decoration: none; }
.wp-crumb a:hover { color: #0d7ea8; }
