/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #ffb6c1, #ffc0cb, #ffb6c1);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* 确保页面容器完全占满视口 */
.auth-container,
.theme-container,
.main-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
}

/* 权限验证页面 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

.auth-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.3);
    text-align: center;
    max-width: 500px;
    width: 100%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 182, 193, 0.5);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.heart-animation {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.auth-title {
    font-size: 2.5rem;
    color: #ff69b4;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
}

.auth-subtitle {
    font-size: 1.2rem;
    color: #ff1493;
    margin-bottom: 30px;
    opacity: 0.8;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-size: 1.1rem;
    color: #ff69b4;
    font-weight: 500;
    text-align: left;
}

.date-picker-container {
    display: flex;
    gap: 15px;
    width: 100%;
}

.date-select {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ffb6c1;
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff69b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

.date-select:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
    transform: translateY(-2px);
}

.auth-btn {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
    margin-top: 10px;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 105, 180, 0.6);
    background: linear-gradient(135deg, #ff1493, #ff69b4);
}

.auth-btn:active {
    transform: translateY(-1px);
}

.error-msg {
    margin-top: 20px;
    padding: 15px;
    border-radius: 15px;
    font-weight: 500;
    display: none;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 浮动爱心 */
.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    animation: floatUp 6s linear infinite;
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.heart:nth-child(2) { left: 20%; animation-delay: 1s; }
.heart:nth-child(3) { left: 30%; animation-delay: 2s; }
.heart:nth-child(4) { left: 40%; animation-delay: 3s; }
.heart:nth-child(5) { left: 50%; animation-delay: 4s; }

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 主题选择页面 */
.theme-container {
    background: linear-gradient(135deg, #ffb6c1, #ffc0cb, #ffb6c1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.theme-header {
    text-align: center;
    margin-bottom: 40px;
}

.theme-title {
    font-size: 2.5rem;
    color: #ff69b4;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
    font-weight: 700;
}

.theme-subtitle {
    font-size: 1.1rem;
    color: #ff1493;
    opacity: 0.8;
    font-weight: 500;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin-bottom: 40px;
}

.theme-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 245, 0.9));
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 182, 193, 0.3);
}

.theme-card:not(.coming-soon):hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.3);
    border-color: rgba(255, 105, 180, 0.6);
}

.theme-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.theme-card.expectation-card {
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.9), rgba(255, 228, 225, 0.9));
    border: 2px solid rgba(255, 182, 193, 0.8);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.theme-card.expectation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 105, 180, 0.25);
    border-color: rgba(255, 105, 180, 0.5);
}

.theme-card.expectation-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 105, 180, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.theme-image {
    text-align: center;
    margin-bottom: 20px;
}

.theme-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

.theme-info {
    text-align: center;
}

.theme-name {
    font-size: 1.4rem;
    color: #ff69b4;
    margin-bottom: 8px;
    font-weight: 600;
}

.theme-date {
    font-size: 0.9rem;
    color: #ff1493;
    margin-bottom: 10px;
    opacity: 0.8;
}

.theme-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.theme-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.9), rgba(255, 20, 147, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.theme-card:not(.coming-soon):hover .theme-overlay {
    opacity: 1;
}

.view-btn {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.coming-soon-overlay {
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.8), rgba(96, 96, 96, 0.8));
    opacity: 1;
}

.coming-soon-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

.expectation-overlay {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.9), rgba(255, 105, 180, 0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-card.expectation-card:hover .expectation-overlay {
    opacity: 1;
}

.expectation-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.theme-footer {
    margin-top: auto;
}

.theme-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.theme-music-btn {
    background: linear-gradient(135deg, #ffb6c1, #ffc0cb);
    color: #ff69b4;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 80px;
}

.theme-music-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
    background: linear-gradient(135deg, #ffa0b4, #ffb0c4);
}

.back-btn {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

/* 相册页面的返回按钮样式与退出按钮一致 */
.logout-btn {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

/* 主相册页面 */
.main-container {
    display: flex;
    flex-direction: column;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 182, 193, 0.3);
    box-shadow: 0 4px 20px rgba(255, 105, 180, 0.2);
}

.main-title {
    font-size: 2rem;
    color: #ff69b4;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
    margin-bottom: 10px;
}

.music-hint {
    color: #ff99bb;
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.8;
    animation: pulse 2s infinite;
    font-weight: 400;
}

.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.control-btn {
    background: linear-gradient(135deg, #ffb6c1, #ffc0cb);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    color: #ff69b4;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 90px;
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.control-btn:hover::before {
    left: 100%;
}

.btn-text {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1;
}

/* 音乐面板样式 */
.music-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(255, 20, 147, 0.1));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.music-panel-content {
    background: linear-gradient(135deg, #fff0f5, #ffe4e1);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
    text-align: center;
}

.music-panel-content h3 {
    color: #ff69b4;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.music-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.music-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 2px solid #ffb6c1;
    transition: all 0.3s ease;
}

.music-item:hover {
    background: rgba(255, 182, 193, 0.2);
    border-color: #ff69b4;
    transform: translateY(-2px);
}

.music-item.active {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border-color: #ff1493;
}

.music-name {
    font-size: 1rem;
    font-weight: 500;
    flex: 1;
    text-align: left;
}

.play-music-btn {
    background: linear-gradient(135deg, #ffb6c1, #ffc0cb);
    border: none;
    padding: 8px 15px;
    border-radius: 15px;
    color: #ff69b4;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.play-music-btn:hover {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    transform: scale(1.05);
}

.music-item.active .play-music-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #ff69b4;
}

.close-panel-btn {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-panel-btn:hover {
    background: linear-gradient(135deg, #ff1493, #ff69b4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
    background: linear-gradient(135deg, #ffa0b4, #ffb0c4);
}

.logout-btn {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    font-weight: 500;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

/* 轮播容器 */
.carousel-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 182, 193, 0.3);
}

.carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffb6c1, #ffc0cb);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 图片容器 */
.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img,
.carousel-item video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.carousel-item img:hover,
.carousel-item video:hover {
    transform: scale(1.02);
}

/* 加载指示器 */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.95), rgba(255, 228, 225, 0.95));
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.4);
    border: 2px solid rgba(255, 182, 193, 0.6);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.loading-indicator p {
    margin: 15px 0 0 0;
    color: #ff69b4;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 105, 180, 0.3);
    letter-spacing: 0.5px;
}

/* 爱心加载动画 */
.loading-spinner {
    position: relative;
    width: 50px;
    height: 50px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.loading-spinner::before,
.loading-spinner::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    width: 25px;
    height: 40px;
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    border-radius: 25px 25px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.loading-spinner::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

@keyframes heartbeat {
    0%, 100% { 
        transform: scale(0.8);
        opacity: 0.7;
    }
    50% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

/* 轮播控制 */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    color: #ff69b4;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 35px rgba(255, 105, 180, 0.4);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* 简单计数器 */
.simple-counter {
    text-align: center;
    color: #ff69b4;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 10px 0;
    opacity: 0.8;
}

/* 进度条 */
.progress-container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 400px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff69b4, #ff1493);
    border-radius: 3px;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

/* 媒体信息 */
.media-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
    border: 2px solid rgba(255, 182, 193, 0.5);
}

.media-info h3 {
    color: #ff69b4;
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.media-info p {
    color: #ff1493;
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.media-counter {
    color: #ff69b4;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 主题选择页面移动端优化 */
@media (max-width: 768px) {
    .theme-title {
        font-size: 2rem;
    }
    
    .theme-subtitle {
        font-size: 1rem;
    }
    
    .theme-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .theme-card {
        padding: 20px;
    }
    
    .theme-icon {
        font-size: 3rem;
    }
    
    .theme-name {
        font-size: 1.2rem;
    }
    
    .theme-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .theme-music-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        min-width: 70px;
    }
    
    .back-btn,
    .logout-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    body {
        padding: 0;
        min-height: 100vh;
    }

    /* 认证页面移动端优化 */
    .auth-container {
        padding: 15px;
        min-height: 100vh;
    }

    .auth-box {
        padding: 25px 20px;
        border-radius: 20px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .auth-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .auth-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .date-picker-container {
        flex-direction: column;
        gap: 12px;
    }

    .date-select {
        padding: 14px 18px;
        font-size: 1rem;
        border-radius: 20px;
        width: 100%;
        box-sizing: border-box;
        background-position: right 15px center;
        background-size: 18px;
        padding-right: 45px;
    }

    .auth-btn {
        padding: 16px 25px;
        font-size: 1.1rem;
        border-radius: 25px;
        width: 100%;
        margin-top: 10px;
    }

    /* 主页面移动端优化 */
    .main-container {
        padding: 10px;
        border-radius: 15px;
        margin: 0;
        width: 100%;
        min-height: 100vh;
        box-sizing: border-box;
    }

    .header {
        padding: 15px 10px;
        margin-bottom: 15px;
        flex-direction: column;
        gap: 15px;
    }

    .main-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .header-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .control-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-width: 70px;
        gap: 2px;
    }
    
    .logout-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        min-width: 60px;
    }
    
    .btn-text {
        font-size: 0.7rem;
    }
    
    /* 轮播容器移动端优化 */
    .carousel-container {
        height: calc(100vh - 200px);
        min-height: 300px;
        max-height: 500px;
        margin-bottom: 15px;
        border-radius: 15px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .carousel-btn.prev {
        left: 8px;
    }
    
    .carousel-btn.next {
        right: 8px;
    }
    
    /* 进度条移动端优化 */
    .progress-container {
        margin: 10px 0;
        height: 6px;
    }

    .progress-bar {
        height: 100%;
        border-radius: 3px;
    }

    /* 音乐面板移动端优化 */
    .music-panel-content {
        padding: 25px 20px;
        max-width: 90%;
        border-radius: 15px;
    }

    .music-panel-content h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .music-item {
        padding: 12px;
        border-radius: 12px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .music-name {
        font-size: 0.9rem;
        text-align: center;
    }

    .play-music-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 12px;
        width: 100%;
    }

    .close-panel-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        border-radius: 15px;
    }

    /* 浮动爱心移动端优化 */
    .heart {
        font-size: 1.2rem;
    }

    .heart:nth-child(1) { font-size: 1rem; }
    .heart:nth-child(2) { font-size: 1.4rem; }
    .heart:nth-child(3) { font-size: 1.2rem; }
    .heart:nth-child(4) { font-size: 1.6rem; }
    .heart:nth-child(5) { font-size: 1.1rem; }
}

/* 超小屏幕适配 (iPhone SE等) */
@media (max-width: 375px) {
    .auth-box {
        padding: 20px 15px;
    }

    .auth-title {
        font-size: 1.4rem;
    }

    .main-title {
        font-size: 1.2rem;
    }

    .header-controls {
        gap: 6px;
    }

    .control-btn {
        padding: 8px 10px;
        min-width: 65px;
        font-size: 0.8rem;
    }

    .btn-text {
        font-size: 0.65rem;
    }

    .carousel-container {
        height: calc(100vh - 180px);
        min-height: 250px;
    }
}

/* 横屏模式适配 */
@media (max-width: 768px) and (orientation: landscape) {
    .auth-container {
        padding: 10px;
    }

    .auth-box {
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .main-container {
        padding: 8px;
    }

    .header {
        padding: 10px;
        margin-bottom: 10px;
    }

    .main-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .carousel-container {
        height: calc(100vh - 140px);
        min-height: 200px;
    }

    .header-controls {
        gap: 6px;
    }

    .control-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
}

/* 触摸友好样式 */
@media (hover: none) and (pointer: coarse) {
    .control-btn:hover,
    .logout-btn:hover,
    .play-music-btn:hover,
    .close-panel-btn:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    }
    
    .control-btn:active,
    .logout-btn:active,
    .play-music-btn:active,
    .close-panel-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .music-item:hover {
        transform: none;
    }
    
    .music-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* 动画效果 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.2rem;
    color: #ff69b4;
    animation: pulse 2s ease-in-out infinite;
}

/* 错误样式 */
.error {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.success {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}
