/* ---------- 小雨修图 官网 · 第三版补充（界面轮播 / 满版示例 / 可见背景元素） ---------- */

/* ===== 背景设计元素（这次做得看得见，但仍然白色简约） ===== */
body { background-image: none; }
.bg-deco { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; display: block; }
.bg-deco span { position: absolute; display: block; }

/* 两团柔光（比之前更明显） */
.deco-wash { border-radius: 50%; filter: blur(58px); }
.wash-1 {
  width: 720px; height: 720px; left: -220px; top: -260px; opacity: .9;
  background: radial-gradient(circle at 45% 45%, rgba(43, 107, 214, .22), rgba(43, 107, 214, 0) 66%);
}
.wash-2 {
  width: 780px; height: 780px; right: -260px; top: 340px; opacity: .9;
  background: radial-gradient(circle at 55% 45%, rgba(15, 165, 155, .18), rgba(15, 165, 155, 0) 68%);
}
.wash-3 {
  width: 620px; height: 620px; left: 32%; bottom: -320px; opacity: .85;
  background: radial-gradient(circle at 50% 50%, rgba(255, 176, 120, .14), rgba(255, 176, 120, 0) 70%);
}
html[data-theme="dark"] .wash-1 { background: radial-gradient(circle at 45% 45%, rgba(110, 161, 255, .20), rgba(110, 161, 255, 0) 66%); }
html[data-theme="dark"] .wash-2 { background: radial-gradient(circle at 55% 45%, rgba(64, 220, 205, .16), rgba(64, 220, 205, 0) 68%); }
html[data-theme="dark"] .wash-3 { background: radial-gradient(circle at 50% 50%, rgba(255, 170, 120, .12), rgba(255, 170, 120, 0) 70%); }

/* 细网格（这次要看得见：透明度提到 1，靠 mask 淡出而不是整体压暗） */
.deco-grid {
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(43, 107, 214, .26) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 107, 214, .26) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 1;
  mask-image: radial-gradient(ellipse 82% 58% at 50% 6%, #000 10%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 82% 58% at 50% 6%, #000 10%, transparent 74%);
}
html[data-theme="dark"] .deco-grid {
  background-image:
    linear-gradient(to right, rgba(120, 165, 255, .28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 165, 255, .28) 1px, transparent 1px);
}
/* 对角细线（雨丝感的抽象化，两簇） */
.deco-lines {
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(43, 107, 214, .10) 0 1px, transparent 1px 26px);
  opacity: 1;
  mask-image: radial-gradient(ellipse 60% 46% at 18% 8%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 60% 46% at 18% 8%, #000 0%, transparent 72%);
}
html[data-theme="dark"] .deco-lines { background-image: repeating-linear-gradient(115deg, rgba(120, 165, 255, .12) 0 1px, transparent 1px 26px); }
/* 点阵（叠在网格之上，更细） */
.deco-dots {
  inset: 0;
  background-image: radial-gradient(currentColor 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  color: var(--text);
  opacity: .12;
  mask-image: radial-gradient(ellipse 60% 40% at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 40% at 50% 0%, #000 0%, transparent 70%);
}
/* 顶部大圆弧 + 两侧细弧线 */
.deco-arc {
  width: 1200px; height: 1200px; left: 50%; top: -800px; transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: 50%;
  opacity: .8;
  box-shadow: 0 0 0 200px rgba(43, 107, 214, .028), 0 0 0 400px rgba(43, 107, 214, .018);
}
.deco-ring-l, .deco-ring-r { width: 380px; height: 380px; border: 1px solid var(--border); border-radius: 50%; opacity: .8; }
.deco-ring-l { left: -170px; top: 46%; }
.deco-ring-r { right: -150px; top: 18%; }
html[data-theme="dark"] .deco-arc { box-shadow: 0 0 0 200px rgba(110, 161, 255, .06), 0 0 0 400px rgba(110, 161, 255, .035); }
/* 内容压在装饰之上 */
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ===== 软件界面轮播（中间大、两侧叠放） ===== */
.ui-section { padding-top: 68px; }
.deck {
  position: relative;
  height: clamp(300px, 34vw, 460px);
  display: grid; place-items: center;
  perspective: 1400px;
  margin-top: 6px;
}
.deck-card {
  position: absolute;
  width: min(68%, 780px);
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .08);
  transition: transform .5s cubic-bezier(.22, .8, .3, 1), opacity .5s, filter .5s;
  cursor: pointer;
  will-change: transform, opacity;
}
.deck-card img { display: block; width: 100%; height: auto; }
.deck-card figcaption {
  padding: 8px 12px; font-size: 12px; color: var(--text-dim);
  border-top: 1px solid var(--border); background: var(--card);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.deck-card.is-center { transform: translateX(0) translateZ(0) scale(1); z-index: 5; opacity: 1; }
.deck-card.is-left { transform: translateX(-58%) translateZ(-60px) rotateY(10deg) scale(.86); z-index: 4; opacity: .78; }
.deck-card.is-right { transform: translateX(58%) translateZ(-60px) rotateY(-10deg) scale(.86); z-index: 4; opacity: .78; }
.deck-card.is-far-left { transform: translateX(-96%) translateZ(-140px) rotateY(14deg) scale(.72); z-index: 3; opacity: .42; }
.deck-card.is-far-right { transform: translateX(96%) translateZ(-140px) rotateY(-14deg) scale(.72); z-index: 3; opacity: .42; }
.deck-card.is-hidden { opacity: 0; pointer-events: none; transform: translateX(0) scale(.6); z-index: 1; }
.deck-card.is-center { box-shadow: 0 22px 50px rgba(16, 24, 40, .22), 0 4px 10px rgba(16, 24, 40, .1); }
html[data-theme="dark"] .deck-card { box-shadow: 0 14px 40px rgba(0, 0, 0, .6); }
.deck-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.deck-dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%;
  border: none; background: var(--border); cursor: pointer; transition: background .2s, transform .2s;
}
.deck-dots button[aria-selected="true"] { background: var(--accent); transform: scale(1.35); }

/* ===== 修图示例：图片铺满卡片，说明叠在图上 ===== */
.shots-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shot {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--card);
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow);
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.shot:hover img { transform: scale(1.03); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 11px;
  font-size: 12.5px; line-height: 1.4; color: #fff;
  background: linear-gradient(to top, rgba(8, 12, 20, .82), rgba(8, 12, 20, .45) 55%, rgba(8, 12, 20, 0));
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.shot figcaption b { color: #fff; margin-right: 6px; }

@media (max-width: 860px) {
  .deck { height: clamp(220px, 46vw, 320px); }
  .deck-card { width: 82%; }
  .deck-card.is-left { transform: translateX(-46%) scale(.84); }
  .deck-card.is-right { transform: translateX(46%) scale(.84); }
  .deck-card.is-far-left, .deck-card.is-far-right { opacity: 0; }
  .shots-grid { grid-template-columns: 1fr; }
  .shot { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .deck-card, .shot img { transition: none; }
}

/* 下载三选一 */
.dl-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dl-card.dl-primary { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 12px 32px rgba(43, 107, 214, .14); }
.dl-points { margin: 12px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--text-dim); }
.dl-points li { margin: 4px 0; }
.dl-hash { margin: 10px 0 0; font-size: 11px; color: var(--text-dim); word-break: break-all; }
.dl-hash code { font-size: 11px; }
@media (max-width: 900px) { .dl-options { grid-template-columns: 1fr; } }
/* 轮播左右箭头（之前只有圆点，很多人找不到切换入口） */
.deck-wrap { position: relative; }
.deck-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 26px; line-height: 1; padding-bottom: 4px;
  background: var(--card); color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(16, 24, 40, .14);
  cursor: pointer; z-index: 9; transition: transform .15s, border-color .15s, color .15s;
}
.deck-arrow:hover { transform: translateY(-50%) scale(1.06); border-color: var(--accent); color: var(--accent); }
.deck-prev { left: max(6px, calc(50% - 430px)); }
.deck-next { right: max(6px, calc(50% - 430px)); }
html[data-theme="dark"] .deck-arrow { box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
@media (max-width: 900px) {
  .deck-prev { left: 2px; }
  .deck-next { right: 2px; }
  .deck-arrow { width: 36px; height: 36px; font-size: 22px; }
}

/* 修图示例：6 张 → 三列（排版更满） */
.shots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .shots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .shots-grid { grid-template-columns: 1fr; } }