* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: auto;
    position: relative;
    padding: 20px 0;
}

.cherry-blossom-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.cherry-blossom {
    position: absolute;
    background-color: #ffc0cb;
    border-radius: 50%;
    opacity: 0.7;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

.card-container {
    width: 90%;
    max-width: 900px;
    height: 500px;
    min-height: 500px;
    z-index: 2;
}

.card {
    width: 100%;
    height: 100%;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.left-section {
    width: 40%;
    position: relative;
    overflow: hidden;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-select: none; /* Safari 浏览器兼容 */
    -moz-user-select: none; /* Firefox 浏览器兼容 */
}

.name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    user-select: none;
    -webkit-user-select: none; /* Safari 浏览器兼容 */
    -moz-user-select: none; /* Firefox 浏览器兼容 */
}

.name-overlay h1 {
    color: white;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    user-select: text;
    -webkit-user-select: text; /* Safari 浏览器兼容 */
    -moz-user-select: text; /* Firefox 浏览器兼容 */
}

.right-section {
    width: 60%;
    padding: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.signature {
    margin-bottom: 30px;
}

.signature p {
    color: white;
    font-size: 1.2rem;
    line-height: 1.6;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tabs {
    display: flex;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.tab {
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    user-select: none;
    -webkit-user-select: none; /* Safari 浏览器兼容 */
    -moz-user-select: none; /* Firefox 浏览器兼容 */
}

.tab:hover {
    color: #ffc0cb;
}

.tab.active {
    color: #ffc0cb;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.tabs::after {
    content: '';
    position: absolute;
    bottom: -1px;
    height: 2px;
    background-color: #ffc0cb;
    transition: all 0.3s ease;
    left: 0;
    width: 0;
}

.links {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.links.active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .links.active {
        grid-template-columns: 1fr;
    }
}

.link-item {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

/* .link-item:hover {
    transform: translateY(-5px);
} */

.link-icon {
    margin-right: 10px;
    font-size: 1.5rem;
}

.link-item a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.link-item a:hover {
    color: #ffc0cb;
}

.link-combined {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.link-text {
    color: white;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-right: 5px;
}

.link-item-inline {
    color: white;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.link-item-inline:hover {
    color: #ffc0cb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding-top: 40px;
    }
    
    .card-container {
        height: auto;
        min-height: auto;
    }
    
    .card {
        flex-direction: column;
        height: auto;
    }
    
    .left-section, .right-section {
        width: 100%;
    }
    
    .left-section {
        height: 300px;
    }
    
    .links {
        grid-template-columns: 1fr;
    }
    
    .signature p {
        font-size: 1rem;
    }
    
    .link-item a, .link-text, .link-item-inline {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .left-section {
        height: 250px;
    }
    
    .right-section {
        padding: 25px;
    }
    
    .name-overlay h1 {
        font-size: 1.6rem;
    }
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  margin-left: 15px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 0.9rem;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: fadeInSide 0.3s forwards;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes fadeInSide {
  from {
    opacity: 0;
    transform: translateX(-10px) translateY(-50%);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
  }
}


@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('k3kXo84MPvpLmixcA63oeALRLoKI2w328g.woff2') format('woff2');
}