/* ================================================================
   居家好物 jujiahaowu.com · 全站公共样式
   风格：极简轻奢 / 商城质感 / 干净留白 / 层次分明
   配色：主色 #1976D2 高级蓝 · 辅助色 #FF6B35 种草橙
        背景 #F8F9FA · 正文 #333333 · 辅助文字 #666666
   说明：本文件为三页共享样式，配合 Tailwind CSS v3 使用。
   ================================================================ */

/* ---------------- 设计变量 ---------------- */
:root {
  --primary: #1976D2;            /* 主色 高级蓝 */
  --primary-dark: #12599F;
  --primary-light: #E8F1FB;
  --accent: #FF6B35;             /* 辅助色 种草橙 */
  --accent-dark: #E85420;
  --accent-light: #FFF1EA;
  --bg: #F8F9FA;                 /* 页面背景 */
  --card: #FFFFFF;
  --text: #333333;               /* 正文色 */
  --text-sub: #666666;           /* 辅助文字 */
  --text-muted: #9AA0A6;
  --line: #EEF0F3;               /* 浅分割线 */
  --line-strong: #E3E6EB;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(21,33,51,.05);
  --shadow: 0 10px 32px rgba(21,33,51,.09);
  --shadow-lg: 0 24px 60px rgba(21,33,51,.14);
  --header-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------------- 基础重置 ---------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
/* transition: color .2s ease; */
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; color: var(--text); line-height: 1.35; }

/* ---------------- 布局容器 ---------------- */
.container-x { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container-x { padding: 0 24px; } .haowutuijian { display: flex; flex-direction: column; }}
@media (min-width: 1024px) { .container-x { padding: 0 32px; } .haowutuijian { display: flex; flex-direction: row; gap: 20px; } }

.haowutuijian-list { margin: 0 0 20px;}
/* ================================================================
   顶部导航
   ================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
/* .header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); } */
.header-inner { display: flex; align-items: center; height: var(--header-h); justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #42A5F5);
  display: grid; place-items: center; color: #fff;
  font-size: 21px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(25,118,210,.28);
}
.logo-text { font-size: 21px; font-weight: 800; letter-spacing: .5px; color: var(--text); line-height: 1.1; }
.logo-text b { color: var(--primary); }
.logo-sub { display: block; font-size: 10.5px; color: var(--text-muted); font-weight: 400; letter-spacing: 1.2px; margin-top: 2px; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 8px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--text-sub);
  position: relative;
}
.site-nav a:hover { color: var(--primary); background: var(--primary-light); }
.site-nav a.active { color: var(--primary); font-weight: 600; background: var(--primary-light); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--text-sub); background: transparent; border: 1px solid var(--line);
  cursor: pointer; transition: all .2s ease;
}
.icon-btn:hover, .icon-btn.active { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.icon-btn svg { width: 18px; height: 18px; }

/* 搜索面板（默认隐藏，点击放大镜展开） */
.search-panel { display: none; border-top: 1px solid var(--line); background: #fff; }
.search-panel.open { display: block; }
.search-form { display: flex; gap: 10px; padding: 14px 0; }
.search-form input {
  flex: 1; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 0 16px; font-size: 14px; outline: none; background: #fff; color: var(--text);
  font-family: inherit;
}
.search-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(25,118,210,.12); }
.search-form button {
  height: 44px; padding: 0 22px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 600;
  font-family: inherit; transition: background .2s;
}
.search-form button:hover { background: var(--primary-dark); }

/* 移动端汉堡菜单 */
.hamburger { display: none; }
.mobile-nav {
  display: none; background: #fff; border-top: 1px solid var(--line);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: flex; align-items: center; gap: 10px; padding: 14px 24px;
  border-bottom: 1px solid var(--line); color: var(--text); font-size: 15px; font-weight: 500;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .hamburger { display: grid; }
}

/* ================================================================
   区块标题
   ================================================================ */
.section { padding: 20px 0; }
/* @media (min-width: 1024px) { .section { padding: 60px 0; } } */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head .title-wrap { display: flex; align-items: center; gap: 12px; }
.section-head .bar {
  width: 5px; height: 45px; border-radius: 3px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--primary), #42A5F5);
}
.section-title { font-size: 23px; font-weight: 800; letter-spacing: .5px; }
.section-desc { color: var(--text-muted); font-size: 13px; margin-top: 3px; }
.more-link { color: var(--primary); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.more-link:hover { color: var(--accent); }
.more-link svg { width: 15px; height: 15px; transition: transform .2s; }
.more-link:hover svg { transform: translateX(3px); }

/* ================================================================
   按钮
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 26px; border-radius: 12px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all .22s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(25,118,210,.30); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--line-strong); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.btn-light:hover { background: var(--primary); color: #fff; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; }

/* ================================================================
   首页轮播图
   ================================================================ */
.hero { position: relative; margin-top: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

/* 首页顶部推荐区：桌面左 4/6 轮播 + 右 2/6 贴片（flex 行），移动端单列堆叠 */
.home-hero-grid { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) {
  .home-hero-grid { flex-direction: row; align-items: stretch; }
  /* 与左侧轮播高度保持一致（轮播 slide 高度 = min(380px, 62vh)） */
  .home-hero-tiles { height: min(380px, 62vh); }
}
.home-hero-carousel { flex: 4; min-width: 0; }
.home-hero-tiles { flex: 2; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
/* .home-hero-tiles .promo-tile { flex: 1 1 0; } */
@media (min-width: 1024px) { .home-hero-tiles .promo-tile { flex: 1 1 0; } }
@media (max-width: 1024px) { .home-hero-tiles .promo-tile { flex: 1 1 1; } }
.hero-track { display: flex; transition: transform .6s cubic-bezier(.77,0,.18,1); }
.hero-slide { position: relative; flex: 0 0 100%; height: min(380px, 62vh); min-height: 340px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,32,52,.74) 0%, rgba(17,32,52,.38) 45%, rgba(17,32,52,.06) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 8%; max-width: 660px; }
.hero-badge {
  display: inline-flex; width: max-content; align-items: center; gap: 6px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.28); color: #fff;
  font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero-title { color: #fff; font-size: clamp(26px, 4.4vw, 44px); font-weight: 800; line-height: 1.25; letter-spacing: .5px; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero-sub { color: rgba(255,255,255,.9); font-size: clamp(14px, 2vw, 17px); margin-top: 14px; max-width: 520px; }
.hero-btn { margin-top: 26px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.18); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.32); color: #fff;
  display: grid; place-items: center; cursor: pointer; opacity: 0; transition: all .25s ease;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(255,255,255,.32); }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-arrow svg { width: 20px; height: 20px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; }
.hero-dots button {
  width: 9px; height: 9px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,.45); transition: all .3s ease; padding: 0;
}
.hero-dots button.active { width: 26px; background: #fff; }
@media (max-width: 640px) {
  .hero { border-radius: 14px; }
  .hero-arrow { display: none; }
  .hero-slide { height: 300px; min-height: 300px; }
  .hero-content { padding: 0 7%; }
}

/* ================================================================
   首页顶部右侧 · 上下贴片
   ================================================================ */
.promo-tile {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 0; border-radius: var(--radius-lg); overflow: hidden;
  padding: 22px 20px; background: #fff; border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.promo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.promo-tile .pt-info { position: relative; z-index: 1; flex: 1; min-width: 0; }
.promo-tile .pt-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 3px 10px; border-radius: 999px; margin-bottom: 9px; }
.promo-tile.pt-orange .pt-tag { background: var(--accent-light); color: var(--accent-dark); }
.promo-tile.pt-blue .pt-tag { background: var(--primary-light); color: var(--primary); }
.promo-tile .pt-title { font-size: 16px; font-weight: 800; line-height: 1.45; display: block; color: var(--text); }
.promo-tile .pt-sub { display: block; font-size: 12px; color: var(--text-sub); margin-top: 6px; line-height: 1.6; }
.promo-tile .pt-arrow { flex-shrink: 0; color: var(--text-muted); transition: all .25s ease; display: grid; place-items: center; }
.promo-tile:hover .pt-arrow { color: var(--primary); transform: translateX(3px); }
.promo-tile .pt-arrow svg { width: 18px; height: 18px; }
.promo-tile .pt-thumb { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: #EEF1F5; }
.promo-tile .pt-glow { position: absolute; right: -30px; top: -40px; width: 140px; height: 140px; border-radius: 50%; pointer-events: none; }
.promo-tile.pt-orange .pt-glow { background: radial-gradient(circle, rgba(255,107,53,.14), transparent 70%); }
.promo-tile.pt-blue .pt-glow { background: radial-gradient(circle, rgba(25,118,210,.14), transparent 70%); }
@media (max-width: 640px) {
  .promo-tile { padding: 15px 16px; }
  .promo-tile .pt-thumb { width: 62px; height: 62px; }
}

/* ================================================================
   四大栏目入口卡片
   ================================================================ */
.cat-card {
  position: relative; display: block; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 24px; overflow: hidden; transition: all .25s ease;
}
.cat-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card:hover::after { transform: scaleX(1); }
.cat-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; }
.cat-icon svg { width: 28px; height: 28px; }
.cat-name { font-size: 17px; font-weight: 700; }
.cat-desc { font-size: 13px; color: var(--text-sub); margin: 6px 0 14px; line-height: 1.7; }
.cat-count { display: inline-flex; align-items: center; font-size: 12px; color: var(--text-muted); }
.cat-count b { color: var(--primary); font-weight: 700; margin-right: 4px; }
.cat-arrow {
  position: absolute; right: 20px; bottom: 26px; color: var(--text-muted);
  opacity: 0; transform: translateX(-4px); transition: all .25s ease;
}
.cat-card:hover .cat-arrow { opacity: 1; color: var(--primary); transform: translateX(0); }
.cat-arrow svg { width: 18px; height: 18px; }

/* ================================================================
   文章卡片（首页网格 / 相关推荐通用）
   ================================================================ */
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #EEF1F5; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-cat {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  background: rgba(255,255,255,.95); color: var(--primary);
  font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.post-body { padding: 15px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.post-title { font-size: 15.5px; line-height: 1.55; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-title a:hover { color: var(--primary); }
.post-excerpt { margin: 8px 0 14px; font-size: 13px; color: var(--text-sub); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { margin-top: auto; display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text-muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.post-meta span { display: inline-flex; align-items: center; gap: 4px; }
.post-meta svg { width: 14px; height: 14px; }

/* ================================================================
   热门推荐（首页）
   ================================================================ */
.hot-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; align-items: center; transition: all .25s ease; height: 100%; }
.hot-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.hot-rank {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: #F1F3F6; color: var(--text-sub); font-weight: 800; font-size: 15px;
  display: grid; place-items: center;
}
.hot-card:nth-child(1) .hot-rank { background: var(--accent); color: #fff; }
.hot-card:nth-child(2) .hot-rank { background: var(--primary); color: #fff; }
.hot-card:nth-child(3) .hot-rank { background: #FFB300; color: #fff; }
.hot-info { flex: 1; min-width: 0; }
.hot-info .hot-title { font-size: 14px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-info .hot-title:hover { color: var(--primary); }
.hot-info .hot-meta { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.hot-img { width: 84px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #EEF1F5; }

/* ================================================================
   商品推广卡片（种草带货，京东购买按钮）
   ================================================================ */
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s ease; }
.product-card:hover { box-shadow: var(--shadow); }
.product-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 20px; background: linear-gradient(90deg, var(--accent-light), #fff);
  border-bottom: 1px dashed var(--line);
}
.product-head .ph-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-dark); font-size: 15px; }
.product-tag { font-size: 11px; background: var(--accent); color: #fff; padding: 2px 9px; border-radius: 6px; font-weight: 600; letter-spacing: .5px; }
@media (max-width: 640px) { .product-tag { display: none; } }
.product-head .ph-note { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.product-main { display: flex; flex-direction: column; gap: 18px; padding: 20px; }
@media (min-width: 640px) { .product-main { flex-direction: row; align-items: flex-start; } }
.product-img { width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; object-fit: cover; background: #F1F3F6; flex-shrink: 0; }
@media (min-width: 640px) { .product-img { width: 148px; height: 148px; aspect-ratio: auto; } }
.product-info { flex: 1; min-width: 0; }
.product-name { font-size: 16px; font-weight: 700; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-desc { font-size: 13px; color: var(--text-sub); margin: 8px 0 12px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.price-now { font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1; }
.price-now small { font-size: 15px; font-weight: 700; }
.price-old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.price-save { font-size: 12px; background: var(--accent-light); color: var(--accent-dark); padding: 2px 9px; border-radius: 6px; font-weight: 600; }
.product-btns { display: flex; gap: 10px; flex-wrap: wrap; }
/* 京东购买 · 单按钮：占满整行、内容居中，移动端触控友好 */
.btn-jd {
  margin: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; height: 44px; padding: 0 20px;
  border-radius: 10px; font-weight: 600; font-size: 14px; color: #fff;
  background: #E1251B; box-shadow: 0 5px 14px rgba(0,0,0,.14);
  transition: all .22s ease; border: none; cursor: pointer;
}
.btn-jd:hover { background: #C91A10; transform: translateY(-1px); }
.btn-jd svg { width: 16px; height: 16px; }

.btn-tb {
  margin: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; height: 44px; padding: 0 20px;
  border-radius: 10px; font-weight: 600; font-size: 14px; color: #fff;
  background: #ff5000; box-shadow: 0 5px 14px rgba(0,0,0,.14);
  transition: all .22s ease; border: none; cursor: pointer;
}
.btn-tb:hover { background: #ff5000; transform: translateY(-1px); }
.btn-tb svg { width: 16px; height: 16px; }

.btn-pdd {
  margin: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; height: 44px; padding: 0 20px;
  border-radius: 10px; font-weight: 600; font-size: 14px; color: #fff;
  background: #e3544c; box-shadow: 0 5px 14px rgba(0,0,0,.14);
  transition: all .22s ease; border: none; cursor: pointer;
}
.btn-pdd:hover { background: #bd3735; transform: translateY(-1px); }
.btn-pdd svg { width: 16px; height: 16px; }
@media (max-width: 480px) {
  .btn-jd { height: 46px; font-size: 14.5px; }
  .btn-tb { height: 46px; font-size: 14.5px; }
  .btn-pdd { height: 46px; font-size: 14.5px; }
}
.product-compliance {
  margin-top: 14px;
  padding: 10px 14px; 
  /* border-radius: 10px; */
  background: #FFF8F5; 
  /* border: 1px solid #FFE2D5; */
  font-size: 12px; color: #B4652F; line-height: 1.7;
}

/* 商品卡 · 横向大卡（详情页底部/首页横幅） */
.product-card-h { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .product-card-h { flex-direction: row; align-items: center; } }
.product-card-h .product-img { width: 100%; aspect-ratio: 16 / 9; }
@media (min-width: 768px) { .product-card-h .product-img { width: 210px; height: 158px; aspect-ratio: auto; } }

/* ================================================================
   面包屑导航
   ================================================================ */
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-muted); padding: 18px 0 2px; }
.crumb a:hover { color: var(--primary); }
.crumb .sep { color: #CFD4DA; }
.crumb .cur { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================================================================
   列表页 · 栏目标题头
   ================================================================ */
.page-head {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #fff, #EEF4FB);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; margin-bottom: 26px;
}
.page-head::after {
  content: ""; position: absolute; right: -50px; top: -50px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(25,118,210,.12), transparent 70%);
}
.page-head .ph-tag { display: inline-block; font-size: 12px; color: var(--primary); background: var(--primary-light); padding: 4px 12px; border-radius: 999px; font-weight: 600; margin-bottom: 12px; }
.page-head h1 { font-size: 27px; font-weight: 800; position: relative; z-index: 1; }
.page-head p { color: var(--text-sub); font-size: 14px; margin-top: 10px; max-width: 720px; position: relative; z-index: 1; }

/* ================================================================
   列表页 · 图文文章条目
   ================================================================ */
.article-item { display: flex; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: all .25s ease; }
.article-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.article-item .ai-media { position: relative; flex-shrink: 0; width: 230px; height: 156px; border-radius: 12px; overflow: hidden; background: #EEF1F5; }
.article-item .ai-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-item:hover .ai-media img { transform: scale(1.05); }
.article-item .ai-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.article-item .ai-title { font-size: 18px; font-weight: 700; line-height: 1.5; }
.article-item .ai-title:hover { color: var(--primary); }
.article-item .ai-excerpt { font-size: 13.5px; color: var(--text-sub); margin: 10px 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-item .ai-meta { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.article-item .ai-meta span { display: inline-flex; align-items: center; gap: 4px; }
.article-item .ai-meta svg { width: 14px; height: 14px; }
.article-item .ai-meta .read-more { margin-left: auto; color: var(--primary); font-weight: 600; }
@media (max-width: 640px) {
  .article-item { flex-direction: column; gap: 14px; padding: 14px; }
  .article-item .ai-media { width: 100%; height: 200px; }
}

/* ================================================================
   分页组件
   ================================================================ */
.pagination { display: flex; align-items: center; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

.pagination a,
.pagination a:visited,
.pagination b,
.pagination>input {
    background: #fff;
    padding: 0 10px;
    border: 1px solid #ddd;
    display: inline-block;
    height: 36px;
    line-height: 36px;
    margin: 0 4px 0 5px;
    font-size: 14px;
    border-radius: 11px;
}

.pagination>input {
    width: 40px;
    padding: 0 5px;
    text-align: center;
    margin: 0;
}

.pagination a:hover,
.pagination b {
    background: #1976d2;
    border: 1px solid #1976d2;
    color: #fff;
    text-decoration: none;
}

.pagination span {
    padding: 0 5px
}


.page-btn {
  min-width: 40px; height: 40px; padding: 0 13px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text-sub);
  font-size: 14px; font-family: inherit; display: inline-flex; align-items: center;
  justify-content: center; transition: all .2s ease; cursor: pointer;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 5px 14px rgba(25,118,210,.30); }
.page-btn.disabled { opacity: .45; cursor: not-allowed; }
.page-btn.disabled:hover { border-color: var(--line-strong); color: var(--text-sub); }

/* ================================================================
   侧边栏组件
   ================================================================ */
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; }
.widget-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.widget-title::before { content: ""; width: 4px; height: 18px; border-radius: 3px; background: var(--primary); flex-shrink: 0; }
.hot-list li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.hot-list li:last-child { border-bottom: none; padding-bottom: 0; }
.hot-num { width: 24px; height: 24px; border-radius: 8px; background: #F1F3F6; color: var(--text-sub); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.hot-list li:nth-child(-n+3) .hot-num { background: var(--accent); color: #fff; }
.hot-list .hot-text { flex: 1; min-width: 0; }
.hot-list .hot-title { font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-list .hot-title:hover { color: var(--primary); }
.hot-list .hot-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.cat-list li { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; border-bottom: 1px dashed var(--line); }
.cat-list li:last-child { border-bottom: none; padding-bottom: 0; }
.cat-list a { font-size: 14px; font-weight: 500; color: var(--text-sub); display: inline-flex; align-items: center; gap: 8px; }
.cat-list a:hover { color: var(--primary); }
.cat-list a svg { width: 15px; height: 15px; color: var(--primary); }
.cat-list .count { font-size: 12px; color: var(--text-muted); background: #F1F3F6; padding: 2px 9px; border-radius: 999px; }

/* ================================================================
   详情页 · 文章正文排版
   ================================================================ */
.article-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 48px); }
.article-title { font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; line-height: 1.42; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 18px 0; margin: 18px 0 24px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); color: var(--text-muted); font-size: 13px; }
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.article-meta svg { width: 14px; height: 14px; }
.article-meta .meta-cat { color: var(--primary); background: var(--primary-light); padding: 3px 11px; border-radius: 999px; font-weight: 600; }

.article-body { font-size: 16px; line-height: 2.05; color: #3A3A3A; word-break: break-word; }
.article-body h2 { font-size: 21px; margin: 36px 0 16px; padding-left: 14px; border-left: 4px solid var(--primary); line-height: 1.45; }
.article-body h3 { font-size: 17.5px; margin: 28px 0 12px; }
.article-body p { margin: 0 0 18px; }
.article-body img { border-radius: 12px; margin: 6px 0 10px; box-shadow: var(--shadow-sm); width: 550px !important; height: auto !important; }
.article-body .img-cap { text-align: center; font-size: 13px; color: var(--text-muted); margin: 0 0 20px; }
.article-body ul { margin: 0 0 18px; }
.article-body ul li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.article-body ol { margin: 0 0 18px; padding-left: 6px; counter-reset: li; }
.article-body ol li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.article-body ol li::before { counter-increment: li; content: counter(li); position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 6px; background: var(--primary-light); color: var(--primary); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { margin: 22px 0; padding: 15px 20px; background: var(--primary-light); border-left: 4px solid var(--primary); border-radius: 0 12px 12px 0; color: #2C4A6B; font-size: 15px; }
.article-body .note-box { background: #FFF9F0; border: 1px solid #FCE3C6; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 15px 20px; margin: 22px 0; font-size: 14px; color: #8A5A2E; }
.article-body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.article-body th, .article-body td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.article-body th { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; white-space: nowrap; }
.article-body tr:nth-child(even) td { background: #FAFBFD; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tag { font-size: 12px; color: var(--text-sub); background: #F1F3F6; padding: 4px 13px; border-radius: 999px; transition: all .2s; }
.tag:hover { color: #fff; background: var(--primary); }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
@media (max-width: 640px) { .article-nav { grid-template-columns: 1fr; } }
.article-nav div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: var(--text-sub); transition: all .2s ease; display: block; min-width: 0; }
.article-nav a:hover { border-color: var(--primary); color: var(--primary); }
.article-nav .nav-label { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 5px; }
.article-nav a { display: block; overflow: hidden; text-overflow: ellipsis;  font-weight: 500; }
/* white-space: nowrap; */

/* 点赞 */
.details_zan {display: flex; flex-direction: column; margin: auto; align-items: center; margin: 40px 0 0px; }
.details_zan1 { width: 50px; height: 50px; border-radius: 50%; background: #ff4757; color: #fff; font-weight: bolder; font-size: 32px; text-align: center; cursor: pointer; line-height: 50px; }
.details_zan1:hover { background: #ff6b81; color: #fff; }
.details_zan2 { font-size: 16px; color: #333; margin-top: 10px; }

.disclaimer { margin-top: 30px; padding: 14px 18px; border-radius: 12px; background: #F7F8FA; border: 1px dashed var(--line-strong); font-size: 12.5px; color: var(--text-muted); line-height: 1.8; }

/* ================================================================
   页脚
   ================================================================ */
.site-footer { background: #16233A; color: #AEB8C6; margin-top: 64px; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding: 52px 0 40px; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.footer-brand .f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .f-logo .logo-mark { box-shadow: none; }
.footer-brand .f-logo span { color: #fff; font-size: 21px; font-weight: 800; }
.footer-brand p { font-size: 13px; line-height: 1.9; margin: 0 0 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #AEB8C6; transition: all .2s; }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-social svg { width: 17px; height: 17px; }
.footer-title { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--primary); }
.footer-links li { margin-bottom: 11px; font-size: 13.5px; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 8px; margin-bottom: 13px; font-size: 13px; align-items: flex-start; }
.footer-contact svg { width: 15px; height: 15px; margin-top: 4px; flex-shrink: 0; color: #5B6B80; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 12.5px; color: #7D8898; display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; align-items: center; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .icp a { color: #7D8898; }

/* ================================================================
   回到顶部 & 动画辅助
   ================================================================ */
.back-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 50;
  width: 44px; height: 44px; border-radius: 12px; background: #fff;
  color: var(--primary); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s ease;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--primary); color: #fff; }
.back-top svg { width: 18px; height: 18px; }

/* 图片懒加载淡入 */
.lazy-fade { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.lazy-fade.loaded { opacity: 1; transform: none; }

/* 滚动入场动画（轻微，不遮挡内容） */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .lazy-fade { opacity: 1; transform: none; transition: none; }
}
