* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}
.login-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}
.login-form h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 300;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}
.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    width: 100%;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: 2px solid #667eea;
}
.btn-secondary:hover {
    background: #667eea;
    color: white;
}
.btn-success {
    background: linear-gradient(145deg, #4CAF50, #45a049);
    color: white;
}
.btn-danger {
    background: linear-gradient(145deg, #f44336, #da190b);
    color: white;
}
.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}
/* 仪表板样式 */
.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.dashboard-header h1 {
    color: #333;
    font-weight: 300;
    margin-bottom: 10px;
}
.user-info {
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}
.dashboard-card h2 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 400;
}
.dashboard-card p {
    margin-bottom: 20px;
    color: #666;
}
.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.8;
}
/* 表单样式 */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.custom-fields {
    background: rgba(248, 249, 250, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}
.custom-field-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: end;
}
.custom-field-row input {
    flex: 1;
}
/* 资源列表样式 */
.resources-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.resources-header {
    padding: 20px;
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.search-box {
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    min-width: 200px;
}
.resources-grid {
    display: grid;
    gap: 20px;
    padding: 20px;
}
.resource-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}
.resource-card:hover {
    border-color: #667eea;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
}
.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.resource-title {
    flex: 1;
}
.resource-title h3 {
    color: #333;
    margin-bottom: 5px;
}
.resource-category {
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.resource-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}
.resource-detail {
    padding: 8px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
}
.resource-detail strong {
    color: #333;
}
.resource-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
/* 导航样式 */
.nav-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.nav-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: #764ba2;
}
/* 消息提示 */
.message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}
.message.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 2px solid rgba(76, 175, 80, 0.3);
}
.message.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 2px solid rgba(244, 67, 54, 0.3);
}
/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .custom-field-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .resource-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .resource-actions {
        justify-content: center;
    }
    
    .resources-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
        min-width: unset;
    }
    
    .nav-content {
        flex-direction: column;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 480px) {
    .dashboard-card {
        padding: 20px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .resource-actions .btn {
        width: auto;
        flex: 1;
    }
}
/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}
.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}
.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}
/* 修正按钮大小不一致的问题 - 最小改动 */
.btn-warning {
    background: linear-gradient(145deg, #ff9800, #f57c00);
    color: white;
    padding: 8px 16px !important;
    font-size: 14px !important;
}
.resource-actions .btn {
    padding: 8px 16px !important;
    font-size: 14px !important;
    min-width: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
