/* 作者：烁云辉霞 */
:root {
  color-scheme: dark;
  --bg: #0d100d;
  --surface: #151815;
  --surface-soft: #1a201a;
  --ink: #dfe3df;
  --muted: #9aa299;
  --accent: #37dc7e;
  --accent-soft: #13321f;
  --border: #282e28;
  --shadow: 0 9px 20px rgb(0 0 0 / 14%);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-soft: #eef2ed;
  --ink: #232b23;
  --muted: #626e62;
  --accent: #147d41;
  --accent-soft: #e3f2e7;
  --border: #dfe6dd;
  --shadow: 0 9px 20px rgb(25 45 25 / 4%);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(ellipse at 50% -24%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 48%), var(--bg); color: var(--ink); font: 14px/1.7 var(--sans); -webkit-font-smoothing: antialiased; transition: background-color 180ms ease, color 180ms ease; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent-soft); color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 10; transform: translateY(-160%); padding: 8px 12px; border-radius: 6px; background: var(--surface); }
.skip-link:focus { transform: translateY(0); }
.wrap { width: min(760px, 100% - 48px); margin-inline: auto; padding: 28px 0 36px; }
.site-header { min-height: 44px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 48px; }
.wordmark { display: none; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 24px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; transition: color 180ms ease, background-color 180ms ease; }
.site-nav a:hover { color: var(--accent); background: var(--surface); }
.site-nav a.active { background: var(--accent-soft); color: var(--accent); }
.command-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px; background: transparent; color: var(--muted); font: 600 11px/1.4 var(--sans); cursor: pointer; transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease; }
.command-trigger:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); color: var(--accent); background: var(--accent-soft); }
.command-trigger svg, .feed-search svg, .command-search-row svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
kbd { min-width: 24px; padding: 2px 5px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font: 10px/1.5 var(--mono); text-align: center; }
.hero-heading { display: flex; align-items: center; gap: 20px; }
.avatar { display: block; flex: 0 0 auto; width: 72px; height: 72px; object-fit: cover; border: 2px solid var(--border); border-radius: 50%; background: var(--surface); }
.identity { min-width: 0; }
h1 { margin-bottom: 5px; font-size: 34px; line-height: 1.2; font-weight: 800; letter-spacing: 0; }
.profile-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--muted); font: 12px/1.5 var(--mono); }
.primary-tag { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 700; }
.hero-bio { max-width: 610px; margin: 22px 0 23px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-bio p { margin: 0; }
.bio-lead { font-weight: 700; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social-link { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); font-size: 13px; font-weight: 650; text-decoration: none; transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease; }
.social-link span { color: var(--muted); font-size: 15px; }
.social-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
section:not(.hero) { margin-top: 44px; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-heading::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.section-kicker { flex: 0 0 auto; margin: 0; color: var(--muted); font: 600 12px/1.4 var(--mono); letter-spacing: 2px; }
.now-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.now-card { min-width: 0; min-height: 104px; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 60%, var(--surface)), var(--surface) 68%); box-shadow: var(--shadow); transition: border-color 180ms ease, transform 180ms ease; }
.now-card:hover { transform: translateY(-2px); }
.device-status[data-online="true"] { border-color: color-mix(in srgb, var(--accent) 48%, var(--border)); }
.now-copy { min-width: 0; }
.live-mark, .music-mark { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.live-mark svg, .music-mark svg { width: 22px; height: 22px; }
.status-dot { position: absolute; right: -2px; top: -2px; width: 8px; height: 8px; border: 1px solid var(--surface); border-radius: 50%; background: var(--accent); }
.device-status[data-online="false"] .status-dot { background: #a4ada3; }
.device-status[data-online="true"] { border-color: color-mix(in srgb, var(--accent) 48%, var(--border)); }
.card-label { margin: 0 0 1px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.now-card h3 { margin: 0; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; font-weight: 700; }
.card-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.music-cover { flex: 0 0 auto; width: 42px; height: 42px; object-fit: cover; border-radius: 50%; border: 1px solid var(--accent-soft); background: var(--surface-soft); }
.music-heading { display: flex; align-items: center; gap: 8px; }
.equalizer { display: flex; align-items: end; gap: 3px; flex: 0 0 auto; height: 13px; }
.equalizer i { display: block; width: 3px; height: 8px; border-radius: 1px; background: var(--accent); }
.equalizer i:nth-child(2) { height: 4px; }
.equalizer i:nth-child(3) { height: 10px; }
.music-card[data-playing="true"] .equalizer i { animation: equalize 900ms ease-in-out infinite alternate; transform-origin: bottom; }
.music-card[data-playing="true"] .equalizer i:nth-child(2) { animation-delay: -400ms; }
.music-card[data-playing="true"] .equalizer i:nth-child(3) { animation-delay: -200ms; }
.music-card[data-playing="false"] .equalizer { display: none; }
@keyframes equalize { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stat-card { min-width: 0; min-height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.stat-card strong { color: var(--accent); font: 700 20px/1.35 var(--mono); }
.stat-card span { color: var(--muted); font-size: 11px; }
.recent-section .section-heading { margin-bottom: 24px; }
.recent-heading { justify-content: space-between; }
.post-count { color: var(--muted); font: 11px/1.5 var(--mono); }
.feed-search { display: flex; align-items: center; gap: 10px; width: min(100%, 380px); min-height: 42px; margin: -8px 0 14px auto; padding: 0 10px 0 13px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--muted); transition: border-color 160ms ease, box-shadow 160ms ease; }
.feed-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.feed-search input, .command-search-row input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 13px/1.5 var(--sans); }
.feed-search input::placeholder, .command-search-row input::placeholder { color: var(--muted); }
.feed-search kbd { margin-left: auto; }
.post-list { display: grid; gap: 12px; }
.post-item { min-width: 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); transition: border-color 160ms ease, transform 160ms ease; }
.post-item:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); transform: translateY(-1px); }
.post-search-empty { margin: 0; padding: 22px 18px; border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); text-align: center; }
.post-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--muted); }
.post-avatar { display: block; width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; }
.post-author { color: var(--ink); font-size: 12px; font-weight: 700; }
.post-meta time { margin-left: auto; text-align: right; font: 11px/1.4 var(--mono); }
.post-body { margin: 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.75; }
.post-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.post-images:has(> :only-child) { grid-template-columns: 1fr; }
.post-images img { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 8px; background: var(--surface-soft); }
.post-placeholder { color: var(--muted); font-size: 13px; }
.post-placeholder p { margin-bottom: 0; }
.about-panel { padding: 19px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--muted); font-size: 14px; line-height: 1.8; }
.about-panel p { margin-bottom: 8px; }
.about-panel p:last-child { margin-bottom: 0; }
.about-panel strong { color: var(--ink); }
.text-link { display: inline-flex; min-height: 36px; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.footer-actions { display: flex; align-items: center; gap: 10px; }
.manage-link { color: var(--muted); font-size: 11px; text-decoration: none; }
.manage-link:hover { color: var(--accent); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 12px/1.5 var(--sans); cursor: pointer; }
.theme-toggle:hover { color: var(--accent); background: var(--surface); }
.theme-toggle > span:first-child { font-size: 18px; }
.about-page { padding-top: 3px; }
.page-intro { margin-bottom: 40px; }
.page-intro h1 { margin-bottom: 6px; font-size: 28px; }
.page-intro p { margin: 0; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; }
.device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.device-card { min-width: 0; min-height: 84px; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.device-mark { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font: 600 11px/1 var(--mono); }
.device-card strong { display: block; color: var(--ink); font-size: 14px; }
.device-card p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.site-details { padding: 14px 20px; border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--border)); border-radius: 17px; background: var(--surface); }
.site-detail { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 7px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.detail-label { align-self: start; padding: 2px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-size: 12px; text-align: center; }
.site-detail strong { color: var(--ink); }
.about-links { border-top: 1px solid var(--border); }
.about-links a { display: grid; grid-template-columns: minmax(88px, 1fr) minmax(0, 2fr) 18px; min-height: 52px; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); text-decoration: none; font-size: 12px; font-weight: 600; }
.about-links a:hover { color: var(--accent); }
.link-url { min-width: 0; overflow-wrap: anywhere; color: var(--muted); font: 11px/1.6 var(--mono); }
.command-dialog { width: min(520px, calc(100% - 28px)); max-width: none; max-height: min(690px, calc(100dvh - 40px)); padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 90px rgb(0 0 0 / 48%); }
.command-dialog::backdrop { background: rgb(5 8 5 / 72%); backdrop-filter: blur(3px); }
.command-shell { padding: 10px; }
.command-search-row { display: flex; align-items: center; gap: 11px; min-height: 52px; padding: 0 11px; border-bottom: 1px solid var(--border); color: var(--accent); }
.command-label { padding: 13px 12px 7px; color: var(--muted); font: 600 10px/1.5 var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.command-items { display: grid; gap: 3px; max-height: min(440px, calc(100dvh - 250px)); overflow: auto; }
.command-item { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 7px 11px; border-radius: 7px; text-decoration: none; transition: background-color 120ms ease; }
.command-item:hover, .command-item[aria-selected="true"] { background: var(--surface-soft); }
.command-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 7px; color: var(--accent); font: 600 10px/1 var(--mono); }
.command-item > span:nth-child(2) { display: grid; min-width: 0; }
.command-item strong { font-size: 13px; }
.command-item small { color: var(--muted); font-size: 11px; }
.command-item kbd { margin-left: auto; }
.command-footer { display: flex; justify-content: flex-end; gap: 14px; padding: 12px 8px 3px; border-top: 1px solid var(--border); color: var(--muted); font: 10px/1.5 var(--mono); }
@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); padding-top: 20px; }
  .site-header { align-items: flex-end; flex-direction: column; gap: 8px; margin-bottom: 34px; }
  .site-nav { width: 100%; gap: 3px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding-inline: 13px; }
  .command-trigger { min-height: 36px; }
  .command-trigger kbd { display: none; }
  .command-trigger span { display: none; }
  .command-trigger { width: 40px; padding: 0; }
  .hero-heading { gap: 16px; }
  h1 { font-size: 29px; }
  .profile-tags { gap: 5px; }
  .profile-tag { padding-inline: 8px; font-size: 11px; }
  .hero-bio { margin-top: 20px; font-size: 14px; }
  .now-grid { grid-template-columns: 1fr; gap: 12px; }
  .now-card { min-height: 94px; }
  .feed-search { width: 100%; margin-top: -8px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat-card { min-height: 92px; }
  .stat-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  section:not(.hero) { margin-top: 36px; }
  .device-grid { grid-template-columns: 1fr; }
  .post-meta { flex-wrap: wrap; }
  .post-meta time { font-size: 10px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .avatar { width: 60px; height: 60px; }
  h1 { font-size: 25px; }
  .profile-tags { gap: 4px; }
  .profile-tag { min-height: 23px; padding-inline: 6px; font-size: 10px; }
  .socials { gap: 8px; }
  .social-link { padding-inline: 13px; }
  .now-card { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
