* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    background: #0f0f1e;
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* 登录页面专用body样式 */
body.auth-body {
    background: #0f0f1e;
    overflow: hidden;
}

body.auth-body::before,
body.auth-body::after,
body.auth-body .mouse-glow {
    display: none !important;
}

/* 移除动态背景以提升性能 */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 24px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.nav-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-info {
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* 按钮 */
.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 153, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 153, 255, 0.4);
    font-weight: 500;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00e5ff 0%, #00aaff 100%);
    box-shadow: 0 8px 30px rgba(0, 153, 255, 0.6);
    transform: translateY(-3px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-admin {
    background: #28a745;
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-large {
    padding: 14px 40px;
    font-size: 16px;
    margin-top: 0;
    font-weight: 500;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

/* 登录/注册页面 - 新版左右分栏 */
.auth-page {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

/* 覆盖body的背景样式 */
body:has(.auth-page) {
    overflow: hidden;
}

body:has(.auth-page)::before,
body:has(.auth-page)::after {
    display: none;
}

/* 左侧宣传区 */
.auth-promo {
    flex: 1;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6a3d 100%);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-promo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><rect fill="%23ffffff" fill-opacity="0.1" width="200" height="200"/></svg>');
    transform: rotate(15deg);
}

.promo-content {
    max-width: 500px;
    color: white;
    position: relative;
    z-index: 1;
}

.promo-logo h1 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: bold;
}

.promo-subtitle {
    font-size: 20px;
    margin-bottom: 50px;
    opacity: 0.95;
}

.promo-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.promo-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
    line-height: 1.6;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

/* 右侧表单区 */
.auth-form-section {
    flex: 0 0 500px;
    background: #3a3f4b;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form h2 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    font-size: 14px;
}

.switch-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.switch-link:hover {
    color: #00e5ff;
}

/* 旧版登录容器（保留兼容） */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-box {
    background: rgba(40, 44, 52, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #0099ff, #00d4ff);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 18px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.forgot-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* 社交登录 */
.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login > p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-bottom: 20px;
    position: relative;
}

.social-login > p::before,
.social-login > p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.social-login > p::before {
    left: 0;
}

.social-login > p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.social-btn.qq {
    background: #12b7f5;
    color: white;
}

.social-btn.wechat {
    background: #09bb07;
    color: white;
}

.social-btn.weibo {
    background: #e6162d;
    color: white;
}

.social-btn.alipay {
    background: #1678ff;
    color: white;
}

.social-btn.github {
    background: #24292e;
    color: white;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-tip {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 1.6;
}

.social-tip a {
    color: #00d4ff;
    text-decoration: none;
}

.social-tip a:hover {
    text-decoration: underline;
}

.back-home {
    text-align: center;
    margin-top: 30px;
}

.back-home a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-home a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    transition: all 0.3s ease;
}

.auth-form input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.auth-link {
    text-align: center;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

.auth-link a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-link a:hover {
    color: #0099ff;
    text-decoration: underline;
}

/* 提示框 */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #d4edda;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    color: #f8d7da;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* 首页 */
.hero {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* VIP方案 */
.vip-plans {
    margin: 60px 0;
}

.vip-plans h3 {
    font-size: 32px;
    margin-bottom: 30px;
}

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.plan-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    color: #ffffff;
    position: relative;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 153, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.4);
}

.plan-card.featured {
    border: 2px solid #00d4ff;
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.plan-card h4 {
    font-size: 28px;
    color: #00d4ff;
    margin-bottom: 15px;
    font-weight: 600;
}

.plan-card .price {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.plan-card ul {
    list-style: none;
    text-align: left;
}

.plan-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

.plan-card .badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
}

/* VIP徽章 */
.vip-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
}

.vip-badge.vip1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.vip-badge.vip2 {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #333;
}

/* 歌曲网格 */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.song-card {
    background: rgba(40, 44, 52, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
}

.song-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.song-card.locked {
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.song-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.song-header h3 {
    color: #ffffff;
    font-size: 20px;
    flex: 1;
    font-weight: 600;
}

.song-info {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.song-info p {
    margin: 8px 0;
}

.song-price {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 15px !important;
}

.song-actions {
    margin-top: 15px;
}

.lock-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 10px;
}

.badge-purchased {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.no-songs {
    text-align: center;
    color: white;
    font-size: 18px;
    padding: 40px;
}

/* 管理后台 */
.admin-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.admin-panel h2,
.admin-panel h3 {
    color: rgba(255, 255, 255, 0.9);
}

.admin-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.stat-card h3 {
    font-size: 48px;
    margin-bottom: 10px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.admin-table th {
    background: rgba(0, 153, 255, 0.2);
    font-weight: bold;
    color: #00d4ff;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.link-small {
    color: #00d4ff;
    text-decoration: none;
    font-size: 14px;
}

.link-small:hover {
    text-decoration: underline;
}

.admin-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

.admin-form-container h2 {
    color: rgba(255, 255, 255, 0.9);
}

.admin-form {
    margin-top: 20px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* 页脚 */
footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 968px) {
    .auth-page {
        flex-direction: column;
    }
    
    .auth-promo {
        flex: 0 0 auto;
        min-height: 300px;
        padding: 40px 30px;
    }
    
    .promo-logo h1 {
        font-size: 32px;
    }
    
    .promo-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .promo-features {
        gap: 15px;
    }
    
    .promo-feature {
        font-size: 14px;
    }
    
    .auth-form-section {
        flex: 1;
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .songs-grid {
        grid-template-columns: 1fr;
    }
    
    .plans {
        grid-template-columns: 1fr;
    }
    
    .plan-card.featured {
        transform: scale(1);
    }
    
    .auth-promo {
        padding: 30px 20px;
    }
    
    .promo-features {
        display: none;
    }
}

/* 波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 移除过渡效果 */

/* 提示框样式优化 */
.alert {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #d4edda;
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    color: #f8d7da;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 153, 255, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 153, 255, 0.8);
}

/* 移除加载动画以提升性能 */
