* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #007aff;
    text-decoration: none;
}

.nav a {
    color: #666;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #007aff;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.btn:hover {
    background: #0056cc;
}

.btn-outline {
    background: transparent;
    border: 1px solid #007aff;
    color: #007aff;
}

.btn-outline:hover {
    background: #007aff;
    color: #fff;
}

.btn-danger {
    background: #ff3b30;
}

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

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007aff;
}

.auth-container {
    max-width: 400px;
    margin: 60px auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-footer a {
    color: #007aff;
    text-decoration: none;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #ffe5e5;
    color: #ff3b30;
}

.alert-success {
    background: #e5f9e5;
    color: #28a745;
}

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

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #e0e0e0;
}

.card-content {
    padding: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.card-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

.footer {
    background: #fff;
    padding: 20px 0;
    margin-top: 60px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.page-header {
    padding: 13px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
}

.page-header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.page-header p {
    opacity: 0.9;
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.badge-primary {
    background: #007aff;
    color: #fff;
}

.badge-hot {
    background: #ff9500;
    color: #fff;
}

.user-center-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-right: 20px;
}

.user-center-sidebar ul {
    list-style: none;
}

.user-center-sidebar li {
    margin-bottom: 10px;
}

.user-center-sidebar a {
    display: block;
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.user-center-sidebar a:hover,
.user-center-sidebar a.active {
    background: #007aff;
    color: #fff;
}

.user-center-layout {
    display: flex;
    gap: 20px;
}

.user-center-content {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
}

.quota-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.quota-bar-fill {
    height: 100%;
    background: #007aff;
    transition: width 0.3s;
}

.quota-bar-fill.warning {
    background: #ff9500;
}

.quota-bar-fill.danger {
    background: #ff3b30;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #007aff;
    background: #f0f7ff;
}

.upload-area.dragover {
    border-color: #007aff;
    background: #e6f2ff;
}

.upload-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: #007aff;
    width: 0%;
    transition: width 0.3s;
}

.works-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.work-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

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

.work-item-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
}

.work-item-info {
    flex: 1;
}

.work-item-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.work-item-meta {
    font-size: 12px;
    color: #999;
}

.work-item-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 10px;
    }

    .nav a {
        margin: 0 10px;
    }

    .auth-container {
        margin: 20px;
        padding: 30px 20px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .user-center-layout {
        flex-direction: column;
    }

    .user-center-sidebar {
        margin-right: 0;
    }
}