/* =========================================================
   SZYMWP 全局 CSS 优化版
   断点规则：
   1. >1600px：正常 PC
   2. 1025px - 1600px：小屏 PC
   3. 651px - 1024px：平板，按移动端逻辑处理
   4. <=650px：手机端，局部进一步压缩
========================================================= */


/* =========================
   全站背景
========================= */

html,
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(80, 145, 255, 0.1), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(204, 51, 102, 0.07), transparent 26rem),
    linear-gradient(180deg, #fbfcff 0%, #f6f8fc 45%, #ffffff 100%) !important;
}

#page,
.site,
.site-content,
.ast-container {
  background: transparent !important;
}


/* =========================
   品牌标志：独立猫图标 + 真实文字
========================= */

.szymwp-brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  margin: 0;
  color: #111827;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}

.szymwp-brand-lockup__mark {
  display: block !important;
  flex: 0 0 48px;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  object-fit: contain;
}

.szymwp-brand-lockup__name {
  display: block;
  color: currentColor;
  font-family: var(--szymwp-font-sans, system-ui, -apple-system, "Segoe UI", sans-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1;
}

a.szymwp-brand-lockup {
  transition: color 160ms ease;
}

a.szymwp-brand-lockup:hover,
a.szymwp-brand-lockup:focus-visible,
.elementor-element-62a59a5:hover .szymwp-brand-lockup,
.elementor-element-b836494:hover .szymwp-brand-lockup {
  color: #cc3366;
}

a.szymwp-brand-lockup:focus-visible {
  border-radius: 6px;
  outline: 2px solid #cc3366;
  outline-offset: 5px;
}

.szymwp-brand-lockup--footer .szymwp-brand-lockup__mark {
  flex-basis: 52px;
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  height: 52px !important;
}

.szymwp-brand-lockup--drawer {
  justify-content: center;
  width: 100%;
}

.szymwp-brand-lockup--drawer .szymwp-brand-lockup__mark {
  flex-basis: 58px;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
}

.szymwp-brand-lockup--drawer .szymwp-brand-lockup__name {
  font-size: 25px;
}

.elementor-element-906cdfb .elementor-shortcode {
  width: 100%;
}

@media (max-width: 1200px) {
  .szymwp-brand-lockup {
    gap: 8px;
  }

  .szymwp-brand-lockup__mark {
    flex-basis: 40px;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
  }

  .szymwp-brand-lockup__name {
    font-size: 21px;
  }
}

@media (max-width: 650px) {
  .szymwp-brand-lockup--header .szymwp-brand-lockup__mark,
  .szymwp-brand-lockup--footer .szymwp-brand-lockup__mark {
    flex-basis: 42px;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
  }

  .szymwp-brand-lockup--header .szymwp-brand-lockup__name,
  .szymwp-brand-lockup--footer .szymwp-brand-lockup__name {
    font-size: 20px;
  }
}


/* =========================
   锚点跳转防止被固定页眉挡住
   Header 高度由 JS 写入变量：
   --szymwp-header-scroll-padding
========================= */

:root {
  --szymwp-header-height: 114px;
  --szymwp-header-scroll-padding: 134px;
}

body:not(.elementor-editor-active) {
  padding-top: var(--szymwp-header-height) !important;
}

html {
  scroll-padding-top: var(--szymwp-header-scroll-padding);
}


/* =========================
   正文字号
========================= */

.post_content {
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.85;
}

@media (max-width: 1024px) {
  .post_content {
    font-size: 16px;
  }
}

@media (max-width: 650px) {
  .post_content {
    font-size: 15.5px;
  }
}


/* =========================
   目录图标：统一猫爪大小
========================= */

.elementor-widget-table-of-contents
  ol.elementor-toc__list-wrapper
  .elementor-toc__list-item-text-wrapper::before {
  content: "";
  display: inline-block;
  flex: 0 0 18px;

  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;

  margin-right: 6px;

  background-image: url("https://szymwp.com/wp-content/uploads/2025/08/猫爪-copy.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;

  vertical-align: -3px;
  transform-origin: center center;
}


/* =========================
   目录当前激活项
========================= */

.elementor-widget-table-of-contents .elementor-item-active {
  color: #cc3366 !important;
  transform: scale(1.03);
  display: inline-block;
  transform-origin: left center;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

/* 当前激活项整体放大时，抵消猫爪图标被一起放大的问题 */
.elementor-widget-table-of-contents
  .elementor-item-active
  .elementor-toc__list-item-text-wrapper::before {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-basis: 18px !important;
  transform: scale(0.971);
}


/* =========================
   正文标题前猫爪
========================= */

.post_content h2::before {
  content: "";
  display: inline-block;
  position: relative;
  top: 5px;

  width: 30px;
  height: 30px;
  margin-right: 8px;

  background-image: url("https://szymwp.com/wp-content/uploads/2025/08/猫爪-copy.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.post_content h3::before {
  content: "";
  display: inline-block;
  position: relative;
  top: 3px;

  width: 20px;
  height: 20px;
  margin-right: 8px;

  background-image: url("https://szymwp.com/wp-content/uploads/2025/08/猫爪-copy.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}


/* =========================
   短代码组件里的标题不加猫爪
========================= */

.post_content .szymwp-effect-showcase h2::before,
.post_content .szymwp-effect-showcase h3::before,
.post_content .szymwp-effect-showcase h4::before {
  content: none !important;
  display: none !important;
}


/* =========================================================
   Header Fixed 修复版
   解决 Header 搜索框输入时页面自动向上滚动
========================================================= */

/* 整个 Elementor Header 固定，不再使用 sticky */
body:not(.elementor-editor-active) header.elementor-location-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;

  width: 100%;
  z-index: 9999;

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  transform: none !important;
  will-change: auto !important;
  overflow-anchor: none;
}

/* 登录状态下避开 WordPress 顶部黑色管理栏 */
body.admin-bar:not(.elementor-editor-active) header.elementor-location-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar:not(.elementor-editor-active) header.elementor-location-header {
    top: 46px;
  }
}

/* 固定 Header 后，给页面顶部补空间，避免内容被压住 */
body:not(.elementor-editor-active) {
  padding-top: var(--szymwp-header-height, 116px);
}

/* 禁止里面两个子容器再单独 sticky / fixed */
body:not(.elementor-editor-active) header.elementor-location-header .szymwp-sticky-header,
body:not(.elementor-editor-active) header.elementor-location-header .elementor-element-62dbea0,
body:not(.elementor-editor-active) header.elementor-location-header .elementor-element-15cdf0f {
  position: relative !important;
  top: auto !important;
  z-index: auto !important;
  transform: none !important;
  will-change: auto !important;
  overflow-anchor: none;
}

/* 保证两行 Header 背景一致 */
body:not(.elementor-editor-active) header.elementor-location-header .elementor-element-62dbea0,
body:not(.elementor-editor-active) header.elementor-location-header .elementor-element-15cdf0f {
  background: transparent !important;
}

/* Header 内输入框不要触发浏览器滚动校正 */
body:not(.elementor-editor-active) header.elementor-location-header input,
body:not(.elementor-editor-active) header.elementor-location-header textarea,
body:not(.elementor-editor-active) header.elementor-location-header select {
  scroll-margin-top: 0 !important;
  scroll-padding-top: 0 !important;
}

/* Keep the header mark visually subordinate to the navigation. */
body:not(.elementor-editor-active)
  header.elementor-location-header
  .elementor-element-915cc6f {
  width: 168px !important;
  max-width: 168px !important;
  --container-widget-width: 168px !important;
}

body:not(.elementor-editor-active)
  header.elementor-location-header
  .elementor-element-915cc6f img {
  width: 100% !important;
  height: auto !important;
}

@media (max-width: 1600px) {
  body:not(.elementor-editor-active)
    header.elementor-location-header
    .elementor-element-915cc6f {
    width: 140px !important;
    max-width: 140px !important;
    --container-widget-width: 140px !important;
  }
}

@media (max-width: 650px) {
  body:not(.elementor-editor-active)
    header.elementor-location-header
    .elementor-element-915cc6f {
    width: 118px !important;
    max-width: 118px !important;
    --container-widget-width: 118px !important;
  }
}

/* Full-size article image viewer. */
body.szymwp-lightbox-open {
  overflow: hidden;
}

.szymwp-zoomable-image {
  cursor: zoom-in;
}

.szymwp-image-lightbox[hidden] {
  display: none !important;
}

.szymwp-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(7, 11, 20, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.szymwp-image-lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(1400px, 94vw);
  max-height: 92vh;
  margin: 0;
}

.szymwp-image-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(92vh - 52px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

.szymwp-image-lightbox__caption {
  max-width: 880px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.szymwp-image-lightbox__close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  text-indent: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.szymwp-image-lightbox__close:hover,
.szymwp-image-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}


/* =========================================================
   Header / Mobile 搜索框美化
   电脑端：elementor-element-65716bd
   手机端：elementor-element-7310055
========================================================= */

.elementor-element-65716bd,
.elementor-element-7310055 {
  width: 320px !important;
  max-width: 320px !important;
}

/* 搜索表单整体 */
.elementor-element-65716bd .e-search-form,
.elementor-element-7310055 .e-search-form {
  display: flex;
  align-items: center;

  width: 100%;
  height: 46px;

  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 999px;
  overflow: hidden;

  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);

  box-shadow:
    0 10px 26px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);

  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

/* 聚焦时 */
.elementor-element-65716bd .e-search-form:focus-within,
.elementor-element-7310055 .e-search-form:focus-within {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(204, 51, 102, 0.35);
  box-shadow:
    0 12px 30px rgba(204, 51, 102, 0.1),
    0 0 0 3px rgba(204, 51, 102, 0.08);
}

/* 输入区域 */
.elementor-element-65716bd .e-search-input-wrapper,
.elementor-element-7310055 .e-search-input-wrapper {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;

  display: flex;
  align-items: center;
}

/* 输入框 */
.elementor-element-65716bd .e-search-input,
.elementor-element-7310055 .e-search-input {
  width: 100%;
  height: 100%;
  padding: 0 16px 0 18px !important;

  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;

  color: #111;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

/* placeholder */
.elementor-element-65716bd .e-search-input::placeholder,
.elementor-element-7310055 .e-search-input::placeholder {
  color: rgba(17, 24, 39, 0.45);
  font-size: 14px;
}

/* 清除按钮图标 */
.elementor-element-65716bd .e-search-input-wrapper > svg,
.elementor-element-7310055 .e-search-input-wrapper > svg {
  width: 13px;
  height: 13px;
  margin-right: 8px;

  color: rgba(17, 24, 39, 0.35);
  fill: currentColor;
  cursor: pointer;
}

/* 搜索按钮 */
.elementor-element-65716bd .e-search-submit,
.elementor-element-7310055 .e-search-submit {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  min-width: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: none !important;
  border-radius: 999px;
  margin: 0;

  background: #111 !important;
  color: #fff !important;
  cursor: pointer;

  transition:
    background-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

/* 搜索按钮图标 */
.elementor-element-65716bd .e-search-submit svg,
.elementor-element-7310055 .e-search-submit svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* hover */
.elementor-element-65716bd .e-search-submit:hover,
.elementor-element-7310055 .e-search-submit:hover {
  background: #cc3366 !important;
  transform: scale(1.04);
  box-shadow: 0 8px 18px rgba(204, 51, 102, 0.25);
}

/* 点击 */
.elementor-element-65716bd .e-search-submit:active,
.elementor-element-7310055 .e-search-submit:active {
  transform: scale(0.96);
}

/* 搜索结果下拉容器 */
.elementor-element-65716bd .e-search-results-container,
.elementor-element-7310055 .e-search-results-container {
  margin-top: 10px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

/* 小屏 PC：1025px - 1600px */
@media (min-width: 1025px) and (max-width: 1600px) {
  .elementor-element-65716bd {
    width: 280px !important;
    max-width: 280px !important;
  }

  .elementor-element-65716bd .e-search-form {
    height: 42px;
  }

  .elementor-element-65716bd .e-search-submit {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex-basis: 42px;
  }

  .elementor-element-65716bd .e-search-submit svg {
    width: 16px;
    height: 16px;
  }

  .elementor-element-65716bd .e-search-input {
    font-size: 13px;
    padding-left: 16px !important;
  }
}

/* 平板 + 手机：<=1024px */
@media (max-width: 1024px) {
  .elementor-element-7310055 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .elementor-element-7310055 .e-search-form {
    height: 44px;
  }

  .elementor-element-7310055 .e-search-input {
    font-size: 14px;
    padding-left: 16px !important;
  }

  .elementor-element-7310055 .e-search-submit {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-basis: 44px;
  }

  .elementor-element-7310055 .e-search-submit svg {
    width: 16px;
    height: 16px;
  }
}

/* 手机：<=650px */
@media (max-width: 650px) {
  .elementor-element-7310055 .e-search-form {
    height: 42px;
  }

  .elementor-element-7310055 .e-search-input {
    font-size: 13px;
    padding-left: 14px !important;
  }

  .elementor-element-7310055 .e-search-input::placeholder {
    font-size: 13px;
  }

  .elementor-element-7310055 .e-search-submit {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex-basis: 42px;
  }

  .elementor-element-7310055 .e-search-submit svg {
    width: 15px;
    height: 15px;
  }
}


/* =========================================================
   SZYMWP 现代文章卡片
   使用方式：给 Elementor Posts 小组件或外层容器加 class:
   szymwp-modern-post-cards
========================================================= */

.szymwp-modern-post-cards .elementor-post {
  height: 100%;
}

.szymwp-modern-post-cards .elementor-post__card {
  position: relative;
  height: 100%;

  display: flex;
  flex-direction: column;
  overflow: hidden;

  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.szymwp-modern-post-cards .elementor-post__card:hover {
  transform: translateY(-4px);
  border-color: rgba(204, 51, 102, 0.22);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

/* 图片区域 */
.szymwp-modern-post-cards .elementor-post__thumbnail__link {
  display: block;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.szymwp-modern-post-cards .elementor-post__thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f5f7;
}

.szymwp-modern-post-cards .elementor-post__thumbnail img {
  width: 100% !important;
  height: 100% !important;

  display: block;
  object-fit: cover;

  transition: transform 0.45s ease;
}

/* 只在真正支持鼠标 hover 的设备上启用图片放大 */
@media (hover: hover) and (pointer: fine) {
  .szymwp-modern-post-cards
    .elementor-post__card:hover
    .elementor-post__thumbnail
    img {
    transform: scale(1.06);
  }
}

/* 触屏设备禁用图片放大，避免 iOS 圆角裁切失效 */
@media (hover: none), (pointer: coarse) {
  .szymwp-modern-post-cards .elementor-post__card:hover {
    transform: none !important;
  }

  .szymwp-modern-post-cards
    .elementor-post__card:hover
    .elementor-post__thumbnail
    img,
  .szymwp-modern-post-cards .elementor-post__thumbnail img {
    transform: none !important;
  }
}

/* 图片底部轻微渐变 */
.szymwp-modern-post-cards .elementor-post__thumbnail::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;

  height: 45%;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
  pointer-events: none;
}

/* 文字区域 */
.szymwp-modern-post-cards .elementor-post__text {
  flex: 1 1 auto;

  padding: 18px 18px 14px;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 标题 */
.szymwp-modern-post-cards .elementor-post__title {
  margin: 0 !important;

  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
}

.szymwp-modern-post-cards .elementor-post__title a {
  color: #111;
  text-decoration: none !important;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  transition: color 0.22s ease;
}

.szymwp-modern-post-cards .elementor-post__card:hover .elementor-post__title a {
  color: #cc3366;
}

/* 阅读更多按钮 */
.szymwp-modern-post-cards .elementor-post__read-more {
  width: fit-content;
  margin-top: auto;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 13px;

  background: #fff5f8;
  border: 1px solid rgba(204, 51, 102, 0.16);
  border-radius: 999px;

  color: #cc3366 !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;

  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

.szymwp-modern-post-cards .elementor-post__read-more:hover {
  background: #cc3366;
  border-color: #cc3366;
  color: #fff !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.e-con,
.e-con-inner,
.elementor-element,
.elementor-widget,
.elementor-widget-container {
  min-width: 0;
}

/* The current Gutenberg homepage prints a text arrow inside Read More.
 * Rebuild the visible label so its arrow is identical across system fonts. */
.sz-home-v2 .elementor-post__read-more.wp-block-read-more {
  --sz-home-read-more-size: 13px;
  gap: 6px;
  font-size: 0 !important;
}

.sz-home-v2 .elementor-post__read-more.wp-block-read-more::before {
  content: "阅读更多";
  font-size: var(--sz-home-read-more-size);
}

.sz-home-v2 .elementor-post__read-more.wp-block-read-more::after {
  --sz-arrow-color: #cc3366;
  content: "";
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background-color: rgba(204, 51, 102, 0.09);
  background-image:
    linear-gradient(45deg, transparent 42%, var(--sz-arrow-color) 43% 57%, transparent 58%),
    linear-gradient(135deg, transparent 42%, var(--sz-arrow-color) 43% 57%, transparent 58%);
  background-position:
    calc(50% + 1px) calc(50% - 3px),
    calc(50% + 1px) calc(50% + 3px);
  background-repeat: no-repeat;
  background-size: 8px 8px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.sz-home-v2 .elementor-post__read-more.wp-block-read-more:hover::after,
.sz-home-v2 .elementor-post__read-more.wp-block-read-more:focus-visible::after {
  --sz-arrow-color: #fff;
  background-color: rgba(255, 255, 255, 0.18);
  transform: translateX(2px);
}

/* Archive pagination: quiet by default, unmistakable when active. */
.elementor-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 48px 0 10px;
}

.elementor-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: #4b5563;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none !important;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.elementor-pagination a.page-numbers:hover {
  border-color: rgba(204, 51, 102, 0.32);
  background: #fff5f8;
  box-shadow: 0 11px 24px rgba(204, 51, 102, 0.12);
  color: #cc3366;
  transform: translateY(-2px);
}

.elementor-pagination .page-numbers.current {
  border-color: #cc3366;
  background: linear-gradient(135deg, #df3c75 0%, #c9265d 100%);
  box-shadow: 0 10px 22px rgba(204, 51, 102, 0.24);
  color: #fff;
}

.elementor-pagination .page-numbers.prev,
.elementor-pagination .page-numbers.next {
  min-width: 48px;
  padding-inline: 16px;
}

.elementor-pagination .page-numbers.dots {
  min-width: 28px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #9ca3af;
}

.elementor-pagination a.page-numbers:focus-visible {
  outline: 3px solid rgba(204, 51, 102, 0.22);
  outline-offset: 3px;
  border-color: #cc3366;
}

/* 底部日期信息 */
.szymwp-modern-post-cards .elementor-post__meta-data {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;

  margin-top: 0;
  padding: 12px 18px 16px;

  border-top: 1px solid rgba(17, 24, 39, 0.06);

  color: #777;
  font-size: 12px;
  line-height: 1.4;
}

/* 日期前加一个小圆点 */
.szymwp-modern-post-cards .elementor-post-date::before {
  content: "";
  display: inline-block;

  width: 6px;
  height: 6px;
  margin-right: 7px;

  border-radius: 999px;
  background: #cc3366;
  vertical-align: 1px;
}

.szymwp-modern-post-cards .elementor-post-time::before {
  content: "·";
  margin-right: 6px;
  color: #bbb;
}

/* 让没有图片的卡片也不塌 */
.szymwp-modern-post-cards .elementor-post__thumbnail__link:empty {
  display: none;
}

/* 小屏 PC：1025px - 1600px */
@media (min-width: 1025px) and (max-width: 1600px) {
  .szymwp-modern-post-cards .elementor-post__title {
    font-size: 17px;
  }

  .szymwp-modern-post-cards .elementor-post__text {
    padding: 16px 16px 13px;
  }

  .szymwp-modern-post-cards .elementor-post__meta-data {
    padding: 11px 16px 15px;
  }
}

/* 平板：651px - 1024px */
@media (min-width: 651px) and (max-width: 1024px) {
  .szymwp-modern-post-cards .elementor-post__card {
    border-radius: 16px;
  }

  .szymwp-modern-post-cards .elementor-post__thumbnail__link {
    border-radius: 16px 16px 0 0;
  }

  .szymwp-modern-post-cards .elementor-post__title {
    font-size: 16px;
  }

  .szymwp-modern-post-cards .elementor-post__text {
    padding: 15px;
  }

  .szymwp-modern-post-cards .elementor-post__read-more {
    padding: 7px 12px;
    font-size: 12px;
  }
}

/* 手机：<=650px */
@media (max-width: 650px) {
  .szymwp-modern-post-cards .elementor-post__card {
    border-radius: 15px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  }

  .szymwp-modern-post-cards .elementor-post__thumbnail__link {
    border-radius: 15px 15px 0 0;
  }

  .szymwp-modern-post-cards .elementor-post__title {
    font-size: 15px;
    line-height: 1.42;
  }

  .szymwp-modern-post-cards .elementor-post__text {
    padding: 14px 14px 12px;
    gap: 10px;
  }

  .szymwp-modern-post-cards .elementor-post__meta-data {
    padding: 10px 14px 14px;
    font-size: 11px;
  }

  .szymwp-modern-post-cards .elementor-post__read-more {
    padding: 7px 11px;
    font-size: 12px;
  }

  .sz-home-v2 .elementor-post__read-more.wp-block-read-more {
    --sz-home-read-more-size: 12px;
  }

  .sz-home-v2 .elementor-post__read-more.wp-block-read-more::after {
    width: 20px;
    height: 20px;
    font-size: 14px;
  }

  .elementor-pagination {
    gap: 8px;
    margin-top: 34px;
  }

  .elementor-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding-inline: 12px;
    font-size: 13px;
  }
}


/* =========================================================
   修复 Elementor Archive Posts / Search Results
   hover-gradient / item-ratio 与现代文章卡片冲突
========================================================= */

.szymwp-modern-post-cards.elementor-posts__hover-gradient
  .elementor-post__thumbnail__link::before,
.szymwp-modern-post-cards.elementor-posts__hover-gradient
  .elementor-post__thumbnail__link::after,
.szymwp-modern-post-cards.elementor-posts__hover-gradient
  .elementor-post__card::before,
.szymwp-modern-post-cards.elementor-posts__hover-gradient
  .elementor-post__card::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.szymwp-modern-post-cards
  .elementor-posts-container.elementor-has-item-ratio
  .elementor-post__thumbnail {
  height: auto !important;
  padding-bottom: 0 !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
}

.szymwp-modern-post-cards
  .elementor-posts-container.elementor-has-item-ratio
  .elementor-post__thumbnail
  img {
  position: static !important;
  inset: auto !important;

  width: 100% !important;
  height: 100% !important;
  max-width: none !important;

  object-fit: cover !important;
}


/* =========================================================
   修复手机 / 平板 Elementor Popup 被 fixed header 影响
   Popup ID: 338
========================================================= */

@media (max-width: 1024px) {
  /* 让整个 Elementor Popup 从视口顶部开始，而不是被 Header 顶下来 */
  body:not(.elementor-editor-active) #elementor-popup-modal-338.elementor-popup-modal {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 2147483000 !important;

    transform: none !important;
    overflow: hidden !important;
  }

  /* 弹窗内容层也强制从顶部开始 */
  body:not(.elementor-editor-active) #elementor-popup-modal-338 .dialog-widget-content {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    max-height: 100dvh !important;
    z-index: 2147483001 !important;
  }

  /* 弹窗内部内容可滚动 */
  body:not(.elementor-editor-active) #elementor-popup-modal-338 .dialog-message {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
  }

  /* Popup 主体容器 */
  body:not(.elementor-editor-active) #elementor-popup-modal-338 .elementor-338 {
    min-height: 100dvh !important;
  }

  /* 防止弹窗里第一层容器被额外 margin / transform 影响 */
  body:not(.elementor-editor-active) #elementor-popup-modal-338 .elementor-element-2802d95 {
    margin-top: 0 !important;
    transform: none !important;
  }
}


/* =========================
   减少动画偏好用户
========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Homepage video fallback links need AA contrast on the pink notice panel. */
body.home a[href*="bilibili.com/video/"] {
  color: #8b1d45 !important;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

/* The wrapper is also the focus target for the theme's skip link. */
.szymwp-main-content-anchor {
  min-width: 0;
  outline: none;
}

/* Keep published dates visible without styling them like disabled links. */
.szymwp-post-date-text {
  display: inline-flex;
  align-items: center;
  gap: inherit;
  color: inherit;
}

/* Keep every contact method in the site's pink/navy system. The element ID
 * avoids affecting the separate back-to-top control. */
.elementor-element-6ab94e2.wechat_icon {
  background-color: #cc3366 !important;
  box-shadow: 0 6px 18px rgba(204, 51, 102, 0.28);
  cursor: pointer;
}

.elementor-element-6ab94e2.wechat_icon:hover,
.elementor-element-6ab94e2.wechat_icon:focus-visible {
  background-color: #b62d5b !important;
}

.elementor-element-6ab94e2.wechat_icon:focus-visible {
  outline: 3px solid rgba(204, 51, 102, 0.28);
  outline-offset: 3px;
}

.elementor-element-4a9a11a.wechat_code {
  right: calc(100% + 12px) !important;
  left: auto !important;
  z-index: 30 !important;
  opacity: 0 !important;
  pointer-events: none;
  transform: translateX(8px);
  transition:
    opacity 140ms cubic-bezier(0.4, 0, 1, 1),
    transform 140ms cubic-bezier(0.4, 0, 1, 1) !important;
}

.elementor-element-4a9a11a.wechat_code.wechat_code_active {
  opacity: 1 !important;
  pointer-events: auto;
  transform: translateX(0);
  transition-duration: 200ms !important;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.szymwp-contact-hub {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  margin: 10px 0;
  font-family: var(--szymwp-font-sans, system-ui, sans-serif);
}

.szymwp-contact-hub__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 45px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transform-origin: right bottom;
  transition:
    opacity 140ms cubic-bezier(0.4, 0, 1, 1),
    transform 140ms cubic-bezier(0.4, 0, 1, 1),
    visibility 0s linear 140ms;
}

.szymwp-contact-hub.is-open .szymwp-contact-hub__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity 200ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0s;
}

.szymwp-contact-hub__menu > .elementor-element-6ab94e2.wechat_icon {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 45px;
  width: 45px !important;
  height: 45px !important;
  margin: 0 !important;
}

.szymwp-contact-hub__launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #cc3366;
  box-shadow: 0 6px 18px rgba(204, 51, 102, 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 120ms cubic-bezier(0.16, 1, 0.3, 1);
}

.szymwp-contact-hub__launcher:hover,
.szymwp-contact-hub__launcher:focus-visible {
  background: #b62d5b;
  box-shadow: 0 8px 20px rgba(204, 51, 102, 0.34);
}

.szymwp-contact-hub.is-open .szymwp-contact-hub__launcher {
  background: #273142;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.24);
}

.szymwp-contact-hub__launcher:active {
  transform: scale(0.97);
}

.szymwp-contact-hub__launcher:focus-visible {
  outline: 3px solid rgba(204, 51, 102, 0.28);
  outline-offset: 3px;
}

.szymwp-contact-hub__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 140ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 140ms cubic-bezier(0.16, 1, 0.3, 1);
}

.szymwp-contact-hub__icon svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.szymwp-contact-hub__icon--contact circle {
  fill: currentColor;
  stroke: none;
}

.szymwp-contact-hub__icon--close {
  opacity: 0;
  transform: scale(0.88);
}

.szymwp-contact-hub.is-open .szymwp-contact-hub__icon--contact {
  opacity: 0;
  transform: scale(0.88);
}

.szymwp-contact-hub.is-open .szymwp-contact-hub__icon--close {
  opacity: 1;
  transform: scale(1);
}

.szymwp-email-contact,
.szymwp-phone-contact {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  margin: 0;
  font-family: var(--szymwp-font-sans, system-ui, sans-serif);
}

.szymwp-email-contact__button,
.szymwp-phone-contact__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #ffffff !important;
  background: #cc3366;
  box-shadow: 0 6px 18px rgba(204, 51, 102, 0.28);
  text-decoration: none !important;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.szymwp-email-contact__button:hover,
.szymwp-email-contact__button:focus-visible,
.szymwp-phone-contact__button:hover,
.szymwp-phone-contact__button:focus-visible {
  color: #ffffff !important;
  background: #b62d5b;
  box-shadow: 0 8px 20px rgba(204, 51, 102, 0.34);
}

.szymwp-email-contact__button:focus-visible,
.szymwp-phone-contact__button:focus-visible {
  outline: 3px solid rgba(204, 51, 102, 0.25);
  outline-offset: 3px;
}

.szymwp-email-contact__button svg,
.szymwp-phone-contact__button svg {
  display: block;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.szymwp-email-contact__popover {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 272px;
  padding: 10px 11px 10px 14px;
  border: 1px solid rgba(204, 51, 102, 0.14);
  border-radius: 12px;
  color: #273142;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  white-space: nowrap;
}

.szymwp-email-contact__popover::after {
  position: absolute;
  top: 0;
  right: -13px;
  width: 13px;
  height: 100%;
  content: "";
}

.szymwp-email-contact:hover .szymwp-email-contact__popover,
.szymwp-email-contact:focus-within .szymwp-email-contact__popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.szymwp-email-contact__label {
  color: #697386;
  font-size: 12px;
  font-weight: 500;
}

.szymwp-email-contact__popover strong {
  color: #273142;
  font-size: 13px;
  font-weight: 600;
}

.szymwp-email-contact__copy {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(204, 51, 102, 0.2);
  border-radius: 7px;
  color: #cc3366;
  background: #fff4f7;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.szymwp-email-contact__copy:hover,
.szymwp-email-contact__copy:focus-visible,
.szymwp-email-contact__copy.is-copied {
  color: #ffffff;
  background: #cc3366;
}

.szymwp-email-contact__copy:focus-visible {
  outline: 2px solid rgba(204, 51, 102, 0.28);
  outline-offset: 2px;
}

@media (max-width: 650px) {
  .szymwp-email-contact__popover {
    min-width: 250px;
  }
}

/* Match the back-to-top control to the SZYMWP brand accent. */
.elementor-element-2c134ba {
  background-color: rgba(39, 49, 66, 0.92) !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18) !important;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.elementor-element-2c134ba:hover,
.elementor-element-2c134ba:focus-visible {
  background-color: #cc3366 !important;
  box-shadow: 0 8px 20px rgba(204, 51, 102, 0.26) !important;
}

.elementor-element-2c134ba:focus-visible {
  outline: 3px solid rgba(204, 51, 102, 0.3);
  outline-offset: 3px;
}
