/* 万物皆可洗 · 官网样式。结构参考 www-aieng（header / hero / section / footer），配色换成游戏的糖果风。
   不引外链字体，系统字体即可（国内访问更快）。 */
:root {
  --bg: #fff6dc; --bg2: #ffe9b3; --surface: #ffffff; --ink: #4a2f08; --ink-soft: #7a5a2a; --ink-muted: #9a8466;
  --foam: #ffc93c; --brush: #ff8a3d; --water: #2fa8ff; --green: #2fc66b; --pink: #ff6fb5;
  --line: #f1e3c6; --shadow: 0 10px 28px rgba(180, 110, 0, .16); --radius: 22px; --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); background-attachment: fixed;
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(92vw, var(--max)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 246, 220, .92); border-bottom: 2px solid var(--line); backdrop-filter: blur(10px); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 3px 0 #e0b45a; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 15px; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.is-active { background: #fff; box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); }
.nav-toggle { display: none; border: 0; padding: 8px 14px; border-radius: 999px; background: #fff; font: inherit; font-weight: 800; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 18px; font-weight: 900; font-size: 18px; color: #fff;
  background: linear-gradient(180deg, #8ff08f, #2fc66b); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 5px 0 #1d8f48; text-shadow: 0 2px 0 rgba(0,70,30,.4); transition: transform .08s; }
.btn:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 2px 0 #1d8f48; }
.btn.ghost { color: var(--ink); background: linear-gradient(180deg, #fff, #f3ead2); box-shadow: inset 0 2px 0 #fff, 0 5px 0 #d6c79d; text-shadow: none; }

.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.hero h1 { margin: 0 0 14px; font-size: clamp(32px, 5vw, 52px); line-height: 1.15; font-weight: 900; color: #6a3f06; text-shadow: 0 3px 0 #fff; }
.hero p { margin: 0 0 14px; font-size: 18px; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.hero-media { padding: 14px; border-radius: 30px; background: #fff; box-shadow: 0 10px 0 #e0b45a, var(--shadow); }
.hero-media img { border-radius: 20px; width: 100%; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge { padding: 6px 14px; border-radius: 999px; background: #fff; font-weight: 800; font-size: 14px; color: #b86d00; box-shadow: inset 0 0 0 2px #ffd36a; }

.section { padding: 48px 0; }
.section.alt { background: rgba(255, 255, 255, .55); }
.section-title { margin: 0 0 8px; text-align: center; font-size: clamp(26px, 3.5vw, 36px); font-weight: 900; color: #6a3f06; }
.section-sub { margin: 0 auto 28px; max-width: 640px; text-align: center; color: var(--ink-muted); font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 22px 20px; border-radius: var(--radius); background: #fff; box-shadow: 0 6px 0 #f0d9a0, var(--shadow); }
.card img { width: 100%; height: 150px; object-fit: contain; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; color: #6a3f06; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool { text-align: center; padding: 18px 14px; border-radius: var(--radius); background: #fff; box-shadow: 0 6px 0 #f0d9a0; }
.tool img { height: 120px; margin: 0 auto 10px; object-fit: contain; }
.tool b { display: block; font-size: 18px; color: #6a3f06; }
.tool span { font-size: 14px; color: var(--ink-muted); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; list-style: none; }
.steps li { counter-increment: s; padding: 18px 16px; border-radius: var(--radius); background: #fff; box-shadow: 0 5px 0 #f0d9a0; font-weight: 800; color: var(--ink-soft); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px; border-radius: 50%; color: #fff; font-weight: 900; background: linear-gradient(180deg, #ffb347, #e8760a); }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { margin: 0 0 12px; padding: 14px 18px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.faq summary { cursor: pointer; font-weight: 900; color: #6a3f06; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); }

.site-footer { margin-top: 40px; padding: 36px 0 24px; background: #4a2f08; color: #f5e6c4; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 28px; }
.site-footer h4 { margin: 0 0 10px; font-size: 16px; color: #ffd36a; }
.site-footer p, .site-footer a { color: #f5e6c4; font-size: 14px; line-height: 2; opacity: .92; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-note { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; opacity: .8; text-align: center; }

/* 法务页：一页一份文档，窄栏阅读 */
.doc { width: min(92vw, 820px); margin: 32px auto 0; padding: 30px clamp(18px, 4vw, 40px) 40px; border-radius: 26px; background: #fff; box-shadow: 0 8px 0 #e0b45a, var(--shadow); }
.doc h1 { margin: 0 0 6px; text-align: center; font-size: 30px; font-weight: 900; color: #6a3f06; }
.doc .meta { margin: 0 0 22px; text-align: center; color: var(--ink-muted); font-size: 14px; }
.doc h2 { margin: 28px 0 8px; padding-left: 10px; border-left: 5px solid var(--foam); font-size: 21px; color: #6a3f06; }
.doc h3 { margin: 18px 0 6px; font-size: 17px; color: #7a4a10; }
.doc p, .doc li { color: #5a4020; font-size: 16px; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; margin: 10px 0 18px; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 9px 10px; border: 1.5px solid var(--line); text-align: left; vertical-align: top; }
.doc th { background: #fff3cf; color: #6a3f06; white-space: nowrap; }
.doc .note { margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: #fff7e0; box-shadow: inset 0 0 0 2px #ffe2a0; color: #7a5a2a; }
.doc .toc { margin: 0 0 18px; padding: 12px 18px; border-radius: 14px; background: #fffaf0; box-shadow: inset 0 0 0 2px var(--line); }
.doc .toc a { color: #b86d00; font-weight: 800; }
.doc-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: min(92vw, 820px); margin: 18px auto 0; }
.doc-nav a { padding: 6px 14px; border-radius: 999px; background: #fff; font-weight: 800; font-size: 14px; color: var(--ink-soft); box-shadow: inset 0 0 0 2px var(--line); }
.doc-nav a.is-active { background: var(--foam); color: #5a3a00; box-shadow: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards, .tools { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 10px 4vw 14px; background: #fff6dc; border-bottom: 2px solid var(--line); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* 语言下拉：按钮 + 菜单；没有 JS 时菜单默认隐藏（hidden 属性），选项本身是普通链接 */
.lang { position: relative; margin-left: 4px; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 999px; background: #fff; color: var(--ink-soft); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: inset 0 0 0 2px var(--line); }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 2px #e0b45a; }
.lang-btn svg { flex: none; }
.lang-caret { transition: transform .15s ease; }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; margin: 0; padding: 6px; list-style: none; min-width: 168px; max-height: min(70vh, 420px); overflow: auto; border-radius: 16px; background: #fff; box-shadow: 0 10px 0 #e0b45a33, 0 12px 28px rgba(180, 110, 0, .22); border: 2px solid var(--line); }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 10px; font-weight: 800; font-size: 15px; color: var(--ink-soft); white-space: nowrap; }
.lang-menu a:hover { background: var(--bg); color: var(--ink); }
.lang-menu a.is-current { background: var(--foam); color: #5a3a00; }
@media (max-width: 760px) {
  .lang { margin: 8px 0 0; }
  .lang-menu { position: static; box-shadow: none; margin-top: 8px; max-height: 260px; }
  .lang-btn { width: 100%; justify-content: space-between; }
}
