﻿@charset "UTF-8";
/* 典雅笔记风格：分类页面样式 */

/* 默认模式容器样式 */
.mode-default {
  color: #333;
  line-height: 1.5;
  font-size: 14px;
}

/* 文章列表标题 */
.mode-default .section-title {
  font-size: 13px;
  margin-bottom: 12px;
  font-weight: 400;
  border-bottom: 1px solid rgba(var(--theme-rgb), 0.15);
  padding-bottom: 8px;
  position: relative;
}

.mode-default .section-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: rgba(var(--theme-rgb), 0.7);
}

/* 列表项样式 */
.mode-default .heai-list-item {
  padding: 10px 0;
  margin-bottom: 6px;
  background-color: #fff;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(var(--theme-rgb), 0.15);
}

/* 列表容器样式 */
.mode-default .heai-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #fff;
}

.mode-default .heai-list-item:hover {
  background-color: rgba(var(--theme-rgb), 0.02);
}

.mode-default .heai-list-item .heai-title {
  font-weight: 500;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease;
  margin-bottom: 4px;
  display: block;
}

.mode-default .heai-list-item .heai-title:hover { 
  color: rgba(var(--theme-rgb), 0.8);
}

.mode-default .heai-list-item .heai-date {
  font-size: 12px;
  color: #999;
  margin-left: 10px;
}

/* 文章元信息样式 */
.mode-default .heai-list-item .heai-meta-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #888;
  margin-top: 2px;
  margin-bottom: 4px;
}

.mode-default .heai-list-item .heai-meta-info .heai-author,
.mode-default .heai-list-item .heai-meta-info .heai-comments {
  display: flex;
  align-items: center;
  gap: 3px;
}

.mode-default .heai-list-item .heai-meta-info .heai-author-icon,
.mode-default .heai-list-item .heai-meta-info .heai-comments-icon {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.mode-default .heai-list-item .heai-meta-info .heai-author-name {
  color: rgba(var(--theme-rgb), 0.8);
}

.mode-default .heai-list-item .heai-right-content {
  display: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .mode-default .heai-single-post { padding: 10px; margin-bottom: 15px; }
  .mode-default .heai-list-item { flex-direction: column; align-items: flex-start; }
  .mode-default .heai-list-item .heai-meta-info { flex-wrap: wrap; }
}

/* 默认模式：文章卡片样式 */
.mode-default .heai-single-post {
  border: 1px dashed rgba(var(--theme-rgb), 0.3); /* 其他三边：细、虚线、0.3透明 */
  border-left: 3px solid rgba(var(--theme-rgb), 0.6); /* 左侧保持加粗实线主题色 */
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  background-color: #fff;
  margin-bottom: 15px;
}

/* 默认模式下隐藏锁定图标与空的元信息 */
.mode-default .heai-lock { display: none; }
.mode-default .heai-list-meta:empty { display: none; }

/* 分类页面底部占位 */
.mode-default .heai-list:after {
  content: "";
  display: block;
  margin-top: 20px;
}

/* 默认模式：分页导航样式 */
.mode-default .navigation.pagination { margin-top: 20px; text-align: center; }
.mode-default .navigation.pagination .nav-links { display: inline-flex; gap: 5px; }
.mode-default .navigation.pagination .page-numbers {
  padding: 4px 10px;
  border-radius: 3px;
  background-color: rgba(var(--theme-rgb), 0.05);
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 13px;
}
.mode-default .navigation.pagination .page-numbers.current {
  background-color: rgba(var(--theme-rgb), 0.7);
  color: #fff;
}
.mode-default .navigation.pagination .page-numbers:hover:not(.current) { 
  background-color: rgba(var(--theme-rgb), 0.1);
}

/* 分类描述样式 */
.mode-default .heai-category-description {
  color: #555;
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 15px;
  padding: 10px 15px;
  background-color: rgba(var(--theme-rgb), 0.03);
  border-left: 3px solid rgba(var(--theme-rgb), 0.6);
}

/* 默认模式：文章列表样式 */
.mode-default .heai-list { 
  list-style: none; 
  margin: 0;
  padding: 0;
}

/* 状态样式 */
.mode-default .heai-list-item.done { color: rgba(108, 178, 142, 0.8); }
.mode-default .heai-list-item.current { color: rgba(var(--theme-rgb), 0.8); }
.mode-default .heai-list-item.available { color: rgba(158, 200, 239, 0.8); }
.mode-default .heai-list-item.locked { color: rgba(208, 208, 208, 0.8); }

/* 状态标签 */
.mode-default .warm-lock,
.mode-default .warm-check,
.mode-default .warm-current,
.mode-default .warm-available {
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
}

.mode-default .warm-check { background-color: rgba(108, 178, 142, 0.1); color: rgba(108, 178, 142, 0.9); }
.mode-default .warm-current { background-color: rgba(var(--theme-rgb), 0.1); color: rgba(var(--theme-rgb), 0.9); }
.mode-default .warm-available { background-color: rgba(158, 200, 239, 0.1); color: rgba(158, 200, 239, 0.9); }
.mode-default .warm-lock { background-color: rgba(208, 208, 208, 0.2); color: #777; }

/* 无内容提示 */
.mode-default .heai-no-posts {
  padding: 15px;
  text-align: center;
  color: #777;
  font-style: italic;
  background-color: rgba(var(--theme-rgb), 0.03);
  border: 1px solid rgba(var(--theme-rgb), 0.1);
  margin: 15px 0;
}

/* 默认模式：文章页面容器样式 */
.mode-default.heai-single-post {
  background-color: #f9f9f9;
  border-radius: 10px;
  margin: 20px 0;
}

/* 文章头部样式 */
.mode-default .entry-header { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.mode-default .entry-title {
  font-size: 22px;
  color: #333;
  margin: 0 0 12px;
  font-weight: 600;
  line-height: 1.4;
}
.mode-default .entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: #777;
  font-size: 14px;
}

/* 文章内容样式 */
.mode-default .entry-content { color: #333; font-size: 15px; line-height: 1.8; }
.mode-default .entry-content p { margin: 0 0 1em; }
.mode-default .entry-content h2 {
  font-size: 20px;
  color: #444;
  margin: 1.5em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.mode-default .entry-content h3 { font-size: 18px; color: #555; margin: 1.3em 0 0.7em; }
.mode-default .entry-content h4 { font-size: 16px; color: #666; margin: 1.2em 0 0.6em; }
.mode-default .entry-content blockquote {
  margin: 1em 0;
  padding: 10px 15px;
  border-left: 3px solid var(--primary-color);
  background-color: var(--primary-light);
  color: #6B4500;
}
.mode-default .entry-content ul,
.mode-default .entry-content ol { margin: 1em 0; padding-left: 2em; }
.mode-default .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
}

/* 文章底部样式 */
.mode-default .entry-footer { margin-top: 30px; padding-top: 15px; border-top: 1px solid #eee; }

/* 无文章提示 */
.mode-default .heai-no-posts {
  padding: 20px;
  text-align: center;
  color: #888;
  font-style: italic;
  background-color: #f5f5f5;
  border-radius: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .mode-default .entry-title { font-size: 20px; }
}

/* ===== 三按钮交互区效果（文章页） ===== */
.mode-default .heai-interaction-wrapper,
.mode-default .interaction-buttons { overflow: visible; }
.mode-default .interaction-buttons { align-items: center; }

.mode-default .interaction-buttons .heai-info-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(var(--theme-rgb), 0.08); border: 0; cursor: pointer; box-shadow: none;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
  padding: 0; position: relative; flex: 0 0 36px;
}
.mode-default .interaction-buttons .heai-info-circle:hover { transform: scale(1.05); }

.mode-default .progress-icon { width: 36px; height: 36px; flex: 0 0 36px; position: relative; }
.mode-default #heai-progress-widget { position: relative; }
.mode-default #heai-progress-widget .progress-details {
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  position: absolute !important;
  right: -20px !important;
  left: auto !important;
  top: 44px !important;
  margin: 0 !important;
  max-width: min(92vw, 320px);
  transform-origin: top right;
  z-index: 1000;
  transform: none !important;
}

.mode-default .heai-interaction-wrapper .hearts-button {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(var(--theme-rgb), 0.08);
  display: flex; align-items: center; justify-content: center;
  box-shadow: none; position: relative; flex: 0 0 36px; overflow: visible;
}

/* 点赞控件基础样式 */
.mode-default .heai-interaction-wrapper .hearts-button .wp-hearts {
  display: inline-block !important;
  position: relative;
  vertical-align: middle;
  line-height: 1;
}

/* hearts-button 内部提示气泡 */
.mode-default .heai-interaction-wrapper .hearts-button .msg {
  position: absolute;
  bottom: 100%;
  right: 0;
  transform: translateY(-6px);
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.mode-default .heai-interaction-wrapper .hearts-button .msg.show { opacity: 1; }

/* 全屏浮动爱心动画层 */
#heai-heart-layer { position: fixed; inset: 0; pointer-events: none; overflow: visible; z-index: 99999; }
.heai-float-heart {
  position: absolute;
  color: rgba(255, 0, 0, 0.85);
  font-size: 18px;
  animation: heai-float-up 2.6s ease-out forwards;
  will-change: transform, opacity;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.15));
}
@keyframes heai-float-up {
  from { transform: translate(var(--dx, 0), 0) scale(var(--s, 1)); opacity: 1; }
  to { transform: translate(var(--dx2, 0), -120vh) scale(calc(var(--s, 1) * 1.6)); opacity: 0; }
}

/* ===== 三按钮通用样式 ===== */
.heai-interaction-wrapper, .interaction-buttons { overflow: visible; }
.interaction-buttons { align-items: center; }

.interaction-buttons .heai-info-circle,
.heai-interaction-wrapper .hearts-button,
.progress-icon .icon-container {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(var(--theme-rgb), 0.08);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 36px;
}
.interaction-buttons .heai-info-circle {
  border: 0 !important; outline: none; cursor: pointer;
  padding: 0; position: relative; box-shadow: none;
  appearance: none; -webkit-appearance: none;
}
.interaction-buttons .heai-info-circle:focus,
.interaction-buttons .heai-info-circle:active {
  outline: none !important; box-shadow: none !important; border: 0 !important;
}
.heai-interaction-wrapper .hearts-button { position: relative; overflow: visible; }
.heai-interaction-wrapper .hearts-button .wp-hearts { position: relative; display: flex; align-items: center; justify-content: center; }
.heai-interaction-wrapper .hearts-button .count {
  position: absolute !important;
  top: -100%;
  left: 35%;
  transform: translate(-50%, 6px);
  height: 16px; line-height: 16px; min-width: 18px; padding: 0 6px;
  border-radius: 55px;
  background: #f9f9f9;
  color: #e5b87a;
  font-size: 10px;
  border: 1px solid rgba(255,99,132,0.22);
  box-shadow: none; pointer-events: none; z-index: 3;
  transition: background .2s ease, color .2s ease;
}
/* 隐藏点赞按钮上的计数徽标（如不需要） */
.heai-interaction-wrapper .hearts-button .count { display: none !important; }

.progress-icon { width: 36px; height: 36px; flex: 0 0 36px; position: relative; }
#heai-progress-widget { position: relative !important; }
/* Hearts 计数悬停样式 */
.heai-interaction-wrapper .hearts-button:hover .count {
  background: rgba(255,99,132,0.16);
  color: rgba(255,99,132,0.82);
}

/* 按钮内文字样式 */
.interaction-buttons .heai-info-circle .info-text {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  color: #7bc395;
  font-weight: 400;
}

/* === 点赞按钮基础 === */
.wp-hearts .wp-heart-btn {
  position: relative !important;
  display: inline-block !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}
.wp-hearts .wp-heart-btn i,
.wp-hearts .wp-heart-btn svg,
.wp-hearts .wp-heart-btn .heart,
.wp-hearts .wp-heart-btn .heart-fill,
.wp-hearts .wp-heart-btn .heart-icon,
.wp-hearts .wp-heart-btn::before,
.wp-hearts .wp-heart-btn::after {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%,-50%) !important;
  margin: 0 !important;
  pointer-events: none !important;
}
.wp-hearts .wp-heart-btn .heart-outline { opacity: 0; }

/* === iOS/WebKit 特定优化 === */
@supports (-webkit-touch-callout: none){
  .heai-float-heart{
    color: #ff6b81;
    opacity: .32;
    filter: none;
    text-shadow: 0 1px 0 rgba(0,0,0,.08);
  }
}

/* ========= 相关资源模块 ========= */
.heai-related-resources {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #eaeaea;
  background: transparent;
  border-radius: 0;
  font-size: 14px;
  color: #3a3a3a;
}
.mode-default .heai-related-resources { border-top-color: #e6dfc6; }
.heai-related-title {
  position: relative;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}
.heai-related-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--accent-color);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: -2px;
}
.heai-related-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 18px;
}
@media (min-width: 768px) {
  .heai-related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.heai-related-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #4a4a4a;
  line-height: 1.7;
}
.heai-related-item .heai-related-badge {
  background: none !important;
  color: #777 !important;
  font-weight: 500;
  padding: 0 !important;
  border-radius: 0 !important;
}
.heai-related-link {
  color: #1f1f1f;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.heai-related-link:hover { color: #6B4500; border-bottom-color: var(--accent-color); }
.heai-related-list > li, .heai-related-item { list-style: none !important; }


