html {
    scroll-behavior: smooth;
    user-select: none;
    transition: 0.5s cubic-bezier(0.68, -1, 0.265, 1.55);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #1D1D1E;
    color: #fff;
    /*background-image: url(https://nav.haitang000.top/static/background/login-background.png);*/
    transition: 0.5s;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    color: #212121;
    opacity: 1;
    transition: 0.5s;
    animation: FadeInUp 1s cubic-bezier(0.68, -1, 0.265, 1.55);
}

#home h1 {
    color: #ffffff;
    transition: 0.5s;
    animation: FadeInUp 1s cubic-bezier(0.68, -1, 0.265, 1.55);
}

h3 {
    transition: 0.5s;
    animation: FadeInUp 1s cubic-bezier(0.68, -1, 0.265, 1.55);
}

p {
    color: #999999;
    line-break: 0.9;
    transition: 0.5s;
}

#home p {
    color: #dddddd;
    opacity: 1;
    transition: 0.5s;
    animation: FadeInUp 1s cubic-bezier(0.68, -1, 0.265, 1.55);
}

img {
    background-color: #ebebeb;
}

#home {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 100px;
    background-image: url(https://webstatic.mihoyo.com/upload/wd-wiki/2022/11/27/82783856/8f47708b9401b87070cd72747bfb9595_3783066140524447075.png), linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9));;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
}

#home img {
    border-radius: 99999px;
    width: 11rem;
    height: 11rem;
    animation-delay: 1s;
    animation: FadeInUpImage 0.5s cubic-bezier(0.68, -1, 0.265, 1.55);
    transition: 1s cubic-bezier(0.68, -0.21, 0.265, 1.10);;
}

#home img:hover {
    rotate: 360deg;
}

.navbar {
    background-color: #ffffff10;
    backdrop-filter: blur(10px);
    overflow: hidden;
    border-radius: 999px;
    padding: 4px 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 16px;
    z-index: 999;
    animation: FadeInDownNav 1s cubic-bezier(0.68, -1, 0.265, 1.55);
    transition: 0.3s cubic-bezier(0.68, -1, 0.265, 1.55);
}

.navbar img {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    margin-right: 4px;
}
.navbar a {
    display: block;
    color: #Fff;
    text-align: center;
    padding: 8px 10px;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.68, -0.21, 0.265, 1.21);
    border-radius: 999px;
}
.navbar a:hover {
    background-color: #ffffff10;
    color: white;
    padding: 8px 32px;
}

.navbar a:active {
    background-color: #ffffff30;
    color: white;
    scale: 0.95;
}

.func {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 32px;
}

.func-item {
    display: flex;
    align-items: center;
    width: max-content;
    background-color: #b41434;
    transition: 0.3s cubic-bezier(0.68, -0.21, 0.265, 1.21);
    padding: 4px 8px;
    gap: 4px;
    border-radius: 8px;
}

.func-item:hover {
    background-color: #de0f38;
}

.func-item:active {
    background-color: #a20c2f;
    scale: 0.9;
}

.func-item p {
    color: white;
    font-size: 1.2rem;
    line-height: 0;
}

/* 新增样式 */
.about-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
  }
  
  .about-card {
    flex: 1;
    background: #2b2b2b;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
  }
  
  .about-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #b41434, #de0f38);
  }
  
  .about-gallery {
    flex: 0.8;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
    align-content: start;
  }
  
  .gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.8s cubic-bezier(0.68, -0.21, 0.265, 1.21);
    transform: translateY(20px);
    opacity: 0;
    animation: galleryAppear 0.8s var(--delay) forwards;
  }
  
  @keyframes galleryAppear {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    filter: grayscale(30%);
    transition: 0.4s;
  }
  
  .gallery-item:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
  }
  
  .hover-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(180, 20, 52, 0.9), transparent);
    color: white;
    transition: 0.4s cubic-bezier(0.68, -0.21, 0.265, 1.21);
  }
  
  .gallery-item:hover .hover-info {
    bottom: 0;
  }
  
  .signature {
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
  }
  
  .signature img {
    width: 120px;
    opacity: 0.8;
    margin: 1rem 0;
  }

  .modern-list {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border-left: 4px solid transparent;
  transition: 0.4s cubic-bezier(0.68, -0.21, 0.265, 1.21);
}

.list-item:hover {
  background: rgba(255,255,255,0.1);
  border-left-color: #b41434;
  transform: translateX(8px);
}

.icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(180, 20, 52, 0.1);
  border-radius: 50%;
  color: #b41434;
  font-size: 1.2rem;
}

.content h4 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.content p {
  color: #a3a3a3;
  margin: 0;
  font-size: 0.95rem;
}

/* 在index.css中添加以下样式 */
#blog {
    background: linear-gradient(to bottom, #1a1a1a, #2d2d2d);
    padding: 4rem 1rem;
  }
  
  .blog-container {
    column-count: 2;
    column-gap: 2rem;
    max-width: 1200px;
    padding: 0 2rem;
  }
  
  .blog-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    break-inside: avoid;
    position: relative;
    overflow: hidden;
  }
  
  .blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, 
      rgba(180,20,52,0.15) 0%,
      rgba(180,20,52,0) 50%);
    z-index: -1;
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  }
  
  .blog-card img {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    object-fit: cover;
    transition: 0.3s;
  }
  
  .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 240px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
    border-radius: 12px;
    opacity: 0;
    transition: 0.3s;
  }
  
  .has-image:hover .image-overlay {
    opacity: 1;
  }
  
  .blog-content h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
  }
  
  .blog-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 60%;
    background: #b41434;
    border-radius: 3px;
  }
  
  .blog-content p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }
  
  .blog-date {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .blog-date::before {
    content: '🕒';
    opacity: 0.6;
  }
  
  /* 新增装饰元素 */
  .decor-card {
    background: rgba(180,20,52,0.1);
    border-color: rgba(180,20,52,0.3);
    text-align: center;
    padding: 2rem;
  }
  
  .decor-line {
    width: 60%;
    height: 2px;
    background: var(--color);
    margin: 1rem auto;
    opacity: 0.3;
  }
  
  .tag-list {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
  }
  
  .tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
  }
  
  .tag.ui {
    background: rgba(180,20,52,0.3);
    color: #ff8a8a;
  }
  
  .tag.inspiration {
    background: rgba(76,175,80,0.3);
    color: #81c784;
  }
  
  /* 响应式调整 */
  @media (max-width: 768px) {
    .blog-container {
      column-count: 1;
      padding: 0 1rem;
    }
    
    .blog-card {
      margin-bottom: 1.5rem;
    }
    
    .blog-card img {
      height: 200px;
    }
  }
  
  @media (max-width: 480px) {
    .blog-content h3 {
      font-size: 1.2rem;
    }
    
    .blog-content p {
      font-size: 0.9rem;
    }
  }

/* 移动端适配 */
@media (max-width: 600px) {
  .list-item {
    padding: 1rem;
    gap: 1rem;
  }
  
  .icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .content h4 {
    font-size: 1rem;
  }
  
  .content p {
    font-size: 0.9rem;
  }
}
  
  /* 移动端适配 */
  @media (max-width: 768px) {
    .about-container {
      flex-direction: column;
    }
    
    .about-gallery {
      grid-template-columns: 1fr;
    }
    
    .gallery-item img {
      height: 200px;
    }
  }

/* 移动端适配 */
@media only screen and (max-width: 600px) {
    .about-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .about-content ul li {
        font-size: 0.9rem;
    }
}

/* 现代列表样式 */
.modern-list {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border-left: 4px solid transparent;
  transition: 0.4s cubic-bezier(0.68, -0.21, 0.265, 1.21);
}

.list-item:hover {
  background: rgba(255,255,255,0.1);
  border-left-color: #b41434;
  transform: translateX(8px);
}

.icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(180, 20, 52, 0.1);
  border-radius: 50%;
  color: #b41434;
  font-size: 1.2rem;
}

.content h4 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.content p {
  color: #a3a3a3;
  margin: 0;
  font-size: 0.95rem;
}

/* 移动端适配 */
@media (max-width: 600px) {
  .list-item {
    padding: 1rem;
    gap: 1rem;
  }
  
  .icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .content h4 {
    font-size: 1rem;
  }
  
  .content p {
    font-size: 0.9rem;
  }
}

/* 新增内容 */
.about-card {
    background-color: #2b2b2b; /* 深色背景 */
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); /* 更深的阴影 */
    max-width: 600px;
    margin: 2rem auto;
    backdrop-filter: blur(10px); /* 玻璃拟态效果 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* 微妙的边框 */
    animation: FadeInUp 0.8s cubic-bezier(0.68, -1, 0.265, 1.55);
}

.about-content h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.about-content p {
    color: #a3a3a3;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-content ul li {
    color: #d1d1d1;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    transition: 0.3s cubic-bezier(0.68, -0.21, 0.265, 1.21);
}

.about-content ul li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

.about-content ul strong {
    color: #fff;
    margin-right: 0.5rem;
}

.social-links a {
    color: #fff;
    font-size: 1.8rem;
    transition: 0.3s cubic-bezier(0.68, -0.21, 0.265, 1.21);
    padding: 0.5rem;
    border-radius: 50%;
}

.social-links a:hover {
    color: #b41434; /* 与点赞按钮同色系 */
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* 移动端适配 */
@media only screen and (max-width: 600px) {
    .about-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .about-content ul li {
        font-size: 0.9rem;
    }
}

/* 深色模式适配（保持与现有模式一致） */
@media (prefers-color-scheme: dark) {
    .about-card {
        background-color: #1d1d1e;
    }
    
    .about-content ul li {
        background: rgba(255, 255, 255, 0.03);
    }
}


@keyframes FadeInUp {
    0% {
        opacity: 0;
        scale: 0.9;
        transform: translateY(20px);
        text-shadow: 0 0 40px rgba(255, 255, 255, 1);
    }
    100% {
        opacity: 1;
        scale: 1;
        transform: translateY(0px);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0);
    }
}

@keyframes FadeInUpImage {
    0% {
        opacity: 0;
        scale: 0.9;
        transform: translateY(20px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        scale: 1;
        transform: translateY(0px);
        filter: blur(0px);
    }
}

@keyframes FadeInDownNav {
    0% {
        opacity: 0;
        scale: 0.9;
        transform: translateY(-100px);
        filter: blur(25px);
    }
    100% {
        opacity: 1;
        scale: 1;
        transform: translateY(0px);
        filter: blur(0px);
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1D1D1E;
        color: #fff;
    }
    h1 {
        color: #fff;
    }
    p {
        color: #696969;
    }
    #home {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        height: 100vh;
        gap: 100px;
        background-image: url(https://webstatic.mihoyo.com/upload/wd-wiki/2022/11/27/82783856/8f47708b9401b87070cd72747bfb9595_3783066140524447075.png), linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9));;
        background-repeat: no-repeat;
        background-size: cover;
        background-blend-mode: multiply;
    }
    #home h1 {
        color: #fff;
    }
    #home p {
        color: #696969;
    }
    .navbar {
        background-color: #ffffff10;
    }
    .navbar a {
        color: #fff;
    }
    .navbar a:hover {
        background-color: #ffffff10;
        color: white;
    }
    .navbar a:active {
        background-color: #ffffff30;
        color: white;
    }
    #cursor {
        background: white;
    }
    .author p {
        color: #a3a3a3;
    }
    .content p {
        color: #e2e2e2;
    }
    img {
        background-color: #2b2b2b;
    }
    @keyframes FadeInUp {
        0% {
            opacity: 0;
            scale: 0.9;
            transform: translateY(20px);
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }
        100% {
            opacity: 1;
            scale: 1;
            transform: translateY(0px);
            text-shadow: 0 0 10px rgba(255, 255, 255, 0);
        }
    }
}

@media only screen and (max-width: 600px) {
    #home {
        background-image: url(https://act-upload.mihoyo.com/upload/wd-wiki/2023/05/16/127729/118d75c2d48086a56206d2da307b6ac1_4673954071535591973.png), linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9));;
        gap: 16px;
        padding: 2rem;
    }
    #home h1 {
        font-size: 2.5rem;
    }
    #home p {
        font-size: 1rem;
    }
    .navbar {
        display: none;
    }
    .content {
        padding: 16px;
    }
    .content p {
        font-size: 2rem;
    }
    .author {
        padding: 16px;
    }
    #blog {
        padding: 16px;
    }

    .cards {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .card {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        border-radius: 16px;
        background-color: #00000010;
        transition: 0.2s cubic-bezier(0.68, -0.21, 0.265, 1.21);
        transition-property: background, opacity, transform, scale;
    }
    .card:hover {
        background-color: #00000005;
    }
    .card:active {
        scale: 0.9;
        background-color: #00000020;
    }
    @media (prefers-color-scheme: dark) {
    #home {
        background-image: url(https://act-upload.mihoyo.com/upload/wd-wiki/2023/05/16/127729/118d75c2d48086a56206d2da307b6ac1_4673954071535591973.png), linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9));;
    }
    .card {
        background-color: #ffffff10;
    }
    .card:hover {
        background-color: #ffffff05;
    }
    .card:active {
        background-color: #ffffff20;
    }
    }
}