/* 全局样式 - 科幻蓝深色风格 */
:root {
    --primary: #165DFF;
    --primary-light: #4080FF;
    --primary-dark: #0E42D2;
    --secondary: #0FC6C2;
    --dark-bg: #111827;
    --card-bg: #1F2937;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --border-color: #374151;
    --success: #10B981;
    --error: #EF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-light);
}

a:hover {
    color: var(--secondary);
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.btn-danger {
    background-color: var(--error);
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-small {
    padding: 5px 10px;
    font-size: 14px;
}

/* 登录/注册页面样式 */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px rgba(22, 93, 255, 0.5));
}

.logo h1 {
    font-size: 26px;
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(22, 93, 255, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.2);
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

/* 头部样式 */
header {
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header-container .logo {
    display: flex;
    align-items: center;
    margin: 0;
}

.header-container .logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.header-container .logo h1 {
    font-size: 20px;
    color: var(--primary-light);
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a.active {
    color: var(--primary-light);
}

nav ul li a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* 页脚样式 */
footer {
    background-color: var(--card-bg);
    color: var(--text-secondary);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* 个人中心布局 */
.profile-container {
    max-width: 1200px;
    margin: 30px auto;
    display: flex;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.profile-sidebar {
    width: 250px;
    background-color: #171F2F;
    color: var(--text-primary);
    padding: 20px;
}

.profile-content {
    flex: 1;
    padding: 30px;
}

.user-info {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 0 15px rgba(22, 93, 255, 0.3);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storage-info {
    margin-top: 15px;
}

.storage-bar {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
}

.storage-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 5px;
    width: 0%;
    transition: width 0.5s ease;
}

.profile-nav ul {
    list-style: none;
}

.profile-nav li {
    margin-bottom: 10px;
}

.profile-nav a {
    display: block;
    padding: 10px;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.profile-nav a:hover, .profile-nav a.active {
    background-color: rgba(22, 93, 255, 0.1);
    color: var(--primary-light);
}

.profile-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.profile-section.active {
    display: block;
}

/* 文件上传按钮样式 */
.file-upload-btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.file-upload-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.file-upload-btn input[type="file"] {
    display: none;
}

.file-hint {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 5px;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-100px);
    opacity: 0;
    animation: slideIn 0.3s forwards;
}

.notification.success {
    background-color: var(--success);
}

.notification.error {
    background-color: var(--error);
}

.notification.fade-out {
    animation: fadeOut 0.3s forwards;
}

/* 动画效果 */
@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        transform: translateY(-100px);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
    }
}