/*
Theme Name: BIMSOP News
Theme URI: https://www.bimsop.com/news/
Author: 北京毕加索智能科技有限公司
Author URI: https://www.bimsop.com/
Description: 毕加索新闻中心定制主题。视觉与官网首页统一，内置 SEO / GEO 结构化数据、新闻 Sitemap 与 llms.txt。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: Proprietary
Text Domain: bimsop-news
*/

/* ---------------------------------------------------------------
   1. 基础
--------------------------------------------------------------- */
:root {
  --ink: #10242b;
  --ink-soft: #2c464e;
  --muted: #5f7770;
  --muted-2: #8aa39b;
  --green: #1b7a5f;
  --green-deep: #0b3b35;
  --green-dark: #08262b;
  --mint: #b9ebd8;
  --mint-2: #e6f4ee;
  --paper: #f6f9f6;
  --paper-2: #eef4f0;
  --white: #ffffff;
  --line: #dfe8e2;
  --line-soft: #eaf1ec;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(16, 36, 43, .04);
  --shadow: 0 18px 50px rgba(10, 59, 53, .10);
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--green-deep); }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.02em;
}

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

time { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 999;
  padding: 10px 16px; border-radius: 8px;
  background: var(--green); color: #fff; font-size: .85rem;
}
.skip-link:focus { top: 12px; color: #fff; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------------------------------------------------------------
   2. 头部
--------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: saturate(160%) blur(10px);
}
body.admin-bar .site-header { top: 32px; }

.header-inner {
  display: flex; align-items: center; gap: 26px;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: baseline; gap: 9px; flex: 0 0 auto; }
.brand-mark {
  color: var(--green-deep);
  font-size: 1.34rem; font-weight: 850; letter-spacing: -.03em;
}
.brand-sub {
  color: var(--muted);
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
}

.main-nav { flex: 1 1 auto; min-width: 0; }
.nav-list {
  display: flex; align-items: center; gap: 22px;
  margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list a {
  display: inline-block; white-space: nowrap;
  color: var(--ink-soft); font-size: .87rem; font-weight: 650;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--green); }
.nav-list .current-menu-item > a,
.nav-list .current-cat > a,
.nav-list .current_page_item > a { color: var(--green); border-bottom-color: var(--green); }
.nav-list .nav-external { color: var(--green); }

.header-actions { flex: 0 0 auto; }

.search-form { display: flex; align-items: center; gap: 6px; }
.search-form input[type="search"] {
  width: 150px; height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink); font-family: inherit; font-size: .82rem;
  transition: width .2s ease, border-color .2s ease, background .2s ease;
}
.search-form input[type="search"]:focus {
  width: 190px; outline: none;
  border-color: var(--green); background: #fff;
}
.search-form button {
  height: 36px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: var(--green); color: #fff;
  font-family: inherit; font-size: .8rem; font-weight: 700;
  cursor: pointer; transition: background .18s ease;
}
.search-form button:hover { background: var(--green-deep); }

/* ---------------------------------------------------------------
   3. Hero
--------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 84px) 0 clamp(44px, 6vw, 72px);
  background: linear-gradient(135deg, #0a3038 0%, #0d4841 100%);
  color: #eaf7f2;
}
.hero::after {
  content: ""; position: absolute; right: -140px; bottom: -220px;
  width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(185, 235, 216, .16);
  box-shadow: 0 0 0 48px rgba(185, 235, 216, .03), 0 0 0 100px rgba(185, 235, 216, .02);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: 40px; align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--mint); font-size: .72rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
}
.hero h1 {
  color: #f2fbf7;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.18; letter-spacing: -.04em;
}
.hero h1 em { color: var(--mint); font-style: normal; }
.hero-sub {
  max-width: 560px; margin: 18px 0 0;
  color: #bcd3cc; font-size: clamp(.92rem, 1.4vw, 1rem); line-height: 1.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note {
  margin: 22px 0 0;
  color: #8fb7aa; font-size: .76rem; letter-spacing: .04em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: .86rem; font-weight: 700; letter-spacing: .01em;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #176a53; color: #fff; }
.btn-ghost {
  background: transparent; color: #dcefe8;
  border-color: rgba(220, 239, 232, .35);
}
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }

.hero-feature {
  display: block; position: relative;
  padding: 26px 26px 24px;
  border: 1px solid rgba(185, 235, 216, .22);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .055);
  color: #eaf7f2;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.hero-feature:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(185, 235, 216, .4);
  color: #fff; transform: translateY(-3px);
}
.hero-feature-label {
  display: block; margin-bottom: 14px;
  color: var(--mint); font-size: .68rem; font-weight: 800;
  letter-spacing: .16em;
}
.hero-feature h2 {
  margin: 12px 0 10px;
  color: #f4fbf8; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.42;
}
.hero-feature p { margin: 0 0 16px; color: #b9d2ca; font-size: .86rem; line-height: 1.75; }
.hero-feature-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  color: #8fb7aa; font-size: .74rem;
}
.hero-feature-empty { opacity: .9; }

.badge {
  display: inline-flex; align-items: center;
  min-height: 24px; padding: 0 9px;
  border-radius: 999px;
  background: var(--mint-2); color: var(--green);
  font-size: .66rem; font-weight: 800; letter-spacing: .04em;
}
.hero-feature .badge { background: rgba(185, 235, 216, .14); color: var(--mint); }

/* ---------------------------------------------------------------
   4. 区块
--------------------------------------------------------------- */
.section { padding: clamp(46px, 6vw, 72px) 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section-head { max-width: 780px; margin-bottom: 30px; }
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; max-width: none;
}
.kicker {
  margin: 0 0 10px;
  color: var(--green); font-size: .7rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem); line-height: 1.3; letter-spacing: -.03em;
}
.lede {
  margin: 12px 0 0;
  color: var(--muted); font-size: .9rem; line-height: 1.8;
}
.link-more { color: var(--green); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.link-more:hover { color: var(--green-deep); }

/* ---------------------------------------------------------------
   5. 文章卡片
--------------------------------------------------------------- */
.card-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #c8d8d1;
}
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.card-link:hover { color: inherit; }

.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-card:hover .card-media img { transform: scale(1.03); }
.card-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 78% 22%, rgba(185, 235, 216, .55), transparent 42%),
    linear-gradient(135deg, #0a3038 0%, #0d4841 100%);
  color: rgba(185, 235, 216, .9);
  font-size: 2.4rem; font-weight: 850; letter-spacing: -.05em;
}

.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 21px 18px; }
.card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--muted-2); font-size: .7rem; }
.card-title { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.5; letter-spacing: -.02em; }
.card-excerpt { margin: 0 0 14px; color: var(--muted); font-size: .82rem; line-height: 1.7; }
.card-more { margin-top: auto; color: var(--green); font-size: .76rem; font-weight: 700; }

/* ---------------------------------------------------------------
   6. 栏目卡片
--------------------------------------------------------------- */
.category-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.category-card {
  position: relative; overflow: hidden;
  display: block; padding: 24px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.category-card::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--green), #5aa9c9);
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c8d8d1; color: var(--ink); }
.category-count { display: block; margin-bottom: 10px; color: var(--muted-2); font-size: .7rem; font-weight: 700; letter-spacing: .06em; }
.category-card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.category-card p { margin: 0 0 16px; color: var(--muted); font-size: .8rem; line-height: 1.7; }
.category-more { color: var(--green); font-size: .76rem; font-weight: 700; }

/* ---------------------------------------------------------------
   7. 分页
--------------------------------------------------------------- */
.navigation.pagination { margin-top: 34px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nav-links .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--ink-soft);
  font-size: .82rem; font-weight: 650;
}
.nav-links .page-numbers:hover { border-color: var(--green); color: var(--green); }
.nav-links .current { background: var(--green); border-color: var(--green); color: #fff; }
.nav-links .dots { border: 0; background: transparent; }

/* ---------------------------------------------------------------
   8. 文章页
--------------------------------------------------------------- */
.breadcrumbs { margin: 26px 0 0; color: var(--muted-2); font-size: .76rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs span { color: var(--ink-soft); }

.article-wrap { max-width: 900px; padding-bottom: 20px; }

.article { margin-top: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4.5vw, 52px); box-shadow: var(--shadow-sm); }
.article-header { max-width: 760px; }
.article-meta-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--muted-2); font-size: .74rem; }
.article h1 { margin: 14px 0 14px; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.3; letter-spacing: -.03em; }
.article-lead { margin: 0 0 18px; color: var(--muted); font-size: .95rem; line-height: 1.85; }
.article-byline { color: var(--muted-2); font-size: .74rem; }
.article-byline strong { color: var(--ink-soft); font-weight: 650; }

.article-cover { margin: 26px 0 30px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-soft); }
.article-cover img { width: 100%; }
.article-cover figcaption { padding: 8px 12px; color: var(--muted-2); font-size: .7rem; background: var(--paper); }

.article-content { color: var(--ink-soft); font-size: 1rem; line-height: 1.95; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2 {
  margin: 2em 0 .7em; padding-left: 14px;
  border-left: 4px solid var(--green);
  font-size: 1.42rem; line-height: 1.45;
}
.article-content h3 { margin: 1.6em 0 .6em; font-size: 1.14rem; }
.article-content h4 { margin: 1.4em 0 .5em; font-size: 1rem; }
.article-content p { margin: 0 0 1.15em; }
.article-content a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-content ul, .article-content ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.article-content li { margin: .35em 0; }
.article-content blockquote {
  margin: 1.6em 0; padding: 18px 22px;
  border-left: 4px solid var(--mint);
  border-radius: 0 12px 12px 0;
  background: var(--mint-2); color: var(--ink-soft);
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content img { border-radius: 12px; margin: 1.2em 0; }
.article-content figure { margin: 1.4em 0; }
.article-content figcaption { margin-top: 6px; color: var(--muted-2); font-size: .74rem; text-align: center; }
.article-content table { width: 100%; margin: 1.4em 0; border-collapse: collapse; font-size: .86rem; }
.article-content th, .article-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.article-content th { background: var(--paper); font-weight: 750; }
.article-content code { padding: 2px 6px; border-radius: 6px; background: var(--paper-2); font-size: .86em; }
.article-content pre { overflow-x: auto; padding: 16px 18px; border-radius: 12px; background: var(--green-dark); color: #dff3ea; }
.article-content pre code { padding: 0; background: transparent; color: inherit; }
.article-content hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }

/* 图文混排：经典编辑器与区块编辑器 */
.article-content::after { content: ""; display: block; clear: both; }

.article-content .alignleft,
.article-content .wp-block-image.alignleft {
  float: left;
  max-width: 50%;
  margin: .5em 1.6em 1em 0;
}
.article-content .alignright,
.article-content .wp-block-image.alignright {
  float: right;
  max-width: 50%;
  margin: .5em 0 1em 1.6em;
}
.article-content .aligncenter,
.article-content .wp-block-image.aligncenter {
  display: block;
  margin: 1.5em auto;
  text-align: center;
}
.article-content .alignleft img,
.article-content .alignright img { width: 100%; }

.article-content .wp-block-image { margin: 1.5em 0; }
.article-content .wp-block-image figcaption,
.article-content .wp-caption-text,
.article-content .gallery-caption {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: .74rem;
  line-height: 1.6;
  text-align: center;
}
.article-content .wp-caption { max-width: 100%; }
.article-content .wp-caption.alignleft { margin: .5em 1.6em 1em 0; }
.article-content .wp-caption.alignright { margin: .5em 0 1em 1.6em; }

/* 图集 */
.article-content .gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 1.5em 0;
}
.article-content .gallery-item { margin: 0; }
.article-content .gallery-icon { height: 100%; }
.article-content .gallery-icon img {
  width: 100%; height: 100%; object-fit: cover;
  margin: 0; border-radius: 10px;
}
.article-content .gallery-columns-1 { grid-template-columns: 1fr; }
.article-content .gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-content .gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.article-content .gallery-columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* 区块：图集 / 分栏 / 媒体与文本 */
.article-content .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 1.5em 0;
}
.article-content .wp-block-gallery .wp-block-image { margin: 0; }
.article-content .wp-block-gallery img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 10px; margin: 0;
}
.article-content .wp-block-columns {
  display: flex; flex-wrap: wrap; gap: 24px; margin: 1.5em 0;
}
.article-content .wp-block-column { flex: 1 1 240px; min-width: 0; }
.article-content .wp-block-media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin: 1.5em 0;
}
.article-content .wp-block-media-text .wp-block-media-text__media img {
  margin: 0; border-radius: 12px;
}
.article-content .wp-block-media-text__content { padding: 0; }

/* 视频与嵌入 */
.article-content .wp-block-embed { margin: 1.5em 0; }
.article-content .wp-block-embed__wrapper { position: relative; }
.article-content iframe { max-width: 100%; border-radius: 12px; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.article-tags a {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--muted); font-size: .72rem;
}
.article-tags a:hover { border-color: var(--green); color: var(--green); }

.author-box {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 24px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--paper);
}
.author-box .author-avatar {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff; font-weight: 800; font-size: 1rem;
}
.author-box h3 { margin: 0 0 4px; font-size: .92rem; }
.author-box p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.7; }

.post-nav { display: grid; gap: 14px; margin-top: 22px; grid-template-columns: 1fr; }
.post-nav a {
  display: block; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  color: var(--ink-soft); font-size: .84rem;
}
.post-nav a:hover { border-color: var(--green); }
.post-nav span { display: block; margin-bottom: 4px; color: var(--muted-2); font-size: .68rem; letter-spacing: .08em; }

.related { margin-top: 40px; }
.related h2 { margin-bottom: 18px; font-size: 1.2rem; }

/* ---------------------------------------------------------------
   9. 归档 / 搜索 / 空状态
--------------------------------------------------------------- */
.archive-header {
  padding: 40px 0 6px;
}
.archive-header h1 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.archive-desc { max-width: 760px; color: var(--muted); font-size: .9rem; }
.archive-count { color: var(--muted-2); font-size: .74rem; }

.empty-state {
  padding: 56px 24px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--muted);
}
.empty-state h2 { margin-bottom: 8px; font-size: 1.1rem; }
.empty-state p { margin: 0; font-size: .85rem; }

/* ---------------------------------------------------------------
   10. CTA
--------------------------------------------------------------- */
.cta-band { padding: clamp(42px, 6vw, 66px) 0; }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 26px; padding: clamp(26px, 4.4vw, 42px);
  border-radius: 24px;
  background: #0b3038; color: #ecf7f2;
}
.cta-inner .kicker { color: #8ed3bb; }
.cta-inner h2 { margin: 0 0 8px; color: #f2fbf7; font-size: clamp(1.3rem, 2.8vw, 1.8rem); }
.cta-inner p { margin: 0; color: #adc8c0; font-size: .85rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-inner .btn-ghost { color: #dcefe8; border-color: rgba(220, 239, 232, .35); }
.cta-inner .btn-ghost:hover { color: var(--mint); border-color: var(--mint); }

/* ---------------------------------------------------------------
   11. 页脚
--------------------------------------------------------------- */
.site-footer { background: #081f26; color: #a9bfba; padding: 52px 0 0; font-size: .82rem; }
.footer-grid { display: grid; gap: 30px; padding-bottom: 38px; }
.footer-brand { display: flex; align-items: baseline; gap: 9px; margin: 0 0 8px; color: #fff; font-size: 1.24rem; font-weight: 800; letter-spacing: -.02em; }
.footer-brand span { color: #8ed3bb; font-size: .7rem; font-weight: 700; letter-spacing: .14em; }
.footer-company { margin: 0 0 8px; color: #c3d5d0; font-size: .86rem; }
.footer-desc { margin: 0; max-width: 340px; color: #7f9993; font-size: .76rem; line-height: 1.75; }
.footer-title { margin: 0 0 12px; color: #e8f4f0; font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { width: fit-content; color: #9bb2ac; font-size: .78rem; }
.footer-links a:hover { color: #fff; }
.footer-address { font-style: normal; color: #9bb2ac; font-size: .78rem; line-height: 1.95; }
.footer-address strong { color: #dcece7; font-weight: 650; }
.footer-address a { color: #c7ddd6; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 17px 0 19px; border-top: 1px solid rgba(255, 255, 255, .1);
  color: #78908b; font-size: .71rem; line-height: 1.7;
}
.footer-bottom p { margin: 0; }
.record { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.record a { color: #a9bfba; text-decoration: underline; text-underline-offset: 2px; }
.record a:hover { color: #fff; }

/* ---------------------------------------------------------------
   12. 404
--------------------------------------------------------------- */
.error-404 { padding: 80px 0 90px; text-align: center; }
.error-404 h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.error-404 p { max-width: 520px; margin: 14px auto 26px; color: var(--muted); }

/* ---------------------------------------------------------------
   13. 响应式
--------------------------------------------------------------- */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 56px; }
  .footer-grid { grid-template-columns: 1.35fr .65fr 1.1fr; gap: 40px; }
  .post-nav { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 899px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .main-nav { order: 3; flex: 1 0 100%; }
  .nav-list { gap: 18px; }
  .header-actions { margin-left: auto; }
  .search-form input[type="search"] { width: 128px; }
  .search-form input[type="search"]:focus { width: 150px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .hero { padding-top: 40px; }
  .search-form input[type="search"] { width: 110px; }
  .search-form button { padding: 0 10px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .article { border-radius: 18px; }
  .cta-inner { border-radius: 18px; }
}

@media (max-width: 640px) {
  .article-content .alignleft,
  .article-content .alignright,
  .article-content .wp-block-image.alignleft,
  .article-content .wp-block-image.alignright,
  .article-content .wp-caption.alignleft,
  .article-content .wp-caption.alignright {
    float: none;
    max-width: 100%;
    margin: 1.4em 0;
  }
  .article-content .gallery,
  .article-content .wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-content .wp-block-media-text { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
