body {
  margin: 0;
  background: #000000;
  color: #ffffff;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: black;
}

@keyframes twinkle {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

/*顶栏*/
header {
  position: fixed;
  background: rgb(0,0,0,0.8);
  height: 52px;
  width: 100vw;
  top: 0;
  left: 0;
  z-index: 2;

  display: flex;
  justify-content: center;
  align-items: center;

  box-shadow: 0 5px 10px rgba(0,0,0,0.1);

  transform: translateY(-100%);
  animation: slideDown 0.7s ease forwards;
}

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

/*链接*/
header a{
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  margin: 0 3px;
}

.title3 {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
}

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

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

/*底栏*/
footer {
  position: fixed;
  background: rgb(255,255,255,0.8);
  width: 100vw;
  bottom: 0px;
  left: 0px;
  z-index: 2;
}

/*板块*/
.block {
  border-radius: 12px;
  border: 1px solid #ddd;
  background-color: rgb(0,0,0,0.8);
  padding: 10px;
  margin: 10px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/*全局链接*/
a {
  color: #ffffff;
  text-decoration: none;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.tab3 span {
  display: inline-block;
  margin: 2px;
  padding: 2px 8px;
  height: 28px;
  background: rgb(256,256,256);
  text-align: center;
  line-height: 26px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.tab3 a {
  text-decoration: none;
  color: #ffabab;
  font-weight: bold;
}

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


/*注释*/
.comment {
  font-size: 12px;
  color: #ffffff;
}

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

/*横屏提示*/
.orientation-mask {
  position: fixed;
  inset: 0;
  background: rgb(255,255,255,0.95);
  color: #ffbaba;
  font-weight: bold;
  z-index: 9999;

  display: none;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.orientation-tip {
  font-size: 52px;
  padding: 24px;
  line-height: 1.6;
}

@media screen and (orientation: portrait) {
  .orientation-mask {
    display: flex;
  }

  body {
    overflow: hidden;
  }
}

#hero-line {
  transition: opacity 0.8s;
}

/*禁止自动缩放字体*/
html {
  -webkit-text-size-adjust: 100%; 
}

/*看板娘-容器控制位置*/
.kanban-box{
  position: fixed;
  right: 10px;
  bottom: 0;
  width: 250px;
  z-index: 999;
}

/*图片动画*/
.kanban{
  width:100%;
  transform-origin:50% 95%;
  animation:swing 5s ease-in-out infinite;
  transition:transform .3s;
}

/*悬停放大*/
.kanban:hover{
  transform:scale(1.05);
}

/*收起*/
.kanban-box.hide{
  transform:translateX(100px);
}


/*点击动画*/
.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;
  }
}

/*板块上浮动画*/
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/*果冻板块*/
.card:active {
  animation: jelly 0.3s;
}

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