/* 雾界 VAPORA 博客页样式 —— 白底、橙色点缀（与商城首页同色）、衬线标题 */
* { 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: #f26a0f; 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：品牌 + 导航 + 搜索 + 购物车 + 手机端汉堡） ---------- */
:root { --header-h: 64px; --primary: #f26a0f; --line: #e6e8ec; --shadow-lg: 0 10px 30px rgba(16, 24, 40, .12); }
/* 顶部吸顶（同首页 .top-sticky）：手机端抽屉按 top:var(--header-h) 定位依赖导航栏常驻顶部 */
.top-sticky { position: sticky; top: 0; z-index: 100; }
.blog-header { background: #f26a0f; }
.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; }
/* 汉堡菜单按钮（仅手机端显示，照搬首页 .nav-toggle） */
.nav-toggle { display: none; border: 0; background: none; flex-direction: column; align-items: flex-start; gap: 5px; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 28px; height: 2px; background: #fff; border-radius: 2px; }
.nav-toggle span:nth-child(2) { width: 17px; }
/* 手机端搜索面板（默认隐藏，≤820px 且点开放大镜时显示） */
.bh-mobile-search { display: none; }

/* ---------- 全宽 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: #f26a0f; }
.bl-loading, .bl-empty { padding: 50px 0; text-align: center; color: #999; font-size: 15px; }
.bl-empty a { color: #f26a0f; }
/* 博客文章搜索结果提示条 */
.bh-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 20px; font-size: 14px; color: #666; }
.bh-result button { border: 1px solid #ddd; background: #fff; color: #666; border-radius: 999px; padding: 5px 14px; font-size: 13px; cursor: pointer; transition: border-color .15s, color .15s; }
.bh-result button:hover { border-color: #f26a0f; color: #f26a0f; }

/* 首条通栏大卡 */
.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: #f26a0f; }
.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-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: #f26a0f; 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: #f26a0f; }
.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: #f26a0f; 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; position: relative; }
  /* 手机端顺序：汉堡按钮 - Logo（绝对居中） - 放大镜 - 购物车，同商城首页 */
  .nav-toggle { display: flex; order: 1; }
  .bh-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; }
  .bh-search { order: 3; margin-left: auto; width: auto; height: auto; background: none; padding: 0; }
  .bh-search input { display: none; }
  .bh-search button { width: 40px; height: 40px; border-radius: 50%; background: none; color: #fff; }
  .bh-search button:hover { background: rgba(255,255,255,.15); color: #fff; }
  .bh-cart { order: 4; }
  /* 点开放大镜后展开的搜索面板 */
  .bh-mobile-search { display: block; padding-bottom: 10px; }
  .bh-mobile-search-inner { display: flex; gap: 8px; }
  .bh-mobile-search input {
    flex: 1; min-width: 0; height: 40px; background: #fff;
    border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px;
    font-size: 16px; outline: none;
  }
  .bh-mobile-search input:focus { border-color: var(--primary); }
  .bh-mobile-search-btn { width: auto; height: 40px; padding: 0 22px; border-radius: 999px; flex-shrink: 0; border: 0; background: var(--primary); color: #fff; font-size: 14px; }
  /* 导航收纳为全屏下拉抽屉（照搬首页 .main-nav 移动端样式） */
  .bh-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #fff; flex-direction: column; padding: 8px 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: none; gap: 0; font-size: 16px;
  }
  .bh-nav.open { display: flex; }
  /* 抽屉打开时隐藏提醒条，使吸顶导航只剩页头，fixed 抽屉 top 精确贴合 */
  body:has(.bh-nav.open) .notice-bar { display: none; }
  .bh-nav a { color: var(--primary); border-radius: 0; padding: 13px 6%; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .bh-nav a:hover { color: #d4550a; background: #fdf3ec; }
}
@media (max-width: 768px) {
  .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; }
}
/* ---------- 响应式：手机 375px / 414px（导航栏压缩，同首页 ≤480px） ---------- */
@media (max-width: 480px) {
  :root { --header-h: 52px; }
  .bh-inner { height: 52px; gap: 10px; }
  .bh-logo img { height: 32px; max-width: 140px; }
  .nav-toggle { padding: 6px; }
  .notice-bar { font-size: 12px; padding: 3px 10px; letter-spacing: 0; }
}
