/*
Theme Name: Lucky AI Mirror
Theme URI: https://luckyai.app
Description: Lucky AI 官网镜像 — 静态排版版，保留原站 UI（首页 / 教程 / 下载 / 价格 / 资讯 / 联系）。
Version: 1.1.1
Author: Lucky AI Local
Text Domain: luckyai-mirror
*/

body.luckyai-mirror-body {
  margin: 0;
  background: #140028;
  color: #fff;
}

/* 仅屏幕阅读器可见（每页 H1 等 SEO / a11y） */
.luckyai-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 首页横幅：站点标题 / 副标题（来自 WP 常规设置） */
body.luckyai-mirror-body .page-home .home-banner .home-banner-site-title {
  display: block;
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  max-width: 920px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #fff;
}

body.luckyai-mirror-body .page-home .home-banner .home-banner-site-title + .desc-label {
  margin-bottom: 50px;
}

/* 首页「全方位功能」— 最新资讯切换页 */
body.luckyai-mirror-body .home-fun .ant-carousel .fun-dots {
  width: 1000px;
  max-width: calc(100vw - 48px);
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-dots li {
  min-width: 0;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-dots .fun-item-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  padding: 0 6px;
  text-align: center;
  color: inherit;
}

/*
 * 最新资讯：与 body #140028 / home-fun 氛围统一；去掉错位的大装饰框图；
 * 说明块改为文档流，避免绝对定位贴在右下角造成中间大块空洞。
 */
body.luckyai-mirror-body .home-fun .ant-carousel .slick-slide > div {
  width: 100%;
  box-sizing: border-box;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news[data-v-81f9e4f1] {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 880px;
  min-width: 0;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
  /* 不用镜像 home-fun-box 位图，避免与底层背景、资讯面板双层框错位 */
  background: none !important;
  background-image: none !important;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-panel {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  align-self: stretch;
  z-index: 10;
  width: 100%;
  max-width: none;
  margin: 16px 0 0;
  max-height: 480px;
  min-height: 120px;
  box-sizing: border-box;
  border: 1px solid rgba(85, 37, 131, 0.65);
  border-radius: 16px 56px;
  background: linear-gradient(
    168deg,
    rgba(44, 20, 72, 0.94) 0%,
    rgba(20, 0, 40, 0.92) 55%,
    rgba(16, 0, 32, 0.9) 100%
  );
  padding: 0;
  overflow: auto;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(253, 185, 39, 0.1);
  isolation: isolate;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-panel-inner {
  padding: 18px 20px 14px;
  box-sizing: border-box;
}

/* 说明与列表同一列、同一视觉语言，不再「发光贴纸」悬空 */
body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-item-desc[data-v-81f9e4f1] {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 5 !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 14px 0 0 !important;
  padding: 16px 20px !important;
  box-sizing: border-box !important;
  background: linear-gradient(
    168deg,
    rgba(40, 18, 68, 0.9) 0%,
    rgba(20, 0, 40, 0.92) 100%
  ) !important;
  background-image: none !important;
  border: 1px solid rgba(85, 37, 131, 0.6) !important;
  border-radius: 14px !important;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(253, 185, 39, 0.08) !important;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-item-desc .desc-title[data-v-81f9e4f1] {
  margin: 0 0 8px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #fff !important;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-item-desc .desc-content[data-v-81f9e4f1] {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: rgba(253, 185, 39, 0.88) !important;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-item {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-card {
  margin: 0;
  padding: 0;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-link {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  padding: 0;
  border-radius: 14px;
  background: linear-gradient(
    148deg,
    rgba(48, 22, 78, 0.88) 0%,
    rgba(22, 8, 42, 0.9) 100%
  );
  border: 1px solid rgba(85, 37, 131, 0.55);
  border-left: 3px solid rgba(253, 185, 39, 0.75);
  box-sizing: border-box;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-link:hover,
body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-link:focus-visible {
  color: #fff;
  border-color: rgba(253, 185, 39, 0.45);
  border-left-color: #fdb927;
  background: linear-gradient(
    148deg,
    rgba(58, 28, 92, 0.92) 0%,
    rgba(28, 10, 52, 0.94) 100%
  );
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  outline: none;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 6px 14px 14px;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-item-title {
  display: block;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #fff;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-link:hover .fun-news-item-title,
body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-link:focus-visible .fun-news-item-title {
  color: #fdb927;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-item-date {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(253, 185, 39, 0.9);
  opacity: 0.95;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-link:hover .fun-news-item-date,
body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-link:focus-visible .fun-news-item-date {
  color: #ffe250;
  opacity: 1;
}

/* 右侧箭头列 */
body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-card-arrow {
  flex-shrink: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(85, 37, 131, 0.35);
  border-left: 1px solid rgba(85, 37, 131, 0.5);
  color: rgba(253, 185, 39, 0.95);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-card-arrow::before {
  content: "→";
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-link:hover .fun-news-card-arrow,
body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-link:focus-visible .fun-news-card-arrow {
  background: rgba(253, 185, 39, 0.16);
  border-left-color: rgba(253, 185, 39, 0.35);
  color: #ffe250;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-empty {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-more {
  margin: 14px 0 0;
  padding-top: 6px;
  text-align: right;
  border-top: 1px solid rgba(85, 37, 131, 0.45);
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-more-link {
  font-size: 14px;
  font-weight: 600;
  color: #fdb927;
  text-decoration: none;
}

body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-more-link:hover,
body.luckyai-mirror-body .home-fun .ant-carousel .fun-item.fun-news .fun-news-more-link:focus-visible {
  text-decoration: underline;
}
