/* Lux Extra — 增补PRD新功能样式 */

/* === Hero 粒子层 === */
.hero { position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .45; }

/* Hero 头像区 */
.hero-avatar-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hero-avatar { width: 64px; height: 64px; border-radius: 50%; border: 2.5px solid var(--accent); object-fit: cover; flex-shrink: 0; }

/* Hero 社交快捷按钮 */
.hero-socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.hero-social-btn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  color: var(--text-muted); border: .5px solid var(--border-strong);
  padding: 6px 13px; border-radius: var(--radius-pill); transition: all .2s;
}
.hero-social-btn:hover { border-color: var(--accent); color: var(--accent); }

/* === 导航搜索按钮 === */
.nav-search {
  background: none; border: none; color: var(--text); cursor: pointer;
  padding: 4px 8px; font-size: 17px; display: flex; align-items: center;
  transition: color .2s; flex-shrink: 0; line-height: 1;
}
.nav-search:hover { color: var(--accent); }

/* === 搜索覆盖层 === */
.search-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(11,13,18,.85);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 8vh;
  opacity: 0; pointer-events: none; transition: opacity .22s;
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-box { width: 100%; max-width: 660px; margin: 0 20px; }
.search-input-wrap {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1.5px solid var(--accent);
  border-radius: 14px; padding: 14px 18px;
}
.search-input-icon { color: var(--accent); font-size: 17px; flex-shrink: 0; }
.search-input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 18px; color: var(--text); font-family: var(--font-sans);
}
.search-input::placeholder { color: var(--text-dim); }
.search-close {
  background: none; border: none; color: var(--text-dim);
  font-size: 24px; cursor: pointer; padding: 0; line-height: 1;
}
.search-results {
  margin-top: 12px; background: var(--surface);
  border: .5px solid var(--border); border-radius: 12px;
  overflow: hidden; max-height: 56vh; overflow-y: auto;
}
.search-result-item {
  display: block; padding: 13px 18px;
  border-bottom: .5px solid var(--border); transition: background .15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--surface-2); }
.sr-title { font-size: 15px; color: var(--text); margin-bottom: 4px; line-height: 1.4; }
.sr-title mark { color: var(--accent); background: none; font-style: normal; }
.sr-meta { font-size: 12px; color: var(--text-dim); }
.search-hint { padding: 30px; text-align: center; color: var(--text-dim); font-size: 14px; }
.search-shortcut {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.35);
}
:root[data-theme="light"] .search-shortcut { color: var(--text-dim); }
.search-shortcut kbd {
  background: var(--surface); border: .5px solid var(--border);
  border-radius: 5px; padding: 2px 7px; font-family: var(--font-mono); font-size: 11px;
}

/* === 文章阅读工具栏 === */
.reading-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px; padding: 10px 14px;
  background: var(--surface); border: .5px solid var(--border);
  border-radius: var(--radius-card);
}
.reading-meta { display: flex; gap: 14px; font-size: 12px; color: var(--text-dim); flex-shrink: 0; }
.reading-meta span { display: flex; align-items: center; gap: 4px; }
.rb-sep { width: 1px; height: 14px; background: var(--border-strong); margin: 0 4px; flex-shrink: 0; }
.rb-group { display: flex; gap: 3px; }
.rb-btn {
  background: none; border: none; cursor: pointer; font-size: 12.5px;
  color: var(--text-muted); padding: 4px 9px; border-radius: 6px;
  transition: all .15s; font-family: var(--font-sans); white-space: nowrap;
}
.rb-btn:hover { background: var(--surface-2); color: var(--accent); }
.rb-btn.active { background: var(--accent); color: var(--accent-ink); }

/* 护眼 */
body.eye-filter { filter: sepia(12%) brightness(96%); }

/* 字体大小 */
body.font-sm .markdown-body { font-size: 14px; line-height: 1.9; }
body.font-lg .markdown-body { font-size: 18px; }
body.font-xl .markdown-body { font-size: 20px; }

/* === 分享按钮 === */
.share-bar { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.share-bar-label { font-size: 12px; color: var(--text-dim); }
.share-btn {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px;
  color: var(--text-muted); border: .5px solid var(--border-strong);
  padding: 5px 12px; border-radius: var(--radius-pill); cursor: pointer;
  transition: all .2s; background: none; font-family: var(--font-sans);
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }

/* === 悬浮社交图标 === */
.social-bar {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 200;
}
.social-bar-item {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: .5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 15px; cursor: pointer;
  transition: all .25s; text-decoration: none; position: relative;
}
.social-bar-item:hover {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent); transform: scale(1.12);
}
.social-bar-item .social-tip {
  position: absolute; right: 46px; top: 50%; transform: translateY(-50%);
  background: var(--surface-2); border: .5px solid var(--border);
  border-radius: 7px; padding: 5px 10px; font-size: 12px; color: var(--text);
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.social-bar-item:hover .social-tip { opacity: 1; }
@media(max-width:860px) { .social-bar { display: none; } }

/* === 首页底部评论墙 === */
.comment-wall { padding: 48px 0; border-top: .5px solid var(--border); }
.comment-wall-head { text-align: center; margin-bottom: 32px; }
.comment-wall-head h2 { font-size: 22px; margin: 0 0 6px; }
.comment-wall-head p { color: var(--text-dim); font-size: 14px; margin: 0; }
.cw-track-wrap { overflow: hidden; }
.cw-track { display: flex; gap: 16px; }
.cw-card {
  flex: 0 0 280px; background: var(--surface); border: .5px solid var(--border);
  border-radius: var(--radius-card); padding: 18px; box-shadow: var(--shadow);
}
.cw-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cw-avatar-default {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  color: var(--accent-ink); font-size: 14px; font-weight: 500; flex-shrink: 0;
}
.cw-info { min-width: 0; }
.cw-name { font-size: 14px; font-weight: 500; color: var(--text); }
.cw-date { font-size: 11px; color: var(--text-dim); }
.cw-text { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* === 时间轴归档页 === */
.archive-page { padding: clamp(32px,5vw,52px) 0; }
.archive-page-head { margin-bottom: 36px; }
.archive-page-head h1 { font-size: clamp(24px,3.5vw,32px); margin: 0 0 8px; }
.archive-page-head p { color: var(--text-dim); margin: 0; }
.archive-year { margin-bottom: 40px; }
.archive-year-head {
  display: flex; align-items: center; gap: 16px;
  cursor: pointer; user-select: none; padding-bottom: 12px;
  border-bottom: .5px solid var(--border); margin-bottom: 20px;
}
.archive-year-num { font-size: 30px; color: var(--accent); font-weight: 500; line-height: 1; }
.archive-year-cnt { font-size: 13px; color: var(--text-dim); }
.archive-year-arrow { margin-left: auto; color: var(--text-dim); font-size: 18px; transition: transform .3s; line-height: 1; }
.archive-year.collapsed .archive-year-arrow { transform: rotate(-90deg); }
.archive-year.collapsed .archive-year-months { display: none; }
.archive-month { margin-bottom: 16px; padding-left: 16px; border-left: 2px solid var(--border); }
.archive-month-label { font-size: 12px; color: var(--accent); letter-spacing: 1px; font-weight: 500; margin-bottom: 8px; text-transform: uppercase; }
.archive-post-list { list-style: none; margin: 0; padding: 0; }
.archive-post-list li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 7px 0; border-bottom: .5px dashed var(--border);
}
.archive-post-list li:last-child { border-bottom: none; }
.archive-post-list li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--border-strong); flex-shrink: 0; margin-top: 2px;
}
.archive-post-list a { color: var(--text-muted); flex: 1; font-size: 14px; line-height: 1.5; }
.archive-post-list a:hover { color: var(--accent); }
.archive-post-list .arc-date { font-size: 12px; color: var(--text-dim); flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* === 工具箱页面 === */
.toolbox-head { margin-bottom: 32px; }
.toolbox-head h1 { font-size: clamp(24px,3.5vw,32px); margin: 0 0 8px; }
.toolbox-head p { color: var(--text-dim); margin: 0; font-size: 14px; }
.toolbox-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tb-tab {
  background: var(--surface); border: .5px solid var(--border);
  border-radius: var(--radius-pill); padding: 7px 16px; font-size: 13px;
  color: var(--text-muted); cursor: pointer; transition: all .2s; white-space: nowrap;
  font-family: var(--font-sans);
}
.tb-tab.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tb-panel { display: none; }
.tb-panel.active { display: block; }
.tool-card {
  background: var(--surface); border: .5px solid var(--border);
  border-radius: var(--radius-card); padding: 24px 26px; box-shadow: var(--shadow);
}
.tool-card + .tool-card { margin-top: 20px; }
.tool-card h3 { font-size: 15px; margin: 0 0 16px; color: var(--text); font-weight: 500; }
.tool-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.tool-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:640px) { .tool-2col { grid-template-columns: 1fr; } }
.tool-label { font-size: 12px; color: var(--text-dim); margin-bottom: 7px; }
.tool-ta {
  width: 100%; min-height: 110px; resize: vertical;
  background: var(--bg); border: .5px solid var(--border-strong);
  border-radius: var(--radius-ctl); padding: 11px 14px;
  color: var(--text); font-family: var(--font-mono); font-size: 13px; line-height: 1.6; outline: none;
}
.tool-ta:focus { border-color: var(--accent); }
.tool-in {
  width: 100%; background: var(--bg); border: .5px solid var(--border-strong);
  border-radius: var(--radius-ctl); padding: 9px 13px;
  color: var(--text); font-family: var(--font-sans); font-size: 14px; outline: none;
}
.tool-in:focus { border-color: var(--accent); }
.tool-select {
  background: var(--bg); border: .5px solid var(--border-strong);
  border-radius: var(--radius-ctl); padding: 9px 13px;
  color: var(--text); font-size: 13px; outline: none; cursor: pointer;
}
.tool-status { font-size: 13px; color: var(--text-dim); margin-top: 6px; min-height: 20px; }
.tool-status.ok { color: #4ade80; }
.tool-status.err { color: #f87171; }
.qr-result { margin-top: 14px; display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.qr-img { width: 180px; height: 180px; border-radius: var(--radius-card); border: .5px solid var(--border); display: none; }
.color-swatch { width: 48px; height: 48px; border-radius: 10px; border: .5px solid var(--border-strong); display: inline-block; flex-shrink: 0; }
.color-info-row { display: flex; gap: 10px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.color-val { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); background: var(--bg); border: .5px solid var(--border); padding: 5px 11px; border-radius: 7px; cursor: pointer; transition: color .15s; }
.color-val:hover { color: var(--accent); }
.pwd-strength-wrap { margin-top: 10px; }
.pwd-strength-bar { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.pwd-strength-fill { height: 100%; width: 0; border-radius: 2px; transition: all .3s; }
.unit-3col { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 10px; align-items: end; }
.unit-arrow { text-align: center; color: var(--text-dim); font-size: 20px; padding-bottom: 9px; }
.text-stats { display: flex; gap: 16px; font-size: 12px; color: var(--text-dim); flex-wrap: wrap; }
.text-stats span { display: flex; align-items: center; gap: 4px; }

/* === 卡片式友链 === */
.links-page-head { margin-bottom: 32px; }
.links-page-head h1 { font-size: clamp(24px,3.5vw,32px); margin: 0 0 8px; }
.links-page-head p { color: var(--text-dim); margin: 0; font-size: 14px; }
.links-cat-section { margin-bottom: 36px; }
.links-cat-label { font-size: 14px; font-weight: 500; color: var(--text); margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.links-cat-label::before { content: ''; width: 3px; height: 14px; background: var(--accent); border-radius: 2px; }
.links-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 14px; }
.link-card {
  display: flex; align-items: center; gap: 13px; padding: 14px 16px;
  background: var(--surface); border: .5px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow);
  transition: all .25s; text-decoration: none;
}
.link-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.link-favicon {
  width: 42px; height: 42px; border-radius: 9px;
  background: var(--surface-2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; overflow: hidden;
}
.link-favicon img { width: 42px; height: 42px; object-fit: cover; }
.link-info { min-width: 0; }
.link-name { font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-remark { font-size: 12px; color: var(--text-dim); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-apply-section { margin-top: 44px; padding-top: 32px; border-top: .5px solid var(--border); }
.link-apply-section h2 { font-size: 18px; margin: 0 0 20px; }
.link-apply-form { background: var(--surface); border: .5px solid var(--border); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow); }
.link-apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:600px) { .link-apply-grid { grid-template-columns: 1fr; } }
.link-apply-note { font-size: 12px; color: var(--text-dim); margin: 12px 0 0; }
.link-field-label { font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.link-field-input {
  width: 100%; background: var(--bg); border: .5px solid var(--border-strong);
  border-radius: var(--radius-ctl); padding: 9px 12px; color: var(--text); font-size: 13px; outline: none;
}
.link-field-input:focus { border-color: var(--accent); }

/* === 侧栏：订阅卡片 === */
.side-subscribe-desc { font-size: 13px; color: var(--text-dim); margin: 0 0 12px; line-height: 1.6; }
.side-subscribe-links { display: flex; gap: 10px; flex-wrap: wrap; }
.side-subscribe-links a {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px;
  color: var(--text-muted); border: .5px solid var(--border-strong);
  padding: 6px 12px; border-radius: var(--radius-pill); transition: all .2s;
}
.side-subscribe-links a:hover { border-color: var(--accent); color: var(--accent); }

/* === 侧栏：站点状态 === */
.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: .5px solid var(--border); font-size: 13px; list-style: none; }
.status-list li:last-child { border-bottom: none; }
.status-key { color: var(--text-dim); display: flex; align-items: center; gap: 7px; }
.status-val { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; box-shadow: 0 0 5px rgba(74,222,128,.6); animation: lux-blink 2.4s ease infinite; }
@keyframes lux-blink { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* === 底部扩展 === */
.footer-extra { margin-top: 8px; }
.footer-runtime { font-size: 12px; color: var(--text-dim); }
.footer-yiyan { font-size: 13px; color: var(--text-dim); font-style: italic; margin-top: 4px; }

/* === 升级版 404 === */
.error-404-wrap { text-align: center; padding: clamp(80px,12vw,140px) 0; }
.error-404-code { font-size: clamp(100px,20vw,160px); color: var(--accent); line-height: 1; font-weight: 500; letter-spacing: -6px; margin: 0; opacity: .8; }
.error-404-msg { font-size: clamp(16px,2.5vw,22px); color: var(--text); margin: 16px 0 8px; }
.error-404-sub { font-size: 14px; color: var(--text-dim); margin: 0 0 32px; }
.error-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.error-404-rand { font-size: 13px; color: var(--accent); margin-top: 20px; cursor: pointer; background: none; border: none; font-family: var(--font-sans); }
.error-404-rand:hover { text-decoration: underline; }

/* === 骨架屏 === */
.skeleton { background: linear-gradient(90deg,var(--surface) 25%,var(--surface-2) 50%,var(--surface) 75%); background-size: 200% 100%; animation: lux-skeleton 1.5s infinite; border-radius: 6px; }
@keyframes lux-skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
