/* 分割线样式 */
.divider {
    width: 80%;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    margin: 15px auto;
    border-radius: 1px;
    opacity: 0.7;
}

/* 打字机效果样式 */
.typing-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.typing-text {
    display: inline-block;
    min-height: 1.2em;
}

.typing-cursor {
    color: #007bff;
    animation: blink 1s infinite;
    font-weight: bold;
    margin-left: 2px;
}

/* 光标闪烁动画 */
@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}

/* 按钮样式 */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 5px;
}

button:hover {
    background-color: #0056b3;
}

button:active {
    background-color: #004085;
    transform: scale(0.98);
}

.primary-btn {
    background-color: #0069d9;
    font-weight: bold;
}

.primary-btn:hover {
    background-color: #004085;
}

button:disabled {
    background-color: #6c757d;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

/* 链接样式按钮 */
.link-btn {
    padding: 10px 10px;
    border: none;
    background-color: transparent;
    color: #007bff;
    text-decoration: underline;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
    margin: 5px;
    display: inline-block;
    margin-top: auto;
}

.link-btn:hover {
    color: #0056b3;
}

/* 链接按钮容器样式 */
.links-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

/* Logo容器样式 */
.logo-container {
    position: absolute;
    top: 50px;
    left: 50px;
    z-index: 10;
}

/* Logo模糊淡入动画 */
@keyframes logoBlurFadeIn {
    0% {
        filter: blur(20px) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        opacity: 0;
    }
    100% {
        filter: blur(0) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        opacity: 1;
    }
}

/* Logo图片样式 */
.logo {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    opacity: 0;
    filter: blur(20px) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: logoBlurFadeIn 2s ease-out forwards;
}

/* 全局页面样式 */
body {
    margin: 0;
    padding: 0;
    background-image: url("images/bg2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

h1 {
    text-align: center;
    color: black;
}

h2 {
    text-align: center;
    color: black;
}

/* 段落文本样式 */
p {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin-top: auto;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* 内容包装器样式 */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

/* 音乐播放器样式 - 右下角可伸缩播放器 */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.music-player.collapsed {
    width: 60px;
    height: 60px;
}

.music-player.expanded {
    width: 300px;
    height: 200px;
}

/* 播放器切换按钮 */
.player-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1001;
}

.player-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.toggle-icon {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

/* 播放器内容区域 */
.player-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.music-player.expanded .player-content {
    opacity: 1;
    transform: translateX(0);
}

/* 播放器头部 */
.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.player-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

/* 关闭按钮 */
.close-player {
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.close-player:hover {
    transform: scale(1.2);
}

/* 播放器主体 */
.player-body {
    padding: 15px;
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 曲目信息 */
.track-info {
    text-align: center;
    margin-bottom: 15px;
}

.track-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.track-artist {
    font-size: 12px;
    color: #666;
}

/* 播放控制按钮 */
.player-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.control-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #667eea;
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 50%;
}

.control-btn:hover {
    color: #764ba2;
    transform: scale(1.1);
    background: rgba(102, 126, 234, 0.1);
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress {
    width: 30%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 音量控制 */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-icon {
    font-size: 14px;
    color: #666;
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* 主要内容容器样式 */
.box1 {
    margin: 0 auto;
    padding: 0;
    width: 1000px;
    height: 450px;
    background-color: rgba(240, 240, 240, 0.7);
    border: 1px solid #ccc;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: 40px;
    padding-bottom: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(100px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 1);
    animation: slideUpFadeIn 1s ease-out 1s forwards;
}

/* 从下往上淡入动画 */
@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
