/* 全局变量 */
:root {
    --theme-color: #426AFF;
    --theme-gradient-color: linear-gradient(134deg, #426AFF 0%, #9F4FFF 94%);
    --theme-border-color: #6E8CFF;
    --bg-dark: #0D0F2D;
    --bg-card: #15183E;
    --text-light: #E2E8FF;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 全局禁止页面滚动 + 隐藏滚动条（兼容 Chrome/Firefox/Edge/Safari） */
html, body {
  width: 100%;
  height: 100vh;
  overflow: hidden !important; /* 彻底禁止页面滚动 */
  margin: 0;
  padding: 0;
}

/* 隐藏 WebKit 内核滚动条（Chrome、Edge、Safari、360等） */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* 兼容 Firefox 隐藏滚动条 */
html, body {
  scrollbar-width: none !important;
}
/* 👇 改动 1：增加页面自适应布局 */
html,body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: "Segoe UI", Roboto, system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
}
/* 导航 */
.site-header {
    background: rgba(13, 15, 45, 0.85);
    backdrop-filter: blur(12px);
    height: 4rem;
    position: fixed;
    top: 0;
    z-index: 99;
    width: 100%;
    border-bottom: 1px solid rgba(66, 106, 0.2);
    box-shadow: 0 4px 18px #00003340;
}
.header-container {
    max-width: 1240px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap:0;
    min-width: 0; /* 允许整体容器压缩 */
}
.logo {
    flex-shrink:0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}
.logo:hover {
    transform: scale(1.03);
}
.logo img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}
.logo img:hover {
    transform: rotate(3deg) scale(1.08);
}
.btn-download {
    flex-shrink:0;
    background: var(--theme-gradient-color);
    border: 1px solid var(--theme-border-color);
    border-radius: 10px;
    height:40px;
    padding:0 20px;
    display: flex;
    align-items: center;
    font-weight:600;
    cursor: pointer;
    transition: 0.3s ease;
}
.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 22px rgba(66,106,255,0.45);
}
/* 星空 */
#stars {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-2;
    background: var(--bg-dark);
}
@keyframes blink {
    0% {opacity:0.2;}
    100% {opacity:1;}
}
.star {
    animation: blink var(--speed,3s) infinite alternate;
}
/* 主体容器 */
/* 👇 改动 2：让主体自动撑满高度 */
.main {
  padding-top: 4rem;
  flex: 1;
  /* 新增：限制高度、内部滚动，不溢出页面 */
  height: calc(100vh - 4rem);
  overflow-y: auto;
  overflow-x: hidden;
}
/* =========底层横向滚动壁纸【彻底无缝】========= */
.hero-wall {
    width:100%;
    position:relative;
    overflow:hidden;
    padding:60px 0;
}
.scroll-box{
    display:flex;
    width:max-content;
}
.wall-row {
    display:flex;
    flex-wrap: nowrap;
    gap:16px;
}
.row-1{
    animation: move1 80s linear infinite;
}
.row-2{
    margin-top:18px;
    animation: move2 150s linear infinite;
}
@keyframes move1 {
    0%{transform: translateX(0);}
    100%{transform: translateX(-50%);}
}
@keyframes move2 {
    0%{transform: translateX(-8%);}
    100%{transform: translateX(-58%);}
}
.wall-img {
    height:172px;
    width:240px;
    object-fit:cover;
    border-radius:8px;
}
.wall-mask {
    position:absolute;
    inset:0;
    background: linear-gradient(180deg,#0D0F2D 20%,rgba(13,15,45,0.65) 55%,#0D0F2D 100%);
}

/* ========= 科技风立体轮播展台【全新重制｜全圆角+强科技感+无黑阴影】 ========= */
.carousel-section {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(92%, 920px);
  z-index: 2;
  overflow: visible;
}

.carousel-box {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* 轮播左右箭头 科技磨砂玻璃风格 */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background: rgba(13, 15, 45, 0.55) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(66, 106, 255, 0.35) !important;
  color: #e5e5e5;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease !important;
}
.prev { left: -26px; }
.next { right: -26px; }
.carousel-arrow:hover {
  background: rgba(66, 106, 255, 0.7) !important;
  border-color: #426AFF !important;
  box-shadow: 0 0 16px rgba(66, 106, 255, 0.5) !important;
  transform: translateY(-50%) scale(1.1) !important;
}
.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95) !important;
}
.carousel-arrow svg {
  stroke-width: 2px;
}

/* 轮播外层容器：允许边缘圆角显示，不再裁切 */
.carousel-main {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: visible !important;
  background: transparent;
  border: none;
  perspective: 1400px;
}

/* 轮播项：基础样式 */
.carousel-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  height: 100%;
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.2, 0, 0.2, 1);
  overflow: hidden;
  border-radius: 18px !important;
  background: rgba(21, 24, 62, 0.35);
  backdrop-filter: blur(14px);
  border: 1px solid transparent;
  background-image:
    linear-gradient(rgba(21, 24, 62, 0.35), rgba(21, 24, 62, 0.35)),
    linear-gradient(134deg, #426AFF, #9F4FFF);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 0 25px rgba(66, 106, 255, 0.2),
    inset 0 0 18px rgba(66, 106, 255, 0.1);
}

/* 顶部流光扫描线 */
.carousel-item::before {
  content: "";
  position: absolute;
  left: -120%;
  top: 0;
  width: 120%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #426AFF, #9F4FFF, transparent);
  animation: techScan 3.5s linear infinite;
  z-index: 2;
  filter: blur(1px);
}

/* 底部柔和光效 */
.carousel-item::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -12px;
  height: 24px;
  background: radial-gradient(ellipse, rgba(66, 106, 255, 0.3) 0%, transparent 70%);
  filter: blur(10px);
  z-index: -1;
  opacity: 0.6;
}

/* 图片基础样式 */
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px !important;
  filter: contrast(1.05) saturate(1.08);
  transition: all 0.4s ease;
  transform: scale(0.97);
  background: transparent;
}
.carousel-item.active-slide img {
  filter: contrast(1.08) saturate(1.12) brightness(1.03);
  transform: scale(1);
}

/* --------------- 核心规则 --------------- */
/* 全局默认hover：所有项先保持原样，不做任何变化 */
.carousel-item:hover {
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 25px rgba(66, 106, 255, 0.2),
    inset 0 0 18px rgba(66, 106, 255, 0.1);
}
.carousel-item:hover img {
  transform: scale(0.97);
}

/* 仅中间激活项 hover 触发凸起效果 */
.carousel-item.active-slide:hover {
  transform: translate(-50%, -50%) translateY(-6px);
  box-shadow:
    0 18px 40px rgba(66, 106, 255, 0.38),
    0 0 30px rgba(159, 79, 255, 0.28),
    inset 0 0 22px rgba(66, 106, 255, 0.15);
}
.carousel-item.active-slide:hover img {
  transform: scale(1.01);
}

/* 底部操作按钮 */
.carousel-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(134deg, #426AFF 0%, #9F4FFF 94%);
  padding: 10px 28px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: all 0.4s ease;
  font-weight: 600;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 0 12px rgba(66, 106, 255, 0.3);
  letter-spacing: 1px;
}
.carousel-item.active-slide:hover .carousel-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 0 20px rgba(66, 106, 255, 0.5);
}

/* 扫描线动画 */
@keyframes techScan {
  0% { left: -120%; }
  100% { left: 120%; }
}

/* ======================
   全新：壁纸列表样式
====================== */
.wallpaper-list-section {
    max-width: 1240px;
    margin: 0 auto 100px;
    padding: 0 24px;
    position: relative;
    z-index: 3;
}
.list-header {
    margin-bottom: 30px;
}
.list-header h2 {
    font-size: 32px;
    color: #fff;
    font-weight: 700;
}
.wallpaper-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.wallpaper-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 12px 16px;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.06);
}
.wallpaper-item:hover {
    background: #1b1e4a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.item-img {
    width: 120px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.item-info {
    flex: 1;
    padding: 0 16px;
}
.item-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.item-tag {
    font-size: 12px;
    color: #a8b1ff;
}
.item-action {

}
.item-btn {
    background: var(--theme-gradient-color);
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.item-btn:hover {
    transform: scale(1.05);
}

/* 导航中间分类容器 分屏/拖拽窗口实时生效终极修复 */
.category-nav-wrapper {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  margin: 0 24px;
}

/* 视口<1200px 分屏/拖拽立刻收缩，四重!important锁死，优先级最高 */
@media screen and (max-width: 1199px) {
  .category-nav-wrapper {
    flex: 0 0 350px !important;
    width: 350px !important;
    max-width: 350px !important;
    min-width: 350px !important;
  }
}

@media screen and (min-width: 1200px) {
  .category-nav-wrapper {
    max-width: 720px;
  }
}

.category-nav-scroll {
  overflow: hidden;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
}
.category-nav-list {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.2, 1);
}

.cat-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d0d8ff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.25s ease;
  flex-shrink: 0;
  width: 110px;
  cursor: pointer !important;
}
.cat-item:hover {
  background: rgba(66, 106, 255, 0.15);
  border-color: rgba(66, 106, 255, 0.25);
  color: #fff;
}
.cat-item.active {
  background: var(--theme-color);
  border-color: var(--theme-color);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(66, 106, 255, 0.25);
}

.cat-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(66, 106, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}
.cat-arrow:hover {
  background: rgba(66, 106, 255, 0.25);
  border-color: rgba(66, 106, 255, 0.4);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.cat-arrow:active {
  transform: translateY(-50%) scale(0.96);
}
.left-arrow {
  left: -55px;
}
.right-arrow {
  right: -55px;
}
/* 轮播箭头按钮优化 */
.carousel-arrow {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(10px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.carousel-arrow:hover {
    background: rgba(66, 106, 255, 0.85) !important;
    transform: translateY(-50%) scale(1.1) !important;
}
.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95) !important;
}
.carousel-arrow svg {
    stroke-width: 2px;
}
.wall-card-wrap {
    width:100%;
    margin:30px auto 40px;
    padding:0 24px;
    position:relative;
    z-index:3;
}
.wrap-inner {
    grid-template-columns: repeat(8,1fr);
    display:grid;
    gap:16px;
}
.wall-card-item {
    background:var(--bg-card);
    border-radius:12px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,0.06);
    transition:0.3s ease;
}
.wall-card-item:hover {
    transform:translateY(-4px);
    box-shadow:0 8px 20px rgba(66,106,255,0.15);
}
.card-pic {
    width:100%;
    height:130px;
    position:relative;
    overflow:hidden;
}
.card-pic img {
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.4s;
}
.wall-card-item:hover .card-pic img {
    transform:scale(1.06);
}
.card-cover {
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.5);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:0.3s;
}
.wall-card-item:hover .card-cover {
    opacity:1;
}
.card-use {
    background:var(--theme-gradient-color);
    padding:5px 14px;
    border-radius:99px;
    font-size:12px;
    font-weight:600;
}
.card-name {
    padding:8px 10px;
    font-size:12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式 */
@media(max-width:1400px){
    .wrap-inner {grid-template-columns: repeat(6,1fr);}
}
@media(max-width:992px){
    .wrap-inner {grid-template-columns: repeat(3,1fr);}
}
@media(max-width:640px){
    .wrap-inner {grid-template-columns: repeat(2,1fr);}
}

/* 底部版权栏 - 高级美化版（不影响任何布局） */
.footer {
    width: 100%;
    background-color: #0c0e22;
    border-top: 1px solid #1a1d3a;
    padding: 22px 0; /* 更舒服的高度 */
    margin-top: auto;
    text-align: center;
    z-index: 2;
    position: relative;
}
.footer-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer p {
    color: #8890b8;
    font-size: 14px;
    margin: 0;
    letter-spacing: 0.5px;
    opacity: 0.8;
}
.footer p:hover {
    color: #cbd5e1;
    opacity: 1;
    transition: all 0.3s ease;
}

/* 高级描述文字 —— 最终定稿 */
.desc-txt {
    /* 布局：靠左、不占高度、不溢出 */
    text-align: left;
    margin: 0 0 16px 28px;
    padding: 0 0 0 14px;
    position: relative;
    z-index: 3;

    /* 字体：厚重、清晰、大气 */
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: 0.6px;

    /* 左侧小竖线（你要的） */
    border-left: 4px solid #426AFF;
}

/* 关键词高亮样式 */
.desc-txt .highlight {
    color: #426AFF;
    font-weight: 700;
}
.desc-txt {
    margin: 0 0 14px 24px;
    padding-left: 12px;
    border-left: 4px solid #426AFF;
    font-size: 19px;
    font-weight: 600;
    color: #fff;
    text-align: left;
    line-height: 1.45;
    letter-spacing: 0.6px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.desc-txt .highlight {
    color: #5F9FFF;
    font-weight: 700;
}
.wall-card-wrap {
    margin: 0 auto 24px !important;
}

/* 分页容器平滑过渡 */
.wrap-inner {
  transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* 分页箭头hover微调 */
.page-arrow {
    position: fixed !important;
    top: 55% !important;
    transform: translateY(-50%) !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    transition: all 0.3s ease;
}
.page-arrow:hover {
    background: rgba(66, 106, 255, 0.3);
    transform: translateY(-50%) scale(1.1) !important;
}
.page-arrow:active {
    transform: translateY(-50%) scale(0.92) !important;
}
.arrow-left {
    left: 20px !important;
}
.arrow-right {
    right: 20px !important;
}
.page-arrow svg {
    width: 28px;
    height: 28px;
}
/* 全局丝滑入场 —— 自然、流畅、不卡顿 */
body {
  opacity: 0;
  animation: pageFadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes pageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 壁纸区域柔和淡入 —— 最丝滑不卡 */
.wall-card-wrap {
  opacity: 0;
  animation: wrapFade 0.5s ease forwards;
  animation-delay: 0.25s;
}
@keyframes wrapFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ======================
   设备切换按钮（手机/电脑壁纸）
====================== */
.device-tabs {
  flex-shrink:0;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 3px;
  margin: 0 52px 0 16px; /* 右侧margin从16→22，多出6px安全空隙，隔开左箭头 */
  height: 38px;
}

.device-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 100%;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: #b4bcff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.device-tab.active {
  background: var(--theme-color);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(66, 106, 255, 0.25);
}

.device-tab:hover:not(.active) {
  color: #fff;
}

/* 电脑壁纸卡片变宽 + 3×3 */
.wrap-inner.pc-mode {
    grid-template-columns: repeat(3, 1fr) !important;
}
.wrap-inner.pc-mode .card-pic {
    height: 270px !important;
}
.cat-item {
    cursor: pointer !important;
}
/* 贴浏览器页面最左侧、垂直居中header */
.top-stats {
    position: fixed;
    left: 12px; /* 红框靠左边距，可改0贴死边缘 */
    top: 2rem; /* header高度4rem，垂直居中导航栏 */
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    z-index: 101;
}
.top-stats .stats-icon {
    width: 16px;
    height: 16px;
    color: #60a5fa;
}
.top-stats .stats-number {
    color: #60a5fa;
    font-weight: 700;
    font-size: 15px;
}
/* 顶部导航流动光线（红框位置：header底部流光条） */
.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px; /* 线条粗细，和截图红框高度匹配 */
    background: linear-gradient(90deg,
        transparent 0%,
        #426AFF 20%,
        #9F4FFF 50%,
        #426AFF 80%,
        transparent 100%
    );
    background-size: 220% 100%;
    animation: flowLineAnim 3.2s linear infinite;
    filter: blur(0.8px);
}

/* 流光流动动画 */
@keyframes flowLineAnim {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 可选：加强光晕效果，线条上下微弱泛光 */
.site-header::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg,transparent,#426AFF40,#9F4FFF38,#426AFF40,transparent);
    background-size:220% 100%;
    animation: flowLineAnim 3.2s linear infinite;
    filter: blur(6px);
    z-index:-1;
}

/* 基础公共 */
.card-cover {
    position:absolute;
    inset:0;
    opacity:0;
    display:flex;
    align-items:center;
    justify-content:center;
    transition: opacity 0.3s ease;
    z-index:2;
}
.wall-card-item:hover .card-cover{opacity:1;}
.cover-btn-group{display:flex;align-items:center;}
.card-btn{cursor:pointer;transition:all 0.3s cubic-bezier(0.2,0,0.2,1);border:none;color:#fff;white-space:nowrap;}

/* ==========【手机壁纸样式：圆角小按钮、深色磨砂遮罩、横向紧凑】 wrap-inner无pc-mode ========== */
.wrap-inner:not(.pc-mode) .card-cover{
    background:rgba(0,0,0,0.72);
    backdrop-filter: blur(2px);
}
.wrap-inner:not(.pc-mode) .cover-btn-group{
    gap:7px;
}
.wrap-inner:not(.pc-mode) .card-btn{
    padding:5px 13px;
    font-size:12px;
    border-radius:6px;
}
/* 手机-详情 */
.wrap-inner:not(.pc-mode) .btn-detail{
    background:rgba(255,255,255,0.16);
    border:1px solid rgba(255,255,255,0.22);
}
.wrap-inner:not(.pc-mode) .btn-detail:hover{
    background:#fff;
    color:#000;
    transform:scale(1.07);
}
/* 手机-下载 */
.wrap-inner:not(.pc-mode) .btn-down{
    background:#426AFF;
}
.wrap-inner:not(.pc-mode) .btn-down:hover{
    background:#5c7dff;
    transform:scale(1.07);
    box-shadow:0 0 10px #426AFF70;
}
/* 手机-点赞 区分色：浅粉紫，结构和详情完全一致 */
.wrap-inner:not(.pc-mode) .btn-like{
    background:rgba(255, 160, 200, 0.18);
    border:1px solid rgba(255, 160, 200, 0.3);
}
.wrap-inner:not(.pc-mode) .btn-like:hover{
    background:#ff98c0;
    color:#000;
    transform:scale(1.07);
}
/* PC-点赞 */
.wrap-inner.pc-mode .btn-like{
    background:transparent;
    border:1px solid #fff;
    color:#ff98c0;
}
.wrap-inner.pc-mode .btn-like:hover{
    background:#ff98c0;
    color:#111;
    transform:translateY(-5px) scale(1.05);
    box-shadow:0 8px 18px rgba(255, 152, 192, 0.25);
}
/* ==========【电脑壁纸样式：大胶囊按钮、渐变半透遮罩、按钮间距大、hover弹跳+发光】wrap-inner.pc-mode ========== */
.wrap-inner.pc-mode .card-cover{
    background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,0.68) 100%);
}
.wrap-inner.pc-mode .cover-btn-group{
    gap:18px;
}
.wrap-inner.pc-mode .card-btn{
    padding:9px 26px;
    font-size:15px;
    border-radius:999px;
    font-weight:600;
}
/* 电脑-详情 白边透明悬浮 */
.wrap-inner.pc-mode .btn-detail{
    background:transparent;
    border:1px solid #fff;
}
.wrap-inner.pc-mode .btn-detail:hover{
    background:#fff;
    color:#111;
    transform:translateY(-5px) scale(1.05);
    box-shadow:0 8px 18px rgba(255,255,255,0.25);
}
/* 电脑-下载 主题渐变 */
.wrap-inner.pc-mode .btn-down{
    background:var(--theme-gradient-color);
}
.wrap-inner.pc-mode .btn-down:hover{
    transform:translateY(-5px) scale(1.05);
    box-shadow:0 8px 22px rgba(66,106,255,0.45);
}

/* 卡片图片统一缩放 */
.card-pic img{transition:transform 0.4s ease;}
.wall-card-item:hover .card-pic img{transform:scale(1.06);}

/* 壁纸详情弹窗 - 高级朦胧版 */
.wall-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}
.wall-modal.show {
  display: flex;
}

/* 遮罩：淡入动画 */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.wall-modal.show .modal-overlay {
  opacity: 1;
}

/* 弹窗主体：弹性缩放 + 淡入 */
.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: scale(0.85) translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.wall-modal.show .modal-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* 弹窗图片 */
.modal-content img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  background: #0a0a1a;
}

/* 关闭按钮 */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}
.modal-close:hover {
  background: #fff;
  color: #000;
  transform: scale(1.1);
}

/* 弹窗入场动画 */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 图片加载转圈动画 */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
}
/* 加载完成隐藏动画 */
.loading-spinner.loaded {
    display: none;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 图片加载失败兜底样式（可选） */
.card-pic img[src*="placeholder"] {
    opacity: 0.7;
}

/* ======================================
   情侣壁纸翻转卡片 - 强制样式（覆盖所有冲突）
   ====================================== */
/* 情侣容器：强制可见、高度足够 */
.couple-wall-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 480px !important; /* 强制高度，不会塌 */
    align-content: flex-start !important;
    background: rgba(255, 0, 0, 0.1) !important; /* 临时加个红色背景，方便你确认容器是否渲染出来了 */
}

/* 单个翻转卡片容器 */
.flip-card {
    width: calc((100% - 84px) / 8) !important; /* 1行8列，减去间隙 */
    height: 140px !important; /* 竖版手机卡片高度 */
    position: relative !important;
    perspective: 1000px !important;
    background: #222 !important; /* 给个深色背景，方便你确认卡片是否渲染出来了 */
    border-radius: 6px !important;
    overflow: hidden !important;
}

.flip-card-inner {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    transition: transform 0.6s !important;
    transform-style: preserve-3d !important;
}

/* 悬浮翻转 */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg) !important;
}

/* 卡片正反面通用 */
.flip-card-front, .flip-card-back {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.flip-card-front {
    transform: rotateY(0deg) !important;
}

.flip-card-back {
    transform: rotateY(180deg) !important;
}

/* 情侣卡片图片 */
.flip-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* 情侣卡片按钮组 */
.flip-card .card-cover {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 6px !important;
    background: linear-gradient(transparent, rgba(0,0,0,0.6)) !important;
}

/* 隐藏情侣卡片多余名称 */
.flip-card .card-name {
    display: none !important;
}
/* 情侣卡片基础样式兜底 */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 仅美化内容区滚动条，页面本身无滚动条 */
.main::-webkit-scrollbar {
  width: 6px;
}
.main::-webkit-scrollbar-thumb {
  background: rgba(66, 106, 255, 0.4);
  border-radius: 3px;
}
.main::-webkit-scrollbar-track {
  background: transparent;
}
.main {
  scrollbar-width: thin;
  scrollbar-color: rgba(66, 106, 255, 0.4) transparent;
}

/* 二维码弹窗样式 */
.qrcode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}
.qrcode-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}
.qrcode-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}
.qrcode-close {
    margin-top: 10px;
    padding: 6px 20px;
    border: none;
    background: #426AFF;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

/* 页脚全局强制样式，最高优先级，不影响main */
.footer {
    width: 100% !important;
    background-color: #0c0e22 !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    padding: 24px 15px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
}
.footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
}
.footer-beian-links {
    margin-bottom: 12px !important;
}
.footer-beian-links a {
    color: #8890b8 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    margin: 0 8px !important;
    transition: color 0.3s ease !important;
}
.footer-beian-links a:hover {
    color: #426AFF !important;
    text-decoration: underline !important;
}
.footer-copyright {
    color: #8890b8 !important;
    font-size: 13px !important;
    opacity: 0.8 !important;
    margin: 0 !important;
}
.footer-copyright:hover {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

/* 移动端适配图标尺寸 */
@media (max-width: 640px) {
    div > img[alt="公安备案图标"] {
        width: 70px !important;
        border-radius: 6px !important;
    }
}

/* 搜索框 靠右定位、仅向右展开、不挤压左侧元素 */
.search-box {
    position: absolute !important;
    right: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    height: 36px !important;
    padding: 0 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 30px !important;
    transition: width 0.3s ease !important;
    cursor: text !important;
    z-index: 10 !important;
    width: 220px !important;
    max-width: 340px !important;
}

.search-box:hover {
    border-color: rgba(66, 106, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0 8px rgba(66, 106, 255, 0.25) !important;
}

/* 聚焦：向右延伸，左侧位置完全固定 */
.search-box:focus-within {
    width: 280px !important;
    border-color: #426AFF !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 12px rgba(66, 106, 255, 0.4), inset 0 0 6px rgba(66, 106, 255, 0.1) !important;
}

.search-icon {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: color 0.3s ease !important;
    flex-shrink: 0 !important;
}
.search-box:focus-within .search-icon {
    color: #426AFF !important;
}

#searchInput {
    margin-left: 8px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #fff !important;
    font-size: 14px !important;
    width: 100% !important;
    padding-right: 24px !important;
}
#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}

.search-clear {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    text-align: center !important;
    font-size: 16px !important;
    color: rgba(255,255,255,0.5) !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    transition: all 0.2s !important;
    display: none !important;
    z-index: 99 !important;
    pointer-events: auto !important;
    user-select: none !important;
}
.search-clear:hover {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
}
.search-clear:active {
    background: rgba(255,255,255,0.2) !important;
}
.search-box input:not(:placeholder-shown) + .search-clear {
    display: inline-block !important;
}

.stats-number {
    display: inline-block;
    transition: all 0.15s ease;
    will-change: transform, color;
}
/* 闪烁+弹跳组合动画 */
.stats-number.jump {
    animation: numFlash 0.8s ease;
}
@keyframes numFlash {
    0% { transform: scale(1); color: #fff; }
    25% { transform: scale(1.15); color: #426AFF; }
    50% { transform: scale(1); color: #fff; }
    75% { transform: scale(1.08); color: #426AFF; }
    100% { transform: scale(1); color: #fff; }
}
/* 新增：数字滚动动画（仅追加，不修改你原有样式） */
.stats-number.rolling {
    animation: numRoll 0.5s ease-out;
}
@keyframes numRoll {
    0% { transform: translateY(-6px); opacity: 0.4; }
    50% { transform: translateY(2px); opacity: 0.8; }
    100% { transform: translateY(0); opacity: 1; }
}
/* ========== 重新设计的 Footer 样式 ========== */
.footer {
    width: 100%;
    padding: 28px 0;
    margin-top: 60px;
    background: #0D0F2D;
    border-top: 1px solid rgba(66, 106, 255, 0.15);
    position: relative;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
}

.footer-row {
    width: 100%;
    height: 100%;
}

/* 大屏默认：你想要的 left:-300px 效果 */
.footer-stats-grid {
    position: absolute;
    top: 50%;
    left: -300px;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* 下方所有样式原封不动，未做任何修改 */
.stats-card {
    background: rgba(66, 106, 255, 0.1);
    border: 1px solid rgba(66, 106, 255, 0.2);
    border-radius: 10px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    min-width: 120px;
}

.stats-card:hover {
    transform: translateY(-2px);
    border-color: rgba(66, 106, 255, 0.4);
    background: rgba(66, 106, 255, 0.15);
}

.stats-icon-wrap {
    width: 34px;
    height: 34px;
    background: rgba(66, 106, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stats-icon {
    width: 18px;
    height: 18px;
    color: #426AFF;
}

.stats-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stats-label {
    font-size: 12px;
    color: #8890b8;
}

.stats-number {
    font-size: 18px;
    font-weight: 700;
    color: #426AFF;
    line-height: 1;
}

.stats-unit {
    font-size: 11px;
    color: #6a72a0;
    margin-left: 2px;
}

/* 备案版权：容器内水平居中，保持原样 */
.footer-bottom {
    text-align: center;
    padding-left: 0;
}

.footer-beian {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 13px;
}

.footer-beian img {
    width: 18px;
    height: auto;
}

.footer-beian a {
    color: #8890b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-beian a:hover {
    color: #426AFF;
}

.footer-copyright {
    font-size: 12px;
    color: #8890b8;
    opacity: 0.7;
}

/* 数字动画 原样保留 */
.stats-number.rolling {
    animation: numRoll 0.5s ease;
}
.stats-number.jump {
    animation: numJump 0.8s ease;
}
@keyframes numRoll {
    0% { transform: translateY(-4px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes numJump {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 小屏：取消绝对定位、恢复正常布局，解决遮挡/溢出 */
@media (max-width: 1200px) {
    .footer {
        padding: 28px 20px;
    }
    /* 关键修复：小屏关闭绝对定位，恢复正常流 */
    .footer-stats-grid {
        position: static;
        left: 0;
        transform: none;
        margin-bottom: 20px;
    }
    .footer-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-bottom {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 左侧悬浮拉出统计面板 ========== */
/* 触发箭头按钮 */
.sidebar-toggle {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 80px;
  background: rgba(66, 106, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(66, 106, 255, 0.35);
  border-left: none;
  border-radius: 0 8px 8px 0;
  color: #e2e8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 102;
  transition: all 0.3s ease;
}
.sidebar-toggle:hover {
  background: transparent;
  border-color: transparent;
  /* 仅视觉透明，不隐藏元素、不关闭鼠标事件 */
  opacity: 0;
}
/* 箭头上移，-3px 可自行调整 */
.sidebar-toggle svg {
  transition: transform 0.3s ease;
  margin-top: -3px;
}

/* 统计面板主体 默认隐藏在左侧外 */
.sidebar-panel {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translate(-100%, -50%);
  width: 200px;
  background: rgba(13, 15, 45, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(66, 106, 255, 0.3);
  border-radius: 0 12px 12px 0;
  padding: 20px 16px;
  z-index: 101;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
}

/* 正常展开面板 */
.sidebar-toggle:hover + .sidebar-panel,
.sidebar-panel:hover {
  transform: translate(0, -50%);
}

/* 箭头旋转 */
.sidebar-toggle:hover svg {
  transform: rotate(180deg);
}

/* 面板标题 */
.panel-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(66, 106, 255, 0.25);
  letter-spacing: 1px;
}

/* 统计列表 */
.panel-stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  transition: background 0.25s ease;
}
.panel-stat-item:hover {
  background: rgba(66, 106, 255, 0.15);
}
.stat-label {
  font-size: 13px;
  color: #b4bcff;
}
.stat-number {
  font-size: 15px;
  font-weight: 700;
  color: #426AFF;
  transition: all 0.15s ease;
}

/* 数字滚动/跳动动画 复用原有动画类 */
.stat-number.rolling {
  animation: numRoll 0.5s ease-out;
}
.stat-number.jump {
  animation: numFlash 0.8s ease;
}
