/* 小柴补光相机 / Puppy Glow — legal & support site */
:root {
  --bg: #FFF9F2;
  --card: #FFFFFF;
  --ink: #241A12;
  --muted: #7A6A5B;
  --accent: #E8892B;
  --accent-soft: #FDF0DF;
  --line: #EFE3D4;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16120E;
    --card: #201A15;
    --ink: #F6EEE6;
    --muted: #A89A8B;
    --accent: #F5A04A;
    --accent-soft: #2C2218;
    --line: #332A22;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16.5px/1.78 -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
        "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .01em;
}

.wrap { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* language switch */
html[data-lang="zh"] .l-en { display: none !important; }
html[data-lang="en"] .l-zh { display: none !important; }

/* header */
.bar {
  position: sticky; top: 0; z-index: 9;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); text-decoration: none; font-weight: 650; font-size: 15.5px;
}
.brand img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  padding: 6px 9px; border-radius: 9px;
}
.nav a:hover { color: var(--ink); background: var(--accent-soft); }
.lang {
  margin-left: 4px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--accent); background: transparent;
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 5px 12px;
}
.lang:hover { background: var(--accent-soft); }

/* hero */
.hero { padding: 46px 0 10px; }
.hero .appicon { width: 76px; height: 76px; border-radius: 18px; display: block; box-shadow: 0 8px 24px rgba(180,110,30,.18); }
.hero h1 { font-size: 29px; line-height: 1.3; margin: 18px 0 8px; letter-spacing: -.01em; }
.hero .lede { color: var(--muted); font-size: 16px; margin: 0; max-width: 46em; }

/* content */
main { padding-bottom: 40px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px 8px;
  margin: 26px 0; box-shadow: 0 1px 2px rgba(120,80,40,.04);
}
.meta { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }

h2 {
  font-size: 18px; line-height: 1.5; margin: 30px 0 8px;
  padding-left: 11px; border-left: 3px solid var(--accent);
}
h2:first-of-type { margin-top: 4px; }
h3 { font-size: 15.5px; margin: 20px 0 6px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin: 0 0 7px; }
li::marker { color: var(--accent); }
strong { font-weight: 650; }
a { color: var(--accent); }
.tight li { margin-bottom: 4px; }

.note {
  background: var(--accent-soft); border-radius: 14px;
  padding: 15px 17px; margin: 16px 0 20px; font-size: 15px;
}
.note p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin: 8px 0 22px; }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.tile {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  background: var(--card); transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.tile b { display: block; font-size: 16px; margin-bottom: 4px; }
.tile span { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* FAQ */
details {
  border-top: 1px solid var(--line); padding: 14px 0;
}
details:first-of-type { border-top: 0; }
summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none;
  display: flex; align-items: flex-start; gap: 8px;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "＋"; color: var(--accent); font-weight: 600; flex: none; }
details[open] summary::before { content: "－"; }
details .ans { margin: 8px 0 0 22px; color: var(--muted); font-size: 15px; }
details .ans p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 13.5px; }

footer {
  border-top: 1px solid var(--line); padding: 22px 0 40px;
  color: var(--muted); font-size: 13.5px;
}
footer p { margin: 0 0 6px; }
footer a { color: var(--muted); }
.small { font-size: 13px; }
