/*
 * Agonie Home — popup, box, settings & view pages (Vue port; music/weather removed).
 */



.time-weather .open-capsule-icon .ah-icon,
.time-capsule .title .ah-icon,
.set-right .title-icon .ah-icon,
#mobile-menu .ah-icon,
.box-close .ah-icon,
.home-set-icon .ah-icon,
#home-more .set .close .ah-icon {
  display: block;
  flex-shrink: 0;
  color: inherit;
}


/* Time-weather open-capsule hover (mirror open-music) */
#index.candy-home .time-weather {
  position: relative;
}

#index.candy-home .time-weather .open-capsule {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00000026;
  padding: 4px 0;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  z-index: 2;
  font-size: 0.95rem;
  color: #efefef;
}

#index.candy-home .time-weather .open-capsule-icon {
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  color: #efefef;
}

#index.candy-home .time-weather .open-capsule[hidden] {
  display: none !important;
}

















#index.candy-home #home-container.set-open #home-all {
  display: none;
}
#index.candy-home .home-set-hotspot {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  width: 88px;
  height: 72px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 14px;
  box-sizing: border-box;
}

#index.candy-home .home-set-hotspot[hidden] {
  display: none !important;
}

#index.candy-home .home-set-icon {
  width: 28px;
  height: 28px;
  cursor: pointer;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.38);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, opacity 0.3s;
}

#index.candy-home .home-set-icon .mdi {
  display: block;
  line-height: 1;
  font-size: 28px;
  color: inherit;
}

#index.candy-home .home-set-icon:hover {
  transform: scale(1.15);
  color: rgba(255, 255, 255, 0.72);
}

#index.candy-home .home-set-icon[hidden] {
  display: none !important;
}

/* Settings screen — Candy accent glass card, Move() enter like #page */
#home-more {
  --set-accent: var(--candy-accent, #8172ef);
  --set-accent-soft: var(--candy-accent-soft, rgba(129, 114, 239, 0.18));
  --set-accent-border: var(--candy-accent-border, rgba(129, 114, 239, 0.35));
  --set-text: var(--candy-text, #2a2a32);
  --set-muted: var(--candy-muted, rgba(42, 42, 50, 0.55));
  background: transparent;
  overflow: hidden;
  z-index: 12;
  font-family: var(--candy-font-sans);
  position: relative;
}

#home-more.move-show {
  display: block;
}

#home-more,
#home-more * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#home-more * {
  font-family: inherit;
}

#home-more .mdi,
#home-more .mdi::before {
  font-family: "Material Design Icons";
}

#home-more::-webkit-scrollbar,
#home-more *::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

#home-more .set {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(960px, 92vw);
  height: min(640px, 86vh);
  max-height: 86vh;
  background: var(--candy-overlay-bg);
  border: 1px solid var(--set-accent-border);
  border-radius: var(--candy-overlay-radius, 20px);
  box-shadow: var(--candy-overlay-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 28px 32px;
  box-sizing: border-box;
  overflow: hidden;
  color: var(--set-text);
}

#home-more .set .close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: var(--set-accent-soft);
  color: var(--set-accent);
  cursor: pointer;
  z-index: 3;
  padding: 4px;
  border-radius: 50%;
  opacity: 0.85;
  pointer-events: auto;
  line-height: 0;
  transition: transform 0.3s, opacity 0.3s, background 0.2s;
}

#home-more .set .close .mdi {
  font-size: 22px;
  line-height: 1;
}

.set.actions-visible .close,
#home-more .set:hover .close {
  opacity: 1;
  pointer-events: auto;
}

#home-more .set .close:hover {
  transform: scale(1.12);
  background: var(--set-accent-border);
}

@media (max-width: 720px) {
#home-more .set .close {
    opacity: 1;
    pointer-events: auto;
  }
}

#home-more .set-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
  gap: 28px;
  min-height: 0;
}

#home-more .set-side {
  flex: 0 0 220px;
  width: 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#home-more .set-brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 8px;
}

#home-more .set-brand .logo {
  height: auto;
  min-height: 0;
  transform: none;
  display: flex;
  align-items: flex-end;
  line-height: 1;
}

#home-more .set-brand .logo .name-main {
  font-family: "Pacifico-Regular", var(--candy-font-sans), cursive;
  font-size: 3.4rem;
  line-height: 1;
  position: static;
  width: auto;
  height: auto;
  z-index: auto;
  background: none;
  color: var(--set-accent);
}

#home-more .set-brand .logo .name-sub {
  font-size: 1.35rem;
  margin-left: 6px;
  color: var(--set-accent);
  opacity: 0.7;
}

#home-more .set-tabs {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

#home-more .set-tab {
  appearance: none;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.4);
  color: var(--set-text);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

#home-more .set-tab .mdi {
  font-size: 1.15rem;
  color: var(--set-accent);
  opacity: 0.85;
  flex-shrink: 0;
}

#home-more .set-tab:hover {
  background: var(--set-accent-soft);
  border-color: var(--set-accent-border);
}

#home-more .set-tab.is-active {
  background: var(--set-accent-soft);
  border-color: var(--set-accent-border);
  color: var(--set-accent);
  box-shadow: inset 3px 0 0 var(--set-accent);
}

#home-more .set-tab.is-active .mdi {
  opacity: 1;
}

#home-more .set-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#home-more .set-main .title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 600;
  color: var(--set-text);
  flex-shrink: 0;
}

#home-more .set-main .title .mdi {
  color: var(--set-accent);
}

#home-more .setting {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#home-more .set-panels {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 8px 0;
}

#home-more .set-panel {
  display: none;
  animation: candy-home-fade 0.28s ease;
}

#home-more .set-panel.is-active {
  display: block;
}

#home-more .set-panel[hidden] {
  display: none !important;
}

/* 文章相关 tab：仅文章页显示 */
#home-more .set-tab.set-nav-article,
#home-more .set-panel.set-nav-article {
  display: none !important;
}

body.on-article #home-more .set-tab.set-nav-article {
  display: flex !important;
}

body.on-article #home-more .set-panel.set-nav-article.is-active {
  display: block !important;
}

/* Legacy selectors kept for any residual refs */
#home-more .set-left,
#home-more .set-right {
  display: none;
}

/* Settings form — Candy accent accordion */
#home-more .setting .collapse details {
  margin-bottom: 6px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--set-accent-soft);
}

#home-more .setting .collapse details[open] {
  background: var(--set-accent-soft);
  border-color: var(--set-accent-border);
}

#home-more .setting .collapse summary {
  position: relative;
  padding: 11px 16px 11px 20px;
  background: transparent;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--set-text);
}

#home-more .setting .collapse summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  transition: background 0.2s;
}

#home-more .setting .collapse details[open] > summary::before {
  background: var(--set-accent);
}

#home-more .setting .collapse summary::-webkit-details-marker {
  display: none;
}

#home-more .setting .panel,
#home-more .set-panel {
  padding: 4px 4px 8px;
}

#home-more .set-section-label {
  flex: 0 0 auto;
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--set-muted, #888);
  opacity: 0.9;
}

#home-more .set-panel > .set-section-label:not(:first-child),
#home-more .set-panel > .set-nav-grid + .set-section-label,
#home-more .set-panel > .bg-set + .set-section-label {
  margin-top: 18px;
}

#home-more .set-panel > .set-nav-grid,
#home-more .set-panel > .bg-set,
#home-more .set-panel > .item {
  flex: 0 0 auto;
  min-height: 0;
}

#home-more .setting .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--set-text);
}

#home-more .setting .set-nav-prefs-row + .item {
  margin-top: 12px;
}

.setting .bg-set,
#home-more .setting .loop-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#home-more .setting .set-wallpaper-hint {
  flex: 1 0 100%;
  margin: 0 0 4px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--set-muted, #888);
  opacity: 0.85;
}

#home-more .setting .radio-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  color: var(--set-text);
  user-select: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

#home-more .setting .radio-item input {
  accent-color: var(--set-accent);
}

#home-more .setting .radio-item:has(input:checked) {
  background: var(--set-accent-soft);
  border-color: var(--set-accent);
  color: var(--set-accent);
}

#index.candy-home #footer-site-start[hidden] {
  display: none !important;
}

#home-more .setting .switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}

#home-more .setting .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#home-more .setting .switch .slider {
  position: absolute;
  inset: 0;
  background: rgba(42, 42, 50, 0.18);
  border-radius: 24px;
  transition: 0.3s;
}

#home-more .setting .switch .slider:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: 0.3s;
}

#home-more .setting .switch input:checked + .slider {
  background: var(--set-accent);
}

#home-more .setting .switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* Merged menu tiles — Candy accent */
#home-more .set-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

#home-more .set-nav-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  text-align: center;
  color: var(--set-muted);
  font-size: 0.9rem;
}

#home-more .set-nav-empty a {
  color: inherit;
  text-decoration: underline;
}

#home-more .set-nav-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 68px;
  padding: 10px 8px;
  border: 1.5px solid var(--set-accent-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--set-text);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(32, 32, 48, 0.06);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

#home-more .set-nav-tile:hover {
  background: var(--set-accent-soft);
  border-color: var(--set-accent);
  box-shadow: 0 8px 20px var(--set-accent-soft);
  transform: translateY(-1px);
  color: var(--set-accent);
}

#home-more .set-nav-tile:active {
  transform: scale(0.97);
}

#home-more .set-nav-tile .mdi {
  font-size: 22px;
  line-height: 1;
  color: var(--set-accent);
}

#home-more .set-nav-tile:hover .mdi {
  color: var(--set-accent);
}

#home-more .set-nav-tile-text {
  font-size: 0.8rem;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
}

#home-more .set-nav-tile-muted {
  color: var(--set-muted);
}

#home-more .set-nav-tile-muted .mdi {
  color: var(--set-accent);
  opacity: 0.55;
}

#home-more .set-nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--set-accent-soft);
}

#home-more .set-nav-user-icon {
  font-size: 36px;
  color: var(--set-accent);
  line-height: 1;
  flex-shrink: 0;
}

#home-more .set-nav-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

#home-more .set-nav-user-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--set-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#home-more .set-nav-user-hint {
  font-size: 0.75rem;
  color: var(--set-muted);
}

/* set-nav-article visibility handled with .set-tab/.set-panel rules */


#home-more .set-nav-action[hidden] {
  display: none !important;
}

#home-more .set-nav-pref-btn[aria-pressed="true"] {
  background: var(--set-accent);
  border-color: var(--set-accent);
  color: #fff;
  box-shadow: 0 6px 16px var(--set-accent-border);
}

#home-more .set-nav-pref-btn[aria-pressed="true"] .mdi,
#home-more .set-nav-pref-btn[aria-pressed="true"] .set-nav-tile-text {
  color: #fff;
}

/* 日夜：设置页硬编码浅色控件跟随夜间 token */
body.reading-mode #home-more .set-tab {
  background: rgba(255, 255, 255, 0.08);
  color: var(--set-text);
}
body.reading-mode #home-more .setting .collapse details {
  background: rgba(255, 255, 255, 0.06);
}
body.reading-mode #home-more .setting .radio-item {
  background: rgba(255, 255, 255, 0.08);
  color: var(--set-text);
}
body.reading-mode #home-more .set-nav-tile {
  background: rgba(255, 255, 255, 0.08);
  color: var(--set-text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
body.reading-mode #home-more .set-nav-tile:hover {
  background: var(--set-accent-soft);
}

@media (max-width: 480px) {
  #home-more .set-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #home-more .set-nav-prefs-row {
    grid-template-columns: repeat(3, 1fr);
  }
  #home-more .set-nav-tile {
    min-height: 60px;
  }
}

/* Box panel — Box/index.vue */
#home-all.box-open #home-right,
#index.candy-home #home-all.box-open .right {
  display: none !important;
}

/* Mobile: box open hides left (Vue Left.vue) — avoid left+box side-by-side */
@media (max-width: 720px) {
#index.candy-home #home-all.box-open #home-left {
    display: none !important;
  }
}

#index.candy-home #home-box {
  flex: 1 0 0%;
  margin-left: 0.75rem;
  height: 80%;
  max-height: 80vh;
  max-height: 80dvh;
  max-width: 50%;
  position: relative;
  animation: fade 0.5s;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

#index.candy-home #home-box:hover {
  transform: scale(1);
}

#index.candy-home #home-box[hidden] {
  display: none !important;
}

#index.candy-home #home-box .box-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 0;
  box-sizing: border-box;
  min-height: 44px;
}

#index.candy-home #home-box .box-head__title {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
}

#home-box .box-head__title-capsule,
#index.candy-home #home-box .box-head__title-articles {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: #efefef;
}

#home-box .box-head__title-capsule[hidden],
#index.candy-home #home-box .box-head__title-articles[hidden] {
  display: none !important;
}

#index.candy-home #home-box .box-head__icon {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.56);
}

#index.candy-home #home-box .box-head__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#home-box .box-close {
  position: static;
  top: auto;
  right: auto;
  border: 0;
  background: var(--candy-accent-soft, rgba(129, 114, 239, 0.18));
  color: var(--candy-accent, #8172ef);
  cursor: pointer;
  z-index: 2;
  padding: 4px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s, background 0.2s;
}

#home-box .box-close .mdi {
  font-size: 22px;
  line-height: 1;
}

#home-box.actions-visible .box-close,
#home-box:hover .box-close {
  opacity: 0.85;
  pointer-events: auto;
}

#home-box .box-close:hover {
  transform: scale(1.12);
  background: var(--candy-accent-border, rgba(129, 114, 239, 0.35));
  opacity: 1;
}

@media (max-width: 720px) {
  #home-box .box-close {
    opacity: 0.85;
    pointer-events: auto;
  }

#index.candy-home #home-box .box-head {
    padding: 14px 16px 0;
  }
}

#index.candy-home #home-box .content {
  display: flex;
  flex-direction: column;
  padding: 14px 26px 22px;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  /* auto — not 100%: % height on flex children breaks in Firefox/Safari */
  height: auto;
  box-sizing: border-box;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#index.candy-home #home-box.articles-mode .content {
  padding: 10px 26px 18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#index.candy-home #home-box.articles-mode .content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#index.candy-home .capsule-layout {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
  gap: 0;
  height: auto;
  width: 100%;
  box-sizing: border-box;
}

/* display:flex on panels beats bare [hidden] */
#home-box-capsule[hidden],
#home-box-articles[hidden] {
  display: none !important;
}

#index.candy-home .time-capsule {
  width: 100%;
  /* size to content — flex:1 + min-height:0 was collapsing and overflowing over comments */
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

#index.candy-home .time-capsule .title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 1rem;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: #efefef;
  flex-shrink: 0;
}

/* Title moved to .box-head — hide leftover in-panel titles if any. */
#home-box .time-capsule > .title,
#index.candy-home #home-box .articles-page > .title {
  display: none;
}

#index.candy-home .time-capsule .all-capsule {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.85rem;
  flex: 0 0 auto;
  min-height: 0;
  padding: 0.1rem 0;
  box-sizing: border-box;
}

@supports not (gap: 0.85rem) {
  #index.candy-home .time-capsule .all-capsule > .capsule-item + .capsule-item {
    margin-top: 0.85rem;
  }
}

#index.candy-home .time-capsule .capsule-item {
  margin: 0;
  min-width: 0;
  flex: 0 0 auto;
}

#index.candy-home .time-capsule .item-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0 0 0.4rem;
  color: rgba(255, 255, 255, 0.9);
}

#index.candy-home .time-capsule .item-title .percentage {
  min-width: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Beat global `strong { color:#222 }` from w.css */
#index.candy-home .time-capsule .item-title .percentage strong,
#index.candy-home .time-capsule .item-title strong {
  font-size: 0.98rem;
  margin: 0 3px;
  font-weight: 700;
  color: #fff !important;
}

#index.candy-home .time-capsule .remaining {
  flex-shrink: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  font-style: italic;
  font-style: oblique;
  color: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

#index.candy-home .progress-bar {
  height: 14px;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

#index.candy-home .progress-inner {
  height: 100%;
  max-width: 100%;
  background: linear-gradient(90deg, rgba(129, 114, 239, 0.85), rgba(122, 208, 255, 0.9));
  border-radius: 8px;
  position: relative;
  /* 0 — not em: UnidreamLED vs fallback fonts make em-based min-width differ across browsers */
  min-width: 0;
  transition: width 0.35s ease;
  box-sizing: border-box;
}

#index.candy-home .progress-text {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: "UnidreamLED", var(--candy-font-mono);
  font-size: 11px;
  line-height: 1;
  color: #fff;
  box-sizing: border-box;
  white-space: nowrap;
  pointer-events: none;
}

/* Time capsule — below site glance */
#index.candy-home .time-capsule {
  margin-top: 0.85rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Latest comments — below time capsule */
#index.candy-home .capsule-comments {
  flex: 0 0 auto;
  width: 100%;
  margin-top: 0.85rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 2;
  background: transparent;
}

#index.candy-home .capsule-comments .block-title,
#index.candy-home .more-content .block-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: #efefef;
  margin: 0 0 0.55rem;
}

#index.candy-home .capsule-comments .block-title .mdi {
  font-size: 1rem;
  opacity: 0.75;
  color: var(--candy-accent, #8172ef);
}

#index.candy-home .capsule-comment-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

@supports not (gap: 0.45rem) {
  #index.candy-home .capsule-comment-list > .capsule-comment + .capsule-comment {
    margin-top: 0.45rem;
  }
}

#index.candy-home .capsule-comment {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2px solid rgba(129, 114, 239, 0.65);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#index.candy-home .capsule-comment:hover {
  background: rgba(255, 255, 255, 0.11);
  border-left-color: var(--candy-accent, #8172ef);
  transform: translateX(2px);
}

#index.candy-home .capsule-comment:active {
  transform: translateX(0);
}

#index.candy-home .capsule-comment__avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

#index.candy-home .capsule-comment__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#index.candy-home .capsule-comment__avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, rgba(129, 114, 239, 0.85), rgba(122, 208, 255, 0.55));
}

#index.candy-home .capsule-comment__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

#index.candy-home .capsule-comment__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

#index.candy-home .capsule-comment__author {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f2f2f2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#index.candy-home .capsule-comment__time {
  flex-shrink: 0;
  font-size: 0.7rem;
  line-height: 1.3;
  opacity: 0.48;
}

#index.candy-home .capsule-comment__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-word;
  overflow-wrap: anywhere;
  /* Firefox / non-webkit fallback when line-clamp unsupported */
  max-height: 3em;
}

@supports (-webkit-line-clamp: 2) or (line-clamp: 2) {
  #index.candy-home .capsule-comment__text {
    max-height: none;
  }
}

#index.candy-home .capsule-comment__post {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#index.candy-home .capsule-comment__post .mdi {
  flex-shrink: 0;
  font-size: 0.78rem;
  opacity: 0.8;
}

#index.candy-home .capsule-comment-empty {
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

#index.candy-home .more-content {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 0 0 auto;
}

#index.candy-home .more-content .block-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: #efefef;
  margin: 0 0 0.5rem;
}

#index.candy-home .more-content .glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

#index.candy-home .more-content .glance-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.72rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  min-height: 3.35rem;
  box-sizing: border-box;
}

#index.candy-home .more-content .glance-item .label {
  font-size: 0.72rem;
  line-height: 1.3;
  opacity: 0.5;
}

#index.candy-home .more-content .glance-item .value {
  font-size: 0.86rem;
  line-height: 1.4;
  color: #efefef;
  word-break: break-word;
}

#index.candy-home .more-content .note {
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 2px solid rgba(255, 255, 255, 0.25);
}

#index.candy-home .more-content .note-date {
  display: block;
  font-size: 0.72rem;
  line-height: 1.3;
  opacity: 0.5;
  margin-bottom: 0.4rem;
}

#index.candy-home .more-content .note-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

/* Start page overlay (fullscreen; Esc / 右键 / 遮罩关闭) */
#index.candy-home .link-popup-backdrop {
  position: fixed;
  inset: 0;
  background-color: #00000080;
  backdrop-filter: blur(20px);
  /* 高于移动端 #mobile-menu(30)，避免起始页打开时汉堡浮在遮罩上 */
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade 0.35s;
}

#index.candy-home .link-popup-backdrop[hidden] {
  display: none !important;
}

#index.candy-home .link-popup-window {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: rgb(0 0 0 / 18%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#index.candy-home .link-popup-window .body {
  position: relative;
  flex: 1;
  min-height: 0;
  height: 100%;
  background: transparent;
  overflow: hidden;
}

#index.candy-home .link-popup-window .popup-page {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 1;
}

#index.candy-home .link-popup-window .popup-page > .start-page {
  flex: 1;
  min-height: 0;
}


/* Start search — SearchInp.vue + SearchEngine.vue
   Scoped under #link-popup / .start-page so homepage #home-all rules cannot bleed in. */
#index.candy-home .start-page {
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 64px;
  overflow: auto;
}

#index.candy-home .start-page .search-wrap {
  width: min(100%, 720px);
  min-height: 280px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 72px;
  box-sizing: border-box;
  /* Entrance on wrap — keep transform free on .all for focus lift (avoids end-of-animation jump) */
  animation: search-fade-up-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#index.candy-home .search-input {
  --search-text: #f2f2f2;
  --search-text-focus: #2a2a2a;
  --search-bg: rgb(0 0 0 / 42%);
  --search-bg-focus: #ffffff;
  --search-icon-hover: rgb(255 255 255 / 14%);
  --search-icon-hover-focus: rgb(0 0 0 / 8%);
  position: relative;
  z-index: 2;
  display: block;
  max-width: 680px;
  width: min(100%, 680px);
  margin: 0 auto;
}

#index.candy-home .search-input .mask {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* Extra specificity vs any leftover .all layout rules */
.start-page .search-input .all,
#index.candy-home #link-popup .search-input .all {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  max-height: 48px;
  width: 100%;
  padding: 0;
  margin: 0;
  border-radius: 30px;
  color: var(--search-text);
  background-color: var(--search-bg);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 6px 24px rgb(0 0 0 / 18%);
  transform: translate3d(0, 0, 0);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

#index.candy-home .search-input .all .input {
  display: flex;
  justify-content: center;
  height: 100%;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  background: none;
  font-size: 16px;
  color: inherit;
  text-align: center;
  user-select: text;
  -webkit-user-select: text;
}

#index.candy-home .search-input .all .input::placeholder {
  width: 100%;
  text-align: center;
  color: inherit;
  opacity: 0.78;
  letter-spacing: 2px;
  transition: opacity 0.3s;
}

.search-input .all .engine,
#index.candy-home .search-input .all .go {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 64px;
  font-size: 20px;
  border: 0;
  border-radius: 30px;
  flex-shrink: 0;
  background: none;
  color: var(--search-text);
  transition: background-color 0.3s, color 0.3s;
}

.search-input .all .engine:hover,
#index.candy-home .search-input .all .go:hover {
  background-color: var(--search-icon-hover);
}

#index.candy-home .search-input .i-icon {
  width: 1em;
  height: 1em;
  min-width: 1em;
  fill: currentColor;
  color: inherit;
  vertical-align: -2px;
  display: block;
  overflow: hidden;
}

#index.candy-home .search-input .all .engine .i-icon,
#index.candy-home .search-input .all .go .i-icon {
  width: 22px;
  height: 22px;
  font-size: 22px;
}

#index.candy-home .search-input .engine-item .i-icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}

.start-page .search-input.focus .all,
#index.candy-home #link-popup .search-input.focus .all {
  background-color: var(--search-bg-focus);
  color: var(--search-text-focus);
  box-shadow:
    0 10px 36px rgb(0 0 0 / 22%),
    0 0 0 1px rgb(0 0 0 / 6%);
  transform: translate3d(0, -8px, 0);
}

#index.candy-home .search-input.focus .all .input::placeholder {
  opacity: 0;
}

.search-input.focus .all .engine,
#index.candy-home .search-input.focus .all .go {
  color: var(--search-text-focus);
}

.search-input.focus .all .engine .i-icon,
#index.candy-home .search-input.focus .all .go .i-icon {
  color: #2a2a2a !important;
  fill: #2a2a2a !important;
  filter: brightness(0);
  opacity: 0.82;
}

.search-input.focus .all .engine:hover,
#index.candy-home .search-input.focus .all .go:hover {
  background-color: var(--search-icon-hover-focus);
}

#index.candy-home .search-input .engine-choose {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 100%;
  color: #efefef;
  background-color: rgb(20 20 20 / 55%);
  backdrop-filter: blur(30px) saturate(1.25);
  -webkit-backdrop-filter: blur(30px) saturate(1.25);
  border-radius: 16px;
  box-sizing: border-box;
  z-index: 3;
  max-height: min(44.5vh, 320px);
  overflow: auto;
  scrollbar-width: none;
  box-shadow: 0 12px 40px rgb(0 0 0 / 28%);
  animation: search-fade-down-in 0.3s ease;
}

#index.candy-home .search-input .engine-choose[hidden] {
  display: none !important;
}

#index.candy-home .search-input .all-engine {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  box-sizing: border-box;
}

#index.candy-home .search-input .engine-item {
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  box-sizing: border-box;
  background-color: rgb(255 255 255 / 12%);
  color: #efefef;
  transition: background-color 0.3s, box-shadow 0.3s;
}

#index.candy-home .search-input .engine-item .i-icon {
  margin-right: 10px;
  flex-shrink: 0;
  fill: currentColor;
  font-size: 16px;
}

#index.candy-home .search-input .engine-item .name {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  text-align: left;
}

#index.candy-home .search-input .engine-item.choose {
  background-color: rgb(255 255 255 / 28%);
}

#index.candy-home .search-input .engine-item.choose::before {
  content: "";
  position: absolute;
  border-radius: 14px;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid rgb(255 255 255 / 35%);
}

#index.candy-home .search-input .engine-item:hover {
  background-color: rgb(255 255 255 / 24%);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 18%);
}

#index.candy-home .search-input .engine-item.choose:hover::before {
  opacity: 0;
}

@media (max-width: 798px) {
#index.candy-home .search-input .all-engine {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
#index.candy-home .search-input .all-engine {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-input .all .engine,
#index.candy-home .search-input .all .go {
    width: 52px;
    font-size: 18px;
  }
}

@keyframes search-fade-up-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes search-fade-down-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Articles in box */
#index.candy-home .articles-page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#index.candy-home .articles-page .title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #efefef;
  line-height: 28px;
}

#index.candy-home .articles-page .subtitle {
  font-size: 0.85rem;
  color: #ffffff99;
  margin: 0.2rem 0 0.85rem;
}

#index.candy-home .articles-page .list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#index.candy-home .articles-page .list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#index.candy-home .articles-page .item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #ffffff18;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

#index.candy-home .articles-page .item:hover {
  background: #ffffff28;
  transform: translateY(-1px);
}

#index.candy-home .articles-page .item:active {
  transform: translateY(0);
}

#index.candy-home .articles-page .item-title {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #efefef;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#index.candy-home .articles-page .item-date {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #ffffff99;
  padding-top: 2px;
}

#index.candy-home .articles-page .empty {
  margin-top: 24px;
  text-align: center;
  color: #ffffffb3;
  font-size: 0.95rem;
}



















































/* Single-instance root moved between mini host and popup — fill wrap. */












@media (max-width: 820px) {










}

/* Phone: playlist primary, compact transport docked at bottom. */
@media (max-width: 720px) {



  /* Playlist head already shows now-playing — drop duplicate meta. */

  /* Keep only the current lyric line. */






















}

@media (max-width: 480px) {





}

/* Jike / Nav / Soft / Activity */
.jike-page,
.nav-page,
.soft-page,
#index.candy-home .activity-page {
  height: 100%;
  overflow: auto;
  padding: 20px 18px 28px;
  box-sizing: border-box;
}

.nav-page,
#index.candy-home .soft-page {
  padding: 18px 16px 28px;
}

#index.candy-home .jike-page .profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

#index.candy-home .jike-page .profile .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #ffffff26;
}

#index.candy-home .jike-page .profile .meta {
  min-width: 0;
  flex: 1;
}

#index.candy-home .jike-page .profile .name {
  font-size: 1.15rem;
  font-weight: 600;
  color: #efefef;
  margin-bottom: 4px;
}

#index.candy-home .jike-page .profile .desc {
  font-size: 0.9rem;
  color: #ffffffb8;
}

.jike-page .profile .count,
.activity-page .hero .count,
.nav-page .count,
#index.candy-home .soft-page .count {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #ffffff99;
  background: #ffffff1f;
  padding: 4px 10px;
  border-radius: 999px;
}

.nav-page .count,
#index.candy-home .soft-page .count {
  font-size: 0.82rem;
}

#index.candy-home .activity-page .hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

#index.candy-home .activity-page .hero .title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #efefef;
}

.jike-page .feed,
#index.candy-home .activity-page .feed {
  column-count: 3;
  column-gap: 14px;
  width: 100%;
}

.jike-page .feed .post,
#index.candy-home .activity-page .feed .card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  vertical-align: top;
  padding: 16px 18px;
  box-sizing: border-box;
}

#index.candy-home .activity-page .feed .card {
  padding: 14px;
}

@media (max-width: 1100px) {
  .jike-page .feed,
#index.candy-home .activity-page .feed {
    column-count: 2;
  }
}

@media (max-width: 720px) {
  .jike-page .feed,
#index.candy-home .activity-page .feed {
    column-count: 1;
  }
}

#index.candy-home .jike-page .post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

#index.candy-home .jike-page .avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff26;
}

#index.candy-home .jike-page .post-head .author {
  color: #efefef;
  font-size: 0.95rem;
  font-weight: 600;
}

#index.candy-home .jike-page .post-head .time {
  margin-top: 2px;
  font-size: 0.8rem;
  color: #ffffff99;
}

#index.candy-home .jike-page .post .content {
  margin: 0;
  color: #efefef;
  font-size: 0.98rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.jike-page .images,
#index.candy-home .activity-page .images {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.jike-page .images.cols-1,
#index.candy-home .activity-page .images.cols-1 {
  grid-template-columns: 1fr;
}

.jike-page .images.cols-2,
#index.candy-home .activity-page .images.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.jike-page .images.cols-3,
#index.candy-home .activity-page .images.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.jike-page .images img,
#index.candy-home .activity-page .images img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  border-radius: 6px;
  background: #00000033;
  display: block;
}

#index.candy-home .jike-page .link-card {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #ffffff22;
  color: #efefef;
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 0.2s;
}

#index.candy-home .jike-page .link-card:hover:not(.muted) {
  background: #ffffff33;
}

#index.candy-home .jike-page .link-card.muted {
  opacity: 0.85;
  cursor: default;
}

#index.candy-home .jike-page .link-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#index.candy-home .jike-page .link-arrow {
  flex-shrink: 0;
  opacity: 0.8;
}

.jike-page .tags,
#index.candy-home .activity-page .tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jike-page .tags .tag,
#index.candy-home .activity-page .tags .tag {
  font-size: 0.8rem;
  color: #dcefff;
  background: #5b9dff33;
  padding: 2px 8px;
  border-radius: 999px;
}

#index.candy-home .jike-page .footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: #ffffff99;
}

#index.candy-home .jike-page .footer .location {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#index.candy-home .jike-page .footer .likes {
  flex-shrink: 0;
}

#index.candy-home .activity-page .desc {
  margin: 12px 0 0;
  color: #efefef;
  font-size: 0.95rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

#index.candy-home .activity-page .action-btn {
  margin-top: 12px;
  width: 100%;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffffff28;
  color: #efefef;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

#index.candy-home .activity-page .action-btn:hover {
  background: #ffffff3a;
}

#index.candy-home .activity-page .action-btn:active {
  transform: scale(0.98);
}

#index.candy-home .activity-page .code {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #00000033;
  border: 1px dashed #ffffff44;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

#index.candy-home .activity-page .code:hover {
  background: #00000045;
  border-color: #ffffff66;
}

#index.candy-home .activity-page .code-label {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #ffffff99;
  background: #ffffff1a;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 1px;
}

#index.candy-home .activity-page .code-text {
  min-width: 0;
  flex: 1;
  color: #efefef;
  font-size: 0.88rem;
  line-height: 1.5;
  word-break: break-all;
  white-space: pre-wrap;
  font-family: var(--candy-font-mono);
}

.nav-page .hero,
#index.candy-home .soft-page .hero {
  padding: 18px 20px;
  margin-bottom: 18px;
}

.nav-page .hero-top,
#index.candy-home .soft-page .hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.nav-page .hero-info,
#index.candy-home .soft-page .hero-info {
  min-width: 0;
  flex: 1;
}

.nav-page .title-row,
#index.candy-home .soft-page .title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.nav-page .title,
#index.candy-home .soft-page .title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #efefef;
}

.nav-page .desc,
#index.candy-home .soft-page .desc {
  font-size: 0.9rem;
  color: #ffffffb3;
}

.nav-page .search,
#index.candy-home .soft-page .search {
  flex-shrink: 0;
  width: min(280px, 42vw);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.nav-page .search.active,
#index.candy-home .soft-page .search.active {
  width: min(360px, 58vw);
}

.nav-page .search-input,
#index.candy-home .soft-page .search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #ffffff33;
  border-radius: 8px;
  background: #00000033;
  color: #efefef;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.nav-page .search-input::placeholder,
#index.candy-home .soft-page .search-input::placeholder {
  color: #ffffff77;
}

.nav-page .search.active .search-input,
#index.candy-home .soft-page .search.active .search-input {
  border-color: #ffffff88;
  background: #00000055;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 12%), 0 8px 24px rgb(0 0 0 / 25%);
  transform: translateY(-1px);
}

.nav-page .groups,
#index.candy-home .soft-page .groups {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.nav-page .group-title,
#index.candy-home .soft-page .group-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #efefef;
  margin-bottom: 12px;
  padding-left: 4px;
}

.nav-page .grid,
#index.candy-home .soft-page .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1100px) {
  .nav-page .grid,
#index.candy-home .soft-page .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-page .grid,
#index.candy-home .soft-page .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .nav-page .grid,
#index.candy-home .soft-page .grid {
    grid-template-columns: 1fr;
  }
}

.nav-page .grid .item,
#index.candy-home .soft-page .grid .item {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, background 0.2s;
}

.nav-page .grid .item:hover,
#index.candy-home .soft-page .grid .item:hover {
  transform: translateY(-2px);
  background: rgb(0 0 0 / 35%);
}

.nav-page .grid .item:active,
#index.candy-home .soft-page .grid .item:active {
  transform: translateY(0);
}

.nav-page .item-name,
#index.candy-home .soft-page .item-name {
  font-size: 1rem;
  font-weight: 600;
  color: #efefef;
  margin-bottom: 6px;
}

.nav-page .item-desc,
#index.candy-home .soft-page .item-desc {
  font-size: 0.82rem;
  color: #ffffff99;
  line-height: 1.4;
}

.nav-page .empty-tip,
#index.candy-home .soft-page .empty-tip {
  font-size: 0.88rem;
  color: #ffffff88;
  padding: 8px 4px;
}

#index.candy-home .empty.cards {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 36px 20px;
  text-align: center;
  color: #ffffffb3;
  font-size: 0.95rem;
  opacity: 1;
}

.nav-page .empty.cards,
#index.candy-home .soft-page .empty.cards {
  max-width: 520px;
  margin: 48px auto 0;
}

/* Footer lyrics */


#index.candy-home #footer-power[hidden] {
  display: none !important;
}

#index.candy-home .time-weather .time {
  cursor: pointer;
}

@media (max-width: 992px) {
#home-more .set {
    width: min(920px, 94vw);
    height: min(620px, 88vh);
    padding: 24px 20px;
  }

#home-more .set-side {
    flex-basis: 188px;
    width: 188px;
  }

#home-more .set-brand .logo .name-main {
    font-size: 2.9rem;
  }

#home-more .set-brand .logo .name-sub {
    font-size: 1.2rem;
  }
}

@media (max-width: 720px) {
#index.candy-home #home-box {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 32;
    margin: 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    min-height: 100%;
    min-height: 100dvh;
    min-height: var(--candy-vh, 100dvh);
    border-radius: 0;
    flex: none;
    animation: none;
  }

#index.candy-home #home-box .content {
    padding: 12px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  }

#index.candy-home #home-box.articles-mode .content {
    padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  }

#index.candy-home #home-box .box-head {
    padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 0;
  }

#home-more .set {
    width: 100%;
    height: 100%;
    max-height: none;
    transform: none;
    top: 0;
    left: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: calc(52px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
    overflow-y: auto;
    box-shadow: none;
  }

#home-more .set .close {
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
  }

#home-more .set-row {
    flex-direction: column;
    height: auto;
    min-height: 0;
    gap: 14px;
  }

#home-more .set-side {
    flex: 0 0 auto;
    width: 100%;
    gap: 12px;
  }

#home-more .set-tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

#home-more .set-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    box-shadow: none;
    padding: 9px 12px;
  }

#home-more .set-tab.is-active {
    box-shadow: none;
    border-bottom: 2px solid var(--set-accent);
  }

#home-more .set-brand .logo .name-main {
    font-size: 2.8rem;
  }

#home-more .set-brand .logo .name-sub {
    font-size: 1.15rem;
  }

#home-more .set-main {
    flex: 1 1 auto;
    min-height: 0;
  }

  .jike-page,
#index.candy-home .activity-page {
    padding: 14px 12px 22px;
  }

#index.candy-home .jike-page .profile .count {
    display: none;
  }

  .jike-page .images.cols-3,
#index.candy-home .activity-page .images.cols-3 {
    grid-template-columns: 1fr 1fr;
  }

#index.candy-home .more-content {
    margin-top: 0;
    padding-top: 0;
    gap: 0.95rem;
  }

#index.candy-home .time-capsule {
    margin-top: 0.7rem;
    padding-top: 0.8rem;
  }

#index.candy-home .capsule-comments {
    margin-top: 0.7rem;
    padding-top: 0.8rem;
  }

#index.candy-home .capsule-comment {
    padding: 0.55rem 0.65rem;
    gap: 0.6rem;
  }

#index.candy-home .capsule-comment__avatar {
    width: 32px;
    height: 32px;
  }

#index.candy-home .capsule-comment__text {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 0.8rem;
  }

#index.candy-home .more-content .glance {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

#index.candy-home .more-content .glance-item {
    padding: 0.62rem 0.55rem;
    min-height: 3.1rem;
  }

#index.candy-home .more-content .glance-item .value {
    font-size: 0.8rem;
  }

#index.candy-home .time-capsule .all-capsule {
    gap: 0.75rem;
    justify-content: flex-start;
    padding: 0.35rem 0 0.15rem;
  }

#index.candy-home .home-set-hotspot {
    width: 72px;
    height: 64px;
    padding: 12px;
  }
}

@media (max-width: 640px) {
  .nav-page .hero-top,
#index.candy-home .soft-page .hero-top {
    flex-direction: column;
  }

  .nav-page .search,
  .nav-page .search.active,
  .soft-page .search,
#index.candy-home .soft-page .search.active {
    width: 100%;
  }

#index.candy-home .more-content .glance {
    grid-template-columns: 1fr;
  }
}