* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

html,
body {
  height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", "HarmonyOS_Regular", "Helvetica Neue", Arial, sans-serif;
}

body {
  color: #fff;
  background: #0f1115; /* 兜底背景色 */
  overflow: hidden;
}

a {
  color: #fff;
  text-decoration: none;
}

/* ============ 载入动画 ============ */
#loading {
  position: fixed;
  inset: 0;
  z-index: 99;
  overflow: hidden;
  pointer-events: none;
}
/* 左右幕布 */
#loading .loading-left,
#loading .loading-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: #0f1115;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
#loading .loading-left {
  left: 0;
}
#loading .loading-right {
  right: 0;
}
#loading .loading-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.45s ease;
}
#loading .loading-img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  animation: breathe 1.6s ease-in-out infinite;
}
#loading .text {
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 3px;
  font-size: 0.95rem;
}
/* 加载完成：幕布从中间向两侧移开 */
body.loaded #loading .loading-left {
  transform: translateX(-100%);
}
body.loaded #loading .loading-right {
  transform: translateX(100%);
}
body.loaded #loading .loading-center {
  opacity: 0;
}
/* 头像呼吸：一暗一亮 */
@keyframes breathe {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============ 背景与遮罩 ============ */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0f1115 url("https://dmoe.cc/random.php") center / cover no-repeat;
  transition: opacity 0.6s ease;
}
#bg-mask {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
}

/* ============ 主界面 ============ */
#main {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
/* 加载完成：主页面淡入 */
body.loaded #main {
  opacity: 1;
  transform: translateY(0);
}

.container {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

/* 毛玻璃卡片 */
.cards {
  background: rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.cards:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* ============ 左栏 ============ */
.left {
  width: 46%;
  display: flex;
  flex-direction: column;
  animation: slide-left 0.7s ease 0.6s both;
}
@keyframes slide-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 站点名 */
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  width: 78px;
  height: 78px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%; /* 头像偏上聚焦脸部 */
  background: linear-gradient(135deg, #ffb347, #ff6a88);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.logo .name {
  margin-left: 20px;
  line-height: 1.15;
}
.logo .name .bg {
  display: block;
  font-family: "ZCOOL XiaoWei", "KaiTi", "STKaiti", "楷体", serif;
  font-size: 3.4rem;
  letter-spacing: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.logo .name .sm {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* 个人签名（简洁个人风） */
.desc {
  margin-top: 1.4rem;
  max-width: 460px;
  cursor: pointer;
}
.desc p {
  font-size: 1.18rem;
  line-height: 1.9;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.95);
  font-family: "ZCOOL XiaoWei", "PingFang SC", "Microsoft YaHei", serif;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s;
}
/* 简约点缀线 */
.desc::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
  border-radius: 2px;
}

/* 社交链接 */
.social {
  margin-top: 1.6rem;
  max-width: 480px;
  width: 100%;
}
.social .link {
  display: flex;
  gap: 14px;
}
.social a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.social a:hover {
  transform: translateY(-4px) scale(1.1);
  background: rgba(255, 255, 255, 0.22);
  color: rgb(57, 159, 255);
}

/* ============ 右栏 ============ */
.right {
  width: 54%;
  animation: slide-right 0.7s ease 0.7s both;
}
@keyframes slide-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.func {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* 右栏上方居中搜索栏（聚焦时用 transform 平移到页面中部） */
.top-search {
  position: relative;
  z-index: 30; /* 保证下拉菜单能盖过下方卡片 */
  width: 100%;
  margin-bottom: 1.25rem;
  will-change: transform;
  transform: translate(0, 0) scale(1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.top-search .search-bar {
  width: min(560px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 10px 18px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.top-search .search-bar:focus-within {
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.top-search .search-bar > i {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  flex: none;
}
.top-search .search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  user-select: text;
}
.top-search .search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
/* 自定义搜索引擎下拉 */
.engine-select {
  position: relative;
  flex: none;
}
.engine-current {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 14px;
  padding: 5px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.25s ease;
}
.engine-current:hover {
  background: rgba(255, 255, 255, 0.28);
}
.engine-current .fa-chevron-down {
  font-size: 0.7rem;
  opacity: 0.7;
  transition: transform 0.25s ease;
}
.engine-select.open .engine-current .fa-chevron-down {
  transform: rotate(180deg);
}
.engine-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 132px;
  background: rgba(22, 25, 32, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 20;
}
.engine-select.open .engine-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.engine-option {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}
.engine-option:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.engine-option.active {
  background: rgba(57, 159, 255, 0.28);
  color: #fff;
}
.top-search .search-bar button {
  flex: none;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.top-search .search-bar button:hover {
  color: rgb(57, 159, 255);
  transform: scale(1.15);
}

/* ============ 搜索聚焦模式动画 ============ */
#main .left,
.func,
.links,
footer {
  transition: opacity 0.45s ease, transform 0.45s ease;
}
#bg {
  transition: filter 0.55s ease, transform 0.55s ease;
}
/* 聚焦时：左栏与右栏的备忘录/时间/网站隐藏，保留 .top-search 可见 */
body.search-focus #main .left,
body.search-focus .func,
body.search-focus .links,
body.search-focus footer {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  animation: none; /* 覆盖左右栏进入动画，确保真正隐藏 */
}
/* 聚焦时：背景模糊放大 */
body.search-focus #bg {
  filter: blur(12px);
  transform: scale(1.06);
}
/* 聚焦时：搜索栏放大并居中偏上 */
body.search-focus .top-search {
  z-index: 40; /* 专注时置于最上层；位置/大小由 JS transform 控制 */
  animation: none;
}
body.search-focus .top-search .search-bar {
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.5);
}

/* 备忘录卡片 */
.memo {
  padding: 18px 20px;
  min-height: 158px;
  display: flex;
  flex-direction: column;
}
.memo .line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}
.memo .memo-text {
  flex: 1;
  width: 100%;
  min-height: 118px;
  resize: none;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  line-height: 1.7;
  font-family: inherit;
  user-select: text;
}
.memo .memo-text::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.memo .memo-text:focus {
  background: rgba(255, 255, 255, 0.1);
}

/* 时间天气卡片 */
.time-weather {
  padding: 18px 20px;
  min-height: 158px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.time-weather .date {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1px;
}
.time-weather .time-text {
  margin-top: 8px;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 3px;
  font-family: "Consolas", "Courier New", monospace;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.time-weather .weather {
  margin-top: 10px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1px;
}

/* 我的网站 */
.links {
  margin-top: 1.25rem;
  padding: 16px 20px 18px;
}
.links .line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.9);
}
.links .line i {
  color: rgb(57, 159, 255);
}
.links .link-all {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.links .item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}
.links .item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
}
.links .item i {
  font-size: 1.5rem;
  color: rgb(57, 159, 255);
}
.links .item .name {
  font-size: 0.95rem;
}
.links .item .sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}
/* 待开发占位卡片 */
.links .item.placeholder {
  cursor: default;
  background: rgba(255, 255, 255, 0.05);
}
.links .item.placeholder i {
  color: rgba(255, 255, 255, 0.45);
}
.links .item.placeholder .name,
.links .item.placeholder .sub {
  color: rgba(255, 255, 255, 0.6);
}
.links .item.placeholder:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.08);
}

/* ============ 页脚 ============ */
footer {
  margin: 0 auto 18px;
  padding: 9px 30px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
  word-break: keep-all;
  white-space: nowrap;
  /* 灰色半透明横条 */
  width: fit-content;
  background: rgba(140, 140, 140, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 25px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
footer .sep {
  margin: 0 8px;
  opacity: 0.6;
}
footer a.beian-mps {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}
footer .beian-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  border: 0;
  object-fit: contain;
}
footer a:hover {
  color: rgb(57, 159, 255);
  text-decoration: underline;
}

/* ============ 问候 Toast ============ */
#toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-14px);
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 11px 24px;
  border-radius: 25px;
  font-size: 0.92rem;
  letter-spacing: 1px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ 时间天气详情弹窗 ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal.show {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  position: relative;
  width: min(430px, 90vw);
  padding: 30px;
  transform: scale(0.92) translateY(10px);
  transition: transform 0.3s ease;
}
.modal.show .modal-card {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.25s ease, transform 0.25s ease;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}
.modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}
.modal-title i {
  color: rgb(57, 159, 255);
}
.modal-time {
  text-align: center;
  padding: 6px 0 16px;
}
.modal-time .date {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1px;
}
.modal-time .time-text {
  margin-top: 6px;
  font-size: 2.6rem;
  font-weight: 300;
  letter-spacing: 3px;
  font-family: "Consolas", "Courier New", monospace;
}
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 4px 0 18px;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.modal-grid .m-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}
.modal-grid .m-item .k {
  color: rgba(255, 255, 255, 0.6);
}
.modal-grid .m-item .v {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  body {
    overflow: auto;
  }
  #main {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }
  .container {
    flex-direction: column;
    gap: 1.6rem;
    padding: 90px 16px 40px;
  }
  .left,
  .right {
    width: 100%;
    max-width: 520px;
  }
  .func {
    grid-template-columns: 1fr;
  }
  /* 移动端页脚允许换行，避免备案信息溢出被截断 */
  footer {
    white-space: normal;
    max-width: calc(100vw - 32px);
    line-height: 1.9;
  }
  footer .sep {
    margin: 0 6px;
  }
}
@media (max-height: 640px) and (min-width: 901px) {
  .logo .name .bg {
    font-size: 2.4rem;
  }
  .logo-img {
    width: 60px;
    height: 60px;
  }
  .desc {
    margin-top: 1rem;
  }
  .desc p {
    font-size: 1rem;
  }
  .social {
    margin-top: 1rem;
  }
  .func {
    grid-template-columns: 1fr 1fr;
  }
  .time-weather .time-text {
    font-size: 2rem;
  }
}

/* ============ 生日主题（8月31日当天自动开启，次日自动恢复为正常主题） ============ */
/* 背景暖色渐变 */
body.birthday #bg-mask {
  background: linear-gradient(180deg, rgba(255, 168, 210, 0.22) 0%, rgba(0, 0, 0, 0.5) 100%);
}

/* 顶部生日横幅 */
#birthday-banner {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 45;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 26px;
  border-radius: 40px;
  background: linear-gradient(120deg, #ff9a9e, #ff6a88 45%, #ffb347);
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 2px;
  box-shadow: 0 8px 28px rgba(255, 106, 136, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0;
  pointer-events: none;
}
body.birthday #birthday-banner {
  display: flex;
  animation: banner-in 0.8s ease 1.4s both, banner-float 3.4s ease-in-out 2.2s infinite;
}
#birthday-banner .e {
  font-size: 1.35rem;
}
#birthday-banner .txt {
  font-family: "ZCOOL XiaoWei", "PingFang SC", "Microsoft YaHei", serif;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
@keyframes banner-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes banner-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-7px); }
}

/* 站点名彩虹渐变 */
body.birthday .logo .name .bg {
  background: linear-gradient(90deg, #ff6a88, #ffd166, #2ec4b6, #c8b6ff, #ff6a88);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(255, 106, 136, 0.35);
  animation: rainbow-shift 6s linear infinite;
}
@keyframes rainbow-shift {
  to { background-position: 300% 0; }
}

/* 主题强调色 → 暖粉 */
body.birthday .links .line i,
body.birthday .links .item i,
body.birthday .modal-title i,
body.birthday .social a:hover,
body.birthday footer a:hover,
body.birthday .top-search .search-bar button:hover {
  color: #ff7ab6;
}
body.birthday .engine-option.active {
  background: rgba(255, 122, 182, 0.3);
  color: #fff;
}
body.birthday .logo-img {
  border-color: rgba(255, 200, 220, 0.6);
  box-shadow: 0 4px 18px rgba(255, 106, 136, 0.45);
}

/* 漂浮装饰层（气球 + 彩纸） */
#birthday-deco {
  position: fixed;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  display: none;
}
body.birthday #birthday-deco {
  display: block;
}
/* 气球 */
.balloon {
  position: absolute;
  bottom: -120px;
  width: var(--s, 46px);
  height: calc(var(--s, 46px) * 1.2);
  border-radius: 50% 50% 46% 46%;
  background: var(--c, #ff6a88);
  opacity: 0.92;
  animation: balloon-rise var(--d, 11s) linear var(--delay, 0s) infinite;
}
.balloon::before {
  content: "";
  position: absolute;
  top: 14%;
  left: 20%;
  width: 22%;
  height: 26%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(-24deg);
}
.balloon::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1.5px;
  height: 70px;
  background: rgba(255, 255, 255, 0.35);
}
@keyframes balloon-rise {
  from { transform: translateY(0) translateX(0) rotate(-4deg); }
  50% { transform: translateY(-55vh) translateX(18px) rotate(4deg); }
  to { transform: translateY(-116vh) translateX(-8px) rotate(-4deg); }
}
/* 彩纸 */
.confetti {
  position: absolute;
  top: -16px;
  width: var(--w, 9px);
  height: var(--h, 13px);
  background: var(--c, #ffd166);
  border-radius: 2px;
  opacity: 0.85;
  animation: confetti-fall var(--d, 6s) linear var(--delay, 0s) infinite;
}
@keyframes confetti-fall {
  to { transform: translateY(108vh) rotate(720deg); }
}
