* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-overflow-scrolling: touch;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-y: auto;
    padding: 20px;
}

/* 背景动画效果 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('https://images.unsplash.com/photo-1542831371-29b0f74f9713?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    filter: brightness(0.6);
    animation: backgroundAnimation 20s infinite alternate;
}

@keyframes backgroundAnimation {
    0% {
        transform: scale(1) rotate(0deg);
    }
    100% {
        transform: scale(1.05) rotate(0.5deg);
    }
}

.container {
    max-width: 800px;
    width: 100%;
    padding: 2.5rem;
    background: rgba(25, 25, 45, 0.85);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1.5s ease-out;
    margin: 40px 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.header {
    margin-bottom: 2.5rem;
    position: relative;
}

.domain {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #4cc9f0, #4361ee, #3a0ca3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.name {
    font-size: 2.2rem;
    margin: 0.5rem 0;
    color: #f8f9fa;
}

.english-name {
    font-size: 1.4rem;
    color: #adb5bd;
    margin-bottom: 1.5rem;
}

.info-card {
    background: rgba(33, 37, 41, 0.7);
    border-radius: 15px;
    padding: 1.8rem;
    margin: 1.8rem 0;
    border-left: 4px solid #4361ee;
    text-align: left;
}

.info-card h3 {
    color: #4cc9f0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card p {
    line-height: 1.7;
    color: #e9ecef;
    margin-bottom: 0.8rem;
}

.highlight {
    color: #4cc9f0;
    font-weight: 600;
}

.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 2rem 0;
    gap: 15px;
}

.stat-box {
    background: rgba(58, 12, 163, 0.3);
    border-radius: 12px;
    padding: 1.2rem;
    min-width: 160px;
    flex: 1;
    transition: transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.stat-box:hover {
    transform: translateY(-8px);
    background: rgba(58, 12, 163, 0.4);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4cc9f0;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 1rem;
    color: #adb5bd;
}

.hobbies {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.hobby {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 140px;
}

.hobby-icon {
    width: 80px;
    height: 80px;
    background: rgba(67, 97, 238, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.hobby:hover .hobby-icon {
    background: rgba(67, 97, 238, 0.4);
    transform: scale(1.1);
}

.hobby-name {
    font-weight: 600;
    color: #f8f9fa;
}

.footer {
    margin-top: 2rem;
    color: #adb5bd;
    font-size: 0.9rem;
}

.pulse {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #4cc9f0;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 201, 240, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 201, 240, 0); }
}

/* 音乐控制按钮 */
.music-controls {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.music-btn {
    background: rgba(67, 97, 238, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.music-btn:hover {
    background: rgba(67, 97, 238, 1);
    transform: scale(1.1);
}

#pauseBtn {
    display: none;
}

/* 移动端优化 */
@media (max-width: 768px) {
    body {
        padding: 10px;
        display: block;
        height: auto;
        min-height: 100vh;
    }
    
    .container {
        padding: 1.5rem;
        margin: 20px auto;
        width: 95%;
    }
    
    .domain { 
        font-size: 2.5rem; 
    }
    
    .name { 
        font-size: 1.8rem; 
    }
    
    .stats { 
        flex-direction: column; 
        gap: 10px;
    }
    
    .stat-box {
        min-width: 100%;
    }
    
    .info-card {
        padding: 1.2rem;
    }
    
    .hobby-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .hobby-name {
        font-size: 0.9rem;
    }
    
    .hobbies {
        gap: 15px;
    }
    
    .music-controls {
        top: 10px;
        left: 10px;
    }
    
    .music-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .domain { 
        font-size: 2rem; 
    }
    
    .name { 
        font-size: 1.5rem; 
    }
    
    .english-name { 
        font-size: 1.1rem; 
    }
    
    .hobby {
        max-width: 100px;
    }
    
    .info-card h3 {
        font-size: 1.2rem;
    }
    
    .info-card p {
        font-size: 0.9rem;
    }
    
    .footer {
        font-size: 0.8rem;
    }
}

/* 触摸优化 */
.stat-box,
.hobby,
.info-card {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(25, 25, 45, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #4361ee;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4cc9f0;
}
/* 添加在文件末尾 */
/* ============== 页面跳转动画 ============== */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transition-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
  transform: translateY(100%);
  animation: slideIn 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.transition-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  opacity: 0;
  animation: fadeIn 0.6s 0.3s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.transition-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.transition-content .loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes slideIn {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 添加在body样式中 */
body {
  min-height: 100vh;
  color: var(--text-color);
  background-image: url('https://tse1-mm.cn.bing.net/th/id/OIP-C.0ljqwoYBob70QUmzDohTqgAAAA?dpr=2.7&pid=ImgDetMain'); 
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat; 
  overflow-x: hidden; 
  padding: 20px; 
  transition: background 0.5s ease, color 0.5s ease; 
  position: relative;
  /* 添加以下两行 */
  opacity: 0;
  animation: fadeInBody 0.8s ease forwards;
}

@keyframes fadeInBody {
  to {
    opacity: 1;
  }
}