@charset "UTF-8";
/*
Theme Name: Zhuiyi Theme
Theme URI: https://www.xu-long.com/
Author: XuLong
Author URI: https://www.xu-long.com/
Description: A lightweight responsive WordPress theme built with TailwindCSS.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Update URI: https://update.xu-long.com/themes/zhuiyi-fdsp.json
Text Domain: zhuiyi-fdsp
Domain Path: /languages
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
button {
  cursor: pointer
}

.has-submenu:hover>.sub-menu {
  display: block
}

.editor-visual-editor p,
.post-content p {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem
}

.editor-visual-editor h1,
.post-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem
}

.editor-visual-editor h2,
.post-content h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem
}

.editor-visual-editor h3,
.post-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 1rem
}

.editor-visual-editor h4,
.post-content h4 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: .75rem;
  margin-bottom: .75rem
}

.editor-visual-editor h5,
.post-content h5 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-top: .5rem;
  margin-bottom: .5rem
}

.editor-visual-editor h6,
.post-content h6 {
  font-size: 1rem;
  font-weight: 500;
  margin-top: .5rem;
  margin-bottom: .5rem
}

.editor-visual-editor ul,
.post-content ul,
.editor-visual-editor ol,
.post-content ol {
  margin: .5rem 0;
  padding: 0 1.5rem 0
}

.editor-visual-editor ul li,
.post-content ul li {
  margin: .2rem 0;
  list-style-type: disc;
  text-indent: .2rem
}

.editor-visual-editor ol li,
.post-content ol li {
  margin: .2rem 0;
  list-style-type: decimal;
  text-indent: .2rem
}

.table-responsive {
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  position: relative
}

.table-responsive table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e5e7eb
}

.table-responsive thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #f3f4f6
}

.table-responsive table thead {
  background-color: #f3f4f6
}

.table-responsive table th,
.wp-block-table th {
  padding: .5rem 1rem;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  color: #374151;
  border: 1px solid #e5e7eb !important;
  white-space: nowrap
}

.table-responsive table td,
.wp-block-table td {
  padding: .5rem 1rem;
  color: #111827;
  border: 1px solid #e5e7eb !important;
  white-space: nowrap
}

.table-responsive table tbody tr:nth-child(even) {
  background-color: #f9fafb
}

.table-responsive table tbody tr:hover {
  background-color: #f3f4f6
}

.bg-opacity-50 {
  opacity: 50%
}

.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}

.wp-block-embed iframe {
  width: 800px;
  height: 450px;
  max-width: 100%;
}

/**
 * ── 图片渐进式加载 ──
 * 图片渲染时从模糊→清晰淡入，无需 JS。
 * 配合 functions-seo.php 中 zhuiyi_image_seo_optimizer() 添加的 .progressive-load class。
 */
img.progressive-load {
  animation: progressive-fade-in 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes progressive-fade-in {
  0% {
    opacity: 0;
    transform: scale(0.97);
    filter: blur(6px);
  }
  50% {
    opacity: 0.6;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/**
 * ── 表格移动端横向滚动 ──
 */
.wp-block-table,
.entry-content table,
.post-content table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}