@charset "UTF-8";
/* ============================================================
   子页面样式（文章 / 说说 / 留言 / 照片墙 / 友链 / 项目 /
   收藏夹 / 音乐 / 小说 / 花园 / 关于）
   依懒 style.css 中的变量、毛玻璃、导航与按钮基础样式
   ============================================================ */

/* ---------- 页面骨架 ---------- */
.page-main {
  position: relative;
  z-index: 2;
  width: min(1152px, 100%);
  margin: 0 auto;
  padding: 104px 40px 60px;
}
.page-head { margin-bottom: 30px; padding: 16px 20px 18px; border: 1px solid var(--glass-border); border-radius: 20px; background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.page-head__title { display: flex; align-items: center; gap: 12px; }
.page-head__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, .22), rgba(129, 140, 248, .22));
  color: #0284c7;
  box-shadow: 0 8px 20px rgba(14, 165, 233, .12);
}
:root[data-theme="dark"] .page-head__icon { border-color: rgba(255, 255, 255, .1); color: #7dd3fc; }
.page-head__icon svg { width: 23px; height: 23px; }
.page-head h1 { margin: 0; font-size: 30px; line-height: 1.25; letter-spacing: .5px; }
.page-head p { margin: 9px 0 0 58px; color: var(--text-soft); font-size: 14px; }
:root[data-theme="dark"] .page-head p { color: #cbd5e1; }

.section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 18px; }
.section-title span { padding: 1px 8px; border-radius: 20px; background: var(--glass); color: var(--muted); font-size: 11px; font-weight: 700; }

.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state svg { width: 42px; height: 42px; margin: 0 auto 12px; opacity: .4; }
.empty-state p { margin: 0; font-size: 14px; }

/* ---------- 项目通用卡片 ---------- */
.panel {
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.panel--solid { background: var(--card-solid); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid rgba(14, 165, 233, .2);
  border-radius: 20px;
  background: rgba(14, 165, 233, .08);
  color: #0284c7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
}
:root[data-theme="dark"] .pill { color: #7dd3fc; border-color: rgba(125, 211, 252, .18); background: rgba(56, 189, 248, .1); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list span {
  padding: 2px 8px;
  border: 1px solid rgba(99, 102, 241, .18);
  border-radius: 6px;
  background: rgba(99, 102, 241, .08);
  color: #6366f1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}
:root[data-theme="dark"] .tag-list span { color: #a5b4fc; }
.meta-row { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; }
.meta-row span { display: inline-flex; align-items: center; gap: 4px; }
.meta-row svg { width: 13px; height: 13px; }

/* ---------- 筛选标签 ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter-tab {
  padding: 7px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .18);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  transition: .25s;
  backdrop-filter: blur(10px);
}
.filter-tab:hover { background: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.filter-tab.active {
  border-color: transparent;
  background: linear-gradient(120deg, #0ea5e9, #6366f1);
  color: #fff;
  box-shadow: 0 7px 18px rgba(14, 165, 233, .3);
}
.filter-tab small { margin-left: 4px; opacity: .65; font-size: 10px; }

/* ---------- 文章列表 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card { position: relative; display: block; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(15, 23, 42, .2); }
.post-card__cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #cbd5e1; }
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card__cover img { transform: scale(1.06); }
.post-card__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 6, 23, .82), rgba(2, 6, 23, .18) 62%, transparent); }
.post-card__body { position: absolute; inset: auto 0 0; padding: 18px; color: #fff; }
.post-card__body h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.4; }
.post-card__body p { display: -webkit-box; margin: 0 0 10px; overflow: hidden; color: rgba(255, 255, 255, .68); font-size: 11px; line-height: 1.55; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.post-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: rgba(255, 255, 255, .6); font-size: 10px; }
.post-card__meta > div { display: flex; align-items: center; gap: 10px; }
.post-card__meta span { display: inline-flex; align-items: center; gap: 3px; }
.post-card__meta svg { width: 11px; height: 11px; }
.post-card__pin {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(245, 158, 11, .92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.post-card__load { display: flex; justify-content: center; margin-top: 30px; }
.load-more {
  padding: 10px 26px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--glass);
  color: var(--text-soft);
  font-size: 13px;
  transition: .25s;
  backdrop-filter: blur(12px);
}
.load-more:hover { color: var(--primary); transform: translateY(-2px); background: rgba(255, 255, 255, .5); }
:root[data-theme="dark"] .load-more:hover { background: rgba(255, 255, 255, .08); }

/* ---------- 文章详情 ---------- */
.article-shell { max-width: 880px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 18px; color: var(--text-soft); font-size: 12px; font-weight: 600; }
.back-link:hover { color: var(--primary); }
.back-link svg { width: 15px; height: 15px; }
.article-hero { position: relative; height: 330px; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 6, 23, .82), rgba(2, 6, 23, .1) 65%); }
.article-hero__text { position: absolute; inset: auto 0 0; z-index: 2; padding: 30px; color: #fff; }
.article-hero__text h1 { margin: 10px 0 8px; font-size: 32px; line-height: 1.35; }
.article-hero__text p { margin: 0 0 12px; color: rgba(255, 255, 255, .72); font-size: 13px; }
.article-hero .meta-row { color: rgba(255, 255, 255, .68); }
.article-card { margin-top: 22px; padding: 34px 40px; border-radius: 24px; }
.article-body { color: var(--text-soft); font-size: 15px; line-height: 1.9; }
.article-body h2 { margin: 34px 0 12px; color: var(--text); font-size: 22px; }
.article-body h3 { margin: 26px 0 10px; color: var(--text); font-size: 17px; }
.article-body p { margin: 14px 0; }
.article-body ul, .article-body ol { margin: 14px 0; padding-left: 22px; }
.article-body li { margin: 6px 0; }
.article-body blockquote { margin: 20px 0; padding: 2px 0 2px 16px; border-left: 4px solid var(--primary); color: var(--muted); font-style: italic; }
.article-body code { padding: 2px 6px; border-radius: 6px; background: rgba(99, 102, 241, .1); color: #6366f1; font-size: .9em; font-weight: 600; }
:root[data-theme="dark"] .article-body code { color: #a5b4fc; background: rgba(129, 140, 248, .16); }
.article-body pre { margin: 20px 0; padding: 20px; border-radius: 14px; overflow-x: auto; background: #282c34; color: #abb2bf; box-shadow: inset 0 0 10px rgba(0, 0, 0, .3); }
.article-body pre code { padding: 0; background: none; color: inherit; font-weight: 400; }
.article-body img { margin: 22px auto; border-radius: 18px; box-shadow: 0 18px 40px rgba(15, 23, 42, .16); }
.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 13px; }
.article-body th, .article-body td { padding: 9px 12px; border: 1px solid rgba(100, 116, 139, .24); text-align: left; }
.article-body th { background: rgba(99, 102, 241, .07); color: var(--text); }
.article-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(100, 116, 139, .18); }
.like-button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border: 1px solid rgba(236, 72, 153, .28); border-radius: 20px; background: rgba(236, 72, 153, .08); color: #db2777; font-size: 12px; font-weight: 700; transition: .2s; }
.like-button:hover { background: rgba(236, 72, 153, .16); }
.like-button.liked { background: #ec4899; color: #fff; }
.like-button.liked svg { fill: currentColor; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.prev-next a { padding: 14px 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border); transition: .2s; }
.prev-next a:hover { transform: translateY(-2px); border-color: rgba(99, 102, 241, .4); }
.prev-next small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.prev-next strong { font-size: 13px; }
.prev-next a:last-child { text-align: right; }

/* 评论 */
.comment-card { margin-top: 22px; padding: 28px 32px; border-radius: 24px; }
.comment-form { display: grid; grid-template-columns: 150px 1fr; gap: 10px; margin-bottom: 22px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px 13px; border: 1px solid var(--glass-border); border-radius: 12px; outline: 0; background: rgba(255, 255, 255, .3); color: var(--text); font-size: 12px; resize: vertical; }
.comment-form textarea { grid-column: span 2; min-height: 82px; }
.comment-form input:focus, .comment-form textarea:focus { border-color: rgba(99, 102, 241, .5); }
.comment-form button { grid-column: span 2; justify-self: end; padding: 8px 22px; border-radius: 12px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; }
.comment-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item { padding-top: 16px; border-top: 1px solid rgba(100, 116, 139, .14); }
.comment-item__head { display: flex; align-items: center; gap: 10px; }
.comment-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #38bdf8, #818cf8); color: #fff; font-size: 13px; font-weight: 800; }
.comment-item__head strong { display: block; font-size: 12px; }
.comment-item__head time { display: block; color: var(--muted); font-size: 10px; }
.comment-item p { margin: 8px 0 0 44px; color: var(--text-soft); font-size: 13px; line-height: 1.75; }

/* ---------- 说说 ---------- */
.moments-layout { max-width: 760px; margin: 0 auto; }
.composer { margin-bottom: 26px; padding: 18px 20px; border-radius: 20px; }
.composer textarea { width: 100%; min-height: 74px; padding: 12px; border: 1px solid var(--glass-border); border-radius: 12px; outline: 0; background: rgba(255, 255, 255, .28); color: var(--text); font-size: 13px; line-height: 1.7; resize: vertical; }
.composer textarea:focus { border-color: rgba(99, 102, 241, .5); }
.composer__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.composer__foot small { color: var(--muted); font-size: 10px; }
.composer__foot button { padding: 8px 22px; border-radius: 12px; background: linear-gradient(120deg, #0ea5e9, #6366f1); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 6px 16px rgba(14, 165, 233, .24); }
.moment-group { margin-bottom: 28px; }
.moment-date { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.moment-date::after { content: ""; flex: 1; height: 1px; background: rgba(100, 116, 139, .18); }
.moment-list { display: flex; flex-direction: column; gap: 14px; }
.moment-card { padding: 20px 22px; border-radius: 22px; background: var(--card-solid); border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 8px 24px rgba(15, 23, 42, .09); }
:root[data-theme="dark"] .moment-card { border-color: rgba(255, 255, 255, .08); }
.moment-card__head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.moment-card__head time { color: var(--muted); font-size: 10px; }
.moment-card p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.8; white-space: pre-line; }
.moment-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.moment-images img { width: 100%; height: 130px; border-radius: 10px; object-fit: cover; transition: transform .4s; }
.moment-images img:hover { transform: scale(1.03); }
.moment-images.single { grid-template-columns: 1fr; }
.moment-images.single img { height: 220px; }
.moment-actions { display: flex; align-items: center; gap: 17px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.moment-actions button { display: inline-flex; align-items: center; gap: 4px; padding: 3px 0; color: inherit; font-size: inherit; }
.moment-actions button:hover, .moment-actions button.liked { color: #ec4899; }
.moment-actions button.liked svg { fill: currentColor; }
.moment-actions svg { width: 14px; height: 14px; }

/* ---------- 留言 ---------- */
.message-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.message-aside { position: sticky; top: 88px; padding: 24px; border-radius: 24px; }
.message-aside h2 { margin: 0 0 6px; font-size: 17px; }
.message-aside > p { margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.message-aside input, .message-aside textarea { width: 100%; margin-bottom: 9px; padding: 9px 11px; border: 1px solid var(--glass-border); border-radius: 10px; outline: 0; background: rgba(255, 255, 255, .28); color: var(--text); font-size: 12px; }
.message-aside textarea { min-height: 92px; resize: vertical; }
.message-aside button { width: 100%; padding: 10px; border-radius: 11px; background: linear-gradient(120deg, #0ea5e9, #6366f1); color: #fff; font-size: 12px; font-weight: 700; }
.message-aside .mini-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.message-count { display: flex; align-items: baseline; gap: 7px; margin-bottom: 14px; }
.message-count strong { font-size: 22px; color: var(--primary); }
.message-count span { color: var(--muted); font-size: 11px; }
.message-list { display: flex; flex-direction: column; gap: 13px; }
.message-card { display: flex; gap: 13px; padding: 18px 20px; border-radius: 20px; background: var(--card-solid); border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 7px 22px rgba(15, 23, 42, .08); }
:root[data-theme="dark"] .message-card { border-color: rgba(255, 255, 255, .08); }
.message-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #38bdf8, #818cf8); color: #fff; font-size: 16px; font-weight: 800; }
.message-body { min-width: 0; flex: 1; }
.message-body__top { display: flex; align-items: center; gap: 8px; }
.message-body__top strong { font-size: 13px; }
.message-body__top time { color: var(--muted); font-size: 10px; }
.message-body > p { margin: 6px 0 0; color: var(--text-soft); font-size: 13px; line-height: 1.75; white-space: pre-line; }
.message-reply { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(14, 165, 233, .07); color: var(--text-soft); font-size: 12px; line-height: 1.7; }
.message-reply strong { color: #0284c7; }
:root[data-theme="dark"] .message-reply strong { color: #7dd3fc; }
.message-body__foot { display: flex; gap: 14px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.message-body__foot button:hover { color: #ec4899; }

/* ---------- 照片墙 / 相册 ---------- */
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.album-card { position: relative; padding: 20px 20px 18px; border-radius: 24px; cursor: pointer; transition: transform .3s; }
.album-card:hover { transform: translateY(-3px); }
.album-stack { position: relative; height: 190px; max-width: 230px; margin: 0 auto 16px; }
.album-stack img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 14px; object-fit: cover; box-shadow: 0 10px 24px rgba(15, 23, 42, .2); transition: transform .4s ease; }
.album-stack img:nth-child(1) { transform: rotate(-4deg) translateY(8px) scale(.96); }
.album-stack img:nth-child(2) { transform: rotate(0deg) translateY(4px) scale(.98); }
.album-stack img:nth-child(3) { transform: rotate(3deg); }
.album-card:hover .album-stack img:nth-child(1) { transform: rotate(-12deg) translate(-10px, -2px) scale(.95); }
.album-card:hover .album-stack img:nth-child(3) { transform: rotate(12deg) translate(10px, -2px) scale(.95); }
.album-count { position: absolute; right: 0; bottom: -4px; z-index: 4; padding: 2px 9px; border-radius: 20px; background: #0ea5e9; color: #fff; font-size: 10px; font-weight: 800; box-shadow: 0 4px 12px rgba(14, 165, 233, .35); }
.album-info { text-align: center; }
.album-info h3 { margin: 0 0 3px; font-size: 16px; }
.album-info p { margin: 0; color: var(--muted); font-size: 10px; }
.album-card.expanded { grid-column: 1 / -1; cursor: default; }
.album-photos { display: none; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(100, 116, 139, .16); }
.album-card.expanded .album-photos { display: block; }
.album-photos__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.album-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #cbd5e1; }
.album-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.album-photo:hover img { transform: scale(1.07); }
.album-photo span { position: absolute; inset: auto 0 0; padding: 16px 9px 7px; background: linear-gradient(transparent, rgba(2, 6, 23, .66)); color: #fff; font-size: 9px; opacity: 0; transition: opacity .3s; }
.album-photo:hover span { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; background: rgba(2, 6, 23, .9); backdrop-filter: blur(10px); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1100px, 88vw); max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); object-fit: contain; }
.lightbox__caption { position: absolute; left: 50%; bottom: 26px; max-width: 80vw; color: rgba(255, 255, 255, .8); font-size: 12px; transform: translateX(-50%); }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s; }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 30px; left: 50%; color: rgba(255, 255, 255, .6); font-size: 11px; letter-spacing: 1px; transform: translateX(-50%); }

/* ---------- 友链漂流瓶 ---------- */
.bottle-field { position: relative; height: 640px; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, rgba(56, 189, 248, .1), rgba(99, 102, 241, .08)); border: 1px solid var(--glass-border); }
.bottle-field::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .35), transparent 45%), radial-gradient(circle at 80% 70%, rgba(129, 140, 248, .18), transparent 50%); }
.bottle { position: absolute; z-index: 2; width: 68px; height: 68px; margin: -34px 0 0 -34px; cursor: grab; touch-action: none; animation: bottle-float 4s ease-in-out infinite; }
.bottle:active { cursor: grabbing; }
.bottle svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(15, 23, 42, .2)); transition: transform .3s; }
.bottle:hover svg { transform: scale(1.14); }
.bottle__name { position: absolute; top: calc(100% + 4px); left: 50%; padding: 2px 9px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 20px; background: rgba(255, 255, 255, .82); color: #334155; font-size: 10px; font-weight: 700; white-space: nowrap; opacity: 0; transform: translateX(-50%); transition: opacity .25s; pointer-events: none; }
:root[data-theme="dark"] .bottle__name { background: rgba(30, 41, 59, .88); color: #e2e8f0; border-color: rgba(255, 255, 255, .1); }
.bottle:hover .bottle__name { opacity: 1; }
.friend-hint { margin-top: 16px; color: var(--muted); font-size: 11px; text-align: center; }

/* ---------- 项目 ---------- */
.project-search { position: relative; width: min(460px, 100%); margin: 0 auto 26px; }
.project-search input { width: 100%; padding: 11px 18px 11px 42px; border: 1px solid var(--glass-border); border-radius: 30px; outline: 0; background: var(--glass); color: var(--text); font-size: 13px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.project-search input:focus { border-color: rgba(99, 102, 241, .55); }
.project-search svg { position: absolute; top: 50%; left: 16px; width: 16px; height: 16px; color: var(--muted); transform: translateY(-50%); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-card { position: relative; padding: 26px 28px; border-radius: 24px; overflow: hidden; transition: transform .3s; }
.project-card:hover { transform: translateY(-3px); }
.project-card::after { content: ""; position: absolute; top: -40px; right: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(14, 165, 233, .1); filter: blur(24px); pointer-events: none; }
.project-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.project-card__top h2 { margin: 0; font-size: 20px; }
.project-links { display: flex; align-items: center; gap: 9px; }
.project-links a { color: var(--muted); transition: color .2s; }
.project-links a:hover { color: var(--primary); }
.project-links svg { width: 17px; height: 17px; }
.project-card > p { min-height: 60px; margin: 0 0 16px; color: var(--text-soft); font-size: 12px; line-height: 1.75; }
.project-status { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 20px; font-size: 9px; font-weight: 800; }
.project-status.active { background: rgba(34, 197, 94, .12); color: #16a34a; }
.project-status.developing { background: rgba(245, 158, 11, .12); color: #d97706; }
.project-status.archived { background: rgba(100, 116, 139, .14); color: #64748b; }
.project-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.project-empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- 收藏夹 ---------- */
.bookmark-group { margin-bottom: 34px; }
.bookmark-group__head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.bookmark-group__head h2 { margin: 0; font-size: 17px; }
.bookmark-group__head span { padding: 1px 7px; border-radius: 20px; background: rgba(100, 116, 139, .12); color: var(--muted); font-size: 10px; }
.bookmark-group > p { margin: -5px 0 13px; color: var(--muted); font-size: 11px; }
.bookmark-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 10px; }
.bookmark-card { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid transparent; border-radius: 14px; background: rgba(255, 255, 255, .26); transition: .25s; }
:root[data-theme="dark"] .bookmark-card { background: rgba(255, 255, 255, .04); }
.bookmark-card:hover { border-color: rgba(14, 165, 233, .3); background: rgba(255, 255, 255, .45); transform: translateY(-2px); }
:root[data-theme="dark"] .bookmark-card:hover { background: rgba(255, 255, 255, .08); }
.bookmark-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #e0f2fe, #e0e7ff); color: #0284c7; font-size: 15px; font-weight: 900; }
:root[data-theme="dark"] .bookmark-icon { background: rgba(56, 189, 248, .12); color: #7dd3fc; }
.bookmark-card h3 { margin: 0 0 2px; overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.bookmark-card p { margin: 0; overflow: hidden; color: var(--muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.bookmark-card > svg { position: absolute; top: 10px; right: 10px; width: 12px; height: 12px; color: var(--muted); opacity: 0; transition: opacity .2s; }
.bookmark-card:hover > svg { opacity: 1; }

/* ---------- 音乐页 ---------- */
.music-layout { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.vinyl-card { padding: 30px 26px; border-radius: 26px; text-align: center; }
.vinyl { position: relative; width: 230px; height: 230px; margin: 0 auto 22px; }
.vinyl__disc { position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle at center, #1e293b 0 3px, #0f172a 3px 6px); box-shadow: 0 16px 38px rgba(15, 23, 42, .3); animation: spin 18s linear infinite; animation-play-state: paused; }
.vinyl.playing .vinyl__disc { animation-play-state: running; }
.vinyl__cover { position: absolute; inset: 13px; border-radius: 50%; overflow: hidden; border: 4px solid rgba(255, 255, 255, .9); }
.vinyl__cover img { width: 100%; height: 100%; object-fit: cover; }
.vinyl__hole { position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; border-radius: 50%; background: #f8fafc; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .3); transform: translate(-50%, -50%); }
.vinyl__needle { position: absolute; top: -8px; right: -2px; width: 6px; height: 105px; border-radius: 4px; background: linear-gradient(#94a3b8, #475569); transform-origin: top center; transform: rotate(-18deg); box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }
.vinyl.playing .vinyl__needle { transform: rotate(-4deg); }
.vinyl-card h2 { margin: 0 0 4px; font-size: 21px; }
.vinyl-card > p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.music-time { display: flex; justify-content: space-between; margin-bottom: 2px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.music-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 14px 0 6px; }
.music-controls button { width: 34px; height: 34px; padding: 7px; display: grid; place-items: center; color: var(--text-soft); }
.music-controls .main-play { width: 52px; height: 52px; padding: 15px; border-radius: 50%; background: linear-gradient(135deg, #0ea5e9, #6366f1); color: #fff; box-shadow: 0 8px 20px rgba(14, 165, 233, .35); }
.music-controls .main-play svg { fill: currentColor; }
.volume-row { display: flex; align-items: center; gap: 9px; margin-top: 10px; color: var(--muted); }
.volume-row svg { width: 15px; height: 15px; }
.music-panel { padding: 24px 26px; border-radius: 26px; min-height: 430px; }
.music-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid rgba(100, 116, 139, .16); }
.music-tab { padding: 9px 14px; color: var(--muted); font-size: 12px; font-weight: 600; border-bottom: 2px solid transparent; }
.music-tab.active { color: var(--primary); border-color: var(--primary); }
.music-pane { display: none; }
.music-pane.active { display: block; }
.lyric-scroll { height: 330px; padding: 130px 10px; overflow-y: auto; text-align: center; scroll-behavior: smooth; }
.lyric-scroll p { margin: 13px 0; color: var(--muted); font-size: 13px; line-height: 1.7; transition: color .3s, transform .3s; }
.lyric-scroll p.active { color: var(--primary); font-size: 15px; font-weight: 700; transform: scale(1.03); }
.playlist { display: flex; flex-direction: column; gap: 4px; }
.playlist-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 11px; cursor: pointer; transition: background .2s; }
.playlist-item:hover { background: rgba(255, 255, 255, .3); }
:root[data-theme="dark"] .playlist-item:hover { background: rgba(255, 255, 255, .06); }
.playlist-item.active { background: rgba(14, 165, 233, .1); }
.playlist-item__index { width: 18px; color: var(--muted); font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.playlist-item.active .playlist-item__index { color: var(--primary); }
.playlist-item__cover { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.playlist-item__info { min-width: 0; flex: 1; }
.playlist-item__info strong { display: block; overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.playlist-item__info span { display: block; color: var(--muted); font-size: 10px; }
.playlist-item__time { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.playlist-item .eq { display: flex; align-items: flex-end; gap: 2px; height: 13px; }
.playlist-item .eq i { width: 2px; height: 5px; background: var(--primary); border-radius: 2px; animation: equalize .6s ease-in-out infinite alternate; }
.playlist-item .eq i:nth-child(2) { animation-delay: -.25s; }
.playlist-item .eq i:nth-child(3) { animation-delay: -.45s; }

/* ---------- 小说 ---------- */
.novel-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.novel-search { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.novel-search input { width: 100%; padding: 10px 16px 10px 38px; border: 1px solid var(--glass-border); border-radius: 26px; outline: 0; background: var(--glass); color: var(--text); font-size: 12px; backdrop-filter: blur(12px); }
.novel-search svg { position: absolute; top: 50%; left: 14px; width: 15px; height: 15px; color: var(--muted); transform: translateY(-50%); }
.novel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.novel-card { display: flex; gap: 14px; padding: 16px; border-radius: 20px; cursor: pointer; transition: transform .3s; }
.novel-card:hover { transform: translateY(-3px); }
.novel-cover { flex: none; width: 82px; height: 112px; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 18px rgba(15, 23, 42, .18); }
.novel-cover img { width: 100%; height: 100%; object-fit: cover; }
.novel-info { min-width: 0; flex: 1; }
.novel-info h3 { margin: 2px 0 5px; font-size: 15px; }
.novel-info > span { display: block; color: var(--muted); font-size: 10px; }
.novel-info p { display: -webkit-box; margin: 8px 0 0; overflow: hidden; color: var(--text-soft); font-size: 11px; line-height: 1.6; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.novel-progress { height: 4px; margin-top: 10px; border-radius: 4px; background: rgba(100, 116, 139, .18); overflow: hidden; }
.novel-progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #38bdf8, #818cf8); }
.novel-meta { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted); font-size: 9px; }
.novel-empty { grid-column: 1 / -1; padding: 56px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.chapter-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; margin: 14px 0 18px; padding-right: 4px; }
.chapter-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 9px; background: rgba(99, 102, 241, .06); color: var(--text-soft); font-size: 12px; cursor: pointer; }
.chapter-item:hover { background: rgba(99, 102, 241, .13); color: var(--primary); }

/* ---------- 花园仪表盘 ---------- */
.garden-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { padding: 18px 20px; border-radius: 20px; }
.stat-card__label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.stat-card__label svg { width: 13px; height: 13px; }
.stat-card strong { display: block; margin-top: 6px; font-size: 26px; font-weight: 900; line-height: 1.1; }
.stat-card strong small { margin-left: 2px; font-size: 11px; font-weight: 600; color: var(--muted); }
.stat-card:nth-child(1) strong { color: #0284c7; }
.stat-card:nth-child(2) strong { color: #4f46e5; }
.stat-card:nth-child(3) strong { color: #9333ea; }
.stat-card:nth-child(4) strong { color: #db2777; }
.garden-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-bottom: 18px; }
.chart-card { padding: 22px 24px; border-radius: 22px; }
.chart-card h2 { margin: 0 0 4px; font-size: 15px; }
.chart-card > p { margin: 0 0 16px; color: var(--muted); font-size: 10px; }
.line-chart { position: relative; height: 170px; }
.line-chart svg { width: 100%; height: 100%; overflow: visible; }
.line-chart .grid-line { stroke: rgba(100, 116, 139, .14); stroke-width: 1; stroke-dasharray: 3 5; }
.line-chart .area { fill: url(#trendFill); }
.line-chart .line { fill: none; stroke: url(#trendStroke); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.line-chart .point { fill: #fff; stroke: #6366f1; stroke-width: 2; }
.line-chart .axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 9px; }
.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut { position: relative; flex: none; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(#38bdf8 0 40%, #818cf8 40% 65%, #c084fc 65% 85%, #f472b6 85% 100%); }
.donut::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: var(--card-solid); }
.donut__center { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; }
.donut__center strong { display: block; font-size: 20px; font-weight: 900; }
.donut__center span { display: block; color: var(--muted); font-size: 9px; }
.legend { display: flex; flex-direction: column; gap: 8px; }
.legend div { display: flex; align-items: center; gap: 7px; color: var(--text-soft); font-size: 11px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend span { margin-left: auto; color: var(--muted); font-size: 10px; }
.recent-list { display: flex; flex-direction: column; gap: 2px; }
.recent-item { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-radius: 9px; transition: background .2s; }
.recent-item:hover { background: rgba(255, 255, 255, .3); }
:root[data-theme="dark"] .recent-item:hover { background: rgba(255, 255, 255, .05); }
.recent-item time { flex: none; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.recent-item strong { overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.recent-item span { margin-left: auto; flex: none; color: var(--primary); font-size: 9px; }
.garden-bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote-card { padding: 22px; border-radius: 22px; background: rgba(15, 23, 42, .9); color: #fff; }
.quote-card h2 { margin: 0 0 10px; font-size: 14px; color: #a5b4fc; letter-spacing: 1px; }
.quote-card p { margin: 0; font-size: 13px; line-height: 1.8; }
.quote-card small { display: block; margin-top: 12px; color: rgba(255, 255, 255, .45); font-size: 9px; }
.tech-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tech-cloud span { padding: 4px 10px; border: 1px solid var(--glass-border); border-radius: 20px; background: rgba(255, 255, 255, .22); color: var(--text-soft); font-size: 10px; }
.fun-facts { display: flex; flex-direction: column; gap: 7px; color: var(--text-soft); font-size: 11px; }
.fun-facts b { color: var(--primary); }
.axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 9px; }
.recent-list a { color: inherit; text-decoration: none; }
.garden-secret { max-width: 420px; margin: 18px auto 0; padding: 18px 22px; text-align: center; }
.garden-secret p { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.garden-secret input { width: 100%; padding: 10px 14px; border: 1px solid var(--glass-border); border-radius: 12px; background: rgba(255, 255, 255, .42); color: var(--text); font-size: 12px; text-align: center; outline: none; transition: border-color .2s; }
.garden-secret input:focus { border-color: var(--primary); }
:root[data-theme="dark"] .garden-secret input { background: rgba(255, 255, 255, .06); }

/* ---------- 关于 ---------- */
.about-shell { max-width: 900px; margin: 0 auto; border-radius: 28px; overflow: hidden; }
.about-cover { position: relative; height: 240px; overflow: hidden; }
.about-cover img { width: 100%; height: 100%; object-fit: cover; }
.about-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 6, 23, .6), transparent 70%); }
.about-inner { padding: 0 48px 46px; }
.about-avatar { position: relative; z-index: 2; width: 112px; height: 112px; margin-top: -56px; padding: 4px; border-radius: 50%; background: #fff; box-shadow: 0 12px 30px rgba(15, 23, 42, .2); }
.about-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.about-title { margin: 14px 0 26px; padding-bottom: 22px; border-bottom: 1px solid rgba(100, 116, 139, .24); }
.about-title h1 { margin: 0 0 5px; font-size: 36px; }
.about-title p { margin: 0; color: #4f46e5; font-size: 12px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; }
:root[data-theme="dark"] .about-title p { color: #a5b4fc; }
.about-body { color: var(--text-soft); font-size: 15px; line-height: 1.9; }
.about-body h2 { margin: 32px 0 10px; color: var(--text); font-size: 24px; }
.about-body p { margin: 12px 0; }
.about-body ul { padding-left: 22px; }
.about-body li { margin: 5px 0; }
.about-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.about-body blockquote { margin: 22px 0; padding-left: 16px; border-left: 4px solid var(--primary); color: var(--muted); font-style: italic; }
.about-body strong { color: var(--text); }

/* ---------- 子页面页脚 ---------- */
.site-footer { position: relative; z-index: 2; width: min(1152px, 100%); margin: 0 auto; padding: 0 40px 34px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border: 1px solid var(--glass-border); border-radius: 18px; background: var(--glass); color: var(--muted); font-size: 11px; backdrop-filter: blur(14px); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 15px; }
.site-footer__links a:hover { color: var(--primary); }
.site-footer__dot { margin: 0 4px; opacity: .5; }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1050px) {
  .post-grid, .album-grid, .novel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .music-layout { grid-template-columns: 330px 1fr; }
  .vinyl { width: 190px; height: 190px; }
  .garden-stats { grid-template-columns: repeat(2, 1fr); }
  .garden-grid, .garden-bottom { grid-template-columns: 1fr; }
  .message-layout { grid-template-columns: 280px 1fr; }
}

@media (max-width: 800px) {
  .page-main { padding: 88px 24px 48px; }
  .page-head h1 { font-size: 25px; }
  .page-head p { margin-left: 54px; font-size: 12px; }
  .post-grid, .album-grid, .novel-grid, .project-grid { grid-template-columns: 1fr; }
  .article-hero { height: 260px; }
  .article-hero__text { padding: 22px; }
  .article-hero__text h1 { font-size: 24px; }
  .article-card { padding: 24px 22px; }
  .message-layout { grid-template-columns: 1fr; }
  .message-aside { position: static; }
  .music-layout { grid-template-columns: 1fr; }
  .music-panel { min-height: 380px; }
  .lyric-scroll { height: 290px; padding: 100px 10px; }
  .bottle-field { height: 480px; }
  .album-photos__grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
  .site-footer { padding: 0 24px 26px; }
  .about-inner { padding: 0 26px 34px; }
  .about-cover { height: 190px; }
  .about-title h1 { font-size: 28px; }
  .comment-form { grid-template-columns: 1fr; }
  .comment-form textarea, .comment-form button { grid-column: span 1; }
}

@media (max-width: 560px) {
  .page-main { padding: 80px 16px 36px; }
  .page-head { margin-bottom: 20px; }
  .page-head__icon { width: 40px; height: 40px; border-radius: 13px; }
  .page-head h1 { font-size: 22px; }
  .page-head p { margin: 7px 0 0 52px; font-size: 11px; }
  .filter-tabs { gap: 6px; }
  .filter-tab { padding: 6px 12px; font-size: 11px; }
  .post-card__body { padding: 14px; }
  .post-card__body h3 { font-size: 14px; }
  .article-hero { height: 220px; border-radius: 20px; }
  .article-hero__text h1 { font-size: 20px; }
  .article-hero__text p { font-size: 11px; }
  .article-card, .comment-card { border-radius: 20px; }
  .article-body { font-size: 14px; }
  .prev-next { grid-template-columns: 1fr; }
  .moment-images { grid-template-columns: repeat(2, 1fr); }
  .moment-images img { height: 108px; }
  .album-stack { height: 160px; max-width: 200px; }
  .bottle-field { height: 420px; }
  .bottle { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .bottle__name { font-size: 9px; }
  .project-card { padding: 20px; }
  .project-card__top h2 { font-size: 17px; }
  .music-panel { padding: 18px; }
  .music-tabs { justify-content: center; }
  .lyric-scroll { height: 260px; padding: 80px 4px; }
  .garden-stats { gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card strong { font-size: 22px; }
  .donut-wrap { flex-direction: column; }
  .site-footer { padding: 0 16px 20px; }
  .site-footer__inner { flex-direction: column; text-align: center; }
  .about-inner { padding: 0 18px 28px; }
  .about-avatar { width: 88px; height: 88px; margin-top: -44px; }
  .about-title h1 { font-size: 24px; }
  .about-body { font-size: 14px; }
}

/* ============================================================
   登录页 login.html
   ============================================================ */
.login-shell { max-width: 400px; margin: 0 auto; padding: 30px 26px; border-radius: 24px; }
.login-head { text-align: center; margin-bottom: 22px; }
.login-head h1 { margin: 6px 0 8px; font-size: 22px; }
.login-head p { margin: 0; color: var(--text-soft); font-size: 12px; }

/* 登录 / 注册 切换标签 */
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .25); border: 1px solid var(--glass-border); margin-bottom: 18px; }
.login-tabs button { padding: 8px 0; border-radius: 9px; font-size: 12px; font-weight: 600; color: var(--text-soft); transition: background .2s, color .2s; }
.login-tabs button.active { background: rgba(255, 255, 255, .55); color: var(--text); }
:root[data-theme="dark"] .login-tabs button.active { background: rgba(30, 41, 59, .8); }

/* 输入框与提交按钮 */
.login-form input { width: 100%; margin-bottom: 10px; padding: 11px 13px; border: 1px solid var(--glass-border); border-radius: 12px; outline: 0; background: rgba(255, 255, 255, .3); color: var(--text); font-size: 13px; }
.login-form input:focus { border-color: rgba(99, 102, 241, .5); }
.login-form .primary-button { margin-top: 4px; }
/* 记住登录 */
.login-form input[type="checkbox"] { width: 15px; height: 15px; margin: 0; padding: 0; accent-color: #ec4899; cursor: pointer; }
.remember-row { display: flex; align-items: center; gap: 7px; margin: 2px 0 12px; color: var(--text-soft); font-size: 12px; cursor: pointer; user-select: none; }
.login-status { min-height: 18px; margin-top: 10px; font-size: 12px; text-align: center; color: #e11d48; }
.login-status.ok { color: #059669; }

/* 第三方登录 */
.oauth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--text-soft); font-size: 11px; }
.oauth-divider::before, .oauth-divider::after { content: ''; flex: 1; height: 1px; background: var(--glass-border); }
.github-button { width: 100%; padding: 10px 20px; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .25); color: var(--text); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s; cursor: pointer; }
.github-button:hover { background: rgba(255, 255, 255, .45); }
.github-button svg { width: 16px; height: 16px; fill: currentColor; }
:root[data-theme="dark"] .github-button { background: rgba(30, 41, 59, .5); }
:root[data-theme="dark"] .github-button:hover { background: rgba(30, 41, 59, .8); }

/* 已登录状态卡片 */
.login-user { display: none; text-align: center; }
.login-user.show { display: block; }
.user-avatar { width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ec4899, #6366f1); }
.user-avatar span { text-transform: uppercase; }
.user-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.login-user h2 { margin: 0 0 4px; font-size: 17px; }
.login-user .user-mail { margin: 0 0 18px; color: var(--text-soft); font-size: 12px; }
.user-actions { display: grid; gap: 8px; }
.user-actions .primary-button { display: block; text-align: center; text-decoration: none; }
a.ghost-button { display: block; text-align: center; text-decoration: none; }
.ghost-button { width: 100%; padding: 10px 20px; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .25); color: var(--text); font-size: 13px; font-weight: 600; transition: background .2s; }
.ghost-button:hover { background: rgba(255, 255, 255, .45); }
:root[data-theme="dark"] .ghost-button { background: rgba(30, 41, 59, .5); }
:root[data-theme="dark"] .ghost-button:hover { background: rgba(30, 41, 59, .8); }

/* ============================================================
   个人主页 profile.html
   ============================================================ */
.profile-shell { max-width: 760px; margin: 0 auto; overflow: hidden; border-radius: 26px; }
.profile-cover { position: relative; height: 132px; background: linear-gradient(120deg, #f472b6, #818cf8 55%, #38bdf8); }
.profile-cover .eyebrow { position: absolute; left: 24px; bottom: 16px; margin: 0; color: rgba(255, 255, 255, .92); }
.profile-body { padding: 0 28px 28px; text-align: center; }
.profile-avatar { position: relative; width: 104px; height: 104px; margin: -52px auto 14px; border: 3px solid rgba(255, 255, 255, .85); border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ec4899, #6366f1); color: #fff; font-size: 40px; font-weight: 700; box-shadow: 0 12px 28px rgba(76, 29, 149, .25); }
.profile-avatar span { text-transform: uppercase; }
.profile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-avatar__edit { position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .88); color: #334155; box-shadow: 0 4px 12px rgba(15, 23, 42, .18); }
.profile-avatar__edit:hover { background: #fff; color: var(--primary); }
.profile-avatar__edit svg { width: 15px; height: 15px; }
.profile-body h1 { margin: 0 0 6px; font-size: 26px; }
.profile-mail { margin: 0 0 6px; color: var(--text-soft); font-size: 13px; }
.profile-joined { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; text-align: left; }
.profile-item { padding: 14px 16px; border: 1px solid var(--glass-border); border-radius: 16px; background: rgba(255, 255, 255, .28); }
:root[data-theme="dark"] .profile-item { background: rgba(255, 255, 255, .05); }
.profile-item span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; letter-spacing: .5px; }
.profile-item strong { font-size: 13px; word-break: break-all; }
.profile-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.profile-actions .primary-button, .profile-actions .ghost-button { width: auto; min-width: 132px; padding: 10px 22px; }
.profile-guest { padding: 18px 0 4px; }
.profile-guest p { margin: 0 0 18px; color: var(--text-soft); font-size: 13px; }
.profile-guest .primary-button { display: inline-block; width: auto; padding: 10px 26px; text-decoration: none; }
@media (max-width: 640px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-body { padding: 0 18px 22px; }
}

/* ============================================================
   管理后台 admin.html
   ============================================================ */
.admin-shell { max-width: 860px; margin: 0 auto; padding: 28px 26px; border-radius: 24px; }

/* 顶部身份区 */
.admin-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--glass-border); }
.admin-avatar { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-size: 24px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ec4899, #6366f1); }
.admin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-id { min-width: 0; }
.admin-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.admin-title-row h1 { margin: 0; font-size: 20px; }
.admin-id p { margin: 4px 0 0; color: var(--text-soft); font-size: 12px; }

/* 角色徽章 */
.role-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ec4899, #6366f1); }
.role-badge.plain { color: var(--text-soft); background: rgba(148, 163, 184, .22); }

/* 概览数字 */
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.admin-stat { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .3); }
.admin-stat span { display: block; color: var(--text-soft); font-size: 11px; margin-bottom: 6px; }
.admin-stat strong { font-size: 20px; }
:root[data-theme="dark"] .admin-stat { background: rgba(30, 41, 59, .45); }

/* 账号列表卡片 */
.admin-card { border: 1px solid var(--glass-border); border-radius: 18px; padding: 18px; background: rgba(255, 255, 255, .22); }
:root[data-theme="dark"] .admin-card { background: rgba(30, 41, 59, .4); }
.admin-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-card-head h2 { margin: 0; font-size: 15px; }
.admin-tip { color: var(--text-soft); font-size: 11px; }

/* 表格 */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { text-align: left; padding: 9px 10px; color: var(--text-soft); font-weight: 600; font-size: 11px; border-bottom: 1px solid var(--glass-border); white-space: nowrap; }
.admin-table td { padding: 10px; border-bottom: 1px solid var(--glass-border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-user em { font-style: normal; margin-left: 4px; color: #ec4899; font-size: 10px; }
.admin-empty { text-align: center; color: var(--text-soft); padding: 18px 0; }
.admin-ops { white-space: nowrap; }
.mini-button { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; margin-right: 6px; border-radius: 8px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .35); color: var(--text); font-size: 11px; font-weight: 600; cursor: pointer; transition: background .2s; }
.mini-button:hover { background: rgba(255, 255, 255, .6); }
.mini-button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mini-button.danger { color: #e11d48; border-color: rgba(225, 29, 72, .3); }
.mini-button.danger:hover { background: rgba(225, 29, 72, .1); }
:root[data-theme="dark"] .mini-button { background: rgba(30, 41, 59, .6); }
:root[data-theme="dark"] .mini-button:hover { background: rgba(30, 41, 59, .9); }

/* 说明区 */
.admin-note { margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--glass-border); color: var(--text-soft); font-size: 11.5px; line-height: 1.8; }
.admin-note strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 12px; }
.admin-note p { margin: 0; }
.admin-note p + p { margin-top: 6px; }
.admin-note code { padding: 1px 5px; border-radius: 5px; background: rgba(99, 102, 241, .12); color: #6366f1; font-size: 11px; }

/* 底部操作 */
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.admin-actions .ghost-button { width: auto; flex: 1 1 120px; }

/* 未登录 / 无权限 空状态 */
.admin-empty-state { text-align: center; padding: 26px 10px; }
.admin-empty-icon { width: 44px; height: 44px; fill: none; stroke: var(--text-soft); stroke-width: 1.6; stroke-linecap: round; opacity: .7; }
.admin-empty-state h1 { margin: 14px 0 8px; font-size: 20px; }
.admin-empty-state p { margin: 0 0 20px; color: var(--text-soft); font-size: 12.5px; line-height: 1.8; }
.admin-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.admin-empty-actions .primary-button, .admin-empty-actions .ghost-button { width: auto; min-width: 120px; }

@media (max-width: 720px) {
  .admin-shell { padding: 22px 16px; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-table { font-size: 11.5px; }
  .admin-table th:nth-child(3), .admin-table td:nth-child(3) { display: none; }
}

/* ============================================================
   登录态通用细节（服务端账号版本）
   ============================================================ */
/* 头部登录 / 后台入口容器，内部间距与 nav-actions 一致 */
.nav-auth { display: inline-flex; align-items: center; gap: 3px; }

/* 提交中 / 退出中按钮的禁用态 */
.primary-button:disabled, .ghost-button:disabled { opacity: .65; cursor: default; }
.primary-button:disabled:hover { background: #ec4899; }
.ghost-button:disabled:hover { background: rgba(255, 255, 255, .25); }

/* 后台「站点用户」卡片 */
.admin-member p { margin: 0 0 14px; color: var(--text-soft); font-size: 12px; line-height: 1.9; }
.admin-member .primary-button { display: inline-block; width: auto; padding: 10px 22px; text-decoration: none; }

/* ============================================================
   后台用户列表：头像与角色操作按钮
   ============================================================ */

/* 用户名单元格：小头像 + 名字 */
.admin-user { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.admin-user-name { white-space: nowrap; }

/* 圆形小头像容器，底色即默认头像（首字母 + 渐变） */
.mini-avatar-wrap {
  position: relative;
  width: 28px; height: 28px;
  flex: 0 0 28px;
  display: inline-grid; place-items: center;
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #ec4899, #6366f1);
  color: #fff; font-size: 12px; font-weight: 700;
  line-height: 1;
}
.mini-avatar-fallback { text-transform: uppercase; }
/* 上传过的头像盖在底图上面；加载失败时被 JS 移除，自然露出底图 */
.mini-avatar { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 角色按钮的禁用态：当前不可执行的那个动作置灰 */
.mini-button:disabled { opacity: .38; cursor: default; pointer-events: none; }
.mini-button.danger:disabled:hover { background: transparent; }

/* 表格里的账号邮箱过长时省略，避免撑破布局 */
.admin-table td:nth-child(2) { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   页头右侧动作区（写文章 / 返回列表 等）
   ============================================================ */
.page-head { position: relative; }
.page-head__actions { position: absolute; top: 16px; right: 20px; display: flex; gap: 8px; }
.page-head__actions .primary-button,
.page-head__actions .ghost-button { width: auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; text-decoration: none; }

/* ============================================================
   无封面占位（列表卡片 / 首页大卡 / 首页小卡）
   ============================================================ */
.post-card__cover--placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, #94a3b8, #64748b); color: rgba(255, 255, 255, .82);
}
.post-card__cover--placeholder svg { width: 38px; height: 38px; opacity: .72; }
.post-hero__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #818cf8, #38bdf8); }
.post-small__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #a5b4fc, #7dd3fc); }

/* ============================================================
   写文章 editor.html
   ============================================================ */
.editor-shell { padding: 26px; }
.editor-state { padding: 44px 24px; text-align: center; }
.editor-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.editor-empty svg { width: 44px; height: 44px; opacity: .55; }
.editor-empty h1 { margin: 4px 0 2px; font-size: 20px; }
.editor-empty p { margin: 0; color: var(--text-soft); font-size: 13px; }
.editor-empty__actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.editor-empty__actions .ghost-button { width: auto; padding: 9px 18px; }

.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.editor-field { display: flex; flex-direction: column; gap: 7px; }
.editor-field > label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.editor-field > label em { color: #ec4899; font-style: normal; }
.editor-field input, .editor-field textarea, .editor-field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--glass-border); border-radius: 12px;
  outline: 0; background: rgba(255, 255, 255, .3); color: var(--text); font-size: 13px; font-family: inherit;
  transition: border-color .2s, background .2s;
}
.editor-field input:focus, .editor-field textarea:focus, .editor-field select:focus { border-color: rgba(99, 102, 241, .55); }
.editor-field textarea { resize: vertical; min-height: 88px; line-height: 1.65; }

/* 封面上传区 */
.editor-cover { grid-column: 1 / -1; cursor: pointer; }
.editor-cover__empty, .editor-cover__preview {
  border-radius: 16px; height: 200px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--text-soft); background: rgba(255, 255, 255, .18); transition: background .2s, border-color .2s;
}
.editor-cover__empty { border: 1.5px dashed var(--glass-border); }
.editor-cover:hover .editor-cover__empty,
.editor-cover.is-dragover .editor-cover__empty { background: rgba(255, 255, 255, .32); border-color: rgba(99, 102, 241, .5); }
.editor-cover__empty svg { width: 30px; height: 30px; opacity: .6; }
.editor-cover__empty strong { font-size: 14px; }
.editor-cover__empty span { font-size: 11px; opacity: .75; }
.editor-cover__preview { position: relative; padding: 0; border: 1px solid var(--glass-border); }
.editor-cover__preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.editor-cover__remove {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(2, 6, 23, .6); color: #fff; border: 0; cursor: pointer;
}
.editor-cover__remove svg { width: 16px; height: 16px; }

/* 文件导入 */
.editor-import__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.editor-import__row .ghost-button { width: auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; }
.editor-import__status { font-size: 12px; color: var(--text-soft); }

/* 正文：左编辑右预览 */
.editor-content { grid-column: 1 / -1; }
.editor-content__head { display: flex; align-items: center; justify-content: space-between; }
.editor-content__hint { font-size: 11px; color: var(--text-soft); opacity: .8; }
.editor-content__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.editor-content__grid textarea {
  min-height: 360px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.7;
}
.editor-preview {
  min-height: 360px; max-height: 620px; padding: 14px 16px; overflow: auto;
  border: 1px solid var(--glass-border); border-radius: 12px;
  background: rgba(255, 255, 255, .22); font-size: 13px;
}
.editor-actions { display: flex; justify-content: flex-end; margin-top: 22px; }
.editor-actions .primary-button { width: auto; min-width: 150px; }

:root[data-theme="dark"] .editor-field input,
:root[data-theme="dark"] .editor-field textarea,
:root[data-theme="dark"] .editor-field select { background: rgba(30, 41, 59, .5); }
:root[data-theme="dark"] .editor-cover__empty { background: rgba(30, 41, 59, .35); }
:root[data-theme="dark"] .editor-cover:hover .editor-cover__empty,
:root[data-theme="dark"] .editor-cover.is-dragover .editor-cover__empty { background: rgba(30, 41, 59, .6); }
:root[data-theme="dark"] .editor-preview { background: rgba(30, 41, 59, .4); }

@media (max-width: 720px) {
  .editor-grid { grid-template-columns: 1fr; }
  .editor-content__grid { grid-template-columns: 1fr; }
  .editor-shell { padding: 18px; }
}
@media (max-width: 560px) {
  .page-head__actions { position: static; margin: 10px 0 0 58px; }
}
