/* SOLYN 餐厅家具 博客页样式 —— 白底、橄榄绿点缀（与商城首页同色）、衬线标题 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Assistant', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: #222; background: #fff; -webkit-font-smoothing: antialiased; }
[v-cloak] { display: none; }
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(1280px, 92%); margin: 0 auto; }

/* ---------- 顶部未成年提醒条（照搬商城首页，随页面滚动消失） ---------- */
.notice-bar { background: #fff; color: #5f6b3f; font-size: 14px; font-weight: 400; text-align: center; padding: 5px 16px; letter-spacing: .5px; }
/* 桌面一行显示；窄屏放不下时第二段整体换行成两行 */
.notice-line { display: inline-block; line-height: 1.45; }

/* ---------- 顶部导航（完整复刻商城首页 header：品牌 + 导航 + 搜索 + 购物车） ---------- */
.blog-header { background: #5f6b3f; }
.bh-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
/* 品牌：只放 logo 图片，尺寸/圆角照搬首页 .brand-logo */
.bh-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.bh-logo img { height: 38px; width: auto; max-width: 228px; border-radius: 10px; object-fit: contain; }
/* 导航标签：照搬首页 .main-nav a 胶囊样式 */
.bh-nav { display: flex; gap: 4px; flex: 1; font-size: 16px; }
.bh-nav a { padding: 8px 14px; border-radius: 8px; text-decoration: none; color: #fff; font-weight: 500; white-space: nowrap; transition: all .2s; }
.bh-nav a:hover { color: #fff; background: rgba(255, 255, 255, .15); }
.bh-nav a.active { color: #fff; background: rgba(255, 255, 255, .25); font-weight: 600; }
/* 搜索框：照搬首页 .header-search 半透胶囊（与商城一样允许被压缩，保证导航项全部显示） */
.bh-search { display: flex; align-items: center; background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 0 6px 0 16px; height: 40px; width: 230px; min-width: 0; }
.bh-search input { border: 0; background: none; outline: none; flex: 1; font-size: 14px; min-width: 0; color: #fff; }
.bh-search input::placeholder { color: rgba(255, 255, 255, .7); }
.bh-search button { border: 0; background: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
/* 购物车：照搬首页 .cart-entry + 角标 */
.bh-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #fff; flex-shrink: 0; text-decoration: none; }
.bh-cart-badge { position: absolute; bottom: 0; right: -2px; background: #f7941d; color: #fff; font-size: 10.5px; font-style: normal; min-width: 17px; height: 17px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }

/* ---------- 全宽 BLOG banner ---------- */
.blog-banner { width: 100%; overflow: hidden; }
.blog-banner img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }

/* ---------- 列表页 ---------- */
.bl-cat { margin: 36px 0 22px; font-size: 20px; font-weight: 700; color: #5f6b3f; }
.bl-loading, .bl-empty { padding: 50px 0; text-align: center; color: #999; font-size: 15px; }
.bl-empty a { color: #5f6b3f; }

/* 首条通栏大卡 */
.bl-feature { display: block; background: #f4f4f4; text-decoration: none; margin-bottom: 30px; transition: box-shadow .2s ease; }
.bl-feature:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.bl-feature-img { aspect-ratio: 21 / 9; overflow: hidden; background: #e8e8e8; }
.bl-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-feature-body { padding: 26px 30px 32px; text-align: center; }
.bl-feature-title { margin: 0 0 10px; font-family: Georgia, 'Noto Serif SC', 'Songti SC', serif; font-size: 26px; font-weight: 700; line-height: 1.5; color: #5f6b3f; }
.bl-summary { margin: 12px auto 0; max-width: 860px; font-size: 14px; line-height: 1.9; color: #666; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* 其余双列卡片 */
.bl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-bottom: 50px; }
.bl-card { display: block; background: #f4f4f4; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.bl-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.bl-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: #e8e8e8; }
.bl-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 封面缺失/加载失败时的品牌占位块（橄榄绿渐变 + 字标，与主题令牌同色系） */
.bl-cover-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #5f6b3f 0%, #4b5531 60%, #b07d4f 130%);
  color: #fff; font-weight: 800; letter-spacing: 6px; font-size: 26px; user-select: none;
}
.bl-card-body { padding: 18px 20px 24px; text-align: center; }
.bl-card-title { margin: 0 0 8px; font-family: Georgia, 'Noto Serif SC', 'Songti SC', serif; font-size: 19px; font-weight: 700; line-height: 1.5; color: #5f6b3f; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card-body .bl-summary { max-width: none; -webkit-line-clamp: 4; }
.bl-date { margin: 0; font-size: 12px; color: #999; }

/* 页码翻页条（t-vape 样式：无卡片背景，整排纯文字按钮居中，当前页深色 + 下划线） */
.bl-pager { display: flex; align-items: center; justify-content: center; width: fit-content; margin: 6px auto 46px; padding: 0; background: none; border: 0; box-shadow: none; }
.bl-pager > * + * { margin-left: 26px; }
.pg-btn { min-width: 20px; padding: 2px 2px; background: none; border: 0; font-size: 14px; color: #333; cursor: pointer; transition: color .15s ease; }
.pg-btn:hover:not(:disabled):not(.active) { color: #5f6b3f; }
.pg-btn:disabled { color: #ccc; cursor: default; }
.pg-btn.active { color: #222; font-weight: 600; text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; cursor: default; }
.pg-dots { display: inline-flex; align-items: center; justify-content: center; color: #333; }

/* ---------- 详情页 ---------- */
.bd-wrap { max-width: 750px; margin: 40px auto 60px; }
.bd-title { margin: 0 0 12px; text-align: center; font-family: Georgia, 'Noto Serif SC', 'Songti SC', serif; font-size: 30px; font-weight: 700; line-height: 1.5; color: #111; }
.bd-date { margin: 0 0 34px; text-align: center; font-size: 13px; color: #999; }
.bd-content { font-family: Georgia, 'Noto Serif SC', 'Songti SC', serif; font-size: 16px; line-height: 2; color: #333; }
.bd-content p { margin: 0 0 22px; text-align: left; }
.bd-content img { display: block; margin: 0 auto 22px; }
.bd-content a { color: #e07b39; text-decoration: underline; }
.bd-media { text-align: center; }
.bd-media video { width: 100%; max-height: 480px; background: #000; }
.bd-back { margin-top: 44px; text-align: center; }
.bd-back a { color: #5f6b3f; font-size: 15px; text-decoration: none; }
.bd-back a:hover { text-decoration: underline; }

/* ---------- 页脚 ---------- */
.blog-footer { margin-top: 20px; padding: 34px 20px; background: #f4f4f4; text-align: center; font-size: 13px; color: #888; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .bh-search { width: 180px; }
}
@media (max-width: 820px) {
  .bh-inner { gap: 10px; }
  .bh-search { display: none; }
  .bh-nav { overflow-x: auto; scrollbar-width: none; }
  .bh-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 768px) {
  .bh-inner { height: 56px; }
  .bh-logo img { height: 32px; max-width: 140px; }
  .bh-nav { gap: 2px; font-size: 14px; }
  .bh-nav a { padding: 6px 10px; }
  .blog-banner img { max-height: 220px; }
  .bl-feature-title { font-size: 20px; }
  .bl-feature-body { padding: 18px 16px 24px; }
  .bl-grid { grid-template-columns: 1fr; gap: 18px; }
  .bd-title { font-size: 23px; }
  .bd-content { font-size: 15px; }
  .notice-bar { font-size: 13px; padding: 4px 12px; }
}
@media (max-width: 480px) {
  .notice-bar { font-size: 12px; padding: 3px 10px; letter-spacing: 0; }
}
