/* 资讯博客 - 正规版式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: #1a73e8;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(26, 115, 232, 0.15);
}
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
/* 防止 iOS 横竖屏切换时字体放大 */

/* 顶栏 */
.site-header {
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
/* 手机端：顶栏固定，向下滑动时隐藏、向上滑动时出现 */
@media (max-width: 768px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.25s ease;
    transform: translateY(0);
  }
  .site-header.is-header-hidden {
    transform: translateY(-100%);
  }
  body { padding-top: 56px; }
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-size: 22px;
  font-weight: bold;
  color: #222;
}
.site-logo a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.site-logo a:hover { text-decoration: none; color: #1a73e8; }
.site-logo-img { height: 36px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.site-logo-text { font-size: 22px; font-weight: bold; color: inherit; white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.site-nav a {
  color: #444;
  font-size: 15px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: #1a73e8; text-decoration: none; border-bottom-color: #1a73e8; }

/* 三条杠菜单按钮（仅手机端显示） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 1px;
}
.nav-toggle:hover .nav-toggle-bar { background: #1a73e8; }

/* 返回键：与三条杠同位置，菜单打开时显示，方便点击关闭 */
.nav-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 15px;
  color: #1a73e8;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 768px) {
  .nav-close { display: none; }
  body.mobile-nav-open .nav-toggle { display: none; }
  body.mobile-nav-open .nav-close { display: inline-flex; }
}

/* 手机端右侧抽屉导航（非全屏，带遮罩） */
.mobile-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.25s ease;
}
.mobile-nav-wrap.is-open {
  pointer-events: auto;
  visibility: visible;
}
.mobile-nav-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mobile-nav-wrap.is-open .mobile-nav-backdrop {
  opacity: 1;
}
.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(280px, 85vw);
  max-width: 320px;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-right: max(20px, env(safe-area-inset-right));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.mobile-nav-wrap.is-open .mobile-nav-panel {
  transform: translateX(0);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav-links a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  color: #222;
  border-bottom: 1px solid #f0f0f0;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-links a:hover { color: #1a73e8; text-decoration: none; }
.mobile-nav-links a:active { background: #f8f9fa; }

@media (max-width: 768px) {
  .header-inner { padding: 12px 16px; flex-wrap: nowrap; gap: 12px; }
  .site-logo { min-width: 0; flex: 1; }
  .site-logo a { min-width: 0; }
  .site-logo-text { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
  .site-logo-img { height: 32px; max-width: 120px; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; }
}
@media (max-width: 480px) {
  .header-inner { padding: 10px 12px; }
  .site-logo-text { font-size: 16px; max-width: 140px; }
}

/* 主内容区 */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
@media (max-width: 640px) {
  .main { padding: 16px 12px 32px; width: 100%; overflow-x: hidden; }
}

/* ========== 首页：头条区块 ========== */
.home-hero {
  margin-bottom: 28px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.home-hero a { display: block; color: inherit; text-decoration: none; }
.home-hero .hero-img-wrap {
  position: relative;
  height: 0;
  padding-bottom: 40%;
  overflow: hidden;
  background: #e8e8e8;
}
.home-hero .hero-img-wrap img {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.home-hero .hero-mask {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
}
.home-hero .hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 28px;
  color: #fff;
}
@media (max-width: 640px) {
  .home-hero .hero-caption { padding: 16px 14px; }
  .home-hero .hero-caption h1 { font-size: 18px; }
}
.home-hero .hero-caption .category {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  background: #1a73e8;
  color: #fff;
  border-radius: 4px;
  margin-bottom: 8px;
}
.home-hero .hero-caption h1 {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.35;
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.home-hero .hero-caption .meta { font-size: 13px; opacity: 0.9; }

/* ========== 首页：分类导航区块 ========== */
/* 首页 TAG 单排展示，多余自适应隐藏，右侧「全部标签」进入完整页 */
.home-tags {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #eee;
  overflow: hidden;
}
.home-tags-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.home-tags-inner a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  min-height: 44px;
  box-sizing: border-box;
  background: #fff;
  color: #333;
  border-radius: 6px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  transition: all 0.2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.home-tags-inner a:hover {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
  text-decoration: none;
}
.home-tags-more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  box-sizing: border-box;
  font-size: 14px;
  color: #1a73e8;
  background: rgba(26, 115, 232, 0.08);
  border: 1px solid rgba(26, 115, 232, 0.3);
  border-radius: 6px;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.home-tags-more:hover {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
  text-decoration: none;
}
@media (max-width: 768px) {
  .home-tags-inner {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .home-tags-inner::-webkit-scrollbar { height: 6px; }
  .home-tags-inner::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }
}
@media (max-width: 640px) {
  .home-tags { padding: 12px 14px; gap: 8px; }
  .home-tags-inner a { padding: 10px 14px; min-height: 40px; font-size: 13px; }
  .home-tags-more { min-height: 40px; padding: 10px 14px; font-size: 13px; }
}

/* 全部标签页 */
.tags-all-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tags-all-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #f8f9fa;
  color: #333;
  border-radius: 8px;
  font-size: 15px;
  border: 1px solid #eee;
  transition: all 0.2s;
}
.tags-all-item:hover {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
  text-decoration: none;
}
.tags-all-count {
  font-size: 12px;
  opacity: 0.85;
}

/* 最新资讯：纯列表（无封面），按时间排序，带序号 */
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list > li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.latest-list > li:first-child { padding-top: 0; }
.latest-list-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #1a73e8;
  background: rgba(26, 115, 232, 0.1);
  border-radius: 50%;
}
.latest-list-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .latest-list-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
.latest-list-title:hover { color: #1a73e8; text-decoration: none; }
.latest-list-meta {
  flex-shrink: 0;
  font-size: 13px;
  color: #999;
}
.latest-list-more {
  margin-top: 20px;
  text-align: center;
}
.latest-list-more a {
  display: inline-block;
  padding: 10px 24px;
  background: #f0f0f0;
  color: #333;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.latest-list-more a:hover {
  background: #1a73e8;
  color: #fff;
  text-decoration: none;
}

/* 首页：更多内容 4×3 网格（每行4个，共3行，超出需点击进入列表） */
.home-grid-section { margin-top: 40px; }
.home-grid-4x3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.grid-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.grid-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: #e0e0e0;
}
.grid-card a { text-decoration: none; color: inherit; display: block; }
.grid-card-thumb {
  height: 0;
  padding-bottom: 64%;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}
.grid-card-thumb img {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.grid-card-body { padding: 12px 14px; }
.grid-card-type { font-size: 11px; color: #1a73e8; margin-bottom: 4px; display: block; }
.grid-card-title {
  font-size: 14px;
  font-weight: bold;
  color: #222;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.grid-card-title:hover { color: #1a73e8; }
.grid-card-meta { font-size: 12px; color: #999; }
.home-grid-more {
  margin-top: 24px;
  text-align: center;
}
.home-grid-more a {
  display: inline-block;
  padding: 12px 28px;
  background: #1a73e8;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  transition: opacity 0.2s;
}
.home-grid-more a:hover { opacity: 0.9; text-decoration: none; color: #fff; }

@media (max-width: 1100px) {
  .home-grid-4x3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .home-grid-4x3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ========== 首页：精选推荐区块（卡片） ========== */
.home-section {
  margin-bottom: 36px;
  min-width: 0;
}
.home-section .section-title {
  font-size: 17px;
  font-weight: bold;
  color: #222;
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 3px solid #1a73e8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-section .section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: #1a73e8;
  border-radius: 2px;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.featured-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.featured-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-color: #e0e0e0;
  transform: translateY(-2px);
}
.featured-card a { text-decoration: none; color: inherit; }
.featured-card .card-thumb {
  height: 0;
  padding-bottom: 60%;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}
.featured-card .card-thumb img {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.featured-card .card-body { padding: 14px 16px; }
.featured-card .card-body .category { font-size: 12px; color: #1a73e8; margin-bottom: 6px; }
.featured-card .card-body .title {
  font-size: 15px;
  font-weight: bold;
  color: #222;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-card .card-body .title:hover { color: #1a73e8; }
.featured-card .card-body .meta { font-size: 12px; color: #999; }
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}
/* 手机端：精选推荐 1 行 3 个 */
@media (max-width: 768px) {
  .featured-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .featured-card .card-body { padding: 10px 12px; }
  .featured-card .card-body .title { font-size: 13px; -webkit-line-clamp: 2; }
  .featured-card .card-body .meta { font-size: 11px; }
}
.featured-more { margin-top: 16px; text-align: center; }
.featured-more a { font-size: 14px; color: #1a73e8; }
.featured-more a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .featured-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* ========== 首页：主体+侧栏布局（最新资讯与热门+联系我们等高，随文章数量自适应） ========== */
.home-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: stretch;
  min-width: 0;
}
@media (max-width: 960px) {
  .home-body { grid-template-columns: 1fr; gap: 20px; }
}
.home-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.home-main > .home-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.home-main > .home-section .latest-list {
  flex: 1;
  min-height: 0;
  min-width: 0;
}
.home-main > .home-section .latest-list-more {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 14px;
}
.home-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.home-sidebar .sidebar-block {
  min-width: 0;
  max-width: 100%;
}
.home-sidebar .sidebar-block--hot {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.home-sidebar .sidebar-block--hot .sidebar-list {
  flex: 1;
  min-height: 0;
  min-width: 0;
}
.home-sidebar .sidebar-block--hot .sidebar-list-more {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 14px;
  text-align: center;
}
.home-sidebar .sidebar-block--hot .sidebar-list-more a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 13px;
  color: #1a73e8;
  background: rgba(26, 115, 232, 0.08);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.home-sidebar .sidebar-block--hot .sidebar-list-more a:hover {
  background: #1a73e8;
  color: #fff;
  text-decoration: none;
}

/* 区块标题（通用） */
.section-title {
  font-size: 16px;
  font-weight: bold;
  color: #222;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid #1a73e8;
}

/* 文章列表（列表页/资讯列表）- 紧凑自适应，选择器提高优先级避免被覆盖 */
.main ul.article-list,
.main .article-list { list-style: none; margin: 0; padding: 0; }
.main .article-list > li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: background 0.2s;
}
.main .article-list > li:hover { background: #fafafa; }
.main .article-list > li:first-child { padding-top: 0; }
.main .article-list .thumb {
  flex-shrink: 0;
  width: 140px;
  height: 94px;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 6px;
  transition: box-shadow 0.2s;
}
.main .article-list > li:hover .thumb { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.main .article-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.main .article-list .info { flex: 1; min-width: 0; }
.main .article-list .category { font-size: 11px; color: #1a73e8; margin-bottom: 2px; display: inline-block; }
.main .article-list .title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.main .article-list .title a { color: inherit; }
.main .article-list .title a:hover { color: #1a73e8; text-decoration: none; }
.main .article-list .excerpt {
  font-size: 12px;
  color: #666;
  line-height: 1.45;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.main .article-list .meta { font-size: 11px; color: #999; }

@media (max-width: 640px) {
  .main .article-list > li { flex-direction: column; gap: 10px; padding: 10px 0; }
  .main .article-list .thumb { width: 100%; height: 140px; max-width: 100%; }
  .main .article-list .title { font-size: 13px; }
  .main .article-list .excerpt { font-size: 12px; }
}

/* ========== 首页：侧边栏区块 ========== */
.home-sidebar .sidebar-block {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
  border: 1px solid #eee;
}
.home-sidebar .sidebar-block--hot { margin-bottom: 20px; }
.home-sidebar .sidebar-block h3 {
  font-size: 15px;
  font-weight: bold;
  color: #222;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1a73e8;
}
.home-sidebar .sidebar-list { list-style: none; margin: 0; padding: 0; }
.home-sidebar .sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #e5e5e5;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.home-sidebar .sidebar-list li:last-child { border-bottom: none; }
.home-sidebar .sidebar-list-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
  border-radius: 4px;
}
.home-sidebar .sidebar-list-title {
  flex: 1;
  min-width: 0;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-sidebar .sidebar-list-title:hover { color: #1a73e8; text-decoration: none; }
.home-sidebar .sidebar-list a { color: inherit; }
.home-sidebar .sidebar-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* 手机端：首页主体/侧栏/最新资讯/热门/联系我们 宽度自适应，不撑出视口 */
@media (max-width: 960px) {
  .home-body { width: 100%; }
  .home-main, .home-sidebar { width: 100%; }
}
@media (max-width: 640px) {
  .home-section .section-title { font-size: 15px; }
  .home-sidebar .sidebar-block { padding: 14px 16px; }
  .home-sidebar .sidebar-block h3 { font-size: 14px; }
  .home-sidebar .sidebar-list li { padding: 10px 0; }
  .home-sidebar .sidebar-list-title { font-size: 13px; }
  .contact-icons--sidebar { gap: 8px; }
  .contact-icons--sidebar a,
  .contact-icons--sidebar span { width: 40px; height: 40px; }
  .contact-icons--sidebar svg { width: 20px; height: 20px; }
}
.home-sidebar .sidebar-desc a { color: #1a73e8; }

/* 分页 */
.pagination {
  margin-top: 28px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 14px;
  -webkit-tap-highlight-color: transparent;
}
.pagination a:hover { border-color: #1a73e8; color: #1a73e8; background: #f8fbff; }
.pagination .current { background: #1a73e8; color: #fff; border-color: #1a73e8; }

/* 面包屑 */
.breadcrumb { font-size: 13px; color: #666; margin-bottom: 16px; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #1a73e8; }
.breadcrumb-sep { margin: 0 6px; color: #bbb; }
.breadcrumb .current { color: #222; }

/* 文章详情 */
.article-single { max-width: 800px; margin: 0 auto; }
.article-single .category { font-size: 12px; color: #1a73e8; margin-bottom: 8px; }
.article-single h1 {
  font-size: 24px;
  font-weight: bold;
  color: #222;
  line-height: 1.4;
  margin-bottom: 12px;
}
.article-single .meta { font-size: 13px; color: #666; margin-bottom: 8px; }
.article-single .post-tags { font-size: 13px; color: #666; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.article-single .post-tags a { margin-right: 6px; }
.footer-tags { font-size: 13px; line-height: 1.8; }
.footer-tags a { margin-right: 8px; }
.article-single .featured-img { margin-bottom: 24px; }
.article-single .featured-img img { width: 100%; }
.article-excerpt {
  margin-bottom: 28px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  background: #f8f9fa;
  border-left: 4px solid #1a73e8;
  border-radius: 0 8px 8px 0;
}
.article-body {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}
.article-body p { margin-bottom: 16px; }
.article-body h2 { font-size: 18px; font-weight: bold; margin: 24px 0 12px; color: #222; }
.article-body h3 { font-size: 16px; font-weight: bold; margin: 20px 0 10px; color: #222; }
.article-body ul, .article-body ol { margin: 0 0 16px 24px; }
.article-body blockquote {
  margin: 20px 0;
  padding: 12px 20px;
  border-left: 4px solid #1a73e8;
  background: #f8fbff;
  color: #555;
}
.share-bar { margin-top: 28px; padding-top: 20px; border-top: 1px solid #eee; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-label { font-size: 13px; color: #666; }
.share-btn { padding: 6px 14px; border: 1px solid #ddd; background: #fff; border-radius: 6px; font-size: 13px; color: #333; cursor: pointer; text-decoration: none; }
.share-btn:hover { border-color: #1a73e8; color: #1a73e8; background: #f8fbff; }
.related-section { width: 100%; max-width: 800px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid #eee; box-sizing: border-box; }
.related-title { font-size: 16px; font-weight: 600; color: #222; margin-bottom: 16px; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.related-card { margin: 0; }
.related-card-link { display: block; text-decoration: none; color: inherit; background: #fafafa; border-radius: 8px; overflow: hidden; border: 1px solid #eee; transition: border-color .2s, box-shadow .2s; }
.related-card-link:hover { border-color: #1a73e8; box-shadow: 0 4px 12px rgba(26,115,232,.12); }
.related-card-img-wrap { display: block; position: relative; width: 100%; padding-bottom: 56.25%; background: #eee; overflow: hidden; }
.related-card-img-wrap img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.related-card-placeholder { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #999; }
.related-card-title { display: -webkit-box; padding: 10px 12px 4px; font-size: 14px; font-weight: 500; color: #222; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.related-card-meta { display: block; padding: 0 12px 10px; font-size: 12px; color: #888; }
@media (max-width: 768px) {
  .related-section { margin-top: 32px; padding-top: 20px; }
  .related-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .related-card-title { font-size: 13px; padding: 8px 10px 2px; }
  .related-card-meta { padding: 0 10px 8px; font-size: 11px; }
}
@media (max-width: 480px) {
  .related-list { grid-template-columns: 1fr; gap: 12px; }
}
.indexing-notes { font-size: 15px; line-height: 1.8; }
.indexing-empty { color: #999; font-style: italic; }
.list-empty { padding: 32px 24px; text-align: center; background: #f8f9fa; border-radius: 8px; margin-top: 16px; }
.list-empty-msg { font-size: 15px; color: #666; margin-bottom: 8px; }
.list-empty-hint { font-size: 13px; color: #999; max-width: 480px; margin: 0 auto; line-height: 1.6; }
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #f0f0f0; border-color: #1a73e8; color: #1a73e8; }
@media (max-width: 768px) {
  .back-to-top {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* 关于页 */
.page-header { margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.page-header h1 { font-size: 22px; font-weight: bold; color: #222; }
.page-content { font-size: 15px; line-height: 1.8; max-width: 720px; }
.page-content p { margin-bottom: 14px; }
.page-content h2 { font-size: 17px; font-weight: bold; margin: 24px 0 10px; }
.page-content ul { margin: 0 0 14px 24px; }

/* 页脚 */
.site-footer {
  margin-top: 48px;
  padding: 32px 20px 24px;
  background: #f8f9fa;
  border-top: 1px solid #e8e8e8;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .site-footer { padding: 24px 12px 20px; margin-top: 32px; }
  .footer-inner { gap: 24px; flex-direction: column; }
  .footer-bottom { padding-left: 12px; padding-right: 12px; font-size: 11px; }
}
.footer-brand { font-size: 16px; font-weight: bold; color: #222; margin-bottom: 8px; }
.footer-brand a { color: inherit; }
.footer-desc { font-size: 13px; color: #666; line-height: 1.6; max-width: 400px; }
.footer-links h4 { font-size: 13px; color: #666; margin-bottom: 8px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 4px; }
.footer-links a { color: #666; font-size: 13px; }
.footer-links a:hover { color: #1a73e8; }
.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
  font-size: 12px;
  color: #999;
  text-align: center;
}

/* 联系页：固定社交图标 */
.contact-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  align-items: center;
}
.contact-icons a,
.contact-icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #555;
  transition: background 0.2s, color 0.2s;
}
.contact-icons a:hover {
  background: #1a73e8;
  color: #fff;
  text-decoration: none;
}
.contact-icons svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* 侧栏联系我们：仅图标，紧凑排列 */
.contact-icons--sidebar {
  margin-top: 8px;
  gap: 10px;
}
.contact-icons--sidebar a,
.contact-icons--sidebar span {
  width: 36px;
  height: 36px;
}
.contact-icons--sidebar svg {
  width: 18px;
  height: 18px;
}
.sidebar-contact .contact-icons--sidebar a:hover { text-decoration: none; }
