/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff2e63;
    --dark-bg: #0f0f23;
    --darker-bg: #0a0a18;
    --card-bg: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --neon-glow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(28, 28, 56, 0.8) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(37, 117, 252, 0.2) 0%, transparent 20%);
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(10, 10, 24, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(106, 17, 203, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.nav-logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 28px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--neon-glow);
    margin: 0;
}

.website-url {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login, .btn-register {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--primary-color);
}

.btn-login:hover {
    background: rgba(106, 17, 203, 0.2);
    box-shadow: 0 0 10px rgba(106, 17, 203, 0.5);
}

.btn-register {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
}

.user-menu img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid rgba(106, 17, 203, 0.3);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.user-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(106, 17, 203, 0.2);
}

/* 主内容区域 */
.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 英雄区域 */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 0;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(106, 17, 203, 0.2);
    box-shadow: 0 0 10px rgba(106, 17, 203, 0.5);
}

/* 视频网格 */
.featured-videos h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.video-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(106, 17, 203, 0.2);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(106, 17, 203, 0.4);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-thumbnail::before {
    content: '▶';
    font-size: 2rem;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-weight: 500;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 上传页面样式 */
.upload-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(106, 17, 203, 0.2);
}

.upload-container h2 {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(106, 17, 203, 0.3);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(106, 17, 203, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress {
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
}

/* 消息样式 */
.message {
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
}

.message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(106, 17, 203, 0.3);
    position: relative;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--accent-color);
}

.modal h2 {
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.no-content {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

/* 霓虹文字效果 */
.neon-text {
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--primary-color),
        0 0 40px var(--primary-color),
        0 0 80px var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .nav-container {
        padding: 10px 15px;
    }
    
    .nav-logo h1 {
        font-size: 22px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}
/* 上传页面特定样式 */
.upload-tip {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 14px;
}

.file-upload-group {
    border: 2px dashed rgba(106, 17, 203, 0.3);
    padding: 20px;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.file-upload-group:hover {
    border-color: var(--primary-color);
}

.file-input-wrapper {
    position: relative;
    margin-top: 10px;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-input-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(106, 17, 203, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-label:hover {
    background: rgba(106, 17, 203, 0.1);
    border-color: var(--primary-color);
}

.file-input-text {
    color: var(--text-secondary);
}

.file-input-button {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.file-info {
    margin-top: 10px;
    padding: 10px;
    background: rgba(106, 17, 203, 0.1);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-info span {
    font-size: 14px;
    color: var(--text-primary);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin: 15px 0;
}

.progress {
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}
/* 视频播放页面样式 */
.video-player-container {
    max-width: 1000px;
    margin: 0 auto;
}

.video-player {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    border: 1px solid rgba(106, 17, 203, 0.2);
}

.video-player video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    background: #000;
}

.video-details {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(106, 17, 203, 0.2);
}

.video-title-detail {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.video-meta-detail {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.video-author {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.video-description-detail {
    margin-bottom: 20px;
    line-height: 1.6;
}

.video-actions {
    display: flex;
    gap: 15px;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(106, 17, 203, 0.3);
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: rgba(106, 17, 203, 0.2);
    border-color: var(--primary-color);
}

/* 评论区样式 */
.comments-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(106, 17, 203, 0.2);
}

.comments-section h3 {
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
}

.comments-list {
    margin-bottom: 30px;
}

.comment-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-header strong {
    color: var(--text-primary);
}

.comment-date {
    color: var(--text-secondary);
    font-size: 12px;
}

.comment-content {
    color: var(--text-primary);
    line-height: 1.5;
}

.comment-form {
    margin-top: 20px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(106, 17, 203, 0.3);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 16px;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(106, 17, 203, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-meta-detail {
        flex-direction: column;
        gap: 5px;
    }
    
    .video-actions {
        flex-direction: column;
    }
    
    .video-player video {
        max-height: 50vh;
    }
}