/* 小雨修图 官网 · 苹果风细化（大留白、大字重、克制的颜色与圆角）
   加载顺序在 style.css / style-deck.css 之后，用来覆盖视觉层 */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;            /* Apple 的黑白灰体系 */
  --card: #ffffff;
  --text: #1d1d1f;
  --text-dim: #6e6e73;
  --border: #e5e5e7;
  --accent: #0071e3;            /* Apple 蓝 */
  --accent-weak: rgba(0, 113, 227, .08);
  --radius: 18px;
  --shadow: none;
  --shadow-lift: 0 12px 32px rgba(0, 0, 0, .08);
}
html[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #0b0b0d;
  --card: #161617;
  --text: #f5f5f7;
  --text-dim: #a1a1a6;
  --border: #2a2a2d;
  --accent: #2997ff;
  --accent-weak: rgba(41, 151, 255, .12);
  --shadow-lift: 0 12px 32px rgba(0, 0, 0, .6);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}

/* 顶栏：更细、更静 */
.site-header { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(20px) saturate(1.6); border-bottom: 1px solid var(--border); }
.header-inner { height: 48px; gap: 22px; }
.brand { font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; box-shadow: none; }
.badge { background: transparent; color: var(--text-dim); font-weight: 400; font-size: 12px; padding: 0; }
.nav { gap: 26px; font-size: 12.5px; }
.nav a { color: var(--text-dim); transition: color .2s; }
.nav a:hover { color: var(--text); }
.theme-toggle { width: 30px; height: 30px; border-radius: 8px; border-color: transparent; background: transparent; }
.theme-toggle:hover { border-color: var(--border); }

/* 首屏：居中大标题（Apple 式） */
.hero { padding: 92px 0 64px; text-align: center; border-bottom: none; }
.hero-grid { display: block; }
.hero-copy { max-width: 780px; margin: 0 auto; }
.eyebrow { font-size: 13px; letter-spacing: .01em; text-transform: none; color: var(--text-dim); margin-bottom: 14px; }
.hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 700;
  margin: 0 0 20px;
}
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--text-dim); max-width: 640px; margin: 0 auto 26px; }
.lead strong { color: var(--text); font-weight: 600; }
.cta-row { justify-content: center; gap: 14px; }
.btn { height: 42px; padding: 0 22px; border-radius: 980px; font-size: 14px; font-weight: 500; letter-spacing: -.01em; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: none; }
.btn-primary:hover { filter: none; background: #0077ed; transform: none; }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-dim); color: var(--text); text-decoration: none; }
.hero-meta { justify-content: center; margin-top: 24px; font-size: 12px; color: var(--text-dim); }
.hero-meta li::before { content: none; }
.hero-meta li { opacity: .9; }

/* 首屏右侧图标区在 Apple 风里改为居中的产品图 */
.hero-art { margin: 40px auto 0; min-height: 0; }
.hero-art .app-icon { width: min(150px, 34vw); border-radius: 22px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .18)); }
.hero-art .rain { display: none; }
.hero-art .spark { display: none; }

/* 区块：大留白 + 居中标题 */
.section { padding: 108px 0; }
.section-alt { background: var(--bg-alt); border: none; }
.section-title { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.025em; font-weight: 700; text-align: center; margin: 0 0 12px; }
.section-sub { text-align: center; max-width: 640px; margin: 0 auto 46px; font-size: 17px; line-height: 1.5; color: var(--text-dim); }

/* 圆形按钮/卡片去阴影，改用极细描边 */
.card { border-radius: var(--radius); box-shadow: none; border: 1px solid var(--border); padding: 26px; transition: transform .25s ease, border-color .25s; }
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--text) 22%, var(--border)); }
.card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; }
.card p { font-size: 14px; line-height: 1.55; }

/* 界面轮播：更像产品展示 */
.ui-section { padding-top: 96px; }
.deck { height: clamp(320px, 38vw, 520px); margin-top: 10px; }
.deck-card { border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .16), 0 4px 12px rgba(0, 0, 0, .06); border: 1px solid var(--border); }
.deck-card.is-center { box-shadow: 0 40px 80px rgba(0, 0, 0, .22), 0 6px 16px rgba(0, 0, 0, .08); }
html[data-theme="dark"] .deck-card { box-shadow: 0 30px 60px rgba(0, 0, 0, .7); }
.deck-card figcaption { font-size: 12px; color: var(--text-dim); border-top: 1px solid var(--border); background: var(--bg); }
.deck-arrow { width: 42px; height: 42px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--border); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.deck-dots button { width: 7px; height: 7px; }
.deck-dots { margin-top: 22px; }

/* 修图示例：图片圆角、悬停轻微放大、可点击提示 */
.shots-grid { gap: 18px; }
.shot { border: none; border-radius: 16px; aspect-ratio: 4 / 3; box-shadow: none; cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shots-grid--cats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.shots-grid--portraits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shots-grid--portraits .shot { aspect-ratio: 1 / 1; }
@media (max-width: 900px) { .shots-grid--portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shot img { border-radius: 16px; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { padding: 30px 16px 14px; font-size: 12.5px; letter-spacing: 0; }
.shots-note { text-align: center; font-size: 12px; color: var(--text-dim); margin-top: 22px; }

/* 下载：三个等高空卡片，主推荐更简洁 */
.dl-options { align-items: stretch; }
.dl-card { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: 18px; }
.dl-card.dl-primary { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: 0 18px 40px rgba(0, 113, 227, .10); }
.dl-card h3 { font-size: 19px; font-weight: 600; }
.dl-file { margin: 0; }
.dl-file code { background: transparent; padding: 0; color: var(--text-dim); font-size: 12px; }
.dl-meta { font-size: 13.5px; color: var(--text-dim); margin: 0; }
.dl-card .btn { margin-top: auto; align-self: flex-start; }
.dl-hash { margin-top: 6px; font-size: 10.5px; line-height: 1.6; color: var(--text-dim); opacity: .8; word-break: break-all; }
.dl-hash code { font-size: 10.5px; background: transparent; padding: 0; }
.dl-points { display: none; }               /* 主推荐不再堆细节 */
.dl-alt { font-size: 13px; }
.dl-why { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 30px; }
.req { text-align: center; font-size: 12.5px; color: var(--text-dim); margin-top: 30px; }

/* 反馈：Apple 式大引言 */
.feedback-wrap { display: block; max-width: 820px; text-align: center; }
.feedback-copy { text-align: center; }
.feedback-copy p { font-size: 17px; line-height: 1.55; }
.email-row { justify-content: center; margin-top: 24px !important; }
.feedback-note { margin-top: 40px; }
.feedback-note .quote { border: none; border-left: none; padding: 0; box-shadow: none; background: transparent; }
.feedback-note .quote p:first-child { font-size: clamp(22px, 3vw, 30px); line-height: 1.4; letter-spacing: -.02em; font-weight: 600; color: var(--text); }
.feedback-note .quote .quote-by { margin-top: 14px; font-size: 14px; color: var(--text-dim); }

/* FAQ：更安静 */
.faq details { border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; background: var(--card); }
.faq summary { font-weight: 500; font-size: 15.5px; letter-spacing: -.01em; }
.faq p { font-size: 14px; }

/* 页脚：细、居中、安静 */
.site-footer { border-top: 1px solid var(--border); padding: 34px 0 42px; }
.footer-inner { display: block; text-align: center; }
.footer-brand { justify-content: center; font-size: 13px; font-weight: 500; }
.footer-icon { width: 18px; height: 18px; }
.footer-dim { font-size: 12px; margin-top: 6px; }
.footer-links { justify-content: center; gap: 22px; margin-top: 16px; font-size: 12px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }

/* 背景：苹果风（顶部渐隐 + 大范围柔光，不用网格/斜线/圆环） */
.deco-wash, .deco-grid, .deco-lines, .deco-dots, .deco-arc, .deco-ring-l, .deco-ring-r { display: none !important; }
.bg-deco { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-deco span { position: absolute; display: block; }

/* 顶部一层极淡的灰白渐变，像苹果首屏那种柔和的"起雾" */
.deco-topfade {
  inset: 0 0 auto 0; height: 620px;
  background: linear-gradient(to bottom, rgba(244, 245, 247, .95) 0%, rgba(244, 245, 247, .55) 38%, rgba(255, 255, 255, 0) 100%);
}
html[data-theme="dark"] .deco-topfade {
  background: linear-gradient(to bottom, rgba(28, 28, 30, .95) 0%, rgba(12, 12, 13, .6) 40%, rgba(0, 0, 0, 0) 100%);
}

/* 三团柔光：大半径、低透明、无边界（苹果常用的极淡彩色光晕） */
.deco-glow { border-radius: 50%; filter: blur(90px); }
.glow-hero {
  width: 1180px; height: 620px; left: 50%; top: -300px; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 113, 227, .13), rgba(0, 113, 227, .05) 46%, rgba(0, 113, 227, 0) 72%);
}
.glow-mid {
  width: 900px; height: 900px; right: -320px; top: 1180px;
  background: radial-gradient(circle at 50% 50%, rgba(126, 87, 255, .09), rgba(126, 87, 255, 0) 70%);
}
.glow-bottom {
  width: 1100px; height: 1100px; left: -360px; bottom: -380px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 199, 190, .08), rgba(0, 199, 190, 0) 70%);
}
html[data-theme="dark"] .glow-hero { background: radial-gradient(ellipse at 50% 50%, rgba(41, 151, 255, .20), rgba(41, 151, 255, .06) 46%, rgba(41, 151, 255, 0) 72%); }
html[data-theme="dark"] .glow-mid { background: radial-gradient(circle at 50% 50%, rgba(140, 100, 255, .14), rgba(140, 100, 255, 0) 70%); }
html[data-theme="dark"] .glow-bottom { background: radial-gradient(circle at 50% 50%, rgba(0, 220, 210, .10), rgba(0, 220, 210, 0) 70%); }

/* 区块之间用苹果式的"白 → 灰"过渡，而不是硬分隔线 */
.hero { background: transparent; }
.section-alt { background: var(--bg-alt); }
.ui-section { background: transparent; }

/* 图片放大（lightbox） */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(6px);
  padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox-cap { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: #f5f5f7; font-size: 13.5px; opacity: .85; text-align: center; max-width: 80vw; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; border: none;
  font-size: 22px; cursor: pointer; line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; border: none;
  font-size: 26px; cursor: pointer; line-height: 1; padding-bottom: 4px;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 860px) {
  .hero { padding: 64px 0 44px; }
  .section { padding: 72px 0; }
  .section-title { font-size: 32px; }
  .deck-arrow { display: none; }             /* 手机上点卡片/圆点即可 */
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .shot img, .card, .deck-card { transition: none; }
}

/* 轮播卡片向外偏移会产生横向滚动，裁掉（clip 比 hidden 更友好） */
html, body { overflow-x: clip; }
.dl-hash { display: none; }

/* 首屏 App 图标（App Store 式：大、圆角、轻微投影，居中） */
.hero-icon { display: flex; justify-content: center; margin: 0 auto 26px; }
.hero-icon img {
  width: clamp(96px, 12vw, 128px); height: auto;
  border-radius: 26%;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .22), 0 4px 12px rgba(0, 0, 0, .10);
  transition: transform .4s cubic-bezier(.22, .8, .3, 1);
}
.hero-icon img:hover { transform: translateY(-3px) scale(1.02); }
html[data-theme="dark"] .hero-icon img { box-shadow: 0 22px 50px rgba(0, 0, 0, .65), 0 2px 8px rgba(0, 0, 0, .5); }

/* 下载卡：标题 + 推荐标签；三个按钮统一样式与宽度 */
.dl-card h3 { display: flex; align-items: center; gap: 8px; }
.pill {
  font-size: 11px; font-weight: 500; line-height: 1;
  padding: 4px 8px; border-radius: 999px;
  background: var(--accent-weak); color: var(--accent);
}
.dl-card .btn { width: 100%; justify-content: center; margin-top: auto; }
/* GitHub 入口（顶部导航 + 下载区） */
.nav-gh { display: inline-flex; align-items: center; gap: 3px; }
.nav-gh .ext { font-size: 10px; opacity: .7; }
.dl-github { margin: 18px 0 0; font-size: 13px; color: var(--text-dim); text-align: center; }
.dl-github a { color: var(--accent); }
.dl-github .ext { font-size: 10px; opacity: .7; }

/* 首屏白色 GitHub 下载按钮（带图标） */
.btn-github {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.btn-github svg { flex: 0 0 auto; }
.btn-github:hover { border-color: color-mix(in srgb, var(--text) 35%, var(--border)); background: #fff; color: var(--text); text-decoration: none; }
html[data-theme="dark"] .btn-github { background: #1c1c1e; border-color: #3a3a3d; color: var(--text); }
html[data-theme="dark"] .btn-github:hover { background: #242426; }
.feature-card-link { color: var(--accent); }

.dl-fallback-hint { margin: 14px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--text-dim); background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
html[data-theme="dark"] .dl-fallback-hint { background: #161618; }

/* 备用网盘下载 */
.dl-mirror { margin: 14px 0 0; font-size: 13px; color: var(--text-dim); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dl-mirror-label { color: var(--text-dim); }
.dl-mirror-link { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 12.5px; text-decoration: none; transition: border-color .15s, color .15s; }
.dl-mirror-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
