/*
Theme Name: 康养网门户
Theme URI:  https://www.xsbnky.com/
Template:   astra
Author:     马哥 / 小金刚
Version:    1.0.0
Description: 西双版纳康养网子主题（基于 Astra）—— 雨林绿 + 暖阳橙、门户首页、图文一律居中
*/

/* ============ 0. 品牌变量 ============ */
:root{
  --bn-green:#1F7A5A;       /* 雨林绿（康养 / 生态） */
  --bn-green-d:#14563E;
  --bn-green-l:#A9D8C4;
  --bn-orange:#E8912A;      /* 暖阳橙（版纳阳光） */
  --bn-mist:#EDF6F1;        /* 浅绿底 */
  --bn-line:#D8E9E1;
  --bn-text:#2D3531;
}

/* ============ 1. 头部与导航 ============ */
.site-header .site-logo-img + .ast-site-title-wrap,
.site-header .ast-site-title-wrap{ display:none; }
.site-header .site-logo-img img{ max-height:64px; width:auto; }

.site-header .ast-container{ border-bottom:3px solid var(--bn-green); }
.site-title a, .ast-site-title-wrap .site-title a{ color:var(--bn-green); }
.main-header-menu .menu-item.current-menu-item > .menu-link,
.main-header-menu .menu-item:hover > .menu-link{ color:var(--bn-green); }

/* ============ 2. 门户首页 ============ */
.bn-wrap{ max-width:1240px; margin:24px auto; padding:0 20px; }

.bn-hero{ display:grid; grid-template-columns:1.15fr .85fr; gap:22px; margin-bottom:26px; }
@media (max-width:921px){ .bn-hero{ grid-template-columns:1fr; } }

.bn-hero-main{
  position:relative; border-radius:10px; overflow:hidden;
  background:var(--bn-mist); border:1px solid var(--bn-line);
}
.bn-hero-main img{ width:100%; height:340px; object-fit:cover; display:block; }
@media (max-width:921px){ .bn-hero-main img{ height:220px; } }
.bn-hero-cap{
  position:absolute; left:0; right:0; bottom:0; padding:18px 20px;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(20,86,62,.88) 62%);
  color:#fff;
}
.bn-hero-cap h2{ margin:0 0 6px; font-size:22px; line-height:1.35; }
.bn-hero-cap h2 a{ color:#fff; text-decoration:none; }
.bn-hero-cap h2 a:hover{ text-decoration:underline; }
.bn-hero-meta{ font-size:13px; opacity:.85; }

.bn-hero-side{ display:flex; flex-direction:column; gap:12px; }
.bn-hero-item{
  display:flex; gap:12px; padding:10px; border:1px solid var(--bn-line);
  border-radius:8px; background:#fff; align-items:flex-start;
}
.bn-hero-item img{ width:110px; height:74px; object-fit:cover; border-radius:6px; flex:none; }
.bn-hero-item .t{ font-size:15px; line-height:1.45; color:var(--bn-text); text-decoration:none; }
.bn-hero-item .t:hover{ color:var(--bn-green); }
.bn-hero-item .d{ font-size:12px; color:#8b9a93; margin-top:4px; }

.bn-sec-title{
  display:flex; align-items:center; gap:10px; margin:30px 0 16px;
  font-size:20px; font-weight:600; color:var(--bn-green-d);
}
.bn-sec-title::before{ content:""; width:5px; height:20px; background:var(--bn-green); border-radius:3px; }

/* 分类卡片（铁律#17：统一品牌底衬，不硬取花图） */
.bn-zone{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
@media (max-width:921px){ .bn-zone{ grid-template-columns:repeat(2,1fr); } }
.bn-zone-card{
  display:block; text-decoration:none; color:#fff;
  border-radius:10px; padding:22px 18px; min-height:118px;
  background:linear-gradient(135deg, var(--bn-green) 0%, var(--bn-green-d) 100%);
  border:1px solid var(--bn-green-l);
}
.bn-zone-card:hover{ background:linear-gradient(135deg, var(--bn-green-d) 0%, #0d3d2b 100%); }
.bn-zone-name{ font-size:18px; font-weight:600; margin-bottom:6px; }
.bn-zone-sub{ font-size:13px; opacity:.82; line-height:1.5; }
.bn-zone-cnt{
  display:inline-block; margin-top:10px; font-size:12px;
  background:rgba(255,255,255,.2); border-radius:20px; padding:2px 10px;
}

.bn-list{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px 26px; }
@media (max-width:921px){ .bn-list{ grid-template-columns:1fr; } }
.bn-list-item{
  display:flex; gap:14px; padding:12px; border:1px solid var(--bn-line);
  border-radius:8px; background:#fff;
}
.bn-list-item img{ width:140px; height:92px; object-fit:cover; border-radius:6px; flex:none; }
.bn-list-item .t{ font-size:16px; line-height:1.5; color:var(--bn-text); text-decoration:none; }
.bn-list-item .t:hover{ color:var(--bn-green); }
.bn-list-item .d{ font-size:12px; color:#8b9a93; margin-top:6px; }

/* 康养特色条（三栏卖点） */
.bn-feat{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:26px 0; }
@media (max-width:921px){ .bn-feat{ grid-template-columns:1fr; } }
.bn-feat div{
  background:var(--bn-mist); border:1px solid var(--bn-line); border-radius:10px;
  padding:18px 20px; border-top:4px solid var(--bn-orange);
}
.bn-feat b{ display:block; font-size:17px; color:var(--bn-green-d); margin-bottom:6px; }
.bn-feat span{ font-size:14px; color:#5d6b64; line-height:1.6; }

/* ============ 3. 正文排版 v1（与咖啡/大米/房车统一） ============ */
.single .entry-content, .entry-content{ font-size:17px; line-height:1.8; color:var(--bn-text); }
.entry-content p{ margin-bottom:1.6em; }
.entry-content h2{
  font-size:22px; color:var(--bn-green-d);
  border-left:5px solid var(--bn-green); padding-left:12px; margin:1.8em 0 .9em;
}
.entry-content h3{ font-size:19px; color:var(--bn-green-d); margin:1.6em 0 .8em; }

/* 铁律：正文图片 / 视频一律居中，图注跟着居中 */
figure.wp-block-image, figure.wp-block-video, .entry-content figure{
  display:block; margin:1.6em auto; text-align:center;
}
figure.wp-block-image img, figure.wp-block-video video, .entry-content img{
  display:block; margin-left:auto; margin-right:auto;
}
figcaption, .wp-element-caption, .bn-note{ text-align:center; font-size:14px; color:#7a8a83; }
figure.wp-block-video video{ max-width:720px; width:100%; }
.alignleft, .alignright, .alignwide, .alignfull, .wp-block-gallery{ text-align:left; }

/* ============ 4. 页脚 ============ */
.site-footer{ border-top:3px solid var(--bn-green); }
.ast-footer-copyright, .site-footer a{ color:var(--bn-green-d); }

/* ===== 最新资讯·四栏统一卡片 tag-20261013-bnlist4 ===== */
@media (min-width:1101px){
  .bn-list{ grid-template-columns:repeat(3,1fr); gap:24px 20px; }
}
@media (min-width:601px) and (max-width:1100px){
  .bn-list{ grid-template-columns:repeat(2,1fr); gap:22px 18px; }
}
@media (max-width:921px){
  .bn-list{ grid-template-columns:repeat(2,1fr); gap:18px 14px; }
}
@media (max-width:560px){
  .bn-list{ grid-template-columns:1fr; }
}
.bn-list-item{
  flex-direction:column; gap:0; padding:0; overflow:hidden;
  border:1px solid var(--bn-line); border-radius:10px; background:#fff;
  transition:box-shadow .22s ease, transform .22s ease;
}
.bn-list-item:hover{ box-shadow:0 6px 18px rgba(0,0,0,.12); transform:translateY(-2px); }
.bn-list-item > a{ display:block; flex:none; }
.bn-list-item img{
  width:100%; height:auto; aspect-ratio:16/9; object-fit:cover;
  border-radius:0; flex:none; display:block; background:#eef3ef;
}
.bn-list-item > div{ padding:11px 13px 13px; }
.bn-list-item .t{ display:block; }
/* <<< tag-20261013-bnlist4 结束 >>> */
