/* 全局样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 10px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(1rem);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2.4rem;
    font-weight: bold;
    color: rgb(114, 129, 241);
    gap: 1rem;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgb(114, 129, 241);
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(114, 129, 241, 0.3);
}

.logo-img:hover {
    border-color: rgb(90, 105, 220);
    box-shadow: 0 4px 15px rgba(114, 129, 241, 0.5);
    transform: rotate(360deg);
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-text i {
    font-size: 2.2rem;
    transition: all 0.3s ease;
}

.logo:hover .logo-text i {
    color: rgb(90, 105, 220);
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 1.6rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: rgb(114, 129, 241);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgb(114, 129, 241);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 用户认证区域样式 */
.user-auth {
    display: flex;
    align-items: center;
}

.login-btn a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 2.5rem;
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(114, 129, 241, 0.3);
}

.login-btn a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(114, 129, 241, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.user-menu {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(114, 129, 241, 0.3);
}

.user-avatar:hover {
    background: rgba(114, 129, 241, 0.1);
    transform: translateY(-1px);
}

.avatar-circle {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
}

.user-avatar span {
    font-size: 1.4rem;
    font-weight: 500;
    color: #333;
    max-width: 8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-avatar i {
    font-size: 1.2rem;
    color: #666;
    transition: transform 0.3s ease;
}

.user-menu.active .user-avatar i {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 20rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    font-size: 1.4rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(114, 129, 241, 0.1);
    color: rgb(114, 129, 241);
}

.dropdown-item:first-child {
    border-radius: 1rem 1rem 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 1rem 1rem;
}

.dropdown-item i {
    font-size: 1.6rem;
    width: 1.6rem;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0.5rem 1rem;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 500px;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    border-bottom: 1px solid #eee;
    border-radius: 1.5rem 1.5rem 0 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 2.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.modal-body {
    padding: 3rem;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-info .avatar {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
}

.user-details p {
    margin: 1rem 0;
    font-size: 1.6rem;
    color: #333;
}

.user-details strong {
    color: rgb(114, 129, 241);
    font-weight: 600;
}

.modal-footer {
    padding: 2rem 3rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    border-radius: 0 0 1.5rem 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 天气滚动公告栏 */
.weather-notice-bar {
    position: fixed;
    top: 70px; /* 导航栏高度后 */
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    z-index: 999;
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
}

.notice-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 40px;
}

.notice-icon {
    font-size: 1.8rem;
    color: #ffd700;
    animation: bounce 2s infinite;
}

.notice-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
    line-height: 24px;
}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    animation: scrollText 30s linear infinite;
    font-size: 1.4rem;
    font-weight: 500;
}

.loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.notice-refresh {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.notice-refresh:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.notice-refresh i {
    font-size: 1.4rem;
    color: white;
    transition: transform 0.3s ease;
}

.notice-refresh:hover i {
    transform: rotate(180deg);
}

/* 滚动动画 */
@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 图标跳跃动画 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 主页轮播图区域 */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.wallpaper-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    padding: 4rem;
    border-radius: 2rem;
    backdrop-filter: blur(1rem);
}

.hero-content h1 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hitokoto-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1rem);
    padding: 2rem;
    border-radius: 1.5rem;
    margin: 3rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hitokoto-content {
    flex: 1;
}

#hitokoto {
    margin: 0 0 1rem 0;
}

#hitokoto_text {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    line-height: 1.6;
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#hitokoto_text:hover {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hitokoto-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hitokoto-from,
.hitokoto-author {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.hitokoto-from::before {
    content: "📚 ";
    margin-right: 0.3rem;
}

.hitokoto-author::before {
    content: "✍️ ";
    margin-right: 0.3rem;
}

.hitokoto-from:hover,
.hitokoto-author:hover {
    opacity: 1;
    color: white;
}

.refresh-hitokoto {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(0.5rem);
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-hitokoto:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

.cta-button {
    padding: 1.5rem 3rem;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 3;
}

.prev-btn {
    left: 3rem;
}

.next-btn {
    right: 3rem;
}

.prev-btn, .next-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(1rem);
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: white;
}

/* 关于我区域 */
.about-section {
    padding: 10rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.about-section h2 {
    text-align: center;
    font-size: 3.6rem;
    margin-bottom: 5rem;
    color: rgb(114, 129, 241);
}

.about-content {
    display: grid;
    gap: 5rem;
}

.intro-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: white;
    padding: 4rem;
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgb(114, 129, 241);
}

.intro-text h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: rgb(114, 129, 241);
}

.intro-text p {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #666;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.8rem 1.6rem;
    border-radius: 2rem;
    font-size: 1.4rem;
    font-weight: 500;
}

.contact-form {
    background: white;
    padding: 4rem;
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h4 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: rgb(114, 129, 241);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid #eee;
    border-radius: 1rem;
    font-size: 1.6rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgb(114, 129, 241);
}

.contact-form button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 3rem;
    border: none;
    border-radius: 1rem;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 工具区域 */
.tools-section {
    padding: 10rem 0;
    background: white;
}

.tools-section h2 {
    text-align: center;
    font-size: 3.6rem;
    margin-bottom: 5rem;
    color: rgb(114, 129, 241);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.tool-card {
    background: white;
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-10px);
    border-color: rgb(114, 129, 241);
}

.tool-card i {
    font-size: 4rem;
    color: rgb(114, 129, 241);
    margin-bottom: 2rem;
}

.tool-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.tool-card p {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 2rem;
}

.tool-card a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.tool-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 音乐播放器区域 */
.music-section {
    padding: 10rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.music-section h2 {
    text-align: center;
    font-size: 3.6rem;
    margin-bottom: 5rem;
    color: white;
}

.music-player {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.music-player .player-card {
    display: flex; /* 确保子元素可以并排 */
    align-items: center; /* 垂直居中对齐 */
    gap: 20px; /* 在专辑封面和播放器信息之间添加一些间距 */
}

.player-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1rem);
    padding: 3rem;
    border-radius: 2rem;
    display: flex;
    gap: 3rem;
}

/* 专辑封面容器 */
.album-art-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.album-art-wrapper {
    position: relative; /* 用于定位canvas */
    width: 250px; /* 与canvas和专辑图片宽度一致 */
    height: 250px; /* 与canvas和专辑图片高度一致 */
    display: flex;
    justify-content: center;
    align-items: center;
}

#circularVisualizer {
    position: absolute; /* 绝对定位，使其可以与专辑封面重叠 */
    top: 0;
    left: 0;
    width: 250px;
    height: 250px;
    z-index: 1; /* 确保canvas在专辑图片下方，如果需要粒子在图片上，则调整z-index */
}

.album-art {
    position: relative; /* 确保z-index生效 */
    width: 200px; /* 调整专辑封面大小以适应环形可视化工具 */
    height: 200px; /* 调整专辑封面大小以适应环形可视化工具 */
    border-radius: 50%; /* 使专辑封面成为圆形 */
    z-index: 2; /* 确保专辑图片在canvas上方 */
}

.music-player .album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* 确保图片也是圆形的 */
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3; /* 确保播放按钮在最上面 */
}

.play-btn:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-btn i {
    font-size: 2rem;
    color: #333;
}

.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.player-info h3 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.player-info p {
    font-size: 1.6rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* 音乐可视化器样式 */
.visualizer-container {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#visualizer {
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin-bottom: 1rem;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: white;
    border-radius: 3px;
    width: 30%;
    transition: width 0.1s ease;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    opacity: 0.8;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.player-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.play-pause {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#playModeBtn {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 1rem;
    font-size: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#playModeBtn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

#playModeBtn i {
    margin-right: 0.5rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.volume-control input {
    width: 100px;
}

.playlist {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1rem);
    padding: 3rem;
    border-radius: 2rem;
}

.playlist h4 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.playlist ul {
    list-style: none;
}

.playlist li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.playlist li.active {
    background: rgba(255, 255, 255, 0.2);
}

.playlist li i {
    margin-right: 1rem;
}

.playlist .duration {
    opacity: 0.7;
    font-size: 1.4rem;
}

/* 歌词显示区域 */
.lyrics-container {
    max-width: 1000px;
    margin: 4rem auto 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1rem);
    padding: 3rem;
    border-radius: 2rem;
}

.lyrics-container h3 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

.lyrics-display {
    max-height: 400px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.lyrics-line {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 0.5rem;
    padding-left: 1rem;
}

.lyrics-line:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lyrics-line.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
    transform: scale(1.02);
}

.no-lyrics {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    padding: 2rem;
}

.lyrics-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.lyrics-controls button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lyrics-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.lyrics-hidden {
    display: none;
}

/* 自定义滚动条 */
.lyrics-display::-webkit-scrollbar {
    width: 8px;
}

.lyrics-display::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.lyrics-display::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.lyrics-display::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 游戏区域 */
.game-section {
    padding: 10rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.game-section h2 {
    text-align: center;
    font-size: 3.6rem;
    margin-bottom: 5rem;
    color: rgb(114, 129, 241);
}

.game-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 4rem;
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.game-info {
    display: flex;
    gap: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: rgb(114, 129, 241);
}

.difficulty-buttons {
    display: flex;
    gap: 1rem;
}

.difficulty-buttons button {
    padding: 1rem 2rem;
    border: 2px solid rgb(114, 129, 241);
    background: white;
    color: rgb(114, 129, 241);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.difficulty-buttons button.active,
.difficulty-buttons button:hover {
    background: rgb(114, 129, 241);
    color: white;
}

.reset-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.game-board {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 2px;
    background: #ccc;
    padding: 2px;
    border-radius: 1rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.cell {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cell:hover {
    background: #e0e0e0;
}

.cell.revealed {
    background: #fff;
    cursor: default;
}

.cell.mine {
    background: #ff4757;
    color: white;
}

.cell.flagged {
    background: #ffa502;
    color: white;
}

.cell.number-1 { color: #0097e6; }
.cell.number-2 { color: #8c7ae6; }
.cell.number-3 { color: #e1b12c; }
.cell.number-4 { color: #40739e; }
.cell.number-5 { color: #c23616; }
.cell.number-6 { color: #00d2d3; }
.cell.number-7 { color: #833471; }
.cell.number-8 { color: #2c2c54; }

.game-status {
    text-align: center;
}

#gameMessage {
    font-size: 1.8rem;
    font-weight: bold;
    color: rgb(114, 129, 241);
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: rgb(114, 129, 241);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: rgb(114, 129, 241);
}

.footer-section i {
    margin-right: 1rem;
    color: rgb(114, 129, 241);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
    font-size: 1.4rem;
}

/* 消息提示动画 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 音乐播放器响应式设计 */
@media (max-width: 768px) {
    .music-player {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .player-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .album-art {
        width: 150px;
        height: 150px;
    }
    
    .lyrics-container {
        margin: 2rem auto 0 auto;
        padding: 2rem;
    }
    
    .lyrics-display {
        max-height: 250px;
    }
    
    .lyrics-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .lyrics-controls button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(1rem);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* 天气公告栏响应式 */
    .weather-notice-bar {
        top: 60px; /* 移动端导航栏较矮 */
        padding: 6px 0;
    }

    .notice-container {
        padding: 0 1rem;
        height: 36px;
    }

    .notice-icon {
        font-size: 1.6rem;
    }

    .scrolling-text {
        font-size: 1.2rem;
        animation: scrollText 25s linear infinite; /* 移动端滚动稍快一些 */
    }

    .notice-refresh {
        padding: 6px;
    }

    .notice-refresh i {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }

    .hero-content p {
        font-size: 1.6rem;
    }    .hero-content {
        padding: 2rem;
    }    .hitokoto-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .hitokoto-content {
        width: 100%;
        text-align: center;
    }

    #hitokoto_text {
        font-size: 1.6rem;
        text-align: center;
    }

    .hitokoto-meta {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .refresh-hitokoto {
        margin-top: 1rem;
    }

    .intro-card {
        flex-direction: column;
        text-align: center;
    }

    .music-player {
        grid-template-columns: 1fr;
    }

    .player-card {
        flex-direction: column;
        text-align: center;
    }

    .game-controls {
        flex-direction: column;
        align-items: center;
    }

    .game-board {
        grid-template-columns: repeat(9, 1fr);
        max-width: 300px;
    }

    .cell {
        width: 30px;
        height: 30px;
        font-size: 1.4rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 8px;
    }

    .container {
        padding: 0 1rem;
    }

    /* 小屏幕天气公告栏 */
    .weather-notice-bar {
        top: 55px; /* 小屏幕导航栏更矮 */
        padding: 4px 0;
    }

    .notice-container {
        padding: 0 0.5rem;
        height: 32px;
        gap: 0.5rem;
    }

    .notice-icon {
        font-size: 1.4rem;
    }

    .scrolling-text {
        font-size: 1.1rem;
        animation: scrollText 20s linear infinite; /* 小屏幕滚动更快 */
    }

    .notice-refresh {
        padding: 4px;
    }

    .notice-refresh i {
        font-size: 1.1rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }    .about-section,
    .tools-section,
    .music-section,
    .game-section {
        padding: 5rem 0;
    }    .hitokoto-container {
        margin: 1.5rem 0;
        padding: 1rem;
    }

    .hitokoto-content {
        width: 100%;
    }

    #hitokoto_text {
        font-size: 1.4rem;
    }

    .hitokoto-meta {
        gap: 0.3rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .hitokoto-from,
    .hitokoto-author {
        font-size: 1.1rem;
    }
}

/* 后台播放提示样式 */
.background-play-tip {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    animation: slideInRight 0.5s ease;
}

.tip-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-width: 300px;
    font-size: 1.4rem;
    line-height: 1.4;
}

.tip-content i {
    font-size: 1.8rem;
    color: #ffd700;
    animation: pulse 2s infinite;
}

.tip-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.6rem;
    margin-left: auto;
    transition: all 0.3s ease;
}

.tip-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 后台播放提示动画 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* 后台播放提示响应式设计 */
@media (max-width: 768px) {
    .background-play-tip {
        top: 10px;
        right: 10px;
        left: 10px;
        right: 10px;
    }
    
    .tip-content {
        max-width: none;
        font-size: 1.3rem;
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .tip-content {
        font-size: 1.2rem;
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .tip-close {
        position: absolute;
        top: 5px;
        right: 5px;
        margin: 0;
    }
}
