/* ===== 粉色系个人主页 · 样式表（仿 Karina.xin 风格）===== */

body {
  background: #fff0ef;
  max-width: 1000px;
  margin: auto;
  padding: 7px;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft Yahei", sans-serif;
}

/*顶栏（磨砂玻璃）*/
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 45px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-100%);
  animation: slideDown 0.7s ease forwards;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

/*顶栏底部扇形花边*/
header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
  background-image: radial-gradient(circle 6px at 50% 0, rgba(255, 255, 255, 0.72) 99%, transparent 0);
  background-size: calc(100% / 100) 10px;
  background-repeat: repeat-x;
  z-index: 1;
}

@keyframes slideDown {
  to { transform: translateY(0); }
}

header a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  margin: 0 3px;
}

/*渐变站名*/
.title3 {
  color: #ffbaba;
  font-size: 28px;
  font-weight: bold;
}

h1.title3 {
  margin: 0;
  padding: 0;
  display: inline;
  line-height: normal;
}

h1.title3 a {
  color: #ffbaba;
  text-decoration: none;
}

/*板块（默认磨砂玻璃）*/
.block {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  padding: 10px;
  margin: 10px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/*颜色边框板块*/
.block2 {
  border: 2px solid #ffbaba;
  border-radius: 13px;
  padding: 8px;
  background: #ffffff;
}

/*全局链接*/
a {
  color: #ffa398;
  text-decoration: none;
  font-weight: bold;
}

/*矩形标签*/
.tab span {
  display: inline-block;
  margin: 2px;
  padding: 2px 4px;
  background: #ffabab;
  color: #ffffff;
  border-radius: 8px;
}
.tab a {
  text-decoration: none;
  color: #ffffff;
}

/*毛玻璃胶囊标签*/
.tab3 span {
  display: inline-block;
  margin: 4px;
  padding: 2px 8px;
  height: 28px;
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 26px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.tab3 a {
  text-decoration: none;
  color: #805959;
}

/*圆形标签（微透 + 玻璃感）*/
.tab2 span {
  display: inline-block;
  margin: 2px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 171, 171, 0.85);
  color: #ffffff;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tab2 a {
  text-decoration: none;
  color: #ffffff;
}

/*文本*/
.title {
  font-size: 22px;
  font-weight: bold;
  margin: 5px 0px;
}
.title2 {
  font-size: 16px;
  font-weight: bold;
  margin: 5px 0px;
}
.title0 {
  font-size: 26px;
  font-weight: bold;
  margin: 5px 0px;
  padding-left: 5px;
  border-left: 5px solid #ffbaba;
}

iframe {
  border-radius: 8px;
  overflow: hidden;
  border: none;
}

img {
  border-radius: 8px
}

/*注释小字*/
.comment {
  font-size: 12px;
  color: rgb(90, 90, 90);
}

/*hero文字*/
.title4 {
  color: #ffffff;
  font-size: 28px;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
  animation: float 3s ease-in-out infinite;
  will-change: transform;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

/*背景图片*/
.bg-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: -webkit-fill-available;
  z-index: -1;
}

/*毛玻璃（加强版：更透更模糊）*/
.embed-glass {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/*看板娘图片动画*/
.kanban {
  width: 100%;
  transform-origin: 50% 95%;
  animation: swing 5s ease-in-out infinite;
  transition: transform .3s;
}
.kanban:hover {
  transform: scale(1.05);
}

/*点击涟漪*/
.ripple-global {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple-global 0.5s ease-out;
  z-index: 9999;
}

@keyframes ripple-global {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/*果冻按压*/
.block:active {
  animation: jelly 0.3s;
}

@keyframes jelly {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.97, 1.03); }
  100% { transform: scale(1); }
}

/*窄屏适配（原站没有，这里补上）*/
@media (max-width: 760px) {
  main table,
  main tr,
  main td {
    display: block;
    width: 100% !important;
  }
  main iframe {
    height: 620px;
  }
  header nav a {
    font-size: 13px;
    margin: 0 2px;
  }
}
