/* 首页布局 v2 — 创作为主、社区为辅 */

html.web-theme-dark.web-page-home #webMain,
html.web-theme-dark html.web-page-home #webMain {
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(99, 102, 241, 0.12), transparent 55%),
    radial-gradient(700px 360px at 95% 0%, rgba(16, 185, 129, 0.06), transparent 50%);
}

#homeCarouselCol {
  min-width: 0;
  padding-bottom: 8px;
}

.web-home {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 8px;
}

/* ── Hero ── */
.web-home-hero-v2 {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 48%, #f1f5f9 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 64px rgba(15, 23, 42, 0.08);
}

.web-home-hero-v2::after {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: inherit;
  background:
    radial-gradient(640px 320px at 0% 0%, rgba(99, 102, 241, 0.22), transparent 58%),
    radial-gradient(520px 280px at 100% 20%, rgba(16, 185, 129, 0.14), transparent 55%),
    radial-gradient(400px 200px at 50% 100%, rgba(245, 158, 11, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  animation: web-hero-gradient-drift 26s ease-in-out infinite;
}

html.web-theme-dark .web-home-hero-v2 {
  background: linear-gradient(145deg, rgba(30, 27, 46, 0.98) 0%, rgba(24, 24, 27, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

html.web-theme-dark .web-home-hero-v2::after {
  background:
    radial-gradient(640px 320px at 0% 0%, rgba(99, 102, 241, 0.28), transparent 58%),
    radial-gradient(520px 280px at 100% 20%, rgba(16, 185, 129, 0.12), transparent 55%);
}

.web-home-hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.web-home-hero-v2__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}

@media (max-width: 900px) {
  .web-home-hero-v2__grid {
    grid-template-columns: 1fr;
  }
}

.web-home-hero-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 14px;
}

html.web-theme-dark .web-home-hero-v2__badge {
  color: #c4b5fd;
  background: rgba(99, 102, 241, 0.18);
}

.web-home-hero-v2__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.web-home-hero-v2__title em {
  font-style: normal;
  background: linear-gradient(120deg, #6366f1 0%, #8b5cf6 45%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html.web-theme-dark .web-home-hero-v2__title em {
  background: linear-gradient(120deg, #a5b4fc 0%, #c4b5fd 45%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.web-home-hero-v2__sub {
  margin: 0 0 22px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(51, 65, 85, 0.88);
}

html.web-theme-dark .web-home-hero-v2__sub {
  color: rgba(203, 213, 225, 0.78);
}

.web-home-hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.web-home-hero-v2__actions .btn-primary {
  padding: 10px 22px;
  font-weight: 700;
  border: none;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.28);
}

.web-home-hero-v2__actions .btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.34);
}

.web-home-hero-v2__pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.web-home-hero-v2__step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(51, 65, 85, 0.9);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(8px);
}

html.web-theme-dark .web-home-hero-v2__step {
  color: rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.web-home-hero-v2__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.web-home-hero-v2__entries {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.web-home-entry-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

html.web-theme-dark .web-home-entry-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.web-home-entry-card:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.web-home-entry-card--write:hover {
  border-color: rgba(16, 185, 129, 0.35);
}

.web-home-entry-card--drama:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.web-home-entry-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
}

.web-home-entry-card--write .web-home-entry-card__icon {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28);
}

.web-home-entry-card--drama .web-home-entry-card__icon {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.28);
}

.web-home-entry-card__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
}

.web-home-entry-card__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(100, 116, 139, 0.95);
}

html.web-theme-dark .web-home-entry-card__desc {
  color: rgba(203, 213, 225, 0.65);
}

.web-home-entry-card__arrow {
  margin-left: auto;
  align-self: center;
  opacity: 0.45;
  font-size: 18px;
}

/* 登录用户创作进度 */
.web-home-dash-wrap {
  display: none;
}

.web-home-dash-wrap.is-visible {
  display: block;
}

.web-home-dash-wrap .web-create-dash {
  border-radius: 18px;
  border-color: rgba(99, 102, 241, 0.14);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
}

html.web-theme-dark .web-home-dash-wrap .web-create-dash {
  background: rgba(255, 255, 255, 0.04);
}

/* 发现快捷条 */
.web-home-discover-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

html.web-theme-dark .web-home-discover-strip {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.web-home-discover-strip__label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: rgba(100, 116, 139, 0.95);
  padding-right: 6px;
}

html.web-theme-dark .web-home-discover-strip__label {
  color: rgba(148, 163, 184, 0.88);
}

.web-home-discover-strip__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.web-home-discover-strip__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: rgba(51, 65, 85, 0.92);
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: all 0.15s ease;
}

html.web-theme-dark .web-home-discover-strip__link {
  color: rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.web-home-discover-strip__link:hover {
  color: #4338ca;
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.08);
}

html.web-theme-dark .web-home-discover-strip__link:hover {
  color: #c4b5fd;
}

.web-home-discover-strip__link--all {
  margin-left: auto;
}

@media (max-width: 640px) {
  .web-home-discover-strip__link--all {
    margin-left: 0;
  }
}

/* 首页内容区 — 单栏纵向排列 */
.web-home-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* 工作流 / 连载栅格 — 4 列 */
.web-home-wf-grid {
  margin-top: 2px;
  align-items: stretch;
}

.web-home-wf-grid > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  #homeWorkflowList > .col-lg-3,
  #homeSerialList > .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }
}

/* 圈子 — 全宽 4 列 */
.web-home-circles-grid {
  align-items: stretch;
}

@media (min-width: 992px) {
  .web-home-circles-grid > .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }
}

/* 面板 */
.web-home-panel {
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

html.web-theme-dark .web-home-panel {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.web-home-panel--featured {
  border-color: rgba(99, 102, 241, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%);
}

html.web-theme-dark .web-home-panel--featured {
  background: linear-gradient(180deg, rgba(30, 27, 46, 0.92) 0%, rgba(24, 24, 27, 0.88) 100%);
  border-color: rgba(139, 92, 246, 0.22);
}

.web-home-panel--muted {
  opacity: 0.96;
  background: rgba(248, 250, 252, 0.55);
  box-shadow: none;
}

html.web-theme-dark .web-home-panel--muted {
  background: rgba(255, 255, 255, 0.02);
}

.web-home-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.web-home-panel__title-wrap {
  min-width: 0;
}

.web-home-panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.web-home-panel__title .mdi {
  font-size: 20px;
  opacity: 0.85;
}

.web-home-panel__title--wf .mdi { color: #6366f1; }
.web-home-panel__title--serial .mdi { color: #059669; }
.web-home-panel__title--reco .mdi { color: #0ea5e9; }
.web-home-panel__title--circle .mdi { color: #64748b; }
.web-home-panel__title--shop .mdi { color: #94a3b8; }

.web-home-panel__desc {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(100, 116, 139, 0.92);
}

html.web-theme-dark .web-home-panel__desc {
  color: rgba(203, 213, 225, 0.62);
}

.web-home-panel__more {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: rgba(79, 70, 229, 0.95);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.06);
  transition: background 0.15s ease;
}

.web-home-panel__more:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
}

.web-home-panel--aside {
  padding: 12px 14px 10px;
}

.web-home-panel__head--compact {
  margin-bottom: 0;
}

.web-home-panel__head--compact .web-home-panel__title {
  font-size: 15px;
}

.web-home-panel__body--tight {
  margin-top: 8px;
}

.web-home-panel__body {
  margin-top: 12px;
}

/* 列表为空时隐藏 row，避免 g-3 负 margin 把占位块贴到标题区 */
.web-home-panel__body > .row:empty {
  display: none;
}

/* 首页栅格统一抵消 row 负 margin，与连载区一致 */
.web-home-panel__body > .row.g-3 {
  margin-top: 2px;
}

/* 社区精选 — 完整帖子流（头像 / 摘要 / 封面图） */
.web-home-reco-panel .web-post-feed {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.web-home-reco-panel .web-post-li-card {
  padding: 14px 4px 16px;
}

.web-home-reco-panel .web-post-feed > .web-post-li:not(:last-child) {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

html.web-theme-dark .web-home-reco-panel .web-post-feed > .web-post-li:not(:last-child) {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* 商城 — 全宽 4 列 */
@media (min-width: 992px) {
  .web-home-shop-panel #homeShopList > .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }
}

.web-home-aside-post-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.web-home-aside-post {
  display: block;
  padding: 9px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  transition: opacity 0.15s ease;
}

.web-home-aside-post:first-child {
  padding-top: 2px;
}

.web-home-aside-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.web-home-aside-post:hover {
  color: inherit;
  opacity: 0.88;
}

html.web-theme-dark .web-home-aside-post {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.web-home-aside-post__title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.web-home-aside-post__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(100, 116, 139, 0.92);
}

html.web-theme-dark .web-home-aside-post__meta {
  color: rgba(148, 163, 184, 0.78);
}

.web-home-aside-post__tag {
  flex-shrink: 0;
  max-width: 42%;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  color: rgba(79, 70, 229, 0.92);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.14);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.web-home-aside-post__tag:hover {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.12);
}

html.web-theme-dark a.web-home-aside-post__tag {
  color: #c4b5fd;
}

.web-home-aside-post__stats {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.web-home-aside-post__stats .mdi {
  font-size: 12px;
  opacity: 0.72;
}

.web-home-aside-post__dot {
  opacity: 0.45;
  padding: 0 1px;
}

.web-home-aside-post__time {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 卡片通用（工作流 / 连载） */
.web-home-wf-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.web-home-wf-card:hover {
  color: inherit;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
}

html.web-theme-dark .web-home-wf-card {
  background: rgba(24, 30, 40, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.web-home-wf-cover {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  height: 0;
  padding-bottom: 68%;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  isolation: isolate;
  background: rgba(148, 163, 184, 0.1);
}

.web-home-wf-cover > .web-home-wf-cover-img,
.web-home-wf-cover > .web-home-wf-cover-ph,
.web-home-wf-cover > .web-home-wf-cover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.web-home-wf-cover img,
.web-home-wf-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.web-home-wf-cover-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(100, 116, 139, 0.4);
}

.web-home-wf-cover .web-home-wf-cover-video {
  overflow: hidden;
  border-radius: inherit;
}

.web-home-wf-cover .web-home-wf-cover-video.web-media-play-cover::after {
  border-radius: inherit;
}

.web-home-wf-cover .web-home-wf-cover-video img,
.web-home-wf-cover .web-home-wf-cover-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.web-home-wf-cover .web-home-wf-cover-video .web-home-wf-cover-vid {
  z-index: 0;
  pointer-events: none;
  background: rgba(148, 163, 184, 0.12);
}

.web-home-wf-cover .web-home-wf-cover-video .web-home-wf-cover-poster {
  z-index: 1;
}

.web-home-wf-cover .web-home-wf-cover-video.is-cover-failed .web-home-wf-cover-poster {
  display: none;
}

.web-home-wf-cover .web-home-wf-cover-video.is-cover-failed .web-home-wf-cover-vid {
  display: block !important;
}

.web-home-wf-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
}

.web-home-wf-title {
  font-weight: 800;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.web-home-wf-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.web-home-wf-author-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.web-home-wf-author-av--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.15);
  font-size: 14px;
}

.web-home-wf-author-name {
  font-size: 11px;
  color: var(--web-muted, #64748b);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-home-wf-fork {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.web-home-ws-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #059669, #10b981);
}

.web-home-ws-meta,
.web-home-ws-synopsis {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(100, 116, 139, 0.9);
}

.web-home-ws-synopsis {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.web-home-empty {
  text-align: center;
  padding: 28px 16px;
  font-size: 13px;
  color: rgba(100, 116, 139, 0.92);
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.5);
}

html.web-theme-dark .web-home-empty {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

/* 底栏 */
.web-home-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 16px 8px 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.web-home-footer-links__a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(100, 116, 139, 0.92);
  text-decoration: none;
}

.web-home-footer-links__a:hover {
  color: #6366f1;
}

/* 3D tilt — 首页卡片统一（工作流 / 连载 / 圈子 / 商城） */
html.web-page-home #homeWorkflowList > [class*="col-"],
html.web-page-home #homeSerialList > [class*="col-"],
html.web-page-home #circleList .web-circle-card-col,
html.web-page-home #homeShopList .web-circle-card-col {
  perspective: 1100px;
}

html.web-page-home #homeWorkflowList .web-home-wf-card,
html.web-page-home #homeSerialList .web-home-wf-card,
html.web-page-home #circleList .web-circle-card,
html.web-page-home #homeShopList .web-circle-card {
  transform-style: preserve-3d;
  will-change: transform;
  --rx: 0deg;
  --ry: 0deg;
  --tz: 0px;
  --sc: 1;
  --glow: 0;
  --hx: 50%;
  --hy: 50%;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(var(--tz)) scale(var(--sc));
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

html.web-page-home #circleList .web-circle-card:hover,
html.web-page-home #homeShopList .web-circle-card:hover {
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(var(--tz)) scale(var(--sc));
}

/* 3D 倾斜时父级 overflow 裁剪会短暂失效：封面区自带圆角，且不再放大图片 */
html.web-page-home #circleList .web-circle-card:hover .web-circle-media:not(.is-icon-cover) .web-circle-media-img,
html.web-page-home #homeShopList .web-circle-card:hover .web-circle-media:not(.is-icon-cover) .web-circle-media-img {
  transform: scale(1.02) translateZ(0);
}
html.web-page-home #circleList .web-circle-card:hover .web-circle-media.is-icon-cover .web-circle-media-img,
html.web-page-home #homeShopList .web-circle-card:hover .web-circle-media.is-icon-cover .web-circle-media-img {
  transform: translate(-50%, -50%) scale(1.02) translateZ(0);
}

html.web-page-home #circleList .web-circle-card.is-home-tilt-anim .web-circle-media,
html.web-page-home #homeShopList .web-circle-card.is-home-tilt-anim .web-circle-media,
html.web-page-home #circleList .web-circle-card.is-home-tilt-hover .web-circle-media,
html.web-page-home #homeShopList .web-circle-card.is-home-tilt-hover .web-circle-media {
  overflow: clip;
}

html.web-page-home #homeWorkflowList .web-home-wf-card.is-home-tilt-anim .web-home-wf-cover,
html.web-page-home #homeSerialList .web-home-wf-card.is-home-tilt-anim .web-home-wf-cover,
html.web-page-home #homeWorkflowList .web-home-wf-card.is-home-tilt-hover .web-home-wf-cover,
html.web-page-home #homeSerialList .web-home-wf-card.is-home-tilt-hover .web-home-wf-cover {
  overflow: clip;
}

html.web-page-home #homeWorkflowList .web-home-wf-card.is-home-tilt-anim,
html.web-page-home #homeSerialList .web-home-wf-card.is-home-tilt-anim,
html.web-page-home #homeWorkflowList .web-home-wf-card.is-home-tilt-hover,
html.web-page-home #homeSerialList .web-home-wf-card.is-home-tilt-hover {
  overflow: clip;
}

html.web-page-home #homeWorkflowList .web-home-wf-card.is-home-tilt-hover,
html.web-page-home #homeSerialList .web-home-wf-card.is-home-tilt-hover,
html.web-page-home #circleList .web-circle-card.is-home-tilt-hover,
html.web-page-home #homeShopList .web-circle-card.is-home-tilt-hover {
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
  border-color: rgba(99, 102, 241, 0.24);
}

html.web-theme-dark.web-page-home #homeWorkflowList .web-home-wf-card.is-home-tilt-hover,
html.web-theme-dark.web-page-home #homeSerialList .web-home-wf-card.is-home-tilt-hover,
html.web-theme-dark.web-page-home #circleList .web-circle-card.is-home-tilt-hover,
html.web-theme-dark.web-page-home #homeShopList .web-circle-card.is-home-tilt-hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .web-home-hero-v2::after {
    animation: none;
    transform: none;
    opacity: 1;
  }

  html.web-page-home .web-home-wf-card,
  html.web-page-home #circleList .web-circle-card,
  html.web-page-home #homeShopList .web-circle-card,
  html.web-page-home .web-home-entry-card {
    transition: none !important;
    transform: none !important;
  }
}
