/* QQ 大气首页 + 微信式简短版本动态；二级页历史详情 */

:root {
  --sky: #12b7f5;
  --sky-deep: #0a9ed8;
  --ink: #0b2c3d;
  --muted: #5c6b7a;
  --line: rgb(18 183 245 / 0.16);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a,
button {
  font: inherit;
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  min-height: 100vh;
}

/* —— QQ 氛围底 —— */

body.home {
  background: #e8f7fd;
  overflow-x: hidden;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 85% 55% at 50% -8%, #b8ecff 0%, transparent 58%),
    linear-gradient(180deg, #dff4fc 0%, #eef9fd 45%, #f7fcfe 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}

.blob-a {
  width: 32rem;
  height: 32rem;
  left: -10rem;
  top: 14%;
  background: radial-gradient(circle, #9adfff 0%, transparent 70%);
}

.blob-b {
  width: 26rem;
  height: 26rem;
  right: -8rem;
  top: 4%;
  background: radial-gradient(circle, #7ed6f7 0%, transparent 70%);
  animation-delay: -4s;
}

.blob-c {
  width: 20rem;
  height: 20rem;
  left: 38%;
  bottom: 4%;
  background: radial-gradient(circle, #c5f0ff 0%, transparent 70%);
  animation-delay: -8s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.home-page {
  display: flex;
  flex-direction: column;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.top-home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(1.25rem, env(safe-area-inset-top)) 0 0;
  flex-shrink: 0;
}

.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 750;
  color: #0d3a4f;
}

.top-brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgb(18 183 245 / 0.25);
}

.top-tag {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: var(--sky-deep);
  background: rgb(18 183 245 / 0.12);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
}

.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero-logo {
  width: 6.75rem;
  height: 6.75rem;
  border-radius: 1.55rem;
  box-shadow:
    0 20px 48px rgb(18 183 245 / 0.32),
    0 2px 0 rgb(255 255 255 / 0.85) inset;
  margin-bottom: 1.35rem;
  animation: rise 0.75s ease both;
}

.home-main h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5.8vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #0b2c3d;
  animation: rise 0.75s ease 0.06s both;
}

.hero-sub {
  margin: 0.7rem 0 0;
  font-size: clamp(1rem, 2.3vw, 1.15rem);
  font-weight: 550;
  color: var(--muted);
  animation: rise 0.75s ease 0.1s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dl-btn {
  margin-top: 2.15rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: min(100%, 19rem);
  padding: 1rem 1.55rem 1rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #2cc8ff 0%, var(--sky) 48%, var(--sky-deep) 100%);
  color: #fff;
  box-shadow:
    0 14px 32px rgb(18 183 245 / 0.4),
    0 1px 0 rgb(255 255 255 / 0.35) inset;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  animation: rise 0.75s ease 0.16s both;
}

.dl-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgb(18 183 245 / 0.48),
    0 1px 0 rgb(255 255 255 / 0.35) inset;
  filter: brightness(1.03);
}

.dl-btn:active {
  transform: translateY(0);
}

.dl-btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.12);
}

.dl-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 0.22);
  flex-shrink: 0;
}

.dl-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-align: left;
}

.dl-text strong {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.dl-text small {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.92;
  font-variant-numeric: tabular-nums;
}

/* 微信式简短动态：左标题右日期，无卡片堆叠 */

.brief-block {
  margin-top: 2.75rem;
  width: min(100%, 28rem);
  animation: rise 0.75s ease 0.22s both;
}

.brief-log {
  list-style: none;
  margin: 0;
  padding: 0;
}

.brief-log li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.38rem 0.15rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 600;
  line-height: 1.5;
  color: #17394a;
}

.brief-log .log-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.brief-log .log-date {
  flex-shrink: 0;
  font-weight: 550;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.95em;
}

.more-logs {
  margin-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sky-deep);
}

.more-logs:hover {
  text-decoration: underline;
}

/* —— 历史二级页（QQ 浅蓝系） —— */

body.history {
  background: #f0f9fd;
}

.history-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.top-history {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(1.15rem, env(safe-area-inset-top)) 0 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sky-deep);
}

.back-link:hover {
  opacity: 0.85;
}

.history-main {
  padding-top: 1.75rem;
}

.history-intro h1 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0b2c3d;
}

.history-intro p {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.history-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.history-item {
  padding: 1.2rem 1.25rem;
  border-radius: 1.15rem;
  background: rgb(255 255 255 / 0.88);
  border: 1px solid rgb(255 255 255 / 0.95);
  box-shadow: 0 10px 28px rgb(13 58 79 / 0.06);
}

.history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.history-ver {
  font-size: 1.08rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0b2c3d;
}

.badge-now {
  font-size: 0.68rem;
  font-weight: 750;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  color: #fff;
  background: var(--sky);
}

.history-date {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.history-notes {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4b5d6b;
  white-space: pre-wrap;
}

.history-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.95rem;
  min-height: 2.55rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #2cc8ff 0%, var(--sky) 55%, var(--sky-deep) 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgb(18 183 245 / 0.28);
  transition: transform 0.15s, filter 0.15s;
}

.history-dl:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.history-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .home-main {
    padding: 2rem 0 1.5rem;
  }

  .hero-logo {
    width: 5.25rem;
    height: 5.25rem;
    border-radius: 1.25rem;
  }

  .dl-btn {
    width: 100%;
    justify-content: center;
  }

  .dl-text {
    align-items: center;
    text-align: center;
  }

  .brief-block {
    width: min(100%, 22rem);
  }

  .brief-log li {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .hero-logo,
  .home-main h1,
  .hero-sub,
  .dl-btn,
  .brief-block {
    animation: none;
  }
}
