/* Homepage only. Load this sheet BEFORE quiet-ui.css so this first layer order
   gives homepage !important declarations precedence over quiet-reset/quiet-components. */
@layer dark-overrides, homepage-overrides, quiet-reset, quiet-components;
@layer homepage-overrides {
  body.quiet-home {
    --home-paper: #fbf3e7;
    --home-panel: #fffdf8;
    --home-ink: #2b1b0d;
    --home-muted: #7a6550;
    --home-line: #e6d3b9;
    --home-accent: #e8761b;
    --home-ease: cubic-bezier(.2,.8,.2,1);
    background-color: var(--home-paper) !important;
    background-image: linear-gradient(90deg, rgba(154,116,81,.035) 1px, transparent 1px),
      linear-gradient(rgba(154,116,81,.028) 1px, transparent 1px),
      radial-gradient(ellipse at 83% 8%, #f2e4d1 0, transparent 42%),
      linear-gradient(145deg,#fbf3e6 0%,#fdf5ea 48%,#f5ecdd 100%) !important;
    background-size: 64px 64px,64px 64px,auto,auto !important;
    color: var(--home-ink) !important;
  }
  body.quiet-home .fs-nav {
    background: rgba(248,245,239,.92) !important;
    border-bottom: 1px solid var(--home-line) !important;
    backdrop-filter: blur(12px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.08) !important;
  }
  body.quiet-home .fs-nav-inner { max-width: 1180px !important; width: min(1180px,calc(100% - 48px)) !important; min-height: 68px !important; padding: 12px 0 !important; }
  body.quiet-home .fs-shell { max-width: 1180px !important; width: min(1180px,calc(100% - 48px)) !important; padding: 28px 0 64px !important; }
  body.quiet-home .fs-hero {
    margin: 0 0 18px !important; padding: clamp(28px,4vw,48px) !important;
    background: linear-gradient(113deg,rgba(255,253,248,.97),rgba(251,245,235,.88)) !important;
    border: 1px solid #e3cfb4 !important; border-radius: 18px !important;
    box-shadow: 0 14px 46px rgba(88,65,45,.07) !important;
    overflow: hidden !important;
  }
  body.quiet-home .fs-profile { display: grid !important; grid-template-columns: minmax(0,1fr) 128px !important; gap: 26px !important; align-items: center !important; }
  body.quiet-home .fs-avatar { grid-column:2 !important; grid-row:1 !important; border: 4px solid #f5ede2 !important; box-shadow: 0 0 0 1px #d5c5b3 !important; }
  body.quiet-home .fs-id { grid-column:1 !important; grid-row:1 !important; }
  body.quiet-home .fs-id h1 { margin: 0 0 14px !important; font-size: clamp(34px,4vw,52px) !important; line-height: 1.3 !important; letter-spacing: -.035em !important; }
  body.quiet-home .fs-cn { color: var(--home-accent) !important; }
  body.quiet-home .fs-alias { display: inline-block !important; margin: 0 0 0 10px !important; padding: 4px 9px !important; border: 1px solid #e5d5c6 !important; border-radius: 5px !important; background: #f5ece3 !important; color: #81533f !important; vertical-align: middle !important; font-size: 12px !important; font-style: normal !important; white-space: nowrap !important; }
  body.quiet-home .fs-bio { margin: 0 0 18px !important; max-width: 750px !important; color: #615a50 !important; font-size: 15px !important; line-height: 1.75 !important; }
  body.quiet-home .fs-tags { display: flex !important; flex-wrap: wrap !important; gap: 7px !important; margin: 0 !important; }
  body.quiet-home .fs-tags span { padding: 3px 9px !important; border: 1px solid #eee0cc !important; border-radius: 5px !important; background: #f8f3eb !important; color: #6e655b !important; font-size: 11px !important; }
  body.quiet-home .fs-grid {
    display: grid !important; grid-template-columns: repeat(12,minmax(0,1fr)) !important;
    grid-template-areas: 'about about about about about about about games games games games games'
      'hobbies hobbies hobbies hobbies hobbies tools tools tools tools tools tools tools'
      'contact contact contact contact contact contact contact contact likes likes likes likes'
      'friends friends friends friends friends friends friends friends friends friends friends friends'
      'articles articles articles articles articles articles articles articles articles articles articles articles'
      'support support support support support support support support support support support support' !important;
    gap: 16px !important; align-items: start !important;
  }
  body.quiet-home .fs-grid > .fs-card {
    grid-column: auto !important; grid-row: auto !important; min-width: 0 !important;
    margin: 0 !important; padding: 23px 26px 25px !important;
    border: 1px solid var(--home-line) !important; border-radius: 13px !important;
    background: linear-gradient(145deg,rgba(255,254,250,.96),rgba(253,250,245,.91)) !important;
    box-shadow: 0 5px 22px rgba(84,67,49,.045) !important;
    overflow: visible !important;
  }
  body.quiet-home #about { grid-area: about !important; }
  body.quiet-home #games { grid-area: games !important; }
  body.quiet-home #hobbies { grid-area: hobbies !important; }
  body.quiet-home #tools { grid-area: tools !important; }
  body.quiet-home #contact { grid-area: contact !important; }
  body.quiet-home #likes { grid-area: likes !important; align-self: stretch !important; }
  body.quiet-home #friends { grid-area: friends !important; }
  body.quiet-home #articles { grid-area: articles !important; }
  body.quiet-home #support { grid-area: support !important; }
  body.quiet-home .fs-card-head { margin: 0 0 14px !important; }
  body.quiet-home .fs-card h2 { margin: 0 !important; font: 600 21px/1.45 'Segoe UI','Microsoft YaHei',sans-serif !important; letter-spacing: -.025em !important; color: var(--home-ink) !important; }
  body.quiet-home .fs-card h2::before { display: inline-block !important; content: '' !important; width: 4px !important; height: 16px !important; margin: 0 10px 0 0 !important; vertical-align: -2px !important; border-radius: 3px !important; background: #e8761b !important; }
  body.quiet-home .fs-list li { padding: 3px 0 3px 15px !important; position: relative !important; font-size: 14px !important; line-height: 1.75 !important; }
  body.quiet-home .fs-list li::before { display: block !important; content: '' !important; position: absolute !important; top: 15px !important; left: 1px !important; width: 4px !important; height: 4px !important; border-radius: 50% !important; background: #ba866b !important; }
  body.quiet-home .fs-pill-row { gap: 7px !important; }
  body.quiet-home .fs-pill { padding: 4px 9px !important; font-size: 12px !important; background: #f7f2ea !important; border: 1px solid #e5dcd1 !important; color: #5e574d !important; }
  body.quiet-home .fs-pill.hot { background: #f4e8dd !important; border-color: #dfc2ad !important; color: #8f482f !important; }
  body.quiet-home .fs-card .site-links { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 8px !important; }
  body.quiet-home .fs-card .site-link { min-width: 0 !important; min-height: 62px !important; padding: 9px 11px !important; gap: 10px !important; background: #fffdf8 !important; border: 1px solid #e7ded3 !important; border-radius: 8px !important; }
  body.quiet-home .site-link-icon { flex-basis: 36px !important; width: 36px !important; height: 36px !important; font: 600 11px/36px Consolas,monospace !important; }
  body.quiet-home .site-link-name { font-size: 13px !important; }
  body.quiet-home .site-link::after { font-size: 14px !important; }
  body.quiet-home .fs-card .social-grid { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 7px !important; align-items: start !important; }
  body.quiet-home #likes .social-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  @media (min-width: 901px) {
    body.quiet-home #contact .social-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
    body.quiet-home #contact .social-card.open { min-width: 0 !important; }
  }
  body.quiet-home .fs-card .social-card { position: relative !important; height: auto !important; min-height: 62px !important; min-width: 0 !important; cursor: pointer !important; transition: min-height 300ms var(--home-ease) !important; }
  body.quiet-home .fs-card .social-card.open { min-height: 125px !important; }
  body.quiet-home .social-inner { position: relative !important; display: grid !important; width: 100% !important; height: auto !important; min-height: inherit !important; }
  body.quiet-home .social-front, body.quiet-home .social-back {
    grid-area: 1 / 1 !important; display: flex !important; flex-direction: column !important;
    justify-content: center !important; align-items: center !important; padding: 7px !important;
    border: 1px solid #e2d8cb !important; border-radius: 8px !important;
    background: #faf6ef !important;
    transition: opacity 220ms var(--home-ease),border-color 220ms var(--home-ease),background-color 220ms var(--home-ease) !important;
  }
  body.quiet-home .social-front { position: relative !important; inset: auto !important; z-index: 1 !important; }
  body.quiet-home .social-back { position: absolute !important; inset: 0 !important; z-index: 0 !important; }
  body.quiet-home .social-card.open .social-front { position: absolute !important; inset: 0 !important; z-index: 0 !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
  body.quiet-home .social-card.open .social-back { position: relative !important; inset: auto !important; z-index: 1 !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; background: #fffcf5 !important; }
  body.quiet-home .social-icon { font-size: 14px !important; font-weight: 650 !important; line-height: 1.2 !important; }
  body.quiet-home .social-name { margin-top: 3px !important; font-size: 11px !important; line-height: 1.25 !important; color: var(--home-ink) !important; }
  body.quiet-home .social-back .social-qr-btn { display: flex !important; flex-direction: column !important; align-items: center !important; width: 100% !important; height: 100% !important; padding: 0 !important; margin: 0 !important; position: relative !important; }
  body.quiet-home .social-back .social-qr-img { width: 79px !important; height: 79px !important; max-width: 100% !important; max-height: 79px !important; object-fit: contain !important; opacity: 1 !important; border-radius: 2px !important; }
  body.quiet-home .social-back .qr-hover-text { display: flex !important; position: static !important; inset: auto !important; flex: none !important; margin-top: 2px !important; width: 100% !important; height: 17px !important; padding: 0 !important; border-radius: 3px !important; font: 600 10px/17px 'Segoe UI',sans-serif !important; background: #f2e4d8 !important; color: #884b34 !important; opacity: 1 !important; }
  body.quiet-home .social-qr-btn:hover .social-qr-img { opacity: 1 !important; }
  body.quiet-home .social-msg { font-size: 12px !important; text-align: center !important; }
  body.quiet-home .fs-friend-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 10px !important; }
  body.quiet-home .fs-friend-card { padding: 11px 13px !important; background: #fffdf8 !important; border-color: #eee0cc !important; }
  body.quiet-home .fs-support { gap: 12px !important; }
  body.quiet-home .sponsor-card { display: flex !important; align-items: center !important; gap: 14px !important; padding: 12px !important; background: #fffdf8 !important; border: 1px solid #eee0cc !important; border-radius: 9px !important; }
  body.quiet-home .fs-support-title { margin: 0 !important; min-width: 72px !important; }
  body.quiet-home .fs-qr-tile img { width: 100px !important; height: 100px !important; }
  body.quiet-home .fs-nav a, body.quiet-home .fs-card :is(a,button,.social-front,.social-back,.fs-pill), body.quiet-home .fs-card {
    transition: background-color 220ms var(--home-ease),border-color 220ms var(--home-ease),color 220ms var(--home-ease),outline-color 220ms var(--home-ease) !important;
  }
  body.quiet-home .fs-card .site-link:hover, body.quiet-home .fs-friend-card:hover { background: #fdf0e2 !important; border-color: #c99f86 !important; }
  body.quiet-home .social-card:hover :is(.social-front,.social-back) { background: #fdf0e2 !important; border-color: #bf967c !important; }
  body.quiet-home .fs-card :is(a,button,.social-card):focus-visible { outline: 2px solid #e8761b !important; outline-offset: 3px !important; }
  /* The whole support section opens as one disclosure; both QR codes stay still while visible. */

  body.quiet-home #support { padding: 0 !important; overflow: hidden !important; transition: border-color 260ms var(--home-ease), background-color 260ms var(--home-ease), box-shadow 260ms var(--home-ease) !important; }
  body.quiet-home #support:is(:hover,:focus-within,.is-open) { border-color: #bd957a !important; background: #fffaf2 !important; }
  body.quiet-home #support .fs-card-head { margin: 0 !important; }
  body.quiet-home #support .fs-card-head h2 { margin: 0 !important; }
  body.quiet-home #support .fs-card-head h2::before { display: none !important; }
  body.quiet-home #support .support-toggle { appearance: none; display: flex !important; align-items: center !important; justify-content: space-between !important; width: 100% !important; min-height: 76px !important; padding: 21px 26px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--home-ink) !important; cursor: pointer !important; text-align: left !important; font: inherit !important; transition: background-color 260ms var(--home-ease), color 260ms var(--home-ease) !important; }
  body.quiet-home #support .support-toggle:hover { background-color: rgba(169,108,68,.07) !important; }
  body.quiet-home #support .support-toggle > span:first-child { display: flex !important; align-items: center !important; gap: 10px !important; }
  body.quiet-home #support .support-toggle > span:first-child::before { content: '' !important; width: 4px !important; height: 16px !important; border-radius: 3px !important; background: #e8761b !important; }
  body.quiet-home #support .support-chevron { display: block !important; width: 9px !important; height: 9px !important; margin-right: 5px !important; border-right: 2px solid #7a6550 !important; border-bottom: 2px solid #7a6550 !important; transform: rotate(45deg) !important; transition: transform 360ms cubic-bezier(.65,0,.25,1) !important; }
  body.quiet-home #support.is-open .support-chevron { transform: rotate(225deg) !important; }
  body.quiet-home #support .support-content { display: block !important; height: 0; overflow: hidden !important; visibility: hidden !important; transition: height 330ms cubic-bezier(.2,.8,.2,1), visibility 330ms step-end !important; }
  body.quiet-home #support.is-open .support-content { visibility: visible !important; transition: height 330ms cubic-bezier(.2,.8,.2,1), visibility 0s !important; }
  body.quiet-home #support .support-content > .fs-support { display: grid !important; grid-template-columns: repeat(2,minmax(0,220px)) !important; justify-content: center !important; align-items: start !important; gap: 14px !important; padding: 16px 26px 20px !important; border-top: 1px solid #e8ded2 !important; }
  body.quiet-home #support .sponsor-card, body.quiet-home #support .sponsor-card:nth-child(1), body.quiet-home #support .sponsor-card:nth-child(2) { grid-column: auto !important; grid-row: auto !important; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; gap: 12px !important; width: 220px !important; max-width: 100% !important; padding: 15px !important; overflow: visible !important; border: 1px solid #eee0cc !important; border-radius: 10px !important; background: #fffdf8 !important; }
  body.quiet-home #support .fs-support-title { min-width: 0 !important; margin: 0 !important; font-size: 13px !important; color: var(--home-ink) !important; text-align: center !important; }
  body.quiet-home #support .fs-qr-tile { display: grid !important; place-items: center !important; margin: 0 !important; padding: 10px !important; border-radius: 8px !important; background: #fff !important; }
  body.quiet-home #support.is-open .sponsor-card { animation: none !important; }
  body.quiet-home #support .fs-qr-tile img { display: block !important; width: min(170px,100%) !important; height: auto !important; max-width: 170px !important; aspect-ratio: 1 !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  @media (max-width: 900px) {
    body.quiet-home .fs-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; grid-template-areas: 'about games' 'hobbies tools' 'contact contact' 'likes likes' 'friends friends' 'articles articles' 'support support' !important; }
    body.quiet-home .fs-card .social-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
    body.quiet-home #likes { height: auto !important; }
    body.quiet-home .fs-card .site-links { grid-template-columns: 1fr !important; }
  }
  @media (max-width: 620px) {
    body.quiet-home .fs-nav-inner, body.quiet-home .fs-shell { width: calc(100% - 28px) !important; }
    body.quiet-home .fs-shell { padding-top: 14px !important; }
    body.quiet-home .fs-hero { padding: 20px !important; margin-bottom: 12px !important; }
    body.quiet-home .fs-profile { grid-template-columns: minmax(0,1fr) 58px !important; gap: 10px !important; align-items: start !important; }
    body.quiet-home .fs-avatar { width: 58px !important; height: 58px !important; margin: 2px 0 0 !important; border-width: 2px !important; }
    body.quiet-home .fs-id h1 { margin: 0 0 12px !important; font-size: clamp(25px,7vw,34px) !important; }
    body.quiet-home .fs-en, body.quiet-home .fs-cn { display: inline !important; }
    body.quiet-home .fs-cn { margin: 0 0 0 4px !important; font-size: inherit !important; }
    body.quiet-home .fs-alias { display: inline-block !important; margin: 6px 0 0 !important; font-size: 11px !important; }
    body.quiet-home .fs-bio { font-size: 13px !important; margin-bottom: 14px !important; }
    body.quiet-home .fs-grid { grid-template-columns: minmax(0,1fr) !important; grid-template-areas: 'about' 'games' 'hobbies' 'tools' 'contact' 'likes' 'friends' 'articles' 'support' !important; gap: 11px !important; }
    body.quiet-home .fs-grid > .fs-card { padding: 18px !important; }
    body.quiet-home .fs-card h2 { font-size: 18px !important; }
    body.quiet-home .fs-card .site-links { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    body.quiet-home .fs-card .site-link { padding: 7px !important; gap: 6px !important; }
    body.quiet-home .site-link-icon { flex-basis: 30px !important; width: 30px !important; height: 30px !important; font-size: 10px !important; line-height: 30px !important; }
    body.quiet-home .site-link-name { font-size: 11px !important; }
    body.quiet-home .fs-card .social-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    body.quiet-home .fs-card .social-card { height: auto !important; min-height: 62px !important; }
    body.quiet-home .fs-card .social-card.open { min-height: 125px !important; }
    body.quiet-home #likes { height: auto !important; }
    body.quiet-home #likes .social-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    body.quiet-home .fs-friend-grid { grid-template-columns: 1fr !important; }
    body.quiet-home .fs-support { gap: 8px !important; }
    body.quiet-home #support .support-toggle { min-height: 62px !important; padding: 16px 18px !important; }
    body.quiet-home #support .support-content > .fs-support { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 8px !important; }
    body.quiet-home #support .support-content > .fs-support { padding: 14px 18px 18px !important; }
    body.quiet-home #support .sponsor-card, body.quiet-home #support .sponsor-card:nth-child(1), body.quiet-home #support .sponsor-card:nth-child(2) { width: 100% !important; padding: 9px !important; gap: 7px !important; }
    body.quiet-home #support .fs-qr-tile { padding: 6px !important; }
    body.quiet-home #support .fs-qr-tile img { width: min(146px,100%) !important; }
  }
  @media (prefers-reduced-motion: reduce) {
    body.quiet-home #support.is-open .sponsor-card { animation: none !important; }
    body.quiet-home #support .support-content, body.quiet-home #support.is-open .support-content { transition: none !important; }
    body.quiet-home *, body.quiet-home *::before, body.quiet-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  }
}


/* ===== 暗色模式 ===== */
@layer dark-overrides {
html[data-color-scheme="dark"] {
  color-scheme: dark !important;
  --bg: #1a1206 !important;
  --bg-2: #1e1a15 !important;
  --surface: #21150a !important;
  --surface2: #21150a !important;
  --panel: #21150a !important;
  --border: #2b1b0d !important;
  --border-light: #4a3524 !important;
  --border-strong: #6b5540 !important;
  --line: #2b1b0d !important;
  --line-hi: #4a3524 !important;
  --text: #efdfc8 !important;
  --text-dim: #a08a72 !important;
  --dim: #a08a72 !important;
  --amber: #e8761b !important;
  --amber-hi: #f2892f !important;
  --amber-deep: #b56f4c !important;
  --lime: #7fb98a !important;
  --red: #d9795a !important;
  --cyan: #e8761b !important;
  --home-paper: #1a1206 !important;
  --home-panel: #21150a !important;
  --home-ink: #efdfc8 !important;
  --home-muted: #a08a72 !important;
  --home-line: #2b1b0d !important;
  --home-accent: #e8761b !important;
}

html[data-color-scheme="dark"] body.quiet-home * { -webkit-text-fill-color: currentColor !important; }

html[data-color-scheme="dark"] body.quiet-home {
  background-color: #1a1206 !important;
  background-image: linear-gradient(90deg, rgba(217,142,102,.04) 1px, transparent 1px),
    linear-gradient(rgba(217,142,102,.03) 1px, transparent 1px),
    radial-gradient(ellipse at 83% 8%, #2a231b 0, transparent 42%),
    linear-gradient(145deg,#1a1612 0%,#1d1914 48%,#161310 100%) !important;
  color: #efdfc8 !important;
}

html[data-color-scheme="dark"] body.quiet-home .fs-nav {
  background: rgba(28,24,19,.92) !important;
  border-bottom: 1px solid #2b1b0d !important;
}

html[data-color-scheme="dark"] body.quiet-home .fs-grid > .fs-card {
  background: linear-gradient(145deg, rgba(35,31,25,.96), rgba(31,27,21,.91)) !important;
  border: 1px solid #2b1b0d !important;
  box-shadow: 0 5px 22px rgba(0,0,0,.28) !important;
}
html[data-color-scheme="dark"] body.quiet-home .fs-hero {
  background: linear-gradient(113deg, rgba(35,31,25,.97), rgba(31,27,21,.88)) !important;
  border-color: #2b1b0d !important;
  box-shadow: 0 14px 46px rgba(0,0,0,.28) !important;
}

html[data-color-scheme="dark"] body.quiet-home .fs-avatar {
  border-color: #2b1b0d !important;
  box-shadow: 0 0 0 1px #4a3524 !important;
}

html[data-color-scheme="dark"] body.quiet-home .fs-alias {
  border-color: #4a3524 !important;
  background: #21150a !important;
  color: #d9a586 !important;
}

html[data-color-scheme="dark"] body.quiet-home .fs-bio { color: #dcc4a8 !important; }
html[data-color-scheme="dark"] body.quiet-home .fs-brand { color: #efdfc8 !important; }
html[data-color-scheme="dark"] body.quiet-home .fs-links a { color: #dcc4a8 !important; }
html[data-color-scheme="dark"] body.quiet-home .fs-card h2 { color: #efdfc8 !important; }
html[data-color-scheme="dark"] body.quiet-home .fs-list li { color: #e3cfb4 !important; }
html[data-color-scheme="dark"] body.quiet-home .fs-friend-card { color: #efdfc8 !important; }
html[data-color-scheme="dark"] body.quiet-home .social-name { color: #efdfc8 !important; }
html[data-color-scheme="dark"] body.quiet-home .fs-en { color: #4d4437 !important; }
html[data-color-scheme="dark"] body.quiet-home .fs-cn { color: #f2892f !important; }
html[data-color-scheme="dark"] body.quiet-home .social-icon { color: #f2892f !important; }
html[data-color-scheme="dark"] body.quiet-home .fs-friend-desc { color: #dcc4a8 !important; }
html[data-color-scheme="dark"] body.quiet-home .fs-friend-url { color: #dcc4a8 !important; }
html[data-color-scheme="dark"] body.quiet-home .site-footer,
html[data-color-scheme="dark"] body.quiet-home .footer-line { color: #b6ac9c !important; }
html[data-color-scheme="dark"] body.quiet-home .site-link-icon {
  background: #2b1b0d !important;
  border-color: #4a3524 !important;
  color: #f2892f !important;
}
html[data-color-scheme="dark"] body.quiet-home .site-link-name { color: #efdfc8 !important; }
html[data-color-scheme="dark"] body.quiet-home .fs-friend-card strong { color: #efdfc8 !important; }
html[data-color-scheme="dark"] body.quiet-home #support .support-toggle,
html[data-color-scheme="dark"] body.quiet-home .fs-support-title { color: #c9c0b1 !important; }
html[data-color-scheme="dark"] body.quiet-home #support .support-chevron { border-color: #a08a72 !important; }
html[data-color-scheme="dark"] body.quiet-home .footer-brand { color: #e8761b !important; }
html[data-color-scheme="dark"] body.quiet-home .fs-tags span {
  border-color: #4a3524 !important;
  background: #21150a !important;
  color: #dcc4a8 !important;
}

html[data-color-scheme="dark"] body.quiet-home .fs-pill {
  background: #21150a !important;
  border: 1px solid #4a3524 !important;
  color: #e3cfb4 !important;
}
html[data-color-scheme="dark"] body.quiet-home .fs-pill.hot {
  background: #33261d !important;
  border-color: #6b5540 !important;
  color: #f2892f !important;
}

html[data-color-scheme="dark"] body.quiet-home .fs-card .site-link,
html[data-color-scheme="dark"] body.quiet-home .fs-friend-card,
html[data-color-scheme="dark"] body.quiet-home .sponsor-card,
html[data-color-scheme="dark"] body.quiet-home #support .sponsor-card {
  background: #21150a !important;
  border: 1px solid #4a3524 !important;
}

html[data-color-scheme="dark"] body.quiet-home .fs-card .site-link:hover,
html[data-color-scheme="dark"] body.quiet-home .fs-friend-card:hover {
  background: #2b1b0d !important;
  border-color: #6b5540 !important;
}

html[data-color-scheme="dark"] body.quiet-home .social-front,
html[data-color-scheme="dark"] body.quiet-home .social-back {
  border: 1px solid #4a3524 !important;
  background: #21150a !important;
}
html[data-color-scheme="dark"] body.quiet-home .social-card.open .social-back { background: #21150a !important; }
html[data-color-scheme="dark"] body.quiet-home .social-card:hover :is(.social-front,.social-back) {
  background: #2b1b0d !important;
  border-color: #6b5540 !important;
}
html[data-color-scheme="dark"] body.quiet-home .social-back .qr-hover-text {
  background: #2b1b0d !important;
  color: #f2892f !important;
}

html[data-color-scheme="dark"] body.quiet-home #support:is(:hover,:focus-within,.is-open) {
  border-color: #6b5540 !important;
  background: #21150a !important;
}
html[data-color-scheme="dark"] body.quiet-home #support .support-content > .fs-support { border-top: 1px solid #2b1b0d !important; }
html[data-color-scheme="dark"] body.quiet-home #support .fs-qr-tile { background: #f5f1ea !important; }

html[data-color-scheme="dark"] body.quiet-home .fs-card :is(a,button,.social-card):focus-visible {
  outline: 2px solid #e8761b !important;
}

html[data-color-scheme="dark"] body.quiet-home .scheme-btn {
  border-color: #4a3524;
  color: #b3a99a;
}
html[data-color-scheme="dark"] body.quiet-home .scheme-btn:hover { color: #f2892f; border-color: #6b5540; }
}

/* 配色切换按钮 */
body.quiet-home .fs-actions { display: inline-flex; align-items: center; }
body.quiet-home .scheme-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--home-line, #e6d3b9);
  border-radius: 999px;
  background: transparent;
  color: var(--home-muted, #7a6550);
  font: 12px/1 var(--font-body, "Segoe UI", sans-serif);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
body.quiet-home .scheme-btn:hover { color: var(--home-accent, #e8761b); border-color: var(--home-accent, #e8761b); }
body.quiet-home .scheme-btn svg { width: 14px; height: 14px; flex: none; }
html[data-color-scheme="light"] body.quiet-home .icon-sun { display: none; }
html[data-color-scheme="dark"] body.quiet-home .icon-moon { display: none; }
