/* photocraft.baozangapp.com — 深色创作工作台风(品牌蓝 #3b8cff 取自官方 app icon)
   与 Rufus 站(白底 #3f4555 工具风)刻意差异化:大图 Hero、gallery 灯箱、诚实状态段。 */

:root {
  --bg: #121419;
  --bg-soft: #171a21;
  --panel: #1a1d24;
  --panel-2: #22262f;
  --line: #2c313c;
  --text: #eceef2;
  --sub: #a3abbb;
  --mut: #6b7486;
  --accent: #3b8cff;
  --accent-deep: #2f76e0;
  --accent-soft: rgba(59, 140, 255, 0.13);
  --ok: #43c17e;
  --ok-soft: rgba(67, 193, 126, 0.12);
  --warn: #d9a13c;
  --warn-line: rgba(217, 161, 60, 0.5);
  --warn-bg: rgba(217, 161, 60, 0.08);
  --wrap: 1280px;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16.5px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
section { scroll-margin-top: 84px; }
a { color: var(--ok); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 0.92em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(18, 20, 25, 0.93); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.brand .ver { font-family: var(--mono); font-size: 12.5px; color: var(--accent); border: 1px solid var(--line); background: var(--accent-soft); border-radius: 99px; padding: 1px 9px; font-weight: 400; }
.nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-links a { color: var(--sub); font-size: 14.5px; padding: 8px 11px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav-cta { color: #0d1524 !important; background: var(--accent); font-weight: 600; border-radius: 8px; padding: 8px 16px !important; }
.nav-cta:hover { background: var(--accent-deep); }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 20px; border-radius: 8px; width: 44px; height: 44px; margin-left: auto; cursor: pointer; }

/* ---------- hero:左文右图 ---------- */
.hero { border-bottom: 1px solid var(--line); background:
  radial-gradient(1000px 460px at 78% -8%, rgba(59, 140, 255, 0.10), transparent 62%),
  radial-gradient(760px 400px at -8% 108%, rgba(67, 193, 126, 0.06), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 44px; padding: 56px 0 58px; align-items: center; }
.kicker { font-family: var(--mono); color: var(--ok); font-size: 13.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.hero h1 { font-size: 38px; line-height: 1.3; margin: 12px 0 16px; font-weight: 700; }
.hero h1 .hl { color: var(--accent); }
.hero-intro { color: var(--sub); font-size: 16.5px; margin: 0 0 20px; }
.hero-intro strong { color: var(--text); font-weight: 600; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.badge { font-family: var(--mono); font-size: 12.5px; color: var(--sub); border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 3px 11px; }
.badge.on { color: var(--ok); border-color: rgba(67, 193, 126, 0.4); background: var(--ok-soft); }
.badge.warn { color: var(--warn); border-color: var(--warn-line); background: var(--warn-bg); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 24px; border-radius: 10px; font-size: 16.5px; font-weight: 600; }
.btn-primary { background: var(--accent); color: #0d1524; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--accent-deep); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--panel-2); text-decoration: none; }
.btn-ghost .mono, .btn-primary .mono { font-size: 0.85em; opacity: 0.8; }
.hero-note { font-family: var(--mono); font-size: 12.5px; color: var(--mut); margin-top: 16px; }

/* hero shot */
.hero-shot { position: relative; }
.hero-shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); display: block; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
.hero-shot .flag { position: absolute; left: 14px; bottom: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--sub); background: rgba(18, 20, 25, 0.85); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; backdrop-filter: blur(6px); }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.fact .k { font-size: 12.5px; color: var(--mut); font-family: var(--mono); }
.fact .v { font-size: 16px; font-weight: 600; margin-top: 3px; }
.fact .v.mono { font-size: 14.5px; }

/* ---------- sections ---------- */
.section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.section h2 { font-size: 28px; line-height: 1.35; margin: 0 0 8px; font-weight: 700; display: flex; align-items: center; gap: 14px; }
.section h2::before { content: ""; display: inline-block; width: 5px; height: 26px; border-radius: 3px; background: var(--accent); flex: none; }
.lede { color: var(--sub); font-size: 17px; margin: 0 0 26px; padding-left: 19px; }
.lede strong, .section p strong { color: var(--text); font-weight: 600; }
.section h3 { font-size: 19.5px; margin: 32px 0 10px; font-weight: 600; }
.section p { color: var(--sub); }
.section ul { color: var(--sub); }

.caveat { border: 1px solid var(--warn-line); background: var(--warn-bg); border-radius: 10px; padding: 13px 16px; color: #e8c684; font-size: 14.5px; margin: 0 0 20px; }
.caveat::before { content: "⚠ "; }
blockquote { margin: 18px 0; padding: 12px 18px; border-left: 3px solid var(--warn); background: var(--warn-bg); color: #e8c684; border-radius: 0 8px 8px 0; font-size: 15px; }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 12.5px; color: var(--mut); font-weight: 400; letter-spacing: 0.06em; white-space: nowrap; background: var(--bg-soft); }
td { color: var(--sub); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
td.num, td .num { font-family: var(--mono); color: var(--text); }
td strong { color: var(--text); }
td a { white-space: nowrap; }

/* status cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.card .t { font-weight: 600; font-size: 16.5px; margin-bottom: 6px; }
.card p { margin: 0; font-size: 14.5px; }
.card ul { margin: 0; padding-left: 18px; font-size: 14.5px; }
.card.num-card .n { font-family: var(--mono); font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1.2; }
.card.num-card .d { font-size: 13.5px; color: var(--sub); }

.gap-list li { margin-bottom: 8px; }
.win-list li { margin-bottom: 8px; }
.win-list li::marker { color: var(--ok); content: "✓ "; }
.gap-list li::marker { color: var(--warn); content: "✗ "; }

/* gallery */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.gal-group { margin-bottom: 26px; }
.gal-group h3 { margin: 0 0 12px; }
.gal-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); cursor: zoom-in; padding: 0; width: 100%; display: block; text-align: left; }
.gal-item:hover { border-color: var(--accent-deep); }
.gal-item img { width: 100%; height: auto; display: block; }
.gal-item figcaption { font-size: 12.5px; color: var(--mut); padding: 10px 12px; line-height: 1.6; }

/* lightbox(挂 body 层,压过吸顶导航) */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8, 9, 12, 0.92); display: none; align-items: center; justify-content: center; flex-direction: column; }
.lightbox.on { display: flex; }
.lb-img { max-width: min(1400px, 92vw); max-height: 78vh; border-radius: 10px; border: 1px solid var(--line); }
.lb-cap { color: var(--sub); font-size: 13.5px; max-width: 900px; text-align: center; padding: 14px 20px 6px; }
.lb-i { font-family: var(--mono); color: var(--mut); font-size: 12.5px; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-size: 22px; border-radius: 10px; width: 48px; height: 48px; cursor: pointer; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; font-size: 18px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; cursor: pointer; }
body.lb-open { overflow: hidden; }

/* download hero panel */
.panel-accent { border: 1px solid rgba(59, 140, 255, 0.4); background: linear-gradient(180deg, rgba(59, 140, 255, 0.08), rgba(59, 140, 255, 0.02)); border-radius: 14px; padding: 22px 24px; margin-bottom: 26px; }
.panel-accent .t { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.panel-accent p { margin: 0 0 12px; }
.panel-accent p:last-child { margin-bottom: 0; }

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
ol.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 66px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
ol.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 20px; color: var(--accent); border: 1px solid rgba(59, 140, 255, 0.4); background: var(--accent-soft); border-radius: 9px; padding: 4px 10px; }
ol.steps li b { color: var(--text); }
ol.steps li p { margin: 4px 0 0; font-size: 14.5px; }

/* faq */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 20px; font-size: 16.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .a { padding: 14px 20px 16px; color: var(--sub); font-size: 15px; }

/* changelog */
.cl-table td:first-child { font-family: var(--mono); color: var(--accent); white-space: nowrap; }
.cl-table td:nth-child(2) { font-family: var(--mono); white-space: nowrap; }

/* sources */
.src-list { margin: 0; padding: 0; list-style: none; }
.src-list li { padding: 12px 0; border-bottom: 1px dashed var(--line); color: var(--sub); font-size: 15px; }
.src-list li:last-child { border-bottom: none; }
.src-list .u { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.src-list b { color: var(--text); }

/* footer */
footer { padding: 40px 0 46px; color: var(--mut); font-size: 13.5px; }
.foot-grid { display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--sub); }
.foot-note { margin-top: 22px; font-family: var(--mono); font-size: 12px; line-height: 1.9; }

/* 404 */
.p404 { min-height: 60vh; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 60px 20px; }
.p404 .code { font-family: var(--mono); font-size: 84px; color: var(--accent); font-weight: 700; }
.p404-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.p404-links a { border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; color: var(--text); background: var(--panel); }
.p404-links a:hover { background: var(--panel-2); text-decoration: none; }

#toTop { position: fixed; right: 22px; bottom: 26px; z-index: 40; width: 44px; height: 44px; border-radius: 10px; background: var(--accent); border: none; color: #0d1524; font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
#toTop.show { opacity: 1; pointer-events: auto; }
#toTop:hover { background: var(--accent-deep); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) { .facts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding: 42px 0 46px; }
  .hero h1 { font-size: 31px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .burger { display: block; }
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: rgba(18, 20, 25, 0.98); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; flex-direction: column; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .section { padding: 44px 0; }
  .section h2 { font-size: 24px; }
  .cta-row .btn-primary, .cta-row .btn-ghost { flex: 1 1 100%; }
}
@media (max-width: 480px) { .wrap { padding: 0 18px; } .facts { grid-template-columns: 1fr 1fr; } }
