:root { color-scheme: dark; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; color: #e9f1ff; background: #0b1729; line-height: 1.8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.family-brand { border-bottom: 1px solid #2f4b6d; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 18px max(24px, calc((100vw - 960px) / 2)); font-weight: 700; }
.family-brand img { width: 106px; height: auto; }
.family-brand a { color: #b9dcff; font-size: 14px; margin-left: auto; }
.family-wrap { max-width: 1008px; padding: 36px 24px 52px; margin: 0 auto; }
h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.35; margin: 0 0 18px; }
h2 { font-size: 24px; line-height: 1.5; margin: 0 0 14px; overflow-wrap: anywhere; }
h3 { font-size: 19px; margin: 20px 0 10px; }
p { margin: 10px 0; overflow-wrap: anywhere; }
.family-intro { max-width: 50em; color: #c5d4e9; }
button { font: inherit; font-weight: 700; color: #07172e; background: #8fc5ff; border: 1px solid #8fc5ff; border-radius: 6px; padding: 9px 18px; cursor: pointer; }
button.secondary { background: transparent; color: #c5dfff; border-color: #52739c; }
button:hover:not(:disabled) { background: #b9dcff; color: #07172e; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #ffffff; outline-offset: 4px; }
input, textarea { display: block; width: 100%; min-width: 0; margin: 6px 0 16px; padding: 10px 12px; background: #102139; color: #e9f1ff; border: 1px solid #52739c; border-radius: 5px; font: inherit; }
textarea { resize: vertical; white-space: pre-wrap; }
.family-connect, .family-login { border-left: 3px solid #76b8ff; padding: 16px 20px; margin: 26px 0 16px; background: #12233d; }
.family-login { max-width: 550px; }
.family-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#familyStatus { min-height: 1.8em; color: #b9dcff; margin: 16px 0; }
#familyStatus.is-error { color: #ffbcc1; }
.family-account, .family-thread-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; border-bottom: 1px solid #2f4b6d; margin-bottom: 24px; }
.family-account p { font-weight: 700; }
.family-grant { display: grid; grid-template-columns: minmax(0,1fr) max-content; gap: 10px 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid #2f4b6d; }
.family-grant h3 { margin: 0; }
.family-grant p { font-size: 14px; color: #c5d4e9; }
#familyThread { margin-top: 34px; border-top: 3px solid #76b8ff; }
#familyThreadNote { color: #b9dcff; }
#familySnapshot { background: #12233d; padding: 20px; margin: 20px 0 28px; }
#familySnapshot h3 { margin-top: 12px; }
#familySnapshot p { white-space: pre-wrap; }
.family-comment { border-left: 2px solid #52739c; padding: 8px 18px; margin: 18px 0; }
.family-comment p { white-space: pre-wrap; }
.family-comment small, .family-help, .family-disclaimer { color: #aabed8; font-size: 14px; }
#familyCommentForm { border-top: 1px solid #2f4b6d; padding-top: 22px; margin-top: 24px; }
.family-disclaimer { border-top: 1px solid #2f4b6d; padding-top: 20px; margin-top: 36px; }
@media (max-width: 600px) { .family-brand { padding: 16px 18px; gap: 12px; font-size: 14px; } .family-brand img { width: 86px; } .family-wrap { padding: 26px 18px 38px; } .family-grant { grid-template-columns: minmax(0,1fr); } .family-grant button { justify-self: start; } .family-connect,.family-login { padding: 16px; } #familySnapshot { padding: 16px; } .family-actions { align-items: stretch; } .family-actions button { flex: 1 1 160px; } h2 { font-size: 22px; } }
@media print { :root { color-scheme: light; color: #000; background: #fff; } .family-connect,.family-login,.family-actions,#familyDisconnectBtn,#familyStatus,#familyCommentForm { display: none; } #familySnapshot { background: #fff; border: 1px solid #999; } .family-help,.family-disclaimer,.family-comment small { color: #222; } }
