* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 1s ease;
}

/* 音乐播放器样式 */
.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.music-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    padding: 0;
    overflow: hidden;
}

.mute-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mute-toggle i {
    font-size: 20px;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.mute-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mute-toggle.muted i {
    color: #e74c3c;
}

.music-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.music-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.music-toggle.playing {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 头像和个人信息样式 */
.profile {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.avatar:hover {
    transform: rotate(360deg) scale(1.05);
}

.profile h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.profile h2 {
    font-size: 1.5rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.profile .subtitle {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-bottom: 1rem;
    font-style: italic;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.profile .subtitle:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* 每日一句样式 */
.daily-quote {
    text-align: center;
    margin: 2rem 0;
    font-style: italic;
    color: #2c3e50;
    font-size: 1.1rem;
    animation: slideIn 0.5s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.daily-quote p {
    margin: 0;
    padding: 1.2rem 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    line-height: 1.6;
    max-width: 100%;
    overflow-wrap: break-word;
}

.daily-quote p:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

/* 木鱼样式 */
.muyu-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.muyu-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.muyu-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.muyu-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.muyu-button:active {
    transform: scale(0.95);
}

/* 木鱼功德文字样式 */
.merit-text {
    position: absolute;
    font-size: 14px;
    color: #27ae60;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    left: 50px;
    top: 10px;
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.merit-text.show {
    animation: meritShow 1s ease-out forwards;
}

@keyframes meritShow {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) translateX(10px);
    }
}

/* 气泡悬浮窗样式 */
.nav-button::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
}

.nav-button::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 2px;
    transform-origin: center center;
    rotate: 45deg;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 99;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
}

/* 导航按钮样式更新 */
.navigation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    text-decoration: none;
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.nav-button::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
}

.nav-button::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 2px;
    transform-origin: center center;
    rotate: 45deg;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 99;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-button:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.nav-button:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1) rotate(45deg);
}

.nav-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1);
}

.nav-button i {
    font-size: 24px;
    transition: all 0.3s ease;
}

.nav-button:hover i {
    transform: scale(1.1);
}

.zbsx-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* 文章页面样式 */
.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-height: 60px;
    height: auto;
    backdrop-filter: blur(10px);
}

.articles-header .profile {
    padding: 0;
    margin: 0;
    box-shadow: none;
    background: none;
    min-width: 80px;
    flex-shrink: 0;
}

.articles-header .profile .nav-button {
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.articles-header .profile .nav-button i {
    font-size: 1.2rem;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.articles-header .profile .nav-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.articles-header .profile .nav-button:hover i {
    transform: scale(1.1);
}

.articles-header .profile .nav-button::before {
    content: attr(title);
    position: absolute;
    right: calc(100% + 15px);
    top: -12px;
    transform: translateY(-100%) scale(0.8);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-weight: normal;
    font-style: normal;
    letter-spacing: 0.5px;
    min-width: max-content;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.articles-header .profile .nav-button::after {
    content: '';
    position: absolute;
    right: calc(100% + 7px);
    top: -12px;
    transform: translateY(-100%) scale(0.8) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 2px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 99;
    box-shadow: 1px -1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-right: none;
    border-bottom: none;
}

.articles-header .profile .nav-button:hover::before {
    opacity: 1;
    transform: translateY(-100%) scale(1);
}

.articles-header .profile .nav-button:hover::after {
    opacity: 1;
    transform: translateY(-100%) scale(1) rotate(45deg);
}

.articles-header .home-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.articles-header .home-link:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.daily-quote {
    flex: 1;
    text-align: center;
    margin: 0 2rem;
    font-style: italic;
    color: #2c3e50;
    font-size: 1.1rem;
    animation: slideIn 0.5s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.daily-quote p {
    margin: 0;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    line-height: 1.6;
    max-width: 100%;
    overflow-wrap: break-word;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.daily-quote p:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.corner-avatar {
    margin-left: 1rem;
    min-width: 40px;
    flex-shrink: 0;
}

.corner-avatar .avatar {
    width: 40px;
    height: 40px;
    margin: 0;
}

.articles-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.articles-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.articles-container h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.home-link {
    text-decoration: none;
    color: inherit;
}

.no-articles {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1rem;
    padding: 2rem;
    font-style: italic;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin: 1rem 0;
}

/* 美化效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 运行时间样式 */
.runtime-container {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    animation: fadeIn 1s ease;
}

.runtime-text {
    font-size: 0.9rem;
    color: #666;
    font-family: 'Microsoft YaHei', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.runtime-text:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

/* 响应式设计 */
/* 大屏幕设备 (1200px 以上) */
@media (min-width: 1201px) {
    .container {
        max-width: 1200px;
        padding: 2rem;
    }

    .profile {
        padding: 2.5rem;
    }

    .avatar {
        width: 150px;
        height: 150px;
    }

    .navigation {
        gap: 2rem;
    }

    .nav-button {
        width: 60px;
        height: 60px;
    }
}

/* 中等屏幕设备 (992px - 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 1.5rem;
    }

    .profile {
        padding: 2rem;
    }

    .avatar {
        width: 140px;
        height: 140px;
    }

    .navigation {
        gap: 1.8rem;
    }

    .nav-button {
        width: 55px;
        height: 55px;
    }
}

/* 平板设备 (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 1.2rem;
    }

    .profile {
        padding: 1.8rem;
    }

    .avatar {
        width: 130px;
        height: 130px;
    }

    .profile h1 {
        font-size: 1.8rem;
    }

    .profile h2 {
        font-size: 1.3rem;
    }

    .navigation {
        gap: 1.5rem;
    }

    .nav-button {
        width: 50px;
        height: 50px;
    }

    .daily-quote p {
        font-size: 1rem;
        padding: 1rem;
    }
}

/* 大型手机设备 (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 1rem;
    }

    .profile {
        padding: 1.5rem;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

    .profile h1 {
        font-size: 1.6rem;
    }

    .profile h2 {
        font-size: 1.2rem;
    }

    .profile .subtitle {
        font-size: 0.85rem;
    }

    .navigation {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-button {
        width: 45px;
        height: 45px;
    }

    .daily-quote p {
        font-size: 0.95rem;
        padding: 0.8rem;
    }

    .articles-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        padding: 1rem;
    }

    .articles-header .daily-quote {
        margin: 0.5rem 0;
    }
}

/* 小型手机设备 (575px 以下) */
@media (max-width: 575px) {
    .container {
        padding: 0.8rem;
    }

    .profile {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .profile h1 {
        font-size: 1.4rem;
    }

    .profile h2 {
        font-size: 1.1rem;
    }

    .profile .subtitle {
        font-size: 0.8rem;
    }

    .navigation {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-button {
        width: 40px;
        height: 40px;
    }

    .nav-button i {
        font-size: 18px;
    }

    .daily-quote {
        margin: 1rem 0;
    }

    .daily-quote p {
        font-size: 0.9rem;
        padding: 0.8rem;
        line-height: 1.4;
    }

    .articles-header {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        padding: 0.8rem;
        margin-bottom: 1rem;
    }

    .articles-header .daily-quote {
        margin: 0.5rem 0;
        width: 100%;
    }

    .articles-header .profile {
        margin: 0;
    }

    .corner-avatar .avatar {
        width: 35px;
        height: 35px;
    }

    /* 调整音乐播放器和木鱼位置 */
    .music-player {
        top: 10px;
        right: 10px;
        gap: 8px;
    }

    .music-toggle,
    .mute-toggle {
        width: 35px;
        height: 35px;
    }

    .muyu-container {
        top: 10px;
        left: 10px;
    }

    .muyu-button {
        width: 35px;
        height: 35px;
    }

    .merit-text {
        font-size: 12px;
        left: 40px;
    }

    /* 运行时间文字调整 */
    .runtime-text {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    /* 气泡提示调整 */
    .nav-button::before {
        font-size: 12px;
        padding: 6px 12px;
        bottom: calc(100% + 10px);
    }

    .nav-button::after {
        bottom: calc(100% + 5px);
        width: 8px;
        height: 8px;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 0.8rem;
    }

    .profile {
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 1.5rem;
        text-align: left;
    }

    .avatar {
        margin: 0;
        width: 80px;
        height: 80px;
    }

    .profile-text {
        flex: 1;
    }

    .navigation {
        margin-top: 1rem;
    }

    .daily-quote {
        margin: 1rem 0;
    }

    .articles-header {
        flex-direction: row;
        align-items: center;
        padding: 0.8rem;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d3436 100%);
        color: #ffffff;
    }

    .profile,
    .daily-quote p,
    .nav-button,
    .music-toggle,
    .mute-toggle,
    .muyu-button,
    .articles-header,
    .articles-container,
    .runtime-text {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

    .profile h1,
    .profile h2 {
        color: #ffffff;
    }

    .profile .subtitle {
        color: #cccccc;
    }

    .daily-quote p {
        color: #cccccc;
        text-shadow: none;
    }

    .nav-button i {
        color: #ffffff;
    }

    .mute-toggle i {
        color: #e0e0e0;
    }

    .mute-toggle.muted i {
        color: #ff6b6b;
    }

    .articles-header h2 {
        color: #ffffff;
        text-shadow: 0 0 2px rgba(255, 255, 255, 0.8),
                     0 0 4px rgba(255, 255, 255, 0.6),
                     0 0 8px rgba(179, 229, 252, 0.8);
        font-weight: 700;
        letter-spacing: 1.5px;
    }

    .nav-button::before {
        background: rgba(0, 0, 0, 0.8);
        color: #ffffff;
        border-color: #333;
    }

    .nav-button::after {
        background: #333;
    }

    .merit-text {
        background: rgba(0, 0, 0, 0.8);
        color: #2ecc71;
    }

    .runtime-text {
        color: #cccccc;
    }

    .articles-container h2 {
        color: #ffffff;
        text-shadow: 0 0 2px rgba(255, 255, 255, 1);
        font-weight: 900;
        letter-spacing: 3px;
        font-size: 1.3em;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    body {
        background: #ffffff;
    }

    .profile,
    .daily-quote p,
    .nav-button,
    .music-toggle,
    .mute-toggle,
    .muyu-button,
    .articles-header,
    .articles-container,
    .runtime-text {
        background: #ffffff;
        box-shadow: 0 0 0 2px #000000;
    }

    .profile h1,
    .profile h2,
    .daily-quote p,
    .nav-button i,
    .runtime-text {
        color: #000000;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .music-toggle.playing {
        animation: none !important;
    }

    .avatar:hover {
        transform: none !important;
    }

    .nav-button:hover {
        transform: none !important;
    }
}

/* 响应式设计 - 新增多端适配 */
/* 大屏幕设备 (1200px 以上) */
@media (min-width: 1201px) {
    .container {
        max-width: 1200px;
        padding: 2rem;
    }
}

/* 中等屏幕设备 (992px - 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 1.5rem;
    }
}

/* 平板设备 (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 1.2rem;
    }
}

/* 大型手机设备 (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 1rem;
    }
}

/* 小型手机设备 (575px 以下) */
@media (max-width: 575px) {
    .container {
        padding: 0.8rem;
    }

    .profile {
        padding: 1.2rem;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .profile h1 {
        font-size: 1.4rem;
    }

    .profile h2 {
        font-size: 1.1rem;
    }

    .profile .subtitle {
        font-size: 0.8rem;
    }

    .navigation {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-button {
        width: 40px;
        height: 40px;
    }

    .music-player {
        top: 10px;
        right: 10px;
        gap: 8px;
    }

    .music-toggle,
    .mute-toggle {
        width: 35px;
        height: 35px;
    }

    .muyu-container {
        top: 10px;
        left: 10px;
    }

    .muyu-button {
        width: 35px;
        height: 35px;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 0.8rem;
    }

    .profile {
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 1.5rem;
        text-align: left;
    }

    .avatar {
        margin: 0;
        width: 80px;
        height: 80px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d3436 100%);
        color: #ffffff;
    }

    .profile,
    .daily-quote p,
    .nav-button,
    .music-toggle,
    .mute-toggle,
    .muyu-button,
    .articles-header,
    .articles-container,
    .runtime-text {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* 触摸屏优化 */
@media (hover: none) and (pointer: coarse) {
    .profile:hover,
    .nav-button:hover,
    .music-toggle:hover,
    .mute-toggle:hover,
    .muyu-button:hover,
    .daily-quote p:hover,
    .articles-container:hover,
    .runtime-text:hover {
        transform: none;
        box-shadow: none;
    }

    .nav-button::before,
    .nav-button::after {
        display: none;
    }

    .music-toggle.playing {
        animation: none;
    }

    .avatar:hover {
        transform: none;
    }
}

/* 平板和移动设备的触摸反馈 */
@media (max-width: 991px) {
    .profile,
    .nav-button,
    .music-toggle,
    .mute-toggle,
    .muyu-button,
    .daily-quote p,
    .articles-container,
    .runtime-text {
        -webkit-tap-highlight-color: transparent;
    }

    .profile:active,
    .nav-button:active,
    .music-toggle:active,
    .mute-toggle:active,
    .muyu-button:active,
    .daily-quote p:active,
    .articles-container:active,
    .runtime-text:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* 打印样式优化 */
@media print {
    body {
        background: none;
        color: #000;
    }

    .music-player,
    .muyu-container,
    .navigation {
        display: none;
    }

    .container {
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .profile,
    .daily-quote p,
    .articles-container {
        background: none;
        box-shadow: none;
        break-inside: avoid;
    }

    .avatar {
        max-width: 100px;
        height: auto;
    }

    .runtime-container {
        display: none;
    }
}

/* 屏幕阅读器优化 */
@media speech {
    .music-player,
    .muyu-container {
        display: none;
    }

    .nav-button::before {
        display: inline;
        position: static;
        opacity: 1;
        background: none;
        box-shadow: none;
    }
} 