/* moonfan.app —— 与 App 同一套配色：深色底、卡片、琥珀色强调。只用系统字体，不加载外部资源。 */
:root {
  --bg: #12151D;
  --surface: #1C2030;
  --surface-dim: #171B26;
  --border: #2A3044;
  --text: #ECE8E1;
  --dim: #A3A8B5;
  --accent: #E8B46A;
  --accent-soft: #2A2416;
  --ink: #1A1406;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial,
        "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "PingFang SC", "PingFang TC", "Microsoft YaHei",
        "Noto Sans CJK SC", sans-serif;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
:lang(ja) body, body:lang(ja) { font-family: -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", sans-serif; }
:lang(zh-Hant) body, body:lang(zh-Hant) { font-family: -apple-system, "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

header.top, main, footer { max-width: 760px; margin: 0 auto; }

/* 顶部：字标 + 两个链接 */
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: max(18px, env(safe-area-inset-top, 0px)) 0 18px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.brand span {
  font: 700 22px/1 ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
  letter-spacing: -0.01em;
}
header.top nav { display: flex; gap: 20px; font-size: 15px; }
header.top nav a { color: var(--dim); }
header.top nav a[aria-current="page"] { color: var(--text); }

h1, h2, h3 { text-wrap: balance; line-height: 1.25; }
h1 { font-size: clamp(30px, 6vw, 44px); letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-size: 22px; margin: 48px 0 16px; }
h3 { font-size: 17px; margin: 0 0 6px; }
p { margin: 0 0 14px; }

/* 首页 */
.hero { padding: 40px 0 8px; }
.appicon { border-radius: 27px; display: block; margin-bottom: 28px; box-shadow: 0 10px 40px rgba(232, 180, 106, 0.12); }
.lead { font-size: 19px; color: #D5D1C9; max-width: 36em; }
.badge {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 180, 106, 0.35);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

ul.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 12px;
}
ul.cards li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px 6px;
  min-width: 0;
}
ul.cards li p { color: var(--dim); font-size: 15.5px; }
.plans .price { color: var(--text); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.plans .pro { border-color: rgba(232, 180, 106, 0.45); }
.note { color: var(--dim); font-size: 15px; margin-top: 16px; max-width: 40em; }

/* 隐私政策、技术支持 */
.doc { padding: 32px 0 8px; max-width: 40em; }
.doc h2 { font-size: 19px; margin-top: 36px; }
.doc p { color: #D5D1C9; }
.updated { color: var(--dim); font-size: 15px; }

.contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px 6px;
  margin: 24px 0 8px;
}
.contact .label { color: var(--dim); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.contact .address { font-size: 22px; font-weight: 600; user-select: all; overflow-wrap: anywhere; }
.contact .hint { color: var(--dim); font-size: 15px; }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 2px; color: #D5D1C9; }

/* 底部 */
footer {
  margin-top: 64px;
  padding: 24px 0 max(32px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 14px;
}
footer p { margin: 8px 0 0; }
footer a { color: var(--dim); }
footer a:hover { color: var(--text); }
.langs { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.langs a[aria-current="page"] { color: var(--accent); }
.email { user-select: all; }
.fine { font-size: 13px; }
