:root {
  color-scheme: dark;
  --navy: #02162c;
  --navy-2: #033c82;
  --blue: #286daf;
  --cyan: #0296d7;
  --orange: #ed6f00;
  --gold: #f6aa00;
  --blue-gradient: linear-gradient(135deg, #0c4b81, #286daf);
  --orange-gradient: linear-gradient(135deg, #f6aa00, #ed6f00);
  --text: #f7fbfd;
  --muted: #9eb6c2;
  --line: rgba(153, 211, 226, 0.2);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { color: var(--text); background: #010914; }
button { font: inherit; letter-spacing: 0; }

.display-shell { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--navy); }
.display-shell.is-scaled {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1280px;
  height: 720px;
  transform: translate(-50%, -50%) scale(var(--display-scale, 1));
  transform-origin: center;
}

.carousel { position: fixed; inset: 0; overflow: hidden; }
.slide-page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(3%);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}
.slide-page.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; }

.loading-state, .academy-waiting {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  color: var(--muted);
  background: var(--navy);
}
.loading-state img, .academy-waiting img { width: 78px; height: 78px; object-fit: contain; animation: breathe 1.8s ease-in-out infinite; }
.academy-waiting h2 { margin: 0.8rem 0 0; color: var(--text); }
.academy-waiting p { margin: 0; font-size: 0.78rem; }

.global-brand {
  position: fixed;
  z-index: 20;
  top: 1.45rem;
  left: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.global-brand img { width: 56px; height: 56px; object-fit: contain; }
.global-brand strong { display: block; }
.global-brand strong { font-size: 1.35rem; }
.global-brand > div { display: grid; gap: 0.25rem; }
.global-brand small { color: var(--cyan); font-size: 1.05rem; font-weight: 700; }
.daily-quote-panel {
  position: static;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  min-height: 42px;
  padding: 0 .8rem;
  overflow: hidden;
  background: linear-gradient(90deg, transparent 0%, rgba(12,75,129,.24) 20%, rgba(40,109,175,.62) 50%, rgba(12,75,129,.24) 80%, transparent 100%);
}
.daily-quote-panel p { width: 100%; margin: 0; overflow: hidden; color: #fff; font-size: var(--quote-font-size, 1.3rem); font-weight: 700; line-height: 1.4; text-align: center; text-overflow: ellipsis; white-space: nowrap; transition: opacity .22s ease, transform .22s ease, font-size .22s ease; }
.daily-quote-panel.is-changing p { opacity: 0; transform: translateY(5px); }
.top-status {
  position: fixed;
  z-index: 25;
  top: 1rem;
  right: 2.5rem;
  display: grid;
  grid-template-columns: 170px 230px 300px;
  gap: 0 1rem;
  align-items: center;
  width: 732px;
}
.top-clock { padding-right: 1rem; border-right: 1px solid var(--line); text-align: right; }
.top-clock time { display: block; font: 700 2.1rem/1 "Segoe UI", Arial, sans-serif; color: #fff; text-shadow: 0 0 22px rgba(2,150,215,.45); }
.top-clock span { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.67rem; }
.top-weather { display: flex; align-items: center; gap: 0.65rem; min-width: 0; padding-right: 1rem; border-right: 1px solid var(--line); }
.weather-main-icon { font-size: 2rem; filter: drop-shadow(0 0 10px rgba(2,150,215,0.45)); }
.top-weather strong, .top-weather small { display: block; }
.top-weather strong { font-size: 0.96rem; }
.top-weather small { margin-top: 0.18rem; color: var(--muted); font-size: 0.6rem; white-space: nowrap; }
.weather-care { display: block; margin-top: .32rem; overflow: hidden; color: #dcecf4; font-size: .6rem; font-style: normal; line-height: 1.35; white-space: normal; }
.weather-forecast { display: flex; gap: 0.35rem; }
.weather-forecast > span { display: grid; grid-template-columns: repeat(4, auto); gap: 0.22rem; align-items: center; padding: 0.2rem 0.35rem; border-left: 1px solid rgba(2,150,215,0.35); font-size: 0.48rem; }
.weather-forecast b { color: var(--muted); }
.weather-forecast i { font-style: normal; }
.weather-forecast small { color: var(--cyan); }
.weather-trend { width: 300px; padding: 0.55rem 0.8rem 0.35rem; border: 1px solid rgba(2,150,215,.32); border-radius: 6px; background: rgba(2,32,65,.72); box-shadow: 0 12px 35px rgba(0,0,0,.2); }
.trend-head, .trend-labels { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.trend-head { color: var(--muted); font-size: .62rem; }
.trend-head b { color: var(--cyan); font-size: .66rem; }
.temperature-trend { display: block; width: 100%; height: 42px; margin: .25rem 0 .15rem; overflow: visible; }
.temperature-trend polyline { fill: none; stroke: var(--gold); stroke-width: 2.2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 5px rgba(246,170,0,.7)); }
.temperature-trend circle { fill: #fff; stroke: var(--gold); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.trend-labels { font-size: .5rem; color: var(--muted); }
.trend-labels span { display: grid; gap: .12rem; text-align: center; }
.trend-labels strong { color: #fff; font-size: .58rem; }

.page-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 138px;
  padding: 2rem 2.6rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.page-heading { padding-left: 13rem; }
.page-heading h1 { margin: 0; font-size: 2rem; letter-spacing: 0; }
.page-heading h1 b { color: var(--gold); }
.page-summary { display: flex; gap: 1.4rem; margin-right: 24rem; }
.page-summary div { min-width: 88px; padding-left: 0.8rem; border-left: 2px solid var(--cyan); }
.page-summary strong, .page-summary span { display: block; }
.page-summary strong { font: 650 1.25rem "Segoe UI", Arial, sans-serif; }
.page-summary span { margin-top: 0.2rem; color: var(--muted); font-size: 0.6rem; }

.honor-page {
  background:
    linear-gradient(120deg, rgba(12, 75, 129, 0.48), transparent 48%),
    linear-gradient(305deg, rgba(237, 111, 0, 0.16), transparent 42%),
    #02162c;
}
.honor-page::before {
  content: "";
  position: absolute;
  inset: 138px 0 86px;
  opacity: 0.32;
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(37, 199, 221, 0.08) 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(37, 199, 221, 0.08) 80px);
}
.honor-stage {
  position: absolute;
  z-index: 2;
  top: 138px;
  right: 2.6rem;
  bottom: 88px;
  left: 2.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(430px, 1fr);
  gap: 1rem;
  padding: 1.15rem 0;
}
.honor-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 43%) minmax(0, 57%);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(246, 170, 0, 0.38);
  border-top: 4px solid var(--gold);
  border-radius: 4px;
  background: rgba(3, 36, 72, 0.96);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
}
.honor-feature::before {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-110%);
  background: linear-gradient(105deg, transparent 35%, rgba(2,150,215,0.22) 48%, rgba(246,170,0,0.3) 52%, transparent 65%);
}
.honor-feature.is-leaving::before { opacity: 1; transform: translateX(110%); transition: transform 0.52s ease, opacity 0.2s ease; }
.honor-feature-photo, .honor-feature-info { transition: opacity 0.28s ease, transform 0.42s ease; }
.honor-feature.is-leaving .honor-feature-photo { opacity: 0; transform: translateX(-3%); }
.honor-feature.is-leaving .honor-feature-info { opacity: 0; transform: translateX(3%); }
.honor-feature.is-entering .honor-feature-photo { opacity: 0; transform: translateX(3%); transition: none; }
.honor-feature.is-entering .honor-feature-info { opacity: 0; transform: translateX(-3%); transition: none; }
.honor-feature-photo { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #0c2b39; }
.honor-feature-photo > img { width: 100%; height: 100%; object-fit: cover; }
.honor-feature-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 19, 28, 0.9), transparent 48%);
  pointer-events: none;
}
.honor-main-placeholder, .thumb-placeholder, .avatar-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--gold);
  background:
    linear-gradient(145deg, rgba(240, 138, 37, 0.24), transparent 58%),
    #0c2b38;
}
.honor-main-placeholder { font-size: 6rem; }
.honor-sequence {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 193, 77, 0.75);
  color: var(--gold);
  font: 700 0.9rem Arial, sans-serif;
  background: rgba(6, 19, 28, 0.86);
}
.honor-photo-label { position: absolute; z-index: 2; right: 1.2rem; bottom: 1.1rem; left: 1.2rem; }
.honor-photo-label span, .honor-photo-label b { display: block; }
.honor-photo-label span { color: var(--gold); font: 700 0.62rem Arial, sans-serif; }
.honor-photo-label b { margin-top: 0.25rem; font: 600 1.2rem "Segoe UI", Arial, sans-serif; }
.honor-feature-info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 2.3rem 2.5rem;
  background:
    linear-gradient(135deg, rgba(40, 109, 175, 0.26), transparent 54%),
    rgba(3, 31, 65, 0.98);
}
.honor-feature-info::after {
  content: "";
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 70px;
  height: 70px;
  border-top: 2px solid var(--orange);
  border-right: 2px solid var(--blue);
}
.honor-feature-info h2 { margin: 0.8rem 0 0.3rem; font-size: 3.35rem; line-height: 1.15; }
.honor-department { margin: 0; color: var(--muted); font-size: 0.82rem; }
.honor-title-line { display: flex; align-items: center; gap: 0.8rem; margin-top: 2rem; }
.honor-title-line i { width: 36px; height: 3px; background: var(--orange); }
.honor-title-line h3 { margin: 0; color: var(--gold); font-size: 2.5rem; line-height: 1.25; }
.honor-feature-info blockquote {
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  color: #c6d6db;
  font-size: 0.84rem;
  line-height: 1.85;
}
.honor-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: 0;
  min-height: 0;
}
.honor-thumb {
  position: relative;
  display: grid;
  grid-template-columns: 36% minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(153, 211, 226, 0.2);
  border-radius: 4px;
  color: var(--text);
  text-align: left;
  background: rgba(8, 30, 40, 0.92);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.honor-thumb:hover, .honor-thumb:focus-visible { border-color: var(--cyan); outline: none; }
.honor-thumb.is-current { border-color: var(--gold); background: linear-gradient(135deg, rgba(12,75,129,0.94), rgba(237,111,0,0.2)); box-shadow: inset 0 3px var(--orange); }
.thumb-photo { min-width: 0; min-height: 0; overflow: hidden; background: #0c2b38; }
.thumb-photo img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { font-size: 1.8rem; }
.thumb-copy { align-self: center; min-width: 0; padding: 0.7rem; }
.thumb-copy b, .thumb-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb-copy b { font-size: 0.78rem; }
.thumb-copy small { margin-top: 0.32rem; color: var(--muted); font-size: 0.55rem; }
.honor-thumb.is-current .thumb-copy small { color: var(--gold); }
.thumb-number { position: absolute; top: 0.4rem; right: 0.45rem; color: rgba(255, 255, 255, 0.22); font: 700 0.58rem Arial, sans-serif; }

.academy-page {
  background:
    linear-gradient(120deg, rgba(12, 75, 129, 0.52), transparent 44%),
    linear-gradient(310deg, rgba(237, 111, 0, 0.13), transparent 40%),
    #02162c;
}
.academy-page .page-heading p { margin: .25rem 0 0; color: var(--cyan); font-size: .72rem; }
.academy-summary { gap: 1rem; margin-right: 22rem; }
.academy-summary div:nth-child(1) { border-left-color: var(--blue); }
.academy-summary div:nth-child(2) { border-left-color: var(--cyan); }
.academy-summary div:nth-child(3) { border-left-color: var(--orange); }
.academy-summary div:nth-child(4) { border-left-color: var(--gold); }
.academy-summary strong { color: var(--cyan); }
.academy-dashboard {
  position: absolute;
  z-index: 2;
  top: 138px;
  right: 2.6rem;
  bottom: 112px;
  left: 2.6rem;
  display: grid;
  grid-template-columns: minmax(570px, 1.32fr) minmax(330px, 0.8fr) minmax(350px, 0.88fr);
  gap: 0.9rem;
  padding-top: 1rem;
}
.academy-block {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(3, 31, 65, 0.94);
}
.block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
}
.block-title > div { display: flex; align-items: center; gap: 0.65rem; }
.block-title i { width: 8px; height: 8px; background: var(--cyan); box-shadow: 0 0 12px rgba(37, 199, 221, 0.75); }
.block-title h2 { margin: 0; font-size: 0.88rem; }
.block-title > span { color: var(--muted); font: 600 0.55rem Arial, sans-serif; }
.current-book { display: grid; grid-template-columns: 34% minmax(0, 66%); height: calc(100% - 54px); }
.academy-book-cover { position: relative; min-height: 0; overflow: hidden; background: #0c2b38; }
.academy-book-cover img { display: block; width: 100%; height: 100%; object-fit: contain; background: #081b24; }
.academy-cover-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--gold); font-size: 5rem; }
.academy-book-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 19, 28, 0.86), transparent 56%); }
.academy-book-cover > span {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: 0.45rem 0.75rem;
  color: #06131c;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--gold);
}
.current-book-copy { min-width: 0; padding: 1.15rem 1.2rem; overflow: hidden; }
.book-status { display: flex; align-items: center; gap: 0.45rem; color: var(--cyan); font-size: 0.65rem; }
.book-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.current-book-copy h2 { margin: 0.55rem 0 0.5rem; color: var(--gold); font-size: 1.85rem; line-height: 1.3; }
.current-book-copy > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #bfd0d5;
  font-size: 0.78rem;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.current-book-copy ul { display: grid; gap: 0.35rem; margin: 0.65rem 0; padding: 0.6rem 0 0.6rem 1.1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.current-book-copy li { padding-left: 0.2rem; color: #e7f3f7; font-size: 0.7rem; line-height: 1.45; }
.current-book-copy li::marker { color: var(--orange); }
.book-meta { display: grid; gap: 0.55rem; }
.book-meta span { color: var(--muted); font-size: 0.6rem; }
.book-meta b { display: inline-block; min-width: 4.5rem; color: var(--cyan); font-weight: 600; }
.past-reading-section { margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.past-reading-section > h3 { margin: 0 0 0.55rem; font-size: 0.78rem; }
.past-reading-viewport { height: 186px; overflow: hidden; }
.past-reading-list { display: flex; flex-direction: column; gap: 6px; animation: history-scroll 48s linear infinite; }
.academy-page:not(.is-active) .past-reading-list { animation-play-state: paused; }
.past-reading-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); flex: 0 0 58px; min-width: 0; height: 58px; overflow: hidden; border: 1px solid rgba(2,150,215,0.24); border-radius: 3px; background: rgba(12,75,129,0.2); }
.past-cover { min-width: 0; min-height: 0; overflow: hidden; background: #071e39; }
.past-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.past-cover-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--gold); }
.past-reading-card > div { min-width: 0; padding: 0.45rem; }
.past-reading-card small, .past-reading-card b, .past-reading-card p { display: block; overflow: hidden; }
.past-reading-card small { color: var(--cyan); font-size: 0.47rem; }
.past-reading-card b { margin-top: 0.2rem; font-size: 0.58rem; text-overflow: ellipsis; white-space: nowrap; }
.past-reading-card p { display: none; }

.checkin-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; padding: .55rem .7rem .35rem; }
.checkin-group-card { min-width: 0; padding: .45rem .5rem; border: 1px solid rgba(2,150,215,.24); border-radius: 4px; background: rgba(12,75,129,.18); }
.checkin-group-card > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: .35rem; border-bottom: 1px solid rgba(153,211,226,.12); }
.checkin-group-card > header b { color: #fff; font-size: .65rem; }
.checkin-group-card > header span { color: var(--cyan); font-size: .48rem; }
.member-state { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: .3rem; align-items: start; margin-top: .36rem; }
.member-state > b { padding-top: .16rem; font-size: .46rem; font-weight: 600; }
.member-state.is-clocked > b { color: #56d6b0; }
.member-state.is-pending > b { color: var(--orange); }
.member-state p { display: flex; flex-wrap: wrap; gap: .2rem; margin: 0; }
.member-state p span { padding: .13rem .25rem; border-radius: 2px; color: #dbeaf0; font-size: .46rem; background: rgba(255,255,255,.055); }
.member-state.is-pending p span { color: #ffd7b5; background: rgba(237,111,0,.13); }
.member-state p small { padding-top: .13rem; color: var(--muted); font-size: .44rem; }
.share-spotlight { min-height: 112px; margin: .15rem .7rem .35rem; padding: .5rem .6rem; overflow: hidden; border-left: 3px solid var(--orange); background: linear-gradient(110deg, rgba(237,111,0,.1), rgba(12,75,129,.16)); opacity: 1; transition: opacity .26s ease, transform .26s ease; }
.share-spotlight.is-changing { opacity: 0; transform: translateY(4px); }
.share-spotlight > header { display: flex; justify-content: space-between; color: var(--cyan); font-size: .48rem; }
.share-spotlight > header b { color: var(--muted); font-weight: 400; }
.share-person { display: flex; align-items: center; gap: .4rem; margin-top: .35rem; }
.share-person .avatar { width: 26px; height: 26px; }
.share-person b, .share-person small { display: block; }
.share-person b { font-size: .6rem; }
.share-person small { margin-top: .1rem; color: var(--muted); font-size: .44rem; }
.share-spotlight h3 { margin: .35rem 0 .2rem; overflow: hidden; color: var(--gold); font-size: .6rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.share-spotlight > p { display: -webkit-box; margin: 0; overflow: hidden; color: #bfd0d5; font-size: .46rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.share-empty { display: grid; place-items: center; min-height: 88px; color: var(--muted); font-size: .5rem; }
.clock-ranking-title { display: flex; justify-content: space-between; padding: .22rem .8rem; border-top: 1px solid var(--line); border-bottom: 1px solid rgba(153,211,226,.1); }
.clock-ranking-title b { font-size: .52rem; }
.clock-ranking-title span { color: var(--muted); font-size: .44rem; }
.clock-ranking-viewport { flex: 1; min-height: 0; margin: 0 .8rem .4rem; overflow: hidden; }
.clock-ranking-track { animation: ranking-ping-pong 34s ease-in-out infinite alternate; }
.academy-page:not(.is-active) .clock-ranking-track { animation-play-state: paused; }
.clock-ranking-viewport .clock-row { min-height: 32px; height: 32px; }
.clock-ranking-viewport .clock-row.rank-1 .list-rank { color: #302000; background: var(--gold); }
.clock-ranking-viewport .clock-row.rank-2 .list-rank { color: #203039; background: #c7d8df; }
.clock-ranking-viewport .clock-row.rank-3 .list-rank { color: #35180c; background: #e58a55; }
.clock-ranking-viewport .clock-row.is-pending { opacity: .58; }
.clock-ranking-viewport .clock-row.is-pending > strong { color: var(--muted); }
.alltime-list { height: calc(100% - 54px); padding: 0.4rem 0.8rem; }
.ranking-frozen { position: relative; z-index: 2; border-bottom: 1px solid rgba(246,170,0,.35); background: rgba(3,31,65,.98); }
.ranking-rolling { height: calc(100% - 144px); overflow: hidden; }
.ranking-rolling > div { animation: ranking-ping-pong 58s ease-in-out infinite alternate; }
.clock-ranking-track.is-static, .ranking-rolling > div.is-static { animation: none; }
.ranking-rolling .list-rank { color: var(--muted) !important; background: rgba(255,255,255,.05) !important; }
.alltime-row { display: grid; grid-template-columns: 28px 38px minmax(0, 1fr) 62px; gap: 0.5rem; align-items: center; height: 48px; min-height: 42px; border-bottom: 1px solid rgba(153,211,226,0.1); }
.alltime-row:last-child { border-bottom: 0; }
.ranking-frozen .alltime-row:nth-child(1) .list-rank { color: #302000; background: var(--gold); }
.ranking-frozen .alltime-row:nth-child(2) .list-rank { color: #203039; background: #c7d8df; }
.ranking-frozen .alltime-row:nth-child(3) .list-rank { color: #35180c; background: #ed8a48; }
.alltime-avatar { width: 36px; height: 36px; }
.alltime-row > strong { color: var(--gold); font: 700 0.72rem "Segoe UI", Arial, sans-serif; text-align: right; }
.alltime-row > strong small { display: block; margin-top: 0.12rem; color: var(--muted); font: 400 0.44rem Arial, sans-serif; }

@keyframes history-scroll { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 3px)); } }
@keyframes ranking-ping-pong { from { transform: translateY(0); } to { transform: translateY(calc(0px - var(--scroll-distance, 0px))); } }

.clock-block { display: flex; flex-direction: column; }
.circle-progress {
  --progress: 0%;
  display: grid;
  place-items: center;
  align-self: center;
  flex: 0 0 116px;
  width: 116px;
  margin: 0.8rem 0 0.5rem;
  border-radius: 50%;
  background: conic-gradient(var(--orange) var(--progress), rgba(255,255,255,0.08) 0);
}
.circle-progress::before { content: ""; grid-area: 1 / 1; width: 92px; height: 92px; border-radius: 50%; background: #09242f; }
.circle-progress > div { z-index: 1; grid-area: 1 / 1; text-align: center; }
.circle-progress strong, .circle-progress span { display: block; }
.circle-progress strong { color: var(--gold); font: 700 1.4rem "Segoe UI", Arial, sans-serif; }
.circle-progress span { margin-top: 0.2rem; color: var(--muted); font-size: 0.48rem; }
.clock-list, .score-list { min-height: 0; padding: 0 0.8rem 0.5rem; }
.clock-list { flex: 1; }
.clock-row, .score-row {
  display: grid;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid rgba(153, 211, 226, 0.1);
}
.clock-row { grid-template-columns: 28px 34px minmax(0, 1fr) 42px; gap: 0.45rem; }
.score-row { grid-template-columns: 30px minmax(0, 1fr) 58px; gap: 0.5rem; }
.clock-row:last-child, .score-row:last-child { border-bottom: 0; }
.list-rank { display: grid; place-items: center; width: 22px; height: 22px; color: var(--muted); font: 700 0.58rem Arial, sans-serif; background: rgba(255,255,255,0.05); }
.clock-row:nth-child(1) .list-rank, .score-row:nth-child(1) .list-rank { color: #302000; background: var(--gold); }
.clock-row:nth-child(2) .list-rank, .score-row:nth-child(2) .list-rank { color: #203039; background: #c7d8df; }
.clock-row:nth-child(3) .list-rank, .score-row:nth-child(3) .list-rank { color: #35180c; background: #e58a55; }
.avatar { width: 32px; height: 32px; overflow: hidden; border-radius: 50%; background: #0c2b38; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { color: var(--cyan); font-size: 0.68rem; }
.list-person { min-width: 0; }
.list-person b, .list-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-person b { font-size: 0.65rem; }
.list-person small { margin-top: 0.15rem; color: var(--muted); font-size: 0.48rem; }
.clock-row > strong, .score-row > strong { color: var(--gold); font: 700 0.68rem "Segoe UI", Arial, sans-serif; text-align: right; }
.clock-row > strong small, .score-row > strong small { margin-left: 0.12rem; color: var(--muted); font: 400 0.46rem Arial, sans-serif; }
.academy-side { display: grid; grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 0.9rem; min-width: 0; min-height: 0; }
.score-list { height: calc(100% - 54px); }
.history-list { height: calc(100% - 54px); padding: 0.25rem 0.9rem; }
.history-row { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 0.7rem; align-items: center; height: 25%; border-bottom: 1px solid rgba(153, 211, 226, 0.1); }
.history-row:last-child { border-bottom: 0; }
.history-row > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); color: var(--cyan); font: 700 0.62rem Arial, sans-serif; }
.history-row.is-current > span { border-color: var(--orange); color: var(--gold); }
.history-row b, .history-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-row b { font-size: 0.6rem; }
.history-row small { margin-top: 0.18rem; color: var(--muted); font-size: 0.47rem; }
.academy-empty { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 0.7rem; }
.sync-stamp { position: absolute; z-index: 3; right: 2.6rem; bottom: 91px; color: #6f8992; font-size: 0.5rem; }

.display-navigation {
  position: fixed;
  z-index: 30;
  right: 2.5rem;
  bottom: 1.1rem;
  left: 2.5rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  height: 68px;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  pointer-events: none;
}
.display-navigation button { pointer-events: auto; cursor: pointer; }
.home-button { display: flex; align-items: center; gap: 0.65rem; width: max-content; padding: 0; border: 0; color: #fff; background: transparent; }
.nav-icon { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid var(--cyan); border-radius: 50%; color: #fff; background: linear-gradient(135deg, rgba(12,75,129,0.9), rgba(40,109,175,0.55)); }
.nav-icon svg { display: block; width: 21px; height: 21px; stroke-width: 2; }
.home-button b, .arrow-controls b { font-size: 0.68rem; font-weight: 500; }
.page-state { display: grid; justify-items: center; gap: 0.35rem; color: var(--muted); font-size: 0.5rem; }
.page-dots { display: flex; gap: 0.4rem; }
.page-dot { width: 24px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,0.16); }
.page-dot.is-active { background: var(--cyan); }
.arrow-controls { display: flex; align-items: center; justify-self: end; gap: 1.6rem; }
.arrow-controls button { display: flex; align-items: center; gap: 0.55rem; padding: 0; border: 0; color: #fff; background: transparent; }
.arrow-controls .nav-icon { border: 1px solid rgba(2,150,215,0.8); }
.arrow-controls button:hover .nav-icon, .arrow-controls button:focus-visible .nav-icon, .home-button:focus-visible .nav-icon { border-color: var(--gold); color: var(--gold); outline: none; }

.error-toast { position: fixed; z-index: 50; top: 1rem; left: 50%; max-width: 520px; padding: 0.75rem 1rem; border-left: 3px solid #ff6d62; color: #fff; background: #35171a; transform: translate(-50%, -180%); transition: transform 0.3s ease; }
.error-toast.is-visible { transform: translate(-50%, 0); }

@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.65; } }

@media (max-width: 1350px), (min-width: 2500px) {
  .page-heading { padding-left: 10rem; }
  .page-summary { margin-right: 17rem; gap: 0.8rem; }
  .top-status { right: 1.4rem; width: 650px; grid-template-columns: 145px 235px 238px; }
  .weather-trend { width: 238px; }
  .daily-quote-panel { min-height: 42px; padding-right: .5rem; padding-left: .5rem; }
  .honor-stage, .academy-dashboard { right: 1.4rem; left: 1.4rem; }
  .honor-stage { grid-template-columns: minmax(0, 1.45fr) minmax(390px, 1fr); }
  .honor-feature-info { padding: 1.5rem; }
  .honor-feature-info h2 { font-size: 2.65rem; }
  .honor-title-line h3 { font-size: 2.25rem; }
  .academy-dashboard { grid-template-columns: minmax(430px, 1.12fr) minmax(285px, 0.78fr) minmax(300px, 0.84fr); }
  .current-book-copy { padding: 1rem; }
  .current-book-copy h2 { margin: 0.35rem 0; font-size: 1.35rem; }
  .current-book-copy > p { font-size: 0.62rem; line-height: 1.5; -webkit-line-clamp: 2; }
  .current-book-copy ul { gap: 0.2rem; margin: 0.35rem 0; padding-top: 0.35rem; padding-bottom: 0.35rem; }
  .current-book-copy li { font-size: 0.55rem; }
  .book-meta { gap: 0.25rem; }
  .book-meta span { font-size: 0.5rem; }
  .past-reading-section { margin-top: 0.4rem; padding-top: 0.4rem; }
  .past-reading-section > h3 { margin-bottom: 0.35rem; }
  .past-reading-card { height: 58px; }
  .past-reading-card p { display: none; }
  .clock-row { min-height: 32px; }
  .alltime-row { min-height: 34px; }
}

@media (max-width: 900px), (orientation: portrait) {
  html, body { overflow: auto; }
  .carousel { position: relative; min-height: 100svh; }
  .slide-page { min-height: 100svh; overflow-y: auto; }
  .global-brand { top: 1rem; left: 1rem; }
  .top-status { top: 0.8rem; right: 1rem; width: auto; grid-template-columns: auto; }
  .top-clock { display: none; }
  .top-weather small { display: none; }
  .top-weather { padding-right: 0; border-right: 0; }
  .weather-main-icon { font-size: 1.5rem; }
  .weather-trend { display: none; }
  .daily-quote-panel { min-height: 42px; padding: 0 .35rem; }
  .daily-quote-panel p { font-size: min(var(--quote-font-size, .72rem), .72rem); }
  .page-header { min-height: 130px; padding: 5rem 1rem 1rem; align-items: flex-end; }
  .page-heading { padding-left: 0; }
  .page-heading h1 { font-size: 1.25rem; }
  .page-summary { display: none; }
  .honor-stage, .academy-dashboard { position: relative; inset: auto; height: auto; padding: 1rem 1rem 7rem; }
  .honor-stage { grid-template-columns: 1fr; }
  .honor-feature { grid-template-columns: 40% 60%; min-height: 420px; }
  .honor-thumbs { grid-template-rows: repeat(4, 110px); }
  .academy-dashboard { grid-template-columns: 1fr; }
  .academy-block { min-height: 520px; }
  .academy-side { grid-template-rows: repeat(2, minmax(460px, auto)); }
  .sync-stamp { right: 1rem; bottom: 82px; }
  .display-navigation { right: 1rem; left: 1rem; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: .5rem; }
  .home-button b, .arrow-controls b { display: none; }
  .arrow-controls { gap: 0.5rem; }
}

@media (max-width: 560px) {
  .top-clock span { display: none; }
  .global-brand img { width: 44px; height: 44px; }
  .honor-feature { grid-template-columns: 1fr; min-height: 720px; }
  .honor-feature-photo { min-height: 360px; }
  .honor-feature-info { justify-content: flex-start; }
  .honor-feature-info h2 { font-size: 2rem; }
  .honor-thumbs { grid-template-columns: 1fr; grid-template-rows: repeat(8, 92px); }
  .current-book { grid-template-columns: 1fr; height: auto; }
  .academy-book-cover { min-height: 380px; }
  .academy-block { min-height: 0; }
  .current-club-block { min-height: 850px; }
  .clock-block, .score-block { min-height: 520px; }
  .history-block { min-height: 430px; }
  .past-reading-list { display: flex; }
  .past-reading-card { height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
