/* ==========================================================
   wibbley pig nici — 首页样式
   配色参照澳门科技大学官网：主蓝 #156BBC / 浅灰 #F7F7F7
   ========================================================== */

:root {
  --must-blue: #156bbc;
  --must-blue-dark: #0e5aa0;
  --ink: #0b1f3a;
  --ink-2: #123d77;
  --gold: #c9a45c;
  --gold-soft: #e9d6a5;
  --text-main: #2a3441;
  --text-sub: #8a94a6;
  --bg-gray: #f6f8fb;
  --border-light: #e6ebf2;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* hidden 属性优先级最高：防止组件自身的 display:flex 盖过隐藏状态 */
[hidden] {
  display: none !important;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(1000px, 92%);
  margin: 0 auto;
}

/* ============ 第一块：顶部页头（液态玻璃） ============ */

.site-header {
  position: relative;
  /* backdrop-filter 会创建层叠上下文：必须显式抬高，保证页头及其内部
     下拉面板（消息列表）压在内容区（导航/玻璃遮罩）之上 */
  z-index: 80;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 253, 0.78));
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 8px 28px rgba(11, 31, 58, 0.08);
}

/* 页头底部金色发丝线 */
.site-header::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 92, 0.55), rgba(233, 214, 165, 0.9), rgba(201, 164, 92, 0.45), transparent);
}

.header-inner {
  padding: 0 36px 0 18px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-back-fab {
  position: fixed;
  top: 98px;
  left: 18px;
  z-index: 25;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--must-blue);
  box-shadow: 0 10px 26px rgba(11, 31, 58, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.page-back-fab:hover {
  transform: translateY(-1px) scale(1.05);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(11, 31, 58, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.page-back-fab svg {
  width: 20px;
  height: 20px;
}

.logo {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  position: relative;
}

/* ---- 嘻嘻猫头贴纸：挂在头像下方，轻微摇晃漂浮 ---- */

.xixi-sticker {
  position: absolute;
  /* 头像底边下方 30px；右移 30px；尺寸放大 1.5 倍 */
  top: 96px;
  left: 36px;
  width: 84px;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  filter: drop-shadow(0 5px 8px rgba(120, 84, 20, 0.28));
  transform-origin: 50% 12%;
  animation: xixiSway 3.4s ease-in-out infinite;
}

@keyframes xixiSway {
  0%, 100% { transform: rotate(-3.5deg) translateY(0); }
  50% { transform: rotate(3.5deg) translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .xixi-sticker {
    animation: none;
  }
}

/* 静态头像：原 44px 的 1.5 倍，金色描边 */
.avatar-wrap {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 2px solid rgba(201, 164, 92, 0.65);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(21, 107, 188, 0.06);
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-wrap:hover {
  transform: scale(1.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ---- 手写标题：苹果 Hello 式逐字描绘 ----
   JS 生成 SVG 文字，每个字母 stroke-dashoffset 逐段描出轮廓，
   描完后渐变填充浮现，最后一道高光扫过，整句停留数秒后循环。 */

.logo-text-clip {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.hello-title {
  font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 26px;
  font-weight: 600;
  color: var(--must-blue);
  white-space: nowrap;
  line-height: 1;
}

.hello-svg {
  display: block;
  height: 46px;
  max-width: 100%;
  overflow: visible;
}

.hello-line {
  font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 44px;
  font-weight: 600;
}

.hello-line tspan {
  fill: #14568f;
  fill-opacity: 0;
  stroke: #2f7bd0;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation:
    helloDraw 0.85s cubic-bezier(0.55, 0.06, 0.35, 1) forwards,
    helloFill 0.7s ease forwards;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + 0.5s);
}

@keyframes helloDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes helloFill {
  to {
    fill-opacity: 0.96;
  }
}

.hello-sheen {
  fill-opacity: 0;
  animation: helloSheenIn 1.4s ease forwards;
  animation-delay: 2.3s;
}

@keyframes helloSheenIn {
  0% { fill-opacity: 0; }
  35% { fill-opacity: 0.9; }
  70% { fill-opacity: 0.9; }
  100% { fill-opacity: 0; }
}

/* 减少动态效果：直接显示完成态 */
.hello-svg.static .hello-line tspan {
  animation: none;
  stroke-dashoffset: 0;
  fill-opacity: 0.96;
}
.hello-svg.static .hello-sheen {
  animation: none;
}

@media (max-width: 860px) {
  .hello-svg {
    height: 36px;
  }
}

.header-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}

/* 玻璃页头上的深色文字 */
.header-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 2px;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.header-item:hover {
  opacity: 1;
  color: var(--must-blue);
}

.header-divider {
  width: 1px;
  height: 16px;
  background: linear-gradient(180deg, transparent, rgba(21, 107, 188, 0.4), transparent);
}

.header-icon {
  position: relative;
}

.header-icon svg {
  width: 25px;
  height: 25px;
  display: block;
  color: var(--ink-2);
}

/* 微信风格未读小红点 */
.msg-badge {
  position: absolute;
  top: -9px;
  right: -13px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7d6e, #f0473c);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(240, 71, 60, 0.4);
}

.msg-badge[hidden] {
  display: none;
}

.msg-badge.bump {
  animation: badgeBump 0.3s ease;
}

@keyframes badgeBump {
  50% {
    transform: scale(1.4);
  }
}

/* 信息区下拉面板 */
.msg-panel {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: 336px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-radius: 18px;
  border: 1px solid rgba(11, 31, 58, 0.08);
  box-shadow: 0 24px 60px rgba(11, 31, 58, 0.18), 0 4px 14px rgba(11, 31, 58, 0.06);
  overflow: hidden;
  z-index: 70;
  transform-origin: top right;
  animation: panelIn 0.22s ease;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.msg-panel.hidden {
  display: none;
}

/* 面板顶部小箭头，指向页头的信封图标 */
.msg-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 26px;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid rgba(11, 31, 58, 0.08);
  border-top: 1px solid rgba(11, 31, 58, 0.08);
  transform: rotate(45deg);
}

.msg-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px 13px;
  background: #ffffff;
  border-bottom: 1px solid rgba(21, 107, 188, 0.08);
}

/* 消息面板：未登录提示 */
.msg-login-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 30px;
  text-align: center;
}

.msg-login-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 13px;
  border-radius: 50%;
  background: rgba(21, 107, 188, 0.08);
  color: var(--must-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(21, 107, 188, 0.08);
}

.msg-login-icon svg {
  width: 24px;
  height: 24px;
}

.msg-login-tip p {
  font-size: 14px;
  color: #7a8494;
  margin-bottom: 17px;
  letter-spacing: 1px;
}

.msg-login-btn {
  display: inline-block;
  padding: 10px 38px;
  border-radius: 22px;
  background: linear-gradient(135deg, #14639f, var(--must-blue-dark));
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-indent: 3px;
  box-shadow: 0 8px 18px rgba(14, 90, 160, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: filter 0.2s ease, transform 0.15s ease;
}

.msg-login-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.msg-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #26313d;
  letter-spacing: 1px;
}

.msg-panel-count {
  font-size: 12px;
  color: #9aa3ae;
  letter-spacing: 1px;
}

.msg-list {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
}

.msg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 12px);
  margin: 2px 6px;
  padding: 11px 10px 11px 12px;
  box-sizing: border-box;
  border-radius: 13px;
  color: #26313d;
  transition: background-color 0.18s ease;
}

.msg-item:hover {
  background: rgba(21, 107, 188, 0.06);
}

.msg-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(21, 107, 188, 0.10);
  color: var(--must-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.msg-item-icon svg {
  width: 21px;
  height: 21px;
}

.msg-item:hover .msg-item-icon {
  background: linear-gradient(135deg, #1b81d8, var(--must-blue));
  color: #ffffff;
  transform: scale(1.05);
}

.msg-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.msg-item-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-item-meta {
  font-size: 12px;
  color: #9aa3ae;
}

.msg-item-arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #c2c9d1;
  transition: color 0.18s ease, transform 0.18s ease;
}

.msg-item-arrow svg {
  width: 100%;
  height: 100%;
}

.msg-item:hover .msg-item-arrow {
  color: var(--must-blue);
  transform: translateX(2px);
}

/* ============ 第二块：功能区导航（与页头一体，下方留白） ============ */

.main-nav {
  background: #ffffff;
  margin-top: 40px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  height: 64px;
}

.main-nav a {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-main);
  padding: 15px 2px;
  position: relative;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--must-blue), var(--gold));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-nav a:hover {
  color: var(--must-blue-dark);
}

.main-nav a:hover::after {
  width: 100%;
}

/* ============ 第三块：照片轮播区 ============ */

.carousel-section {
  background: rgb(243, 245, 248);
  margin-top: 34px;
}

.carousel {
  position: relative;
  overflow: hidden;
  background: rgb(243, 245, 248);
  width: min(1000px, 92%);
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.55s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: clamp(320px, 54vw, 560px);
  object-fit: cover;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #333333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(11, 31, 58, 0.16);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.carousel-arrow svg {
  width: 22px;
  height: 22px;
}

.carousel-arrow:hover {
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(11, 31, 58, 0.22);
  transform: translateY(-50%) scale(1.06);
}

.carousel-arrow.prev {
  left: 22px;
}

.carousel-arrow.next {
  right: 22px;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dots .dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

/* 轮播下方保留白色间隔 */
/* ============ 数据统计区 ============ */

.stats {
  background:
    radial-gradient(600px 200px at 50% -60px, rgba(21, 107, 188, 0.05), transparent 70%),
    #ffffff;
  padding: 0 0 64px;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  border-top: 1px solid rgba(21, 107, 188, 0.08);
  padding-top: 44px;
}

.stat {
  position: relative;
}

.stat .num {
  font-size: 34px;
  font-weight: 700;
  color: var(--must-blue);
  font-variant-numeric: tabular-nums;
}

.stat .num sup {
  font-size: 18px;
  top: -0.6em;
  margin-left: 0.375em;
}

.stat .label {
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 2px;
  color: #7c8694;
}

/* ---- 认识时间：悬停显示小时/分钟 ---- */

.stat .view-hover {
  display: none;
}

.stat.hovering .view-default {
  display: none;
}

.stat.hovering .view-hover {
  display: inline;
  animation: hoverSwap 0.35s ease;
}

.stat.hovering .label {
  visibility: hidden;
}

.stat .view-hover {
  font-size: 16px;
  font-weight: 600;
  color: #555555;
}

.stat .view-hover .hl {
  font-size: 36px;
  font-weight: 700;
  color: var(--must-blue);
  margin: 0 6px;
}

@keyframes hoverSwap {
  from {
    opacity: 0.1;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 小时 -> 分钟 切换时重新触发动画 */
.stat .view-hover.swap-anim {
  animation: hoverSwap2 0.35s ease;
}

@keyframes hoverSwap2 {
  from {
    opacity: 0.1;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- 可点击的计数器 ---- */

.counter-stat .count-trigger {
  display: inline-block;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 34px;
  font-weight: 700;
  color: var(--must-blue);
  line-height: normal;
  font-variant-numeric: tabular-nums;
  transition: transform 0.2s ease;
}

.counter-stat .count-trigger:hover {
  transform: scale(1.08);
}

.counter-pop {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(21, 107, 188, 0.1);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(11, 31, 58, 0.18), 0 4px 12px rgba(11, 31, 58, 0.06);
  padding: 18px 24px 20px;
  z-index: 30;
  white-space: nowrap;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.counter-pop::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(21, 107, 188, 0.1);
  border-top: 1px solid rgba(21, 107, 188, 0.1);
  border-radius: 3px;
  transform: translateX(-50%) rotate(45deg);
}

.counter-pop .counter-title {
  font-size: 14px;
  font-weight: 500;
  color: #4a5a75;
  margin-bottom: 12px;
  text-align: center;
}

/* 没有配文时整行隐藏（抽烟计数器默认无配文） */
.counter-pop .counter-title:empty {
  display: none;
}

.counter-pop .counter-title.swap {
  animation: captionFade 0.3s ease;
}

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

.counter-pop .counter-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.counter-pop .counter-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd66b, #ffc53d);
  color: #0e5aa0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  box-shadow:
    0 4px 12px rgba(255, 197, 61, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.counter-pop .counter-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 6px 16px rgba(255, 197, 61, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.counter-pop .counter-btn:active {
  transform: scale(0.88);
  box-shadow: 0 2px 6px rgba(255, 197, 61, 0.4);
}

.counter-pop .counter-num {
  min-width: 70px;
  padding: 2px 18px;
  font-size: 38px;
  font-weight: 700;
  color: var(--must-blue);
  font-variant-numeric: tabular-nums;
  background: rgba(21, 107, 188, 0.06);
  border-radius: 16px;
  text-align: center;
}

.counter-pop .counter-num.bump {
  animation: numBump 0.28s ease;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.85);
  }
  70% {
    opacity: 1;
    transform: translateX(-50%) translateY(2px) scale(1.03);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes numBump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

/* ============ 登录门禁：玻璃遮罩 ============ */

.lock-area {
  position: relative;
}

.lock-glass {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.18));
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.lock-area.locked .lock-glass {
  display: flex;
}

/* 浏览器不支持 backdrop-filter 时的兜底：直接模糊内容 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lock-area.locked .main-nav,
  .lock-area.locked main {
    filter: blur(14px);
  }
}

.lock-card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(11, 31, 58, 0.2), 0 6px 18px rgba(11, 31, 58, 0.08);
  padding: 0 94px 21px;
  text-align: center;
  animation: lockCardIn 0.5s ease;
  overflow: visible;
  margin-top: 102px;
}

/* 顶部金色发丝线 */
.lock-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), var(--gold), var(--gold-soft), transparent);
}

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

.lock-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(21, 107, 188, 0.12);
  color: var(--must-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-badge svg {
  width: 30px;
  height: 30px;
}

/* ---- 勒克莱尔贴纸头像（锁卡主角） ---- */

.lock-avatar {
  width: 170px;
  height: 170px;
  margin: -102px auto 21px;
  animation: lcFloat 3s ease-in-out infinite;
}

.lock-avatar .lc-photo {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(120, 84, 20, 0.3);
}

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

@media (prefers-reduced-motion: reduce) {
  .lock-avatar {
    animation: none;
  }
}

.lock-card h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ink);
  margin-bottom: 21px;
}

.lock-card p {
  font-size: 14px;
  letter-spacing: 1px;
  color: #8a94a6;
  margin-bottom: 26px;
}

.lock-btn {
  display: inline-block;
  padding: 11px 44px;
  border-radius: 24px;
  background: linear-gradient(135deg, #14639f, var(--must-blue-dark));
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 4px;
  text-indent: 4px;
  box-shadow: 0 10px 24px rgba(14, 90, 160, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.lock-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(14, 90, 160, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* ============ 关于陈思帆 · F1 赛道时间轴 ============ */

.about-main {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.f1-section {
  position: relative;
  background:
    radial-gradient(1100px 360px at 50% -90px, rgba(21, 107, 188, 0.05), transparent 62%),
    radial-gradient(800px 320px at 10% 84%, rgba(145, 196, 110, 0.12), transparent 58%),
    radial-gradient(700px 300px at 94% 108%, rgba(201, 164, 92, 0.05), transparent 60%),
    linear-gradient(180deg, #f6f9fc 0%, #ffffff 22%, #eef6ea 100%);
  padding: 26px 0 92px;
}

.f1-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 150px at 50% 12%, rgba(255,255,255,0.6), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.42), transparent 36%);
  pointer-events: none;
}

.f1-board {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 34px;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.f1-board::before {
  content: "";
  position: absolute;
  inset: 18px 10px 8px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0.12)),
    radial-gradient(900px 280px at 50% 0, rgba(255,255,255,0.55), transparent 42%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
  pointer-events: none;
}

.f1-track-wrap {
  position: relative;
  overflow: visible;
  padding: 12px 6px 0;
}

.f1-track {
  display: block;
  width: 100%;
  min-width: 960px;
  height: auto;
  overflow: visible;
}

/* ---- 暂停按钮 ---- */

.f1-pause-btn {
  position: fixed;
  top: 98px;
  right: 18px;
  z-index: 25;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--must-blue);
  box-shadow: 0 10px 26px rgba(11, 31, 58, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.f1-pause-btn:hover {
  transform: translateY(-1px) scale(1.05);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(11, 31, 58, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.f1-pause-btn:active {
  transform: scale(0.94);
}

.f1-pause-btn svg {
  width: 20px;
  height: 20px;
  grid-area: 1 / 1;
}

.f1-pause-btn .icon-play {
  display: none;
}

.f1-pause-btn.paused {
  background: var(--must-blue);
  color: #ffffff;
}

.f1-pause-btn.paused .icon-pause {
  display: none;
}

.f1-pause-btn.paused .icon-play {
  display: block;
}

.f1-pause-btn:focus-visible {
  outline: 2px solid var(--must-blue);
  outline-offset: 2px;
}

/* ---- 赛道绘制 ---- */

.outer-grass {
  fill: #67a44d;
  opacity: 0.24;
}

.inner-lawn {
  fill: rgba(224, 245, 205, 0.9);
}

.runoff-topright,
.runoff-bottomleft,
.runoff-bottomright {
  fill: rgba(244, 247, 250, 0.94);
}

.track-layer {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-shadow {
  stroke: rgba(6, 10, 16, 0.94);
  stroke-width: 58;
  filter: drop-shadow(0 10px 16px rgba(8, 13, 20, 0.14));
}

.track-edge {
  stroke: rgba(244, 247, 250, 0.55);
  stroke-width: 43;
  opacity: 0.9;
}

.track-surface {
  stroke: url(#trackStroke);
  stroke-width: 40;
}

.track-centerline {
  stroke: rgba(255, 255, 255, 0.38);
  stroke-width: 2.2;
  stroke-dasharray: 18 16;
}

.track-drift {
  fill: none;
  stroke: rgba(255,255,255,0.16);
  stroke-width: 2;
  stroke-dasharray: 6 11;
}

.track-drift.drift-2 {
  stroke: rgba(255,255,255,0.11);
}

/* ---- 起步门架 ---- */

.gantry-beam {
  stroke: #2c3644;
  stroke-width: 7;
  stroke-linecap: round;
}

.gantry-leg {
  stroke: #3a4553;
  stroke-width: 5;
  stroke-linecap: round;
}

/* ---- 起跑线 ---- */

.start-line rect {
  fill: #1c2430;
}

.start-line rect:nth-child(odd) {
  fill: #f4f1ea;
}

/* ---- 起步信号灯 ---- */

.start-lights circle {
  fill: #ef5a5a;
  stroke: rgba(30, 35, 45, 0.35);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 5px rgba(239, 90, 90, 0.8));
  transition: fill 0.35s ease, filter 0.35s ease;
}

.start-lights.go circle:nth-child(1) {
  transition-delay: 0.15s;
}

.start-lights.go circle:nth-child(2) {
  transition-delay: 0.45s;
}

.start-lights.go circle:nth-child(3) {
  transition-delay: 0.75s;
}

.start-lights.go circle:nth-child(4) {
  transition-delay: 1.05s;
}

.start-lights.go circle:nth-child(5) {
  transition-delay: 1.35s;
}

.start-lights.go circle {
  fill: #6d4b4b;
  filter: none;
}

/* ---- 终点旗 ---- */

.finish-flag .flag-pole {
  stroke: #26313d;
  stroke-width: 2.8;
  stroke-linecap: round;
}

.finish-flag .flag-cloth rect {
  fill: #1f2731;
}

.finish-flag .flag-cloth rect.alt {
  fill: #f7f3ea;
}

/* ---- 法拉利维修区：FERRARI + 16 + LEC ---- */

.garage-shadow {
  fill: rgba(8, 13, 20, 0.06);
}

.garage-post {
  fill: #26303d;
}

.garage-strut {
  fill: #1e2630;
  stroke: #39424f;
  stroke-width: 0.6;
}

.garage-postbase {
  fill: #1b232e;
  stroke: #3a4553;
  stroke-width: 0.8;
}

.garage-board {
  fill: #161d27;
  stroke: #495666;
  stroke-width: 1.2;
  filter: drop-shadow(0 4px 8px rgba(11, 31, 58, 0.16));
}

.garage-bar {
  fill: #e10600;
}

.garage-trim {
  stroke: #e6b422;
  stroke-width: 0.9;
  opacity: 0.85;
}

.garage-hairline {
  stroke: #e6b422;
  stroke-width: 0.7;
  opacity: 0.4;
}

.garage-inset {
  fill: none;
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 0.8;
}

.garage-rivet {
  fill: #39424f;
  stroke: #5b6675;
  stroke-width: 0.5;
}

.garage-sign {
  fill: #e10600;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 0.8;
}

.garage-text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  fill: #ffffff;
}

.garage-badge {
  fill: #ffffff;
  stroke: #d8d8d5;
  stroke-width: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.22));
}

.garage-badge-ring {
  fill: none;
  stroke: rgba(230, 180, 34, 0.75);
  stroke-width: 0.9;
}

.garage-num {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.5px;
  font-weight: 900;
  fill: #101013;
}

.garage-lec {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.5px;
  fill: #ffffff;
}

.f1-track.finished .finish-flag .flag-cloth {
  animation: flagWave 0.9s ease-in-out infinite alternate;
  transform-origin: 0 0;
}

@keyframes flagWave {
  from {
    transform: skewY(0deg);
  }
  to {
    transform: skewY(-8deg);
  }
}

/* ---- 阶段广播牌 ---- */

.stage-gate {
  pointer-events: none;
}

.gate-post {
  fill: #27313d;
}

.gate-foot {
  fill: #1c2530;
  stroke: #3a4553;
  stroke-width: 0.6;
}

.gate-panel {
  fill: #d4a63c;
  stroke: #8c6a18;
  stroke-width: 2;
  filter: drop-shadow(0 4px 8px rgba(11, 31, 58, 0.16));
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease, fill 0.35s ease;
}

.gate-inset {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 0.8;
}

.gate-bar {
  fill: #f4d06d;
  opacity: 0.34;
}

.gate-rivet {
  fill: rgba(255, 255, 255, 0.5);
}

.gate-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2.2px;
  fill: #ffffff;
}

.stage-gate.passed .gate-panel {
  transform: scale(1.1);
  filter: drop-shadow(0 5px 11px rgba(11, 31, 58, 0.2));
  fill: #c99224;
}

.stage-gate.passed .gate-bar {
  opacity: 0.5;
}

/* ---- 勒克莱尔的红马 ---- */

.f1-car {
  pointer-events: none;
  filter: drop-shadow(0 5px 4px rgba(11, 31, 58, 0.28));
}

.car-shadow {
  fill: none;
  stroke: rgba(11, 31, 58, 0.15);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.car-body {
  fill: url(#carBodyGrad);
  stroke: #8c0710;
  stroke-width: 0.7;
}

.car-bodyline {
  fill: rgba(255, 255, 255, 0.85);
}

.car-sidepod {
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 0.8;
  stroke-linecap: round;
}

.car-cockpit {
  fill: #101318;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 0.6;
}

.car-intake {
  fill: #d9dcdf;
  stroke: #b5b8bc;
  stroke-width: 0.4;
}

.car-number-badge {
  fill: #ffffff;
  stroke: rgba(16, 16, 19, 0.35);
  stroke-width: 0.8;
}

.car-number {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 5.4px;
  font-weight: 900;
  fill: #101013;
  letter-spacing: 0.2px;
}

.car-wheel {
  fill: #17181c;
  stroke: #565b66;
  stroke-width: 0.9;
}

.car-wheel-hub {
  fill: #3c4048;
  stroke: #82868e;
  stroke-width: 0.5;
}

.car-wheel-dot {
  fill: #e9ebef;
}

.car-rearwing,
.car-frontwing {
  fill: #b20000;
  stroke: rgba(140, 7, 16, 0.5);
  stroke-width: 0.5;
}

.car-wingline {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 0.6;
}

.car-rearend {
  fill: #20242c;
}

.car-frontflap {
  fill: #d40812;
  stroke: rgba(140, 7, 16, 0.45);
  stroke-width: 0.4;
}

.car-frontend {
  fill: #f4f4f2;
  stroke: #d8d8d5;
  stroke-width: 0.4;
}

.car-nose {
  fill: #e10600;
  stroke: #a30a06;
  stroke-width: 0.4;
}

.car-mirror {
  fill: #f4f4f2;
  stroke: #c9c9c6;
  stroke-width: 0.4;
}

.car-halo {
  fill: none;
  stroke: #f7f0a6;
  stroke-width: 1.6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(247, 240, 166, 0.8));
}

/* ---- 阶段故事卡 ---- */

.f1-stories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.f1-story {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fffdf6 0%, #ffffff 100%);
  border: 1px solid rgba(201, 164, 92, 0.45);
  border-radius: 18px;
  padding: 20px 18px 18px;
  box-shadow: 0 8px 22px rgba(201, 164, 92, 0.14);
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.8s ease;
}

.f1-story.shown {
  opacity: 1;
  transform: none;
}

.f1-story::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #c9a45c, rgba(201, 164, 92, 0.2));
}

.f1-story-photos {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.f1-story-photos img,
.f1-story-ph {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(201, 164, 92, 0.45);
  box-shadow: 0 3px 8px rgba(201, 164, 92, 0.16);
  position: relative;
  z-index: 1;
}

.f1-story-photos img {
  cursor: zoom-in;
  transform: scale(1);
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.8s ease, border-color 0.8s ease;
}

.f1-story-ph {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(
    -45deg,
    rgba(201, 164, 92, 0.08) 0 12px,
    rgba(201, 164, 92, 0.14) 12px 24px
  );
  color: rgba(156, 117, 40, 0.75);
  font-size: 12px;
  letter-spacing: 2px;
}

.f1-story-ph::after {
  content: "照片待添加";
}

.f1-story-photos img:hover {
  transform: scale(2);
  z-index: 30;
  border-color: rgba(201, 164, 92, 0.75);
  box-shadow: 0 18px 44px rgba(60, 46, 12, 0.28);
}

.f1-story-photos img:hover + img {
  opacity: 0.35;
}

.f1-story-photos img:has(~ img:hover) {
  opacity: 0.35;
}

.f1-story-title {
  font-family: "STZhongsong", "Songti SC", "SimSun", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--ink);
  margin-bottom: 8px;
  text-align: center;
}

/* 无副文案的卡片（标题是最后一个元素）：纵向居中于剩余空间 */
.f1-story-title:last-child {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.f1-story-text {
  font-size: 13.5px;
  line-height: 1.8;
  color: #7a8494;
  margin: 0;
  text-align: center;
}

/* 故事淡出（重新发车前） */
.f1-board.resetting .f1-story {
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ============ 响应式 ============ */

.f1-board.finished .car-halo {
  animation: carHaloPulse 1s ease-in-out infinite;
}

.f1-board.launching .car-body {
  animation: carLaunchShake 0.18s ease-in-out infinite;
}

.f1-board.launching .car-shadow {
  opacity: 0.3;
}

@keyframes carHaloPulse {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(247, 240, 166, 0.6)); }
  50% { filter: drop-shadow(0 0 7px rgba(247, 240, 166, 1)); }
}

@keyframes carLaunchShake {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(0.25px); }
}

@media (max-width: 860px) {
  .header-inner {
    height: 76px;
  }

  .main-nav ul {
    gap: 28px;
    overflow-x: auto;
  }

  .carousel-slide img {
    height: 300px;
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
  }

  .carousel-arrow.prev {
    left: 12px;
  }

  .carousel-arrow.next {
    right: 12px;
  }

  .carousel-section {
    padding: 18px 0 30px;
  }

  .stats-inner {
    row-gap: 28px;
  }

  .lock-card {
    padding: 0 52px 21px;
    margin-top: 83px;
  }

  .lock-avatar {
    width: 138px;
    height: 138px;
    margin: -55px auto 21px;
  }

  .page-back-fab {
    top: 88px;
    left: 14px;
  }

  .f1-pause-btn {
    top: 88px;
    right: 14px;
  }

  .timeline-title {
    font-size: 24px;
  }

  .timeline-svg {
    min-width: 760px;
  }
}
