body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.header {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    font-size: 24px;
}

.user-info a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background 0.3s;
}

.user-info a:hover {
    background: rgba(255,255,255,0.2);
}

.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.success {
    background: #d1fae5;
    color: #065f46;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 4px solid #10b981;
}

.error {
    background: #ffeaa7;
    color: #d63031;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 4px solid #d63031;
}

.storage-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.storage-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.storage-used {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    transition: width 0.5s;
}

.file-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.file-actions button {
    padding: 10px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.file-actions button:hover {
    background: #2980b9;
}

.file-list {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.empty-folder {
    padding: 30px;
    text-align: center;
    color: #7f8c8d;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.file-item:hover {
    background: #f8f9fa;
}

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

.file-info {
    flex: 1;
}

.file-main {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.file-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

.file-name {
    font-weight: bold;
    margin-right: 15px;
}

.file-size {
    margin-left: auto;
    color: #7f8c8d;
    font-size: 14px;
    margin-right: 15px;
}

.file-remark, .file-source, .file-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 3px;
}

.file-source a {
    color: #3498db;
}

.file-meta {
    margin-top: 5px;
}

.file-actions-container {
    display: flex;
    gap: 8px;
}

.btn-action {
    padding: 5px 10px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9em;
    transition: background 0.3s;
}

.btn-action:hover {
    background: #2980b9;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.file-info-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.upload-form {
    background: white;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.btn-cancel {
    padding: 10px 15px;
    background: #95a5a6;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    margin-left: 10px;
}

.btn-cancel:hover {
    background: #7f8c8d;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-group input:focus, .form-group select:focus {
    border-color: #3498db;
    outline: none;
}

#shareCodeHint {
    color: #7f8c8d;
    font-size: 0.9em;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.share-form, .share-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.share-download {
    text-align: center;
    padding: 30px;
}

.btn-download {
    display: inline-block;
    padding: 15px 30px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #2980b9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 15px;
    }
    
    .user-info {
        margin-top: 10px;
    }
    
    .main-container {
        margin: 15px;
        padding: 20px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-actions-container {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-end;
    }
    
    .file-size {
        margin-left: 0;
        width: 100%;
        margin-top: 5px;
    }
    
    .modal-content {
        padding: 20px;
    }
}
/* 突出显示下载次数 */
.download-count {
    color: #e74c3c;
    font-weight: bold;
}

/* 分享链接样式 */
.file-meta a {
    color: #3498db;
    word-break: break-all;
}

.file-meta a:hover {
    text-decoration: underline;
}

/* 创建分享按钮样式 */
.btn-create-share {
    padding: 12px 25px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-create-share:hover {
    background: #27ae60;
}

/* 分享信息区域样式 */
.share-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.share-info h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.share-info p {
    margin: 10px 0;
    line-height: 1.5;
}

/* 分享表单样式 */
.share-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.share-form ul {
    margin: 10px 0 20px 20px;
}

.share-form li {
    margin-bottom: 5px;
    color: #555;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .file-meta {
        font-size: 0.8em;
    }
    
    .file-meta a {
        word-break: break-all;
        display: block;
        margin-top: 5px;
    }
}
/* 分享页面特定样式 */
.main-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.share-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.share-header h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 28px;
}

.package-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
}

.share-details {
    max-width: 600px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.file-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.file-info-label {
    font-weight: bold;
    color: #2c3e50;
    min-width: 100px;
}

.file-info-value {
    flex: 1;
    text-align: right;
    color: #495057;
    word-break: break-all;
}

.download-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-download-large {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-download-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.file-size-large {
    font-size: 18px;
    color: #7f8c8d;
    margin-top: 10px;
}

.source-url {
    background: #e8f4fd;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
    border-left: 4px solid #3498db;
}

.source-url a {
    color: #2980b9;
    text-decoration: none;
}

.source-url a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        margin: 20px;
        padding: 20px;
    }
    
    .file-info-row {
        flex-direction: column;
    }
    
    .file-info-label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .file-info-value {
        text-align: left;
    }
    
    .btn-download-large {
        padding: 12px 30px;
        font-size: 18px;
    }
}