/* 小雨修图 官网 · 白底简约 + 暗色模式（无依赖） */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --card: #ffffff;
  --text: #16181d;
  --text-dim: #5b6472;
  --border: #e6e9ee;
  --accent: #2b6bd6;
  --accent-weak: rgba(43, 107, 214, .1);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --radius: 14px;
}
html[data-theme="dark"] {
  --bg: #0e1116;
  --bg-alt: #12161c;
  --card: #151a21;
  --text: #e8ecf3;
  --text-dim: #9aa4b2;
  --border: #242b35;
  --accent: #6ea1ff;
  --accent-weak: rgba(110, 161, 255, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
}
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--accent-weak);
  padding: 1px 5px;
  border-radius: 5px;
  word-break: break-all;
}

/* 顶栏 */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 650; letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.brand-name { font-size: 16px; }
.badge {
  font-size: 11px; font-weight: 600; color: var(--accent);
  background: var(--accent-weak); border-radius: 999px; padding: 1px 8px;
}
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--text-dim); }
.nav a:hover { color: var(--text); text-decoration: none; }
.theme-toggle {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--text-dim); cursor: pointer;
  transition: color .15s, border-color .15s, transform .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle:active { transform: scale(.96); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* 首屏 */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--border); }
.hero-inner { max-width: 780px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.hero h1 { margin: 0 0 16px; font-size: clamp(34px, 5.2vw, 54px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.lead { margin: 0 0 30px; font-size: 17px; color: var(--text-dim); }
.lead strong { color: var(--text); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 11px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  transition: transform .12s, box-shadow .12s, background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-dim); }
.hero-meta li::before { content: "·"; margin-right: 8px; color: var(--border); }
.hero-meta li:first-child::before { content: ""; margin: 0; }

/* 区块 */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { margin: 0 0 8px; font-size: 26px; letter-spacing: -.01em; }
.section-sub { margin: 0 0 34px; color: var(--text-dim); font-size: 15px; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 16px; }
.card p { margin: 0; font-size: 14px; color: var(--text-dim); }

/* 截图 */
.shots { gap: 20px; }
.shot { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; font-size: 13px; color: var(--text-dim); border-top: 1px solid var(--border); }

/* 下载 */
.dl-card { display: flex; flex-direction: column; gap: 10px; }
.dl-card h3 { font-size: 18px; }
.dl-file { font-size: 13px; }
.dl-meta { font-size: 13px; color: var(--text-dim); }
.dl-card .btn { align-self: flex-start; }
.dl-card .btn + .btn { margin-top: 0; }
.dl-details { margin-top: 6px; font-size: 13px; color: var(--text-dim); }
.dl-details summary { cursor: pointer; color: var(--accent); }
.dl-details ol { margin: 8px 0 0; padding-left: 20px; }
.dl-details li { margin: 4px 0; }
.dl-note { font-size: 12px; color: var(--text-dim); }
.hash { font-size: 11px; }
.req { margin: 22px 0 0; font-size: 13px; color: var(--text-dim); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.faq details[open] summary { margin-bottom: 8px; }
.faq p { margin: 0; font-size: 14px; color: var(--text-dim); }

/* 页脚 */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { margin: 0 0 4px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.footer-dim { margin: 0; font-size: 13px; color: var(--text-dim); }
.footer-links { display: flex; gap: 18px; font-size: 13px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .header-inner { height: 56px; }
  .hero h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* —— 首屏图标与雨丝（呼应软件图标的云+雨+星芒）—— */
.hero-art { position: relative; display: grid; place-items: center; min-height: 220px; }
.hero-art .rain { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); opacity: .28; pointer-events: none; }
.hero-art .app-icon {
  position: relative; width: min(180px, 52vw); height: auto; border-radius: 26px;
  filter: drop-shadow(0 18px 32px rgba(20, 30, 60, .28));
}
.hero-art .spark {
  position: absolute; right: 16%; top: 12%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); opacity: .55; box-shadow: 0 0 18px 4px var(--accent-weak);
  animation: spark 3.2s ease-in-out infinite;
}
@keyframes spark { 0%, 100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.5); opacity: .8; } }

/* —— 反馈区 —— */
.feedback-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 34px; align-items: center; }
.feedback-copy p { margin: 0 0 12px; color: var(--text-dim); font-size: 15px; }
.email-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px !important; }
.email-row .email { font-size: 15px; }
.feedback-note .quote {
  margin: 0; padding: 22px 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
  border-left: 3px solid var(--accent);
}
.feedback-note .quote p { margin: 0 0 8px; font-size: 15px; }
.feedback-note .quote .quote-by { margin: 0; font-size: 13px; color: var(--text-dim); }
.footer-icon { border-radius: 6px; vertical-align: -5px; margin-right: 2px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-art { order: -1; min-height: 150px; }
  .hero-art .app-icon { width: 120px; border-radius: 20px; }
  .feedback-wrap { grid-template-columns: 1fr; gap: 22px; }
}

/* 首屏两栏（放在文件末尾确保优先；前面 .hero-inner 的旧规则不再使用） */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, .9fr);
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
}
/* —— 背景设计元素（白色简约：低透明度光晕 + 点阵 + 细弧线）—— */
.bg-deco { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-deco span { position: absolute; display: block; }
.deco-wash {
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}
.wash-1 {
  width: 620px; height: 620px; left: -180px; top: -220px;
  background: radial-gradient(circle at 40% 40%, rgba(43, 107, 214, .14), rgba(43, 107, 214, 0) 68%);
}
.wash-2 {
  width: 720px; height: 720px; right: -240px; top: 420px;
  background: radial-gradient(circle at 60% 40%, rgba(20, 160, 150, .10), rgba(20, 160, 150, 0) 70%);
}
html[data-theme="dark"] .wash-1 { background: radial-gradient(circle at 40% 40%, rgba(110, 161, 255, .16), rgba(110, 161, 255, 0) 68%); }
html[data-theme="dark"] .wash-2 { background: radial-gradient(circle at 60% 40%, rgba(64, 200, 190, .12), rgba(64, 200, 190, 0) 70%); }
.deco-dots {
  inset: 0;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--text);
  opacity: .045;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 62%);
}
.deco-arc {
  width: 1100px; height: 1100px; left: 50%; top: -720px; transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: 50%;
  opacity: .55;
  box-shadow: 0 0 0 180px rgba(43, 107, 214, .025), 0 0 0 360px rgba(43, 107, 214, .015);
}
html[data-theme="dark"] .deco-arc { box-shadow: 0 0 0 180px rgba(110, 161, 255, .05), 0 0 0 360px rgba(110, 161, 255, .03); }
/* 内容层压在装饰之上 */
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* 修图示例说明 */
.shots-note { margin: 14px 0 0; font-size: 12px; color: var(--text-dim); }
.shot figcaption b { color: var(--text); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { .hero-art .spark { animation: none; } }
/* 示例图卡片各自高度，竖图不会把横图拉出空白 */
.shots { align-items: start; }
.shot img { display: block; }

/* 下载区：7z 备选 / 体积说明 */
.dl-alt { margin: 10px 0 0; font-size: 13px; color: var(--text-dim); }
.dl-alt a { font-size: 13px; }
.dl-why { margin-top: 18px; }
.dl-why ul { margin: 8px 0 0; padding-left: 20px; }
.dl-why li { margin: 4px 0; font-size: 13px; color: var(--text-dim); }