/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #0f0f0f;
    color: #ffffff;
    padding: 0 9% 200px 9%;
    min-height: 100vh;
    box-sizing: border-box;
}

/* 顶部导航栏 */
.top-navbar {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    padding: 0 300px;
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0 -300px 20px -300px;
}

.navbar-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 18px;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    color: #ff6b35;
}

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

.top-nav-item {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s ease;
    position: relative;
}

.top-nav-item:hover {
    color: #ffffff;
}

.top-nav-item.active {
    color: #ff6b35;
}

.top-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ff6b35;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.user-info:hover {
    background-color: #2d2d2d;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #2d2d2d;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 120px;
    padding: 8px 0;
    display: none;
    z-index: 200;
}

.user-info:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #404040;
    color: #ff6b35;
}

.user-avatar {
    font-size: 20px;
}

.username {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.user-dropdown {
    font-size: 12px;
    color: #999;
    margin-left: 4px;
}

.container {
    display: flex;
    height: calc(100vh - 280px);
    max-width: 1600px;
    margin: 0 auto;
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 左侧导航栏 */
.sidebar {
    width: 200px;
    background-color: #2d2d2d;
    border-right: 1px solid #404040;
    display: flex;
    flex-direction: column;
}

.nav-header {
    padding: 20px 16px;
    border-bottom: 1px solid #404040;
}

.nav-header h2 {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.nav-menu {
    flex: 1;
    padding: 8px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: #3d3d3d;
    color: #ffffff;
}

.nav-item.active {
    background-color: #ff6b35;
    color: #ffffff;
    border-left-color: #ff6b35;
}

.nav-item i {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    background-size: contain;
}

.icon-upload::before {
    content: "📤";
    font-size: 16px;
}

.icon-list::before {
    content: "📋";
    font-size: 16px;
}

/* 右侧主内容区 */
.main-content {
    flex: 1;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.upload-area {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.upload-container {
    padding: 60px 40px;
}

.upload-icon {
    margin-bottom: 30px;
}

.icon-cloud-upload::before {
    content: "☁️";
    font-size: 48px;
    opacity: 0.6;
}

.upload-btn {
    background-color: #ff6b35;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.upload-btn:hover {
    background-color: #e55a2b;
    transform: translateY(-1px);
}

.upload-btn:active {
    transform: translateY(0);
}

.icon-upload-white::before {
    content: "📤";
    font-size: 14px;
}

.upload-tips {
    color: #999999;
    font-size: 14px;
    line-height: 1.6;
}

.upload-tips p {
    margin-bottom: 4px;
}

.highlight {
    color: #ff6b35;
    font-weight: 500;
}

/* 拖拽样式 */
.upload-area.dragover {
    background-color: rgba(255, 107, 53, 0.1);
    border: 2px dashed #ff6b35;
    border-radius: 8px;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: #2d2d2d;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90%;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #404040;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 500;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #999999;
    transition: color 0.2s ease;
}

.close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 24px;
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #404040;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background-color: #ff6b35;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #cccccc;
}

.upload-info {
    color: #999999;
    font-size: 14px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 0 20px 200px 20px;
    }
    
    .top-navbar {
        padding: 0 20px;
        margin: 0 -20px 20px -20px;
    }
    
    .navbar-content {
        padding: 0;
        flex-direction: column;
        height: auto;
        gap: 16px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    
    .navbar-left {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }
    
    .top-nav-menu {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .top-nav-item {
        font-size: 13px;
    }
    
    .container {
        height: calc(100vh - 340px);
    }
    
    .sidebar {
        width: 60px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-header h2 {
        display: none;
    }
    
    .upload-container {
        padding: 40px 20px;
    }
}