:root {
  --personal-accent: #4cd84f;
  --personal-secondary: #7857ff;
  --personal-page: #071321;
}

html { scroll-behavior: smooth; }
body { background: var(--personal-page); }
#contributionBox { position:relative; z-index:1; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px; width:auto; max-width:1100px; box-sizing:border-box; padding:14px 20px; color:#ddd; }
#contributionBox .contributionAutor { position:static; }
#footer-contribution { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px; }
.contribution-person { display:inline-flex; align-items:center; justify-content:center; min-width:40px; min-height:40px; color:inherit; }
.contribution-person:focus-visible { outline:2px solid var(--personal-accent); outline-offset:4px; border-radius:50%; }
.contributionImg { width:40px; height:40px; margin:0; border-radius:50%; object-fit:cover; }
.contributionImg[hidden], .contribution-fallback[hidden] { display:none; }
.contribution-fallback { max-width:160px; overflow-wrap:anywhere; font-size:13px; }
#contentPage { opacity: 0; transition: opacity .55s ease; }
#contentPage.is-ready { opacity: 1; }
.loader.is-hidden { display: none; }
#logoContent > span span { color: var(--personal-accent) !important; }
#navMenuDiv h1 { display: none !important; }
#logoContent { display: flex !important; align-items: center; width: auto !important; white-space: nowrap; }
#logoContent .avator-class { width: 40px !important; height: 40px !important; margin-right: 10px; object-fit: cover; }
#musicId { min-height:300px; height:auto; padding-top:110px; box-sizing:border-box; scroll-margin-top:126px; }
#musicId #app-cover { top:0; }
.favorite-body { scroll-margin-top: 130px; }
#map { scroll-margin-top: 140px; }
#chronicles { scroll-margin-top: 200px; }
.walineDiv { scroll-margin-top: 100px; }
#player-controls button:disabled { opacity: 1; cursor: default; }
.hrefText { cursor: pointer; }
.personal-admin-link {
  position: fixed; right: 18px; bottom: 18px; z-index: 9999; width: 42px; height: 42px;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  color: #fff; background: rgba(4,12,22,.68); backdrop-filter: blur(12px); text-decoration: none;
  opacity: .66; transition: opacity .2s, transform .2s;
}
.personal-admin-link:hover { opacity: 1; transform: rotate(18deg); }
.personal-error {
  max-width: 760px; margin: 120px auto; padding: 28px; border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px; color: white; background: rgba(3,11,23,.72); text-align: center;
}
.personal-place-list { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:18px auto 0; position:relative; z-index:2; max-width:1100px; }
.personal-place-list button[aria-pressed="true"] { color:var(--personal-accent); border-color:var(--personal-accent); }
.personal-place-detail { position:relative; z-index:2; width:min(90%, 1100px); margin:16px auto 0; text-align:center; color:#fff; overflow-wrap:anywhere; }
.personal-place-detail[hidden] { display:none; }
.personal-place-list span, .personal-place-list button { padding:8px 14px; border:1px solid color-mix(in srgb, var(--personal-accent), transparent 45%); border-radius:999px; color:#fff; background:rgba(7,19,33,.72); font:inherit; }
.personal-place-list button { cursor:pointer; }
.personal-map-summary { text-align:center; color:#c5d8e9; font-size:13px; padding:0 16px; }

.local-comments { max-width: 900px; margin: 0; padding: 0 0 70px; color: #eaf1ff; }
.local-comments h3 { font-size: 22px; margin: 0 0 24px; text-align: center; }
.local-comments .comment-copy { color: rgba(234,241,255,.68); margin: 0 0 16px; text-align: center; }
.local-comment-form { display:grid; grid-template-columns:repeat(3,1fr); gap:0; padding:0 12px 14px; border:1px solid rgba(255,255,255,.55); border-radius:12px; background:rgba(255,255,255,.025); backdrop-filter:blur(18px); }
.local-comment-form input, .local-comment-form textarea { box-sizing:border-box; width:100%; border:0; border-radius:0; padding:14px 8px; color:#fff; background:transparent; outline:none; }
.local-comment-form input { border-bottom:1px dashed rgba(255,255,255,.58); }
.local-comment-form input:focus, .local-comment-form textarea:focus { border-color:var(--personal-accent); }
.local-comment-form textarea { grid-column:1/-1; min-height:130px; resize:vertical; }
.local-comment-form .honeypot { position:absolute; left:-9999px; }
.local-comment-form button { grid-column:1/-1; justify-self:end; border:1px solid rgba(255,255,255,.48); border-radius:8px; padding:8px 25px; color:#fff; background:rgba(255,255,255,.08); font-weight:700; cursor:pointer; }
.comment-message { min-height:24px; color:var(--personal-accent); }
.comment-list { display:grid; gap:12px; margin-top:22px; }
.comment-item { padding:18px 20px; border:1px solid rgba(255,255,255,.1); border-radius:14px; background:rgba(5,15,28,.64); }
.comment-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:8px; }
.comment-head strong { color:var(--personal-accent); }
.comment-head time { color:rgba(255,255,255,.48); font-size:12px; }
.comment-item p { margin:0; white-space:pre-wrap; line-height:1.7; }
.comment-pin { margin-right:6px; color:#ffd75e; }
.empty-comments { padding:24px; text-align:center; color:rgba(255,255,255,.5); }
.local-comment-form { display:block; border:1px solid #ffffff80; border-radius:12px; overflow:hidden; }
.comment-identity { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-bottom:1px dashed #ffffff80; }
.comment-identity input { min-width:0; width:100%; box-sizing:border-box; }
.local-comment-form .comment-identity input, .local-comment-form textarea { border:0; border-radius:0; background:transparent; }
.local-comment-form textarea { width:100%; min-height:160px; box-sizing:border-box; }
.local-comment-form input::placeholder, .local-comment-form textarea::placeholder { color:#ffffffb3; opacity:1; }
.comment-head strong a { color:inherit; }
.comment-reactions { display:flex; justify-content:center; flex-wrap:wrap; gap:14px; margin:20px 0 8px; }
.comment-reactions button { position:relative; border:0; background:transparent; color:inherit; cursor:pointer; padding:4px; transition:transform .15s; }
.comment-reactions button > span { font-size:38px; }
.comment-reactions button > small { position:absolute; top:0; right:-4px; padding:1px 5px; border-radius:12px; background:#e8ffe3; color:#355f34; font-size:11px; }
.comment-reactions button:hover, .comment-reactions button[aria-pressed="true"] { transform:translateY(-4px) scale(1.1); }
.comment-reactions button[aria-pressed="true"] { border-bottom:2px solid var(--personal-accent); }
.reaction-status { min-height:20px; text-align:center; font-size:12px; color:var(--personal-accent); }
.comment-account { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:14px 0; font-size:12px; color:#ffffffb3; }
.comment-account a { color:var(--personal-accent); }
.comment-owner { font-size:11px; margin-left:8px; border:1px solid currentColor; border-radius:4px; padding:1px 4px; }
.comment-images, .comment-attachments { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0; }
.comment-images img, .comment-attachments img, .comment-preview img { display:block; max-width:100%; max-height:180px; border-radius:8px; }
.comment-attachments { padding:0 10px; }
.comment-attachments > div { max-width:30%; }
.comment-attachments button { padding:4px 8px; font-size:12px; }
.comment-tools, .comment-reply-hint, .comment-list-bar, .comment-sorting, .comment-item-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.comment-tools, .comment-reply-hint { padding:10px; }
.comment-tools .comment-submit { margin-left:auto; }
.comment-tools button, .comment-reply-hint button { grid-column:auto; padding:6px 10px; }
.comment-counter { margin-left:auto; font-size:12px; opacity:.7; }
.comment-preview { margin:10px; padding:14px; border:1px dashed #ffffff70; border-radius:8px; white-space:pre-wrap; overflow-wrap:anywhere; }
.comment-emojis { padding:10px; }
.comment-emojis button { padding:4px 8px; border:0; font-size:22px; }
.comment-list-bar { justify-content:space-between; }
.comment-sorting button, .comment-item-actions button, .comment-more { color:inherit; border:0; background:transparent; padding:6px 10px; cursor:pointer; }
.comment-sorting [aria-pressed="true"], .comment-item-actions [aria-pressed="true"] { color:var(--personal-accent); }
.comment-replies { margin-top:12px; padding-left:14px; border-left:1px solid #ffffff25; }
.comment-replies .comment-item { padding:12px 0; border:0; background:transparent; }
.comment-replies-flat { padding-left:0; border:0; }
.comment-item-actions { justify-content:flex-end; margin-top:8px; }
.comment-item p, .comment-head strong { overflow-wrap:anywhere; min-width:0; }
.comment-more { display:block; margin:20px auto; border:1px solid #ffffff50; border-radius:8px; }
.local-comments [hidden] { display:none !important; }
.local-comments button:focus-visible { outline:2px solid var(--personal-accent); outline-offset:2px; }
@media (max-width:760px) {
  .comment-identity { grid-template-columns:1fr; }
  .comment-head { align-items:flex-start; gap:8px; flex-wrap:wrap; }
  .comment-item { padding:14px; }
}
.personal-danmu { position:relative; overflow:hidden; height:300px !important; }
.danmu-chip { position:absolute; left:100%; white-space:nowrap; max-width:70%; overflow:hidden; text-overflow:ellipsis; padding:8px 16px 8px 9px; border-radius:999px; color:#fff; background:rgba(8,13,25,.78); animation:personalDanmu 13s linear forwards; }
.danmu-chip::before { content:"✿"; display:inline-grid; place-items:center; width:24px; height:24px; margin-right:5px; border-radius:50%; color:#fff; background:#5387d9; font-size:18px; }
@keyframes personalDanmu { to { transform:translateX(calc(-100vw - 100%)); } }
footer .footer-group { min-width:150px; }
.footer-showcase { display:inline-block; margin-top:5px; border:0; padding:0; background:transparent; color:#fff; font:inherit; font-size:13px; line-height:1.5; cursor:pointer; }
.footer-showcase:hover { color:var(--personal-accent); }
.showcase-dialog { position:fixed; inset:0; margin:auto; width:min(860px,90vw); max-height:85vh; box-sizing:border-box; border:1px solid #ffffff50; border-radius:16px; background:#0a1727f0; color:white; font-size:16px; padding:28px; overflow:auto; }
.showcase-dialog::backdrop { background:#000a; backdrop-filter:blur(8px); }
.showcase-dialog h2 { margin:0 36px 20px 0; font-size:22px; }
.showcase-close { position:absolute; top:12px; right:12px; font-size:28px; line-height:32px; width:36px; height:36px; border:0; border-radius:8px; background:#ffffff15; color:inherit; cursor:pointer; }
.showcase-content img, .showcase-content video { display:block; max-width:100%; max-height:65vh; margin:0 auto; }
.showcase-content p { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
.showcase-dialog button:focus-visible { outline:2px solid var(--personal-accent); }
#busuanzi_container_site_pv { padding-bottom:24px; }
#busuanzi_container_site_pv[hidden] { display:none !important; }

@media (max-width:760px) {
  #musicId, .favorite-body, #map, #chronicles, .walineDiv { scroll-margin-top: 110px; }
  #navTopMenu { height: 108px; background: linear-gradient(180deg, rgba(4, 12, 22, .9), rgba(4, 12, 22, 0)); }
  #navMenuDiv { top: 12px; left: 14px; }
  #logoContent { padding-left: 0; font-size: 23px; line-height: 34px; }
  #logoContent .avator-class { width: 32px !important; height: 32px !important; margin-right: 7px; }
  #hrefDiv { top: 57px; right: 0; left: 0; display: flex; justify-content: center; overflow-x: auto; padding: 0 6px; }
  #navTopMenu .hrefText { margin: 0 2px; padding: 8px 9px; font-size: 14px; }
  .local-comment-form { grid-template-columns:1fr; }
  #waline.local-comments { width: min(92vw, 640px); left: 50%; transform: translateX(-50%); }
  .local-comment-form textarea, .local-comment-form button { grid-column:1; }
  .personal-admin-link { right:12px; bottom:12px; }
}
#player-controls .button { border:0; box-sizing:content-box; background:transparent; color:inherit; appearance:none; }
#player-controls .button:hover { background:#ffffff38; }
#player-controls .button:focus-visible { outline:2px solid var(--accent-color, #81d453); outline-offset:2px; }
#player-controls button:disabled { opacity:.45; cursor:not-allowed; }
#player .music-status { position:absolute; top:100%; left:0; right:0; margin:12px 0 0; padding:0 8px; color:#d3dfed; font-size:13px; line-height:1.6; text-align:center; }
#player .music-status:empty { display:none; }
#player .music-status[data-error="true"] { color:#ffd0b6; }
#musicId:has(.music-status:not(:empty)) { margin-bottom:64px; }
#musicId #app-cover { max-width:100%; }
.wordList { margin:0; padding:0; list-style:none; }
.wordList li { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wordList.plain-lyrics { max-height:90px; overflow:auto; }
.wordList.plain-lyrics li { white-space:pre-wrap; height:auto; min-height:30px; }
#s-area:focus-visible { outline:2px solid #fff; outline-offset:4px; }
#skill > .glass-section { padding:40px; backdrop-filter:blur(100px); }
#skill { scroll-margin-top:100px; }
#skill #link { backdrop-filter:none !important; }
@media (max-width:760px) {
  #skill > .glass-section { padding:35px 0; }
  #skill { scroll-margin-top:110px; }
  #skill #link { width:94vw; min-height:420px; }
}

/* Keep each section in normal flow: absolute card artwork must not set row height. */
#scrollDown { border:0; padding:0; background:transparent; color:inherit; cursor:pointer; width:56px; height:56px; left:50%; transform:translateX(-50%); bottom:44px; }
#scrollDown:focus-visible { outline:2px solid var(--personal-accent); border-radius:8px; }
#topBtn[hidden] { display:none; }
.like-card { height:auto; min-height:calc(100vh - 100px); }
.like-card > .musicBody { height:auto; min-height:calc(100vh - 100px); box-sizing:border-box; padding-bottom:70px; }
.favorite-body { width:min(90%, 1500px); height:auto; grid-template-columns:minmax(130px, 20%) minmax(0, 1fr); gap:30px; padding:100px 0 25px; box-sizing:border-box; }
.card-list { margin-top:0; min-width:0; grid-template-columns:repeat(5, minmax(0, 1fr)); grid-template-rows:none; gap:65px 24px; align-items:start; }
.book-card { width:100%; margin:0; aspect-ratio:195 / 270; display:block; }
.book-card .cover { width:100%; height:100%; object-fit:cover; }
.book-card .hero, .book-card .title { width:100%; height:auto; }
.mapMark { box-sizing:border-box; padding:40px 0; backdrop-filter:blur(100px); }
.mapMark #map { backdrop-filter:none !important; width:min(90vw, 1100px); min-height:420px; }
.mapMark .mapBlank { display:none; }
@media (max-width:1100px) {
  .card-list { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:65px 28px; }
}
@media (max-width:760px) {
  .like-card > .musicBody { min-height:0; padding:70px 0; }
  .favorite-body { width:90%; padding:0; grid-template-columns:minmax(0, 1fr); gap:90px; }
  .ev-module-edit { position:relative; min-height:100px; }
  .card-list { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:65px 26px; }
  .book-card { max-width:195px; justify-self:center; }
  .mapMark { padding:35px 0; }
  .mapMark #map { width:94vw; height:460px; min-height:0; }
  #tagContent { width:94%; margin-left:auto; margin-right:auto; }
  .curTag { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
  #musicId { scroll-margin-top:170px; }
}
@media (max-width:900px) {
  #musicId #app-cover { height:160px; }
  #musicId #album-art { width:80px; height:80px; margin-left:12px; top:-30px; box-shadow:0 0 0 6px #fff; }
  #musicId #album-art.active { top:-48px; }
  #musicId #player-track { box-sizing:border-box; min-height:94px; padding:10px 12px 10px 96px; }
  #musicId #player-track.active { top:-94px; }
  #musicId #album-name { display:block; padding-right:44px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #musicId .qualityCss { right:12px; }
  #musicId #track-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #musicId .containerLrc { left:104px; right:12px; width:auto; top:8px; height:90px; }
  #musicId #player-controls { position:absolute; left:12px; right:12px; bottom:8px; width:auto; height:50px; margin:0; float:none; display:flex; justify-content:space-around; }
  #musicId .control { width:auto; float:none; padding:0; }
  #musicId #player-controls .button { padding:12px; }
}
