这是整合了所有页面（首页、心意馆、音乐馆、游艺馆、光影棱镜）样式的 完整 style.css 文件。

你可以直接复制并覆盖你项目中的 style.css 文件。

/* =========================================
   🎨 于文文猫咖馆 · 全局样式表 (Complete)
   ========================================= */

/* --- 1. 全局基础重置 --- */
{ margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #030318;
    font-family: 'Inter', sans-serif;
    color: #f0eef7;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 通用背景星星 (适用于大多数页面) */
.bg-stars, #stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0a0720, #030318);
    z-index: -2;
    pointer-events: none;
}

stars-canvas {
    z-index: -1; /* Canvas 层级略高于背景渐变，用于动态星星 */
}

/* 通用容器 */
.container, .home-container, .content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* 通用标题样式 */
h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFE9CE, #E0B3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* =========================================
   🏠 首页 (index.html) 专属样式
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(28, 22, 48, 0.6);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-bottom: 3rem;
    border: 1px solid rgba(160, 120, 230, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFE9CE, #E0B3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-item {
    color: #d0c0e8;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: 0.3s;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
}

.nav-item:hover {
    background: rgba(140, 100, 200, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease-out;
    padding: 2rem 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFE9CE, #E0B3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #b8a5e0;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(28, 22, 48, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(160, 120, 230, 0.1);
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(40, 30, 60, 0.8);
    border-color: #b77eff;
    box-shadow: 0 10px 30px rgba(183, 126, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e0bcff;
}

.feature-desc {
    color: #b8a5e0;
    font-size: 0.95rem;
    line-height: 1.6;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   💜 心意馆 (heart.html) 专属样式
   ========================================= */
.heart-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    color: #e0bcff;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}

.back-btn:hover {
    background: rgba(140, 100, 200, 0.4);
    transform: translateX(-5px);
}

.sub {
    color: #b8a5e0;
    margin-bottom: 2rem;
    border-left: 3px solid #b77eff;
    padding-left: 1rem;
    font-size: 1.1rem;
}

.message-form {
    background: rgba(28, 22, 48, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 48px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid rgba(160, 120, 230, 0.2);
}

.form-group {
    margin-bottom: 1.2rem;
}

input, textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(160, 120, 230, 0.4);
    border-radius: 32px;
    padding: 1rem;
    color: white;
    font-family: inherit;
    resize: vertical;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #c595ff;
    background: rgba(0, 0, 0, 0.6);
}

button {
    background: linear-gradient(135deg, #5a3e86, #392b57);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    font-size: 1rem;
}

button:hover:not(:disabled) {
    transform: scale(1.02);
    background: #6a4e9e;
    box-shadow: 0 5px 15px rgba(90, 62, 134, 0.4);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-card {
    background: rgba(20, 16, 38, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 1.2rem;
    border-left: 3px solid #b77eff;
    animation: fadeIn 0.5s ease-out;
    border: 1px solid rgba(160, 120, 230, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-name {
    font-weight: 600;
    color: #e0bcff;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.message-text {
    color: #d0c0e8;
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
}

.message-time {
    font-size: 0.75rem;
    color: #8a79a8;
    text-align: right;
}

.status-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 1rem 2rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 90%;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.status-toast.show {
    transform: translateX(-50%) translateY(0);
}

.status-toast.success {
    background: rgba(46, 204, 113, 0.9);
    border-color: #2ecc71;
}

.status-toast.error {
    background: rgba(231, 76, 60, 0.9);
    border-color: #e74c3c;
}

.loading-text {
    text-align: center;
    color: #6a5a8a;
    font-style: italic;
    padding: 1rem;
}

/* =========================================
   🎵 音乐馆 (music.html) 专属样式
   ========================================= */
.playlist {
    background: rgba(28, 22, 48, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 48px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(160, 120, 230, 0.2);
}

.song-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(160, 120, 230, 0.2);
    cursor: pointer;
    transition: 0.2s;
    border-radius: 12px;
}

.song-item:last-child {
    border-bottom: none;
}

.song-item:hover {
    background: rgba(100, 70, 150, 0.3);
    padding-left: 1.5rem;
}

.song-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.song-num {
    color: #a07ec0;
    font-weight: 600;
    width: 30px;
    text-align: center;
}

.song-title {
    font-weight: 500;
    color: #f0eef7;
}

.song-artist {
    font-size: 0.85rem;
    color: #b8a5e0;
    margin-top: 2px;
    display: block;
}

.play-icon {
    color: #d4a5ff;
    opacity: 0.6;
    font-size: 1.2rem;
}

aplayer-container {
    margin-top: 2rem;
    border-radius: 48px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 强制调整 APlayer 背景色以适配主题 */
aplayer-container .aplayer {
    background: rgba(25, 18, 45, 0.95) !important;
    border-radius: 48px !important;
    border: 1px solid rgba(160, 120, 230, 0.2) !important;
}

aplayer-container .aplayer .aplayer-info {
    color: #f0eef7 !important;
}

aplayer-container .aplayer .aplayer-lrc p {
    color: #cbb5f0 !important;
}

aplayer-container .aplayer .aplayer-lrc p.aplayer-lrc-current {
    color: #ffe9ce !important;
    font-weight: bold;
}

.lyrics-section {
    background: rgba(20, 16, 38, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    font-style: italic;
    color: #cbb5f0;
    line-height: 1.8;
    min-height: 100px;
    border: 1px solid rgba(160, 120, 230, 0.1);
}

/* =========================================
   🎮 游艺馆 (game.html) 专属样式
   ========================================= */
.game-card {
    background: rgba(28, 22, 48, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 48px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(160, 120, 230, 0.2);
}

.question {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    line-height: 1.4;
    color: #f0eef7;
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.option-btn {
    background: rgba(80, 60, 120, 0.6);
    border: 1px solid #a27ad0;
    padding: 0.8rem 1.5rem;
    border-radius: 60px;
    cursor: pointer;
    transition: 0.2s;
    color: #e0bcff;
    font-weight: 500;
    user-select: none;
}

.option-btn:hover {
    background: #6a4e9e;
    transform: scale(1.02);
    border-color: #d4a5ff;
}

.score {
    margin-top: 1rem;
    color: #e0bcff;
    font-size: 1.2rem;
    font-weight: 600;
}

.next-btn {
    background: linear-gradient(135deg, #5a3e86, #392b57);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: 0.2s;
}

.next-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(90, 62, 134, 0.4);
}

/* =========================================
   🖼️ 模态框 (Modal) 全局样式
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(28, 22, 48, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 2rem;
    border: 1px solid #b77eff;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    animation: modalAppear 0.3s ease-out;
    position: relative;
}

@keyframes modalAppear {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

modal-message {
    margin: 1rem 0;
    font-size: 1.1rem;
    color: #f0eef7;
    line-height: 1.6;
}

modal-close-btn {
    background: linear-gradient(135deg, #5a3e86, #392b57);
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: 0.2s;
}

modal-close-btn:hover {
    background: #6a4e9e;
    transform: scale(1.05);
}

/* =========================================
   📸 光影棱镜 (gallery.html) 专属样式
   ========================================= */
/* 吉他弦动画 */
.guitar-string {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
    z-index: -1;
    animation: vibrate 3s infinite ease-in-out;
    pointer-events: none;
}

.string1 { left: 20%; animation-delay: 0s; }
.string2 { left: 40%; animation-delay: 0.5s; }
.string3 { left: 50%; animation-delay: 1s; }
.string4 { left: 60%; animation-delay: 1.5s; }
.string5 { left: 80%; animation-delay: 2s; }

@keyframes vibrate {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
}

/* Hero 区域修正类 */
.hero-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.gallery-center {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.gallery-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFE9CE, #E0B3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.gallery-hero-sub {
    color: #b8a5e0;
    font-size: 1.1rem;
}

/* 3D 卡片堆叠 */
.stack-group {
    margin-bottom: 4rem;
}

.stack-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stack-card {
    background: rgba(28, 22, 48, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 1.5rem;
    width: 300px;
    text-align: center;
    border: 1px solid rgba(160, 120, 230, 0.2);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.stack-card:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: #d4a5ff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    z-index: 5;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.stack-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.stack-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e0bcff;
    margin-bottom: 0.5rem;
}

.explore-link {
    margin-top: 1rem;
    color: #b77eff;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

/* 视频/图集展示区 */
.video-showcase {
    background: rgba(20, 16, 38, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(160, 120, 230, 0.1);
}

.video-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e0bcff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(160, 120, 230, 0.1);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: #b77eff;
}

.video-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.video-info {
    padding: 1rem;
    color: #d0c0e8;
    font-weight: 500;
    text-align: center;
    font-size: 0.95rem;
}

/* 辅助类：用于替代内联样式 display: inline-block */
.back-inline-block {
    display: inline-block;
    margin-top: 1rem;
}

/* =========================================
   📱 响应式适配
   ========================================= */
@media (max-width: 768px) {
    h1, .hero-title, .gallery-hero-title {
        font-size: 2.2rem;
    }
    
    .navbar {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .nav-links {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .container, .home-container, .content, .heart-container {
        padding: 1rem;
    }
    
    .stack-row {
        flex-direction: column;
        align-items: center;
    }
    
    .stack-card {
        width: 100%;
        max-width: 350px;
    }
    
    .question {
        font-size: 1.2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 1.5rem;
    }
}