/**
 * =========================================================
 * YoLv - 优旅度假网 自定义样式
 * 基于 Bootstrap 5.3 + Bootswatch Cosmo 主题
 * =========================================================
 * 文件结构：
 *  1. CSS 变量与基础设定
 *  2. 全局基础样式
 *  3. 导航栏 (Navbar)
 *  4. 顶部横幅 / Hero 区域
 *  5. 卡片组件
 *  6. 搜索栏
 *  7. 分类标签 / 频道标题
 *  8. 侧边栏 (Sidebar)
 *  9. 文章栏目页
 * 10. 文章详情页
 * 11. 评论区
 * 12. 用户认证页（注册/登录）
 * 13. 用户个人资料页
 * 14. 页脚 (Footer)
 * 15. 动画与过渡效果
 * 16. 响应式适配
 * =========================================================
 */

/* =========================================================
   1. CSS 变量与基础设定
   ========================================================= */
:root {
  /* 主色调 - 蓝色系 */
  --yo-primary:        #2780e3;
  --yo-primary-dark:   #1a5fad;
  --yo-primary-light:  #5ba3ef;
  --yo-primary-pale:   #d4e6f9;
  --yo-primary-ultra:  #e8f3fd;

  /* 点缀色 */
  --yo-accent-orange:  #ff7518;
  --yo-accent-teal:    #20c997;
  --yo-accent-gold:    #f0ad4e;
  --yo-accent-coral:   #ff6b6b;

  /* 文字色 */
  --yo-text-dark:      #212529;
  --yo-text-medium:    #495057;
  --yo-text-light:     #868e96;
  --yo-text-muted:     #adb5bd;
  --yo-text-white:     #ffffff;

  /* 背景色 */
  --yo-bg-white:       #ffffff;
  --yo-bg-light:       #f0f6ff;
  --yo-bg-section:     #f8f9fa;
  --yo-bg-card:        #ffffff;

  /* 边框 */
  --yo-border:         #dee2e6;
  --yo-border-light:   #e9ecef;

  /* 阴影 */
  --yo-shadow-sm:      0 2px 8px rgba(39,128,227,0.08);
  --yo-shadow-md:      0 4px 20px rgba(39,128,227,0.12);
  --yo-shadow-lg:      0 8px 40px rgba(39,128,227,0.18);
  --yo-shadow-card:    0 2px 16px rgba(0,0,0,0.08);
  --yo-shadow-hover:   0 8px 32px rgba(39,128,227,0.20);

  /* 圆角 */
  --yo-radius-sm:      0.375rem;
  --yo-radius-md:      0.75rem;
  --yo-radius-lg:      1.25rem;
  --yo-radius-xl:      2rem;
  --yo-radius-pill:    50rem;

  /* 过渡 */
  --yo-transition:     all 0.3s ease;
  --yo-transition-fast:all 0.18s ease;

  /* 渐变 */
  --yo-grad-primary:   linear-gradient(135deg, #2780e3 0%, #1a5fad 100%);
  --yo-grad-hero:      linear-gradient(135deg, #0d3a6e 0%, #2780e3 50%, #1a9fd4 100%);
  --yo-grad-card:      linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75) 100%);
  --yo-grad-accent:    linear-gradient(135deg, #2780e3 0%, #20c997 100%);
  --yo-grad-warm:      linear-gradient(135deg, #ff7518 0%, #f0ad4e 100%);
}


/* =========================================================
   2. 全局基础样式
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--yo-text-dark);
  /* background-color: var(--yo-bg-white); */
  background-color: var(--yo-bg-section);
  line-height: 1.6;
}

a {
  color: var(--yo-primary);
  text-decoration: none;
  transition: var(--yo-transition-fast);
}
a:hover {
  color: var(--yo-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* 段落间距 */
p { margin-bottom: 1rem; }

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--yo-text-dark);
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--yo-bg-section); }
::-webkit-scrollbar-thumb { background: var(--yo-primary-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--yo-primary); }

/* 选中文字颜色 */
::selection {
  background: var(--yo-primary-pale);
  color: var(--yo-primary-dark);
}

/* 通用按钮样式增强 */
.btn {
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--yo-radius-sm);
  transition: var(--yo-transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* 主要按钮 */
.btn-primary {
  background: var(--yo-grad-primary);
  border: none;
  box-shadow: 0 4px 12px rgba(39,128,227,0.3);
}
.btn-primary:hover {
  background: var(--yo-primary-dark);
  box-shadow: 0 6px 20px rgba(39,128,227,0.4);
}

/* 圆角胶囊按钮 */
.btn-pill { border-radius: var(--yo-radius-pill) !important; }

/* Badge */
.badge { font-weight: 600; letter-spacing: 0.03em; }

/* 分割线 */
hr {
  border-color: var(--yo-border-light);
  opacity: 1;
}

/* 回到顶部按钮 */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--yo-grad-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  box-shadow: var(--yo-shadow-md);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: var(--yo-transition);
}
#backToTop:hover {
  background: var(--yo-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--yo-shadow-lg);
}
#backToTop.show { display: flex; }
/* .breadcrumb {
  align-items: center;
} */
.breadcrumb-item {
  font-size: 0.85rem;
}
.breadcrumb-item a {
  text-decoration: none;
}
.breadcrumb-item:first-child a::before {
  content: "\f425";
  font-family: "bootstrap-icons" !important;
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  margin-right: 0.25rem;
  line-height: 1;
  vertical-align: middle;
  transform: translateY(-2.5px);
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   3. 导航栏 (Navbar)
   ========================================================= */
.yo-navbar {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(39,128,227,0.1);
  padding: 0;
  transition: var(--yo-transition);
  z-index: 1030;
}

/* 滚动后导航栏效果 */
.yo-navbar.scrolled {
  box-shadow: 0 4px 24px rgba(39,128,227,0.18);
}

/* Logo 区域 */
.yo-navbar .navbar-brand {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.yo-logo-icon {
  width: 38px;
  height: 38px;
  /* background: var(--yo-grad-primary);
  border-radius: 10px; */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  /* box-shadow: 0 4px 12px rgba(39,128,227,0.3); */
}
.yo-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--yo-grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.yo-logo-sub {
  font-size: 0.65rem;
  color: var(--yo-text-light);
  display: block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-text-fill-color: var(--yo-text-light);
  line-height: 1;
  margin-top: -2px;
}

/* 导航链接*/
.yo-navbar .nav-link {
  color: var(--yo-text-dark) !important;
  font-weight: 600;
  padding: 1.1rem 0.85rem !important;
  font-size: 0.92rem;
  position: relative;
  transition: var(--yo-transition-fast);
  white-space: nowrap;
}
.yo-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--yo-grad-primary);
  border-radius: 2px 2px 0 0;
  transition: var(--yo-transition-fast);
}
.yo-navbar .nav-link:hover,
.yo-navbar .nav-link.active {
  color: var(--yo-primary) !important;
}
.yo-navbar .nav-link:hover::after,
.yo-navbar .nav-link.active::after {
  width: 70%;
}

/* 顶部信息栏 */
.yo-topbar {
  background: var(--yo-grad-primary);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  padding: 0.35rem 0;
}
.yo-topbar a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.yo-topbar a:hover { color: #fff; }
.yo-topbar .yo-topbar-links a {
  margin-left: 1rem;
}

/* 搜索输入框（导航栏内） */
.yo-navbar-search .form-control {
  border-radius: var(--yo-radius-pill) 0 0 var(--yo-radius-pill);
  border-right: none;
  border-color: var(--yo-border);
  font-size: 0.88rem;
  padding: 0.4rem 1rem;
}
.yo-navbar-search .btn {
  border-radius: 0 var(--yo-radius-pill) var(--yo-radius-pill) 0;
  padding: 0.4rem 1rem;
}

/* 下拉菜单 */
.yo-navbar .dropdown-menu {
  border: none;
  border-radius: var(--yo-radius-md);
  box-shadow: var(--yo-shadow-lg);
  padding: 0.5rem;
  min-width: 200px;
  animation: dropDown 0.2s ease;
}
.yo-navbar .dropdown-item {
  border-radius: var(--yo-radius-sm);
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--yo-text-dark);
  transition: var(--yo-transition-fast);
}
.yo-navbar .dropdown-item:hover {
  background: var(--yo-primary-ultra);
  color: var(--yo-primary);
}
.yo-navbar .dropdown-item i {
  width: 18px;
  margin-right: 0.4rem;
  color: var(--yo-primary-light);
}

@keyframes dropDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =========================================================
   4. 顶部横幅 / Hero 区域
   ========================================================= */

/* 首页 Hero 大轮播 */
.yo-hero {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  background: var(--yo-grad-hero);
}

.yo-hero-slide {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
}

.yo-hero-slide .yo-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}
.carousel-item.active .yo-slide-bg {
  transform: scale(1.05);
}

.yo-hero-slide .yo-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 30, 70, 0.72) 0%,
    rgba(39, 128, 227, 0.45) 100%
  );
}

.yo-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.yo-hero-content .yo-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: var(--yo-radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.yo-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.yo-hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.5rem;
  max-width: 520px;
}

/* 首页搜索框 Hero 区域 */
.yo-hero-search {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--yo-radius-lg);
  padding: 1.25rem;
  margin-top: 2rem;
}
.yo-hero-search .form-control,
.yo-hero-search .form-select {
  border: none;
  background: rgba(255,255,255,0.92);
  border-radius: var(--yo-radius-sm);
  font-size: 0.92rem;
}
.yo-hero-search .form-control:focus,
.yo-hero-search .form-select:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(39,128,227,0.25);
}
.yo-hero-search label {
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.yo-hero-search .btn-search {
  background: var(--yo-accent-orange);
  color: #fff;
  border: none;
  border-radius: var(--yo-radius-sm);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  width: 100%;
  box-shadow: 0 4px 16px rgba(255,117,24,0.35);
  transition: var(--yo-transition);
}
.yo-hero-search .btn-search:hover {
  background: #e06000;
  box-shadow: 0 6px 24px rgba(255,117,24,0.5);
  transform: translateY(-2px);
}

/* 轮播控件 */
.yo-hero .carousel-control-prev,
.yo-hero .carousel-control-next {
  width: 50px;
  opacity: 0;
  transition: var(--yo-transition);
}
.yo-hero:hover .carousel-control-prev,
.yo-hero:hover .carousel-control-next {
  opacity: 1;
}
.yo-hero .carousel-control-prev-icon,
.yo-hero .carousel-control-next-icon {
  width: 42px;
  height: 42px;
  background-color: rgba(255,255,255,0.2);
  border-radius: 50%;
  background-size: 55%;
  border: 1px solid rgba(255,255,255,0.3);
}
.yo-hero .carousel-indicators [data-bs-target] {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background-color: rgba(255,255,255,0.5);
  border: none;
  transition: var(--yo-transition);
}
.yo-hero .carousel-indicators .active {
  width: 48px;
  background-color: #fff;
}

/* 文章页 Hero 横幅（小版） */
.yo-page-hero {
  background: var(--yo-grad-hero);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.yo-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(39,128,227,0.3) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(32,201,151,0.2) 0%, transparent 50%);
}
.yo-page-hero .yo-page-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
  position: relative;
}
.yo-page-hero .breadcrumb {
  position: relative;
}
.yo-page-hero .breadcrumb-item,
.yo-page-hero .breadcrumb-item a {
  color: rgba(255,255,255,0.78);
}
.yo-page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.95); }
.yo-page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
}

/* 装饰波浪 */
.yo-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
}


/* =========================================================
   5. 卡片组件
   ========================================================= */

/* 通用图片卡片 */
.yo-card {
  background: var(--yo-bg-card);
  border-radius: var(--yo-radius-md);
  border: none;
  box-shadow: var(--yo-shadow-card);
  overflow: hidden;
  transition: var(--yo-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.yo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--yo-shadow-hover);
}

.yo-card-img-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.yo-card-img-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.yo-card:hover .yo-card-img-wrap img {
  transform: scale(1.08);
}

/* 图片上的分类标签 */
.yo-card-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--yo-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--yo-radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 1;
}
.yo-card-cat.orange { background: var(--yo-accent-orange); }
.yo-card-cat.teal   { background: var(--yo-accent-teal); }
.yo-card-cat.gold   { background: var(--yo-accent-gold); color: #333; }

/* 图片上的收藏按钮 */
.yo-card-fav {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  color: var(--yo-text-light);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--yo-transition-fast);
  z-index: 1;
  box-shadow: var(--yo-shadow-sm);
}
.yo-card-fav:hover, .yo-card-fav.active {
  color: var(--yo-accent-coral);
  transform: scale(1.1);
}

/* 卡片内容区 */
.yo-card-body {
  padding: 1.1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.yo-card-body h5, .yo-card-body h4 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--yo-text-dark);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yo-card-body h5 a, .yo-card-body h4 a {
  color: inherit;
}
.yo-card-body h5 a:hover, .yo-card-body h4 a:hover {
  color: var(--yo-primary);
}
.yo-card-body .yo-card-desc {
  color: var(--yo-text-medium);
  font-size: 0.88rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
  flex: 1;
}
.yo-card-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
  color: var(--yo-text-light);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--yo-border-light);
}
.yo-card-meta i { color: var(--yo-primary-light); font-size: 0.85rem; }

/* 评分星星 */
.yo-rating {
  color: var(--yo-accent-gold);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

/* 价格 */
.yo-price {
  font-weight: 800;
  color: var(--yo-accent-orange);
  font-size: 1.05rem;
}
.yo-price-old {
  font-size: 0.82rem;
  color: var(--yo-text-muted);
  text-decoration: line-through;
  margin-right: 0.3rem;
}

/* 特色卡片（大图竖版） */
.yo-feature-card {
  position: relative;
  border-radius: var(--yo-radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 380px;
  cursor: pointer;
  display: block;
}
.yo-feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yo-feature-card .yo-feature-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  color: #fff;
}
.yo-feature-card .yo-feature-info h3 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.yo-feature-card .yo-feature-info p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 0;
}

/* 目的地卡片（圆形大图风格） */
.yo-dest-card {
  text-align: center;
  cursor: pointer;
}
.yo-dest-card .yo-dest-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--yo-primary-pale);
  transition: var(--yo-transition);
  margin: 0 auto 0.85rem;
  display: block;
  box-shadow: 0 4px 16px rgba(39,128,227,0.15);
}
.yo-dest-card:hover .yo-dest-img {
  border-color: var(--yo-primary);
  transform: scale(1.06);
  box-shadow: var(--yo-shadow-hover);
}
.yo-dest-card h6 {
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.yo-dest-card small { color: var(--yo-text-light); }

/* 热门活动卡片（横向） */
.yo-activity-card {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: var(--yo-radius-md);
  box-shadow: var(--yo-shadow-card);
  overflow: hidden;
  transition: var(--yo-transition);
  margin-bottom: 1rem;
}
.yo-activity-card:hover {
  box-shadow: var(--yo-shadow-hover);
  transform: translateX(4px);
}
.yo-activity-card .yo-act-img {
  width: 90px;
  min-height: 90px;
  flex-shrink: 0;
}
.yo-activity-card .yo-act-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yo-activity-card .yo-act-body {
  padding: 0.75rem 1rem;
  flex: 1;
}
.yo-activity-card h6 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--yo-text-dark);
}

/* 数据统计卡片 */
.yo-stat-card {
  background: var(--yo-grad-primary);
  color: #fff;
  border-radius: var(--yo-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--yo-shadow-md);
}
.yo-stat-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.yo-stat-card .yo-stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.yo-stat-card .yo-stat-label {
  font-size: 0.9rem;
  opacity: 0.88;
}

/* 小号列表文章卡 */
.yo-list-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--yo-border-light);
  align-items: flex-start;
}
.yo-list-card:last-child { border-bottom: none; }
.yo-list-card img,.yo-list-card .thumb {
  width: 80px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--yo-radius-sm);
  flex-shrink: 0;
}
.yo-list-card h6 {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.25rem;
  color: var(--yo-text-dark);
}
.yo-list-card h6 a { color: inherit; }
.yo-list-card h6 a:hover { color: var(--yo-primary); }
.yo-list-card small { color: var(--yo-text-light); font-size: 0.76rem; }


/* =========================================================
   6. 搜索栏（独立区域）
   ========================================================= */
.yo-search-bar {
  background: #fff;
  border-radius: var(--yo-radius-lg);
  box-shadow: var(--yo-shadow-lg);
  padding: 1.5rem 2rem;
  position: relative;
  z-index: 5;
}

.yo-search-tabs .nav-link {
  color: var(--yo-text-medium);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--yo-radius-pill);
  border: none;
}
.yo-search-tabs .nav-link.active {
  background: var(--yo-primary);
  color: #fff;
}
.yo-search-tabs .nav-link i { margin-right: 0.3rem; }

.yo-search-input-group .input-group-text {
  background: var(--yo-bg-light);
  border-color: var(--yo-border);
  color: var(--yo-primary);
  font-size: 0.95rem;
}
.yo-search-input-group .form-control {
  border-color: var(--yo-border);
  font-size: 0.92rem;
}
.yo-search-input-group .form-control:focus {
  border-color: var(--yo-primary);
  box-shadow: 0 0 0 3px rgba(39,128,227,0.15);
}


/* =========================================================
   7. 分类标签 / 频道标题
   ========================================================= */
.yo-section {
  padding: 3.5rem 0;
}
.yo-section-sm { padding: 2.5rem 0; }
.yo-bg-light-blue { background: var(--yo-bg-light); }
.yo-bg-section { background: var(--yo-bg-section); }

/* 区块标题 */
.yo-section-header {
  margin-bottom: 2rem;
}
.yo-section-header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--yo-text-dark);
  margin-bottom: 0;
  position: relative;
  display: inline-block;
}
/* .yo-section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--yo-grad-primary);
  border-radius: 2px;
  margin-top: 0.4rem;
} */
/* .yo-section-header h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--yo-grad-primary);
  border-radius: 2px;
  margin-right: 0.5rem;
  vertical-align: middle;
  transform: translateY(-2px);
} */
.yo-section-header p {
  color: var(--yo-text-medium);
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.yo-section-header .yo-view-all {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--yo-primary);
}
.yo-section-header .yo-view-all i { font-size: 0.78rem; }
.yo-section-header .yo-view-all:hover { color: var(--yo-primary-dark); }

/* 分类筛选标签 */
.yo-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.yo-filter-tab {
  padding: 0.35rem 1rem;
  border-radius: var(--yo-radius-pill);
  border: 1.5px solid var(--yo-border);
  background: transparent;
  color: var(--yo-text-medium);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--yo-transition-fast);
}
.yo-filter-tab:hover,
.yo-filter-tab.active {
  background: var(--yo-primary);
  border-color: var(--yo-primary);
  color: #fff;
}


/* =========================================================
   8. 侧边栏 (Sidebar)
   ========================================================= */
.yo-sidebar {
  /* 侧边栏容器 */
}

/* 侧边栏小部件 */
.yo-widget {
  background: #fff;
  border-radius: var(--yo-radius-md);
  box-shadow: var(--yo-shadow-card);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.yo-widget-header {
  background: var(--yo-grad-primary);
  color: #fff;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
}
.yo-widget-body {
  padding: 1.1rem 1.25rem;
}

/* 标签云 */
.yo-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.yo-tag {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: var(--yo-radius-pill);
  background: var(--yo-primary-ultra);
  color: var(--yo-primary);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--yo-primary-pale);
  transition: var(--yo-transition-fast);
  cursor: pointer;
}
.yo-tag:hover {
  background: var(--yo-primary);
  color: #fff;
  border-color: var(--yo-primary);
}

/* 侧边热门文章 */
.yo-popular-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--yo-border-light);
}
.yo-popular-item:last-child { border-bottom: none; }
.yo-popular-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--yo-primary-pale, #e8f0fe);
  color: var(--yo-primary);
  font-weight: 600;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.yo-popular-item:first-child .yo-popular-num {
  background: var(--yo-primary);
  color: #fff;
}
.yo-popular-item:nth-child(1) .yo-popular-num { background: var(--yo-primary); color: #fff; }
.yo-popular-item:nth-child(2) .yo-popular-num { background: #20c997; color: #fff; }
.yo-popular-item:nth-child(3) .yo-popular-num { background: var(--yo-accent-orange, #ff7518); color: #fff; }
.yo-popular-item h6 {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.15rem;
  color: var(--yo-text-dark);
}
.yo-popular-item h6 a { color: inherit; }
/* .yo-popular-item h6 a { color: inherit; text-decoration: none; } */
.yo-popular-item h6 a:hover { color: var(--yo-primary); }
.yo-popular-item small { color: var(--yo-text-light); font-size: 0.75rem; }

/* 广告/推荐 Banner 侧边栏 */
.yo-sidebar-banner {
  border-radius: var(--yo-radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  cursor: pointer;
}
.yo-sidebar-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.yo-sidebar-banner:hover img { transform: scale(1.04); }

/* 天气小部件 */
.yo-weather-widget {
  background: var(--yo-grad-primary);
  border-radius: var(--yo-radius-md);
  padding: 1.25rem;
  color: #fff;
  margin-bottom: 1.5rem;
  box-shadow: var(--yo-shadow-md);
}
.yo-weather-city { font-size: 0.82rem; opacity: 0.85; margin-bottom: 0.25rem; }
.yo-weather-temp { font-size: 3rem; font-weight: 800; line-height: 1; }
.yo-weather-icon { font-size: 2.5rem; opacity: 0.9; }
.yo-weather-desc { font-size: 0.9rem; opacity: 0.88; margin-top: 0.3rem; }


/* =========================================================
   9. 文章栏目页
   ========================================================= */
.yo-article-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* 分页样式 */
.yo-pagination .page-link,
.yo-pagination .page-item > a {
  display: block;
  color: var(--yo-primary);
  border: 1px solid var(--yo-border);
  border-radius: var(--yo-radius-sm) !important;
  margin: 0 2px;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  min-width: 38px;
  transition: var(--yo-transition-fast);
}
.yo-pagination .page-link:hover,
.yo-pagination .page-item > a:hover {
  background: var(--yo-primary-pale);
  border-color: var(--yo-primary-pale);
  color: var(--yo-primary-dark);
}
.yo-pagination .page-item.active .page-link {
  background: var(--yo-primary);
  border-color: var(--yo-primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(39,128,227,0.3);
}
.yo-pagination .page-item.disabled .page-link {
  color: var(--yo-text-muted);
  background: transparent;
}

/* 文章列表页筛选工具栏 */
.yo-toolbar {
  background: #fff;
  border-radius: var(--yo-radius-md);
  padding: 0.85rem 1.25rem;
  box-shadow: var(--yo-shadow-sm);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.yo-toolbar .yo-result-count {
  color: var(--yo-text-medium);
  font-size: 0.88rem;
}
.yo-toolbar .yo-result-count strong { color: var(--yo-primary); }
.yo-view-btns .btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.88rem;
  border-color: var(--yo-border);
  color: var(--yo-text-light);
}
.yo-view-btns .btn.active {
  background: var(--yo-primary);
  border-color: var(--yo-primary);
  color: #fff;
}

/* 列表视图 */
.yo-list-view .yo-card {
  flex-direction: row;
}
.yo-list-view .yo-card-img-wrap img {
  width: 200px;
  height: 150px;
}


/* =========================================================
   10. 文章详情页
   ========================================================= */
.yo-article-hero {
  height: 380px;
  border-radius: var(--yo-radius-lg, 1rem);
  overflow: hidden;
  position: relative;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.yo-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yo-article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.75) 100%);
}
.yo-article-hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: #fff;
}
.yo-article-detail {
  background: #fff;
  border-radius: var(--yo-radius-lg);
  box-shadow: var(--yo-shadow-card);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

/* 文章头图 */
.yo-article-cover {
  border-radius: var(--yo-radius-md);
  overflow: hidden;
  margin: -2.5rem -2.5rem 2rem;
  position: relative;
}
.yo-article-cover img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.yo-article-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 20, 50, 0.6) 100%
  );
}

/* 文章标题区 */
.yo-article-header { margin-bottom: 1.5rem; }
.yo-article-cats { margin-bottom: 0.75rem; }
.yo-article-cats .badge {
  margin-right: 0.4rem;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
}
.yo-article-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--yo-text-dark);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.yo-article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--yo-border-light);
  border-bottom: 1px solid var(--yo-border-light);
  margin-bottom: 1.5rem;
}
.yo-article-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.yo-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yo-primary-pale);
}
.yo-author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--yo-text-dark);
}
.yo-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--yo-text-light);
}
.yo-meta-item i { color: var(--yo-primary-light); }

/* 文章正文 */
.yo-article-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--yo-text-dark);
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.yo-article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--yo-primary-dark);
  padding-left: 1rem;
  border-left: 4px solid var(--yo-primary);
}
.yo-article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.yo-article-content p { margin-bottom: 1.25rem; }
.yo-article-content blockquote {
  background: var(--yo-primary-ultra);
  border-left: 4px solid var(--yo-primary);
  border-radius: 0 var(--yo-radius-sm) var(--yo-radius-sm) 0;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--yo-text-medium);
  font-style: italic;
  font-size: 1.05rem;
}
.yo-article-content img,
.yo-article-content video,
.yo-article-content iframe {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 1.5rem auto;
  border-radius: var(--yo-radius-md);
  box-shadow: var(--yo-shadow-sm);
}
.yo-article-content ul, .yo-article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.yo-article-content li { margin-bottom: 0.4rem; }

.yo-article-content a {
  color: #0d6efd;
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 110, 253, 0.2);
  transition: all 0.2s ease;
}

.yo-article-content a:hover {
  text-decoration: none;
  border-bottom-color: #0d6efd;
}

/* 实用信息卡 */
.yo-info-box {
  background: var(--yo-bg-light);
  border: 1px solid var(--yo-primary-pale);
  border-radius: var(--yo-radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.yo-info-box-title {
  font-weight: 800;
  color: var(--yo-primary);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* 社交分享 */
.yo-share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.yo-share-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--yo-text-medium);
  margin-right: 0.25rem;
}
.yo-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--yo-radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--yo-transition-fast);
  color: #fff;
}
.yo-share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.yo-share-weibo   { background: #e6162d; }
.yo-share-wechat  { background: #07c160; }
.yo-share-weixin  { background: #1aad19; }
.yo-share-twitter { background: #1da1f2; }
.yo-share-link    { background: var(--yo-text-medium); }

/* 标签 */
.yo-article-tags {
  margin-top: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--yo-border-light);
}
.yo-article-tags .yo-tag { font-size: 0.82rem; }

/* 上一篇/下一篇 */
.yo-article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.yo-article-nav-item {
  background: #fff;
  border-radius: var(--yo-radius-md);
  box-shadow: var(--yo-shadow-card);
  padding: 1.1rem 1.25rem;
  transition: var(--yo-transition);
  cursor: pointer;
  display: block;
}
.yo-article-nav-item:hover {
  box-shadow: var(--yo-shadow-hover);
  transform: translateY(-3px);
  color: inherit;
}
.yo-article-nav-item .yo-nav-label {
  font-size: 0.75rem;
  color: var(--yo-text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.yo-article-nav-item h6 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--yo-text-dark);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yo-article-nav-item.next { text-align: right; }
.yo-article-nav-item.next .yo-nav-label { justify-content: flex-end; }


/* =========================================================
   11. 评论区
   ========================================================= */
.yo-comments {
  background: #fff;
  border-radius: var(--yo-radius-lg);
  box-shadow: var(--yo-shadow-card);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
}
.yo-comments-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.yo-comments-title i { color: var(--yo-primary); }

/* 单条评论 */
.yo-comment {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--yo-border-light);
}
.yo-comment:last-child { border-bottom: none; }
.yo-comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--yo-primary-pale);
}
.yo-comment-content { flex: 1; }
.yo-comment-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}
.yo-comment-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--yo-text-dark);
}
.yo-comment-time {
  font-size: 0.76rem;
  color: var(--yo-text-muted);
}
.yo-comment-text {
  font-size: 0.92rem;
  color: var(--yo-text-medium);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.yo-comment-actions {
  display: flex;
  gap: 0.85rem;
}
.yo-comment-action {
  background: none;
  border: none;
  color: var(--yo-text-light);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--yo-transition-fast);
  font-weight: 600;
}
.yo-comment-action:hover { color: var(--yo-primary); }
.yo-comment-action.liked { color: var(--yo-accent-coral); }

/* 嵌套回复 */
.yo-comment-replies {
  margin-top: 0.75rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--yo-primary-pale);
}
.yo-comment-replies .yo-comment {
  padding: 0.75rem 0;
}
.yo-comment-replies .yo-comment-avatar {
  width: 34px;
  height: 34px;
}

/* 发表评论表单 */
.yo-comment-form {
  background: var(--yo-bg-section);
  border-radius: var(--yo-radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.yo-comment-form h5 {
  font-weight: 800;
  margin-bottom: 1.1rem;
  font-size: 1rem;
}
.yo-comment-form .form-control {
  border-color: var(--yo-border);
  border-radius: var(--yo-radius-sm);
  font-size: 0.92rem;
}
.yo-comment-form .form-control:focus {
  border-color: var(--yo-primary);
  box-shadow: 0 0 0 3px rgba(39,128,227,0.15);
}


/* =========================================================
   12. 用户认证页（注册/登录）
   ========================================================= */
.yo-auth-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, #0d3a6e 0%, #2780e3 60%, #20c997 100%);
  display: flex;
  align-items: center;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.yo-auth-page::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.yo-auth-page::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -8%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

/* 左侧信息面板 */
.yo-auth-info {
  color: #fff;
  padding: 2rem;
  position: relative;
  z-index: 2;
}
.yo-auth-info h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}
.yo-auth-info p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.yo-auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.yo-auth-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}
.yo-auth-features li .yo-feat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  color: #fff;
}

/* 认证卡片 */
.yo-auth-card {
  background: #fff;
  border-radius: var(--yo-radius-xl);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  padding: 2.5rem;
  position: relative;
  z-index: 2;
}

/* Tab 切换 */
.yo-auth-tabs .nav-link {
  color: var(--yo-text-medium);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  transition: var(--yo-transition-fast);
  flex: 1;
  text-align: center;
}
.yo-auth-tabs .nav-link.active {
  color: var(--yo-primary);
  border-bottom-color: var(--yo-primary);
  background: transparent;
}
.yo-auth-tabs { border-bottom: 2px solid var(--yo-border-light); margin-bottom: 1.75rem; }

/* 表单控件 */
.yo-auth-form .form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--yo-text-medium);
  margin-bottom: 0.35rem;
}
.yo-auth-form .form-control {
  border-radius: var(--yo-radius-sm);
  border-color: var(--yo-border);
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  transition: var(--yo-transition-fast);
}
.yo-auth-form .form-control:focus {
  border-color: var(--yo-primary);
  box-shadow: 0 0 0 3px rgba(39,128,227,0.15);
}
.yo-auth-form .input-group .input-group-text {
  background: var(--yo-bg-section);
  border-color: var(--yo-border);
  color: var(--yo-primary);
}
.yo-auth-form .btn-primary {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--yo-radius-sm);
  background: var(--yo-grad-primary);
  border: none;
  box-shadow: 0 6px 20px rgba(39,128,227,0.35);
}
.yo-auth-form .btn-primary:hover {
  box-shadow: 0 8px 28px rgba(39,128,227,0.5);
  transform: translateY(-2px);
}

/* 第三方登录 */
.yo-social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
.yo-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--yo-border);
  border-radius: var(--yo-radius-sm);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--yo-transition-fast);
  color: var(--yo-text-dark);
}
.yo-social-btn:hover {
  border-color: var(--yo-primary);
  background: var(--yo-primary-ultra);
  color: var(--yo-primary);
  transform: translateY(-1px);
}

/* 协议文字 */
.yo-auth-terms {
  font-size: 0.78rem;
  color: var(--yo-text-light);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}
.yo-auth-terms a { color: var(--yo-primary); }

/* 强度条 */
.yo-password-strength {
  height: 4px;
  border-radius: 2px;
  background: var(--yo-border);
  margin-top: 0.4rem;
  overflow: hidden;
}
.yo-password-strength-bar {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: var(--yo-transition);
}
.strength-weak   { width: 33%; background: #ff0039; }
.strength-medium { width: 66%; background: var(--yo-accent-gold); }
.strength-strong { width: 100%; background: var(--yo-accent-teal); }


/* =========================================================
   13. 用户个人资料页
   ========================================================= */
.yo-profile-hero {
  background: var(--yo-grad-hero);
  padding: 3rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.yo-profile-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.yo-profile-card {
  background: #fff;
  border-radius: var(--yo-radius-xl);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  margin-top: -4rem;
  position: relative;
  overflow: hidden;
}
.yo-profile-header {
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid var(--yo-border-light);
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* 头像区 */
.yo-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.yo-profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.yo-avatar-edit {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  background: var(--yo-primary);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  transition: var(--yo-transition-fast);
}
.yo-avatar-edit:hover { background: var(--yo-primary-dark); }

.yo-profile-info h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.yo-profile-role {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--yo-primary-pale);
  color: var(--yo-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--yo-radius-pill);
  margin-bottom: 0.5rem;
}
.yo-profile-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.yo-profile-stat {
  text-align: center;
}
.yo-profile-stat .num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--yo-primary);
  display: block;
  line-height: 1;
}
.yo-profile-stat .lbl {
  font-size: 0.76rem;
  color: var(--yo-text-light);
  margin-top: 0.2rem;
}

/* 个人资料选项卡 */
.yo-profile-nav {
  padding: 0 2.5rem;
  background: #fff;
  border-bottom: 1px solid var(--yo-border-light);
}
.yo-profile-nav .nav-link {
  color: var(--yo-text-medium);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  transition: var(--yo-transition-fast);
}
.yo-profile-nav .nav-link.active,
.yo-profile-nav .nav-link:hover {
  color: var(--yo-primary);
  border-bottom-color: var(--yo-primary);
}
.yo-profile-nav .nav-link i { margin-right: 0.35rem; }

/* Tab 内容区 */
.yo-profile-tab-content {
  padding: 2rem 2.5rem;
}

/* 表单编辑区 */
.yo-profile-form .form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--yo-text-medium);
}
.yo-profile-form .form-control,
.yo-profile-form .form-select {
  border-color: var(--yo-border);
  border-radius: var(--yo-radius-sm);
  font-size: 0.92rem;
}
.yo-profile-form .form-control:focus,
.yo-profile-form .form-select:focus {
  border-color: var(--yo-primary);
  box-shadow: 0 0 0 3px rgba(39,128,227,0.15);
}

/* 收藏/历史记录列表 */
.yo-profile-fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

/* 消息列表 */
.yo-msg-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem;
  border-radius: var(--yo-radius-md);
  cursor: pointer;
  transition: var(--yo-transition-fast);
  border-bottom: 1px solid var(--yo-border-light);
}
.yo-msg-item:hover { background: var(--yo-bg-section); }
.yo-msg-item.unread { background: var(--yo-primary-ultra); }
.yo-msg-item img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.yo-msg-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--yo-text-dark);
  margin-bottom: 0.15rem;
}
.yo-msg-preview {
  font-size: 0.82rem;
  color: var(--yo-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
.yo-msg-time {
  font-size: 0.72rem;
  color: var(--yo-text-muted);
  white-space: nowrap;
  margin-left: auto;
}
.yo-msg-badge {
  background: var(--yo-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--yo-radius-pill);
  margin-left: auto;
}


/* =========================================================
   14. 页脚 (Footer)
   ========================================================= */
.yo-footer {
  background: #0d1b2a;
  color: rgba(255,255,255,0.8);
  padding-top: 3.5rem;
}

.yo-footer h5, .yo-footer h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.yo-footer p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

.yo-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.yo-footer-links li {
  margin-bottom: 0.5rem;
}
.yo-footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--yo-transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.yo-footer-links a::before {
  content: '›';
  color: var(--yo-primary-light);
}
.yo-footer-links a:hover { color: #fff; padding-left: 4px; }

.yo-footer-logo .yo-logo-text {
  -webkit-text-fill-color: #fff;
  background: none;
  font-size: 1.5rem;
}

/* 社交图标 */
.yo-social-icons {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.yo-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--yo-transition-fast);
  cursor: pointer;
  text-decoration: none;
}
.yo-social-icon:hover {
  background: var(--yo-primary);
  border-color: var(--yo-primary);
  color: #fff;
  transform: translateY(-3px);
}

/* 简报订阅 */
.yo-footer-newsletter .input-group {
  background: rgba(255,255,255,0.06);
  border-radius: var(--yo-radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.yo-footer-newsletter .form-control {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.88rem;
  padding: 0.6rem 1rem;
}
.yo-footer-newsletter .form-control::placeholder { color: rgba(255,255,255,0.4); }
.yo-footer-newsletter .form-control:focus { box-shadow: none; }
.yo-footer-newsletter .btn {
  background: var(--yo-primary);
  border: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
}
.yo-footer-newsletter .btn:hover { background: var(--yo-primary-dark); }

/* 页脚分割线 */
.yo-footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 2.5rem 0 0;
}

/* 页脚底部 */
.yo-footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 1rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.yo-footer-bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.yo-footer-bottom a:hover { color: #fff; }


/* =========================================================
   15. 动画与过渡效果
   ========================================================= */

/* 进入动画 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* 滚动触发动画（渐进增强处理） */
.yo-animate {
  /* transition: opacity 0.6s ease, transform 0.6s ease; */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 如果不支持 JS 或者 JS 加载超时，所有内容强制显示（降级处理） */
html:not(.yo-js-enabled) .yo-animate {
  opacity: 1 !important;
  transform: none !important;
}

/* 如果启用了 JS，且尚未添加 .yo-animated，则设为初始状态（隐藏） */
.yo-js-enabled .yo-animate:not(.yo-animated) {
  opacity: 0;
  transform: translateY(24px);
}

/* 当 Observer 触发并添加了 .yo-animated 时，显示内容 */
.yo-js-enabled .yo-animate.yo-animated {
  opacity: 1;
  transform: translateY(0);
}

/* 方向修正 */
.yo-js-enabled .yo-animate-left:not(.yo-animated) { transform: translateX(-24px); }
.yo-js-enabled .yo-animate-right:not(.yo-animated) { transform: translateX(24px); }
.yo-js-enabled .yo-animate-scale:not(.yo-animated) { transform: scale(0.92); }
.yo-animate.yo-animated.yo-animate-left,
.yo-animate.yo-animated.yo-animate-right,
.yo-animate.yo-animated.yo-animate-scale {
  transform: none;
}

/* 骨架屏加载 */
.yo-skeleton {
  background: linear-gradient(
    90deg,
    var(--yo-bg-section) 25%,
    var(--yo-border-light) 50%,
    var(--yo-bg-section) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--yo-radius-sm);
}

/* 浮动装饰球 */
.yo-float-1 { animation: float 6s ease-in-out infinite; }
.yo-float-2 { animation: float 6s ease-in-out infinite 2s; }
.yo-float-3 { animation: float 6s ease-in-out infinite 4s; }

/* 脉冲提示点 */
.yo-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yo-accent-teal);
  position: relative;
}
.yo-pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(32,201,151,0.3);
  animation: pulse 2s infinite;
}

/* 数字滚动动画 */
.yo-count-up {
  display: inline-block;
  transition: var(--yo-transition);
}

/* 页面加载进度条 */
.yo-progress-bar-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--yo-grad-accent);
  z-index: 9999;
  transition: width 0.2s ease;
  box-shadow: 0 0 8px rgba(39,128,227,0.5);
}

/* 阅读进度条 */
.yo-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--yo-grad-primary);
  z-index: 1035;
  transition: width 0.1s linear;
}


/* =========================================================
   16. 响应式适配
   ========================================================= */

/* 平板 */
@media (max-width: 991.98px) {
  .yo-section { padding: 2.5rem 0; }
  .yo-article-detail { padding: 1.5rem; }
  .yo-article-cover { margin: -1.5rem -1.5rem 1.5rem; }
  .yo-comments { padding: 1.5rem; }
  .yo-profile-header { padding: 1.5rem; }
  .yo-profile-tab-content { padding: 1.5rem; }
  .yo-auth-card { padding: 2rem; }
  .yo-article-nav { grid-template-columns: 1fr; }
}

/* 手机 */
@media (max-width: 767.98px) {
  .yo-hero { min-height: 420px; }
  .yo-hero-slide { min-height: 420px; }
  .yo-hero-search { display: none; } /* 手机隐藏复杂搜索框 */

  .yo-navbar .nav-link::after { display: none; }

  .yo-article-cover img { height: 240px; }
  .yo-article-meta-bar { gap: 0.75rem; }

  .yo-profile-header { flex-direction: column; align-items: flex-start; }
  .yo-profile-stats { gap: 1rem; }
  .yo-profile-nav { padding: 0 1rem; overflow-x: auto; white-space: nowrap; }
  .yo-profile-tab-content { padding: 1.25rem; }

  .yo-auth-page { padding: 1.5rem 0; }
  .yo-auth-info { display: none; }
  .yo-auth-card { padding: 1.5rem; border-radius: var(--yo-radius-lg); }

  .yo-stat-card .yo-stat-num { font-size: 2rem; }

  .yo-comments { padding: 1.1rem; }
  .yo-comment { gap: 0.6rem; }
  .yo-comment-avatar { width: 36px; height: 36px; }

  .yo-social-login { grid-template-columns: 1fr; }
}

/* 超小屏 */
@media (max-width: 575.98px) {
  .yo-section { padding: 2rem 0; }
  .yo-page-hero { padding: 2.5rem 0 2rem; }
  .yo-article-detail { padding: 1rem; border-radius: var(--yo-radius-md); }
  .yo-article-cover { margin: -1rem -1rem 1.25rem; }
  .yo-article-cover img { height: 200px; }
  .yo-article-title { font-size: 1.35rem; }
}

/* =========================================================
   辅助工具类 (Utility Classes)
   ========================================================= */
.bg-gradient-orange { background: linear-gradient(135deg, #ff7518, #e06000); }
.bg-gradient-teal { background: linear-gradient(135deg, #20c997, #0ea47a); }
.bg-gradient-primary { background: var(--yo-grad-primary); }

.icon-box-sm {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--yo-radius-sm, 0.375rem);
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.icon-box-md {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--yo-radius-md, 0.5rem);
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.yo-carousel-hero {
  min-height: 340px;
}
.yo-carousel-hero .carousel-item {
  min-height: 340px;
}
.yo-carousel-hero a {
  min-height: 340px;
}

/* =========================================================
   补充：页脚增强样式 & 友情链接栏
   ========================================================= */
.yo-footer-divider {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0;
}
.yo-social-icons {
  display: flex;
  gap: 0.6rem;
}
.yo-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.yo-social-icon:hover {
  background: var(--yo-primary);
  border-color: var(--yo-primary);
  color: #fff;
  transform: translateY(-3px);
}
.yo-friends-bar a:hover {
  color: var(--yo-primary) !important;
}
/* section-header view-all 箭头微动效 */
.yo-view-all {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--yo-primary);
  text-decoration: none;
  transition: gap 0.2s ease;
}
.yo-view-all:hover {
  color: var(--yo-primary-dark);
  gap: 0.4rem !important;
}
/* 右侧栏排名徽章修正 */
.yo-card .list-unstyled li:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* =========================================================
   补充样式：
   ========================================================= */
/* 多行文本截断 */
.text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

/* 暗色渐变遮罩（给幻灯片用） */
.yo-overlay-dark {
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75) 100%);
}
/* =========================================================
   图片通用交互特效 (Utility Classes)
   ========================================================= */

/* 特效一：纯图片悬停放大 (硬件加速丝滑版) */
.yo-hover-zoom {
  overflow: hidden;
  position: relative;
  display: block;
}
.yo-hover-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
  backface-visibility: hidden;
}

.yo-hover-zoom:hover img {
  transform: scale(1.08);
}

/* 特效二：自下而上的黑色渐变蒙版 (配合 yo-hover-zoom 使用) */
.yo-hover-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  /* 使用你原来定义的卡片渐变变量 */
  background: var(--yo-grad-card);
  opacity: 0;
  transition: opacity 0.4s ease-out;
  pointer-events: none; /* 防止蒙版遮挡图片上的 a 标签点击 */
  z-index: 1;
}
.yo-hover-zoom:hover.yo-hover-overlay::after,
.yo-hover-overlay:hover::after {
  opacity: 1;
}

/* 确保图片上的文字或标签在蒙版之上 */
/* .yo-hover-zoom > *:not(img) {
  position: relative;
  z-index: 2;
} */
