* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
}
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header h1 {
    font-size: 24px;
    font-weight: 600;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-right a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    transition: background 0.3s;
}
.header-right a:hover {
    background: rgba(255,255,255,0.3);
}
.container {
    max-width: 500px;
    margin: 30px auto;
    padding: 0 20px;
}
.form-section {
    margin-top:10px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.form-section h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}
.form-group input:focus {
    outline: none;
    border-color: #667eea;
}
.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}
.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}
.message.success {
    background: #e8f5e9;
    color: #2e7d32;
}
.message.error {
    background: #ffebee;
    color: #c62828;
}
.logout-btn {
    background: rgba(239, 83, 80, 0.2);
}
.logout-btn:hover {
    background: rgba(239, 83, 80, 0.3);
}
.user-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}
.user-info div {
    margin-bottom: 8px;
    color: #555;
}
.user-info div:last-child {
    margin-bottom: 0;
}
.user-info span {
    font-weight: 600;
    color: #333;
}

/* 自定义类型列表样式 */
.custom-types-list {
    margin-top: 20px;
    padding: 0;
}

.custom-type-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f3e5f5 0%, #e8eaf6 100%);
    border: 1px solid #e1bee7;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.custom-type-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 10px rgba(156, 39, 176, 0.15);
}

.type-info {
    flex: 1;
    min-width: 0;
}

.type-name {
    font-size: 16px;
    font-weight: 600;
    color: #7b1fa2;
    margin-bottom: 4px;
}

.type-detail {
    font-size: 13px;
    color: #888;
}

.delete-type-btn {
    background: #ef5350;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-type-btn:hover {
    background: #e53935;
    transform: scale(1.05);
}

.no-types {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 自定义类型表单样式 */
.custom-type-form-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.custom-type-form-section h3 {
    color: #7b1fa2;
    font-size: 16px;
    margin-bottom: 18px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .custom-type-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .delete-type-btn {
        width: 100%;
    }
}